ENIGMA Forums

Outsourcing saves money => Issues Help Desk => Topic started by: time-killer-games on January 07, 2014, 09:37:56 PM

Title: GMX Reader
Post by: time-killer-games on January 07, 2014, 09:37:56 PM
What is the most recent version of GMStudio that is most compatible with ENIGMA's GMX reader?
Title: Re: GMX Reader
Post by: Goombert on January 08, 2014, 12:48:32 AM
It should be able to read and write GMX files up to version 1.2

A few things will be overwritten if you open a GMX and instantly save it, and those are, configs, extensions, and include files. I do not even attempt to read them when loading the GMX.

If you have a GMX file that is failing to load please upload it and I can attempt to fix the exception in the reader or writer. It is also helpful if you upload a small GMX project that simply exhibits the bug if you can do so, which makes it much easier to roll out other possibilities.
Title: Re: GMX Reader
Post by: time-killer-games on January 08, 2014, 02:40:50 AM
lol I was pretty sure 1.2 is supported but that's not being specific enough if you check out the release notes the versions can be like 1.2.0860 or something like that. Every GMS update released fucks up GMS's reader and writer so it really can vary each release. Anyway I sent you my project in a PM already, thanks! =)
Title: Re: GMX Reader
Post by: Goombert on January 08, 2014, 02:50:19 AM
Yes as I said that is not my fault at all that they don't put the version number in the actual project file. So when you go to load a GMX, you have no idea what version you are loading, which is necessary because future GMX projects are likely to break older ones. So I can not make different versions of the GMX readers and writers I just have to constantly keep them up to date like they do, and I guess your pretty screwed if your project won't open, except of course you have me who can help you fix any anomalies in a GMX (if I can find them).
Title: Re: GMX Reader
Post by: time-killer-games on January 08, 2014, 03:57:02 AM
I wasn't asking to write multiple gmx readers and writers, because if you did that there would be way too many variations and way took much work. But anyway, thanks, and if you can't find an easy fix don't worry about it, no problem. =)
Title: Re: GMX Reader
Post by: Goombert on January 08, 2014, 04:29:41 AM
No that is what I am supposed to do, that is exactly what the GMK reader/writer does. However as I said it simply is impossible with Studio's GMX format, there is no way for me to do it. I know you didn't mean that, but I was simply stating for the record that if it was possible I would make it compatible with all GMX versions, but I can only make it compatible with the newest GMX version due to it not being versioned. I haven't thought of it as a very big issue anyway, since YYG's don't even seem to give a shit, and they will likely run into the same issues, so like I said I will just continue to do what they do and make it always compatible with the latest version of Studio.

At any rate, I built the latest version of LateralGM from my local fork in Eclipse and it loaded your project fine.
(http://oi41.tinypic.com/21l4z2h.jpg)
The directory structures appeared correct and everything, it loaded in 11,270 milliseconds, and there was a warning as you can see in the debug output that one of your images has null data or rather 0 width and height, basically you have an empty sprite in that project.

What exactly was the issue you were having?
Title: Re: GMX Reader
Post by: time-killer-games on January 10, 2014, 03:23:18 AM
Thanks! Glad to see you got it working. =) The issue I had was that when I loaded gmx from the open file dialog it just sat there like a bump on a log for 20 min so I gave up. However I'm very excited to (hopefully) compile my game for Linux all thanks to you man! =)
Title: Re: GMX Reader
Post by: Goombert on January 10, 2014, 04:21:07 AM
I have resolved the issue, it appears to be your game icon, when I replaced it under Configs/Default/windows/runner_icon.ico with the following icon from a default project, the GMX reader loads the project just fine.
https://www.dropbox.com/s/c26umgzvrbe3mmh/joshdefault.ico

I don't believe 512x512 is a standard icon file size, because I loaded it into paint.NET and reexported with all size layers (maximum is 256x256 PNG layer) and LGM loaded it fine. Here is the file if you want to do it yourself to get it to load.
https://www.dropbox.com/s/7yzipet21mt7yul/realmenpinkicon.ico

Windows Vista only added 256x256.
http://en.wikipedia.org/wiki/ICO_%28file_format%29
Because of general lack of support for these icon sizes, I have filed a feature request for you on LGM's tracker.
https://github.com/IsmAvatar/LateralGM/issues/105

I also went to find ico files that are 512x512 and failed to do so. I looked for instance at iconarchive and found a 512x512 PNG icon, but when I downloaded the ico format version, the max size was 256x256.
http://www.iconarchive.com/show/creature-folders-icons-by-fasticon/red-folder-icon.html

So I am curious, how did you manage to create a 512x512 icon file?
Title: Re: GMX Reader
Post by: time-killer-games on January 10, 2014, 11:58:32 PM
i used http://converticon.com/
Thanks for everything! =)
Title: Re: GMX Reader
Post by: time-killer-games on January 11, 2014, 03:07:46 AM
Okay I updated ENIGMA and the icon and still, I select the project in the open file dialog, but it gives me an empty resource tree and acts like it's done loading everything, the project filename is in the title bar, but no resources appear to be loaded nor still loading.
Title: Re: GMX Reader
Post by: Goombert on January 11, 2014, 05:17:27 AM
Visit http://www.pastie.org and copy and paste the file enigma-dev/output_log.txt and then send me the link. By the way, hope I you are loading the GMX and not the GMZ, LGM does not have any GMZ support you have to do the extraction yourself.
Title: Re: GMX Reader
Post by: time-killer-games on January 11, 2014, 03:31:34 PM
Alright, I'm on it. Yes I'm trying to load the extracted gmx not the gmz archive.
Title: Re: GMX Reader
Post by: time-killer-games on January 19, 2014, 07:47:44 PM
Sorry for the amazing delay here's the error, "Java Heap Space" - http://pastie.org/8648633
Title: Re: GMX Reader
Post by: Goombert on January 19, 2014, 07:50:50 PM
Ok can you open All Programs and type dxdiag and hit enter, run that program, save the information to a text file, and http://pastie.org that for me. I need to see your computers hardware specs.
Title: Re: GMX Reader
Post by: time-killer-games on January 19, 2014, 08:55:08 PM
http://pastie.org/8648802

I haven't updated java in a while out of laziness so if this information doesn't help I'll try that next just in case.
Title: Re: GMX Reader
Post by: Goombert on January 19, 2014, 09:21:39 PM
Doesn't make sense you have 2GB ram. All it looks like it's saying is Java ran out of memory from loading a really large background. I loaded the project fine though with a 4GB ram, but doesn't make sense. Try updating both LGM and the plugin, and your actual Java install, it might actually be a JDK bug.
Title: Re: GMX Reader
Post by: time-killer-games on January 19, 2014, 10:57:22 PM
Alright, I updated Java and the JDK and still face the same issues. I give up.
Title: Re: GMX Reader
Post by: Goombert on January 20, 2014, 02:24:23 AM
Alright, give me some time to look into it further, because I honestly have no ideas right now.
Title: Re: GMX Reader
Post by: time-killer-games on January 20, 2014, 02:25:15 AM
Thanks! =)
Title: Re: GMX Reader
Post by: Goombert on January 20, 2014, 02:26:21 AM
Wait, damn you responded too fast before I could edit that. Josh said it is a Java setting, let me Google.

Basically you have Java Preferences set to not allow Java Apps to utilize a certain amount of memory, LGM uses anywhere between 60,000K on startup to 356,000K is the maximum I've seen it use, bout the same as Eclipse Java IDE that I use when coding LGM.

Edit: Follow the instructions here...
http://www.rcsb.org/pdb/staticHelp.do?p=help/viewers/appletMemory.html

Those might be incorrect, I am trying to find it, there's instructions somewhere.
https://www.google.com/#q=java+preferences+ram+

Edit 2:
Looks like you could open up settings.ini and change target parameter to the following.

Quoteidecommand="java -jar -Xms256m -Xmx512m"
Title: Re: GMX Reader
Post by: time-killer-games on January 20, 2014, 05:37:28 PM
Is this what you had in mind? I tried this among other slight variations. Still no luck.
(https://dl.dropboxusercontent.com/u/79893663/blubber.png)
Where is this "settings.ini" usually located? I've searched all my java folders for that file and no results. I even search for *.ini so I could open them to see if any of them had that parameter so I could update it's value like you suggested but none of them had it.
Title: Re: GMX Reader
Post by: Goombert on January 20, 2014, 06:09:38 PM
Settings.ini is an ENIGMA file, it's in the top directory of your ENIGMA folder. Try it with it in that file.
Title: Re: GMX Reader
Post by: time-killer-games on January 20, 2014, 07:07:26 PM
It loaded! I'm so happy!!!
...now if I could just get it running
Title: Re: GMX Reader
Post by: Goombert on January 20, 2014, 07:10:14 PM
Wow, that's crazy, I was starting to think that wasn't the issue. Glad I could help! Though I doubt you'll get it running, but nevertheless I can still help. Java is pretty bad with memory though, same as C#/VB/.NET.
Title: Re: GMX Reader
Post by: Goombert on January 26, 2014, 07:55:09 AM
To come back to this, I just found a 512x512 ICO file on the internet, which I loaded into a project of mine, and copied and pasted to a GMX project, and both of the projects loaded fine with LGM.

(http://i.imgur.com/YybRlRE.png)

This was the ICO file that worked.
https://www.dropbox.com/s/qc58z4kizehqy9h/512icon.ico

So I went to investigate further the program you used to convert the image, and sure enough it outputs corrupted Icon files when a size layer bigger than 192x192 was exported.
http://converticon.com/
I went there and attempted to convert the following 512x512 PNG of the Death Star to a 512x512 ICO
(http://i.imgur.com/OaKBCz5.png)
Then LGM had an exception trying to use it on a project just like the one you are getting, so my advice to you is to find another image converter.

That image converter did not work on ICO files larger than 192x192.
QuoteException in thread "AWT-EventQueue-0" java.lang.IllegalArgumentException: Width (0) and height (0) cannot be <= 0
   at java.awt.image.DirectColorModel.createCompatibleWritableRaster(Unknown Source)
The reason is because every layer above 192x192 had a size of 0, which most likely means this image converter can't export ICO's at sizes larger than that, I went through and looked at the size of every layer, up to 192^2 was fine.
Something is clearly wrong with that converter, so please, use a different one.