gingemonster / gameboypngconverter Goto Github PK
View Code? Open in Web Editor NEWA utility, written in .net core, for converting 4 color .png images to C files for use in the GameBoy Developer Kit (GBDK)
A utility, written in .net core, for converting 4 color .png images to C files for use in the GameBoy Developer Kit (GBDK)
Add a line break in .c maps at the end of a row.
This makes it easier to modify maps by hand.
The need to press a key is quite inconvenient when using this in a make file
Apple has been using Gatekeeper since macOS Catalina (2019 october). Applications that are not signed must be separately enabled. This wouldn't even be a problem, but all use .dll's and .dylib's need to be enabled one by one. (So all in all.) Until all of them are enabled, one by one, it will not start.
I think a solution to this might be that if macOS is under construction portable. Then maybe only 1 should be allowed.
Hello, I'm trying to use the tool but it don't work. The following error prompts:
Unhandled exception. System.TypeLoadException at System.Drawing.SafeNativeMethods.Gdip.GdipCreateBitmapFromStream(IStream stream, IntPtr& bitmap) at System.Drawing.Bitmap..ctor(Stream stream, Boolean useIcm) at System.Drawing.Bitmap..ctor(Stream stream) at GameBoyPngConverter.Program.Main(String[] args) at GameBoyPngConverter.Program.<Main>(String[] args)
Find attached the image I tested.
Important Info
OS: Windows 11 22H2
Using Release V1 works perfectly, only happens with V2 release.
Thank you very much for the tool
I am using FreeBSD so i cloned repo and compiled source code using mono:
pkg install mono libgdiplus
cd ~/GBDK
mkdir GameBoyPngConverter
cd GameBoyPngConverter
git clone https://github.com/gingemonster/GameBoyPngConverter.git
cd GameBoyPngConverter/GameBoyPngConverter
csc Program.cs Sprite.cs
mono Program.exe IMAGE.png
Program execution crashes:
Unhandled Exception:
System.ArgumentNullException: Value cannot be null.
Parameter name: stream
at System.IO.StreamReader..ctor (System.IO.Stream stream, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean leaveOpen) [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0
at System.IO.StreamReader..ctor (System.IO.Stream stream, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <0e06830de9a44394a7e366951eabca52>:0
at System.IO.StreamReader..ctor (System.IO.Stream stream) [0x00000] in <0e06830de9a44394a7e366951eabca52>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(System.IO.Stream)
at GameBoyPngConverter.Program.ReadTemplateFile (System.String filename) [0x0004d] in <d8225f52c1af44478a9cbcc8a14eb045>:0
at GameBoyPngConverter.Program.GenerateDataFile (System.Collections.Generic.List`1[T] sprites, System.String filename) [0x00034] in <d8225f52c1af44478a9cbcc8a14eb045>:0
at GameBoyPngConverter.Program.Main (System.String[] args) [0x0019a] in <d8225f52c1af44478a9cbcc8a14eb045>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentNullException: Value cannot be null.
Parameter name: stream
at System.IO.StreamReader..ctor (System.IO.Stream stream, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean leaveOpen) [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0
at System.IO.StreamReader..ctor (System.IO.Stream stream, System.Boolean detectEncodingFromByteOrderMarks) [0x0000d] in <0e06830de9a44394a7e366951eabca52>:0
at System.IO.StreamReader..ctor (System.IO.Stream stream) [0x00000] in <0e06830de9a44394a7e366951eabca52>:0
at (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(System.IO.Stream)
at GameBoyPngConverter.Program.ReadTemplateFile (System.String filename) [0x0004d] in <d8225f52c1af44478a9cbcc8a14eb045>:0
at GameBoyPngConverter.Program.GenerateDataFile (System.Collections.Generic.List`1[T] sprites, System.String filename) [0x00034] in <d8225f52c1af44478a9cbcc8a14eb045>:0
at GameBoyPngConverter.Program.Main (System.String[] args) [0x0019a] in <d8225f52c1af44478a9cbcc8a14eb045>:0
Im not a C# programmer, but i decided to debug with echos in the code and it breaks at:
using (var stream = assembly.GetManifestResourceStream(resourceName))
using (var reader = new StreamReader(stream))
{
Console.WriteLine("-- ReadTemplateFile3 --");
return reader.ReadToEnd();
}
resourceName variable has the value: GameBoyPngConverter.tiledatatemplate.c, i think it is trying to load assembly code from an inexistent file GameBoyPngConverter.tiledatatemplate.c?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.