ahezard / NitroHax_Old

http://chishm.drunkencoders.com/NitroHax/
GNU General Public License v3.0
13 stars 3 forks source link

Stuck on "Loading codes" screen #7

Closed droped closed 8 years ago

droped commented 8 years ago

The cheats.xml is the same and worked on the previous version of nitrohax.

ApacheThunder commented 8 years ago

My cheats.xml still works with it. Sounds like yours is a bit too large. Trim a few games off it and try again.

ApacheThunder commented 8 years ago

No, the limit is somewhere less. I don't really know what the real limit is as I have not tested for that. I say 2.5mb is the safe limit. I had a 2.1MB one that works.

ApacheThunder commented 8 years ago

I'll test the alt one in a minute but if it works for me, it's a bug I can not reproduce.

ApacheThunder commented 8 years ago

I spotted a mistake in the 2.1Mb one. There's an extra line at the start that has no closing tag isn't attached to anything. Check that the smaller one is correct too

ApacheThunder commented 8 years ago

Hmm strip all games except the ones you own and try again. I can't get it to load either. Sounds like the cheat data base loading code needs to be fixed. I'll talk to ahezard about that.

ApacheThunder commented 8 years ago

I have a very small XML with just 4 or 5 games in it and it loads fine.

ApacheThunder commented 8 years ago

Yeah seems the parsing code is a bit unstable in TWL mode. I'll have ahezard look into it.

MustardLighthouse commented 8 years ago

Same issue, let me know if I can help.

ApacheThunder commented 8 years ago

Ahezard is now aware of this. He's going to rewrite the XML loading code when he has time.

For now just keep the XML below 900KB and it should work. If still don't work, strip out all games you don't own from the XML.

ApacheThunder commented 8 years ago

This issue has been corrected. There is a few more things I want to fix up before making a release build. But once that release build is out, this issue will be closed. Ahezard was able to load 9+MB cheat.xml with the committed changes. Though the downside with it now is if your game doesn't match a game in the XML, it won't show any codes at all so you can't manually chose a game in the cheat code list. That is the last thing that needs fixed before making a release build.

ApacheThunder commented 8 years ago

This issue is now resolved as of the latest release build.