Code Monkey home page Code Monkey logo

gameboypngconverter's People

Contributors

basxto avatar dependabot[bot] avatar gingemonster avatar itsmesousuke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gameboypngconverter's Issues

Gatekeeper on macOS

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.

Unhandled exception. System.TypeLoadException

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

PruebaMario

I think that source code is incomplete

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.