Page 1 of 2

Crashes

Posted: Thu Mar 14, 2013 5:24 am
by Therm
I'm developing a mod, and stupidly decided not to test it until the thing was done. And obviously, it doesn't work.

I'm almost certain its due to a screwup in the xmls, but I was just wondering if theres anyway to properly diagnose where things broke. Any ideas?

edit: game crashes the moment I click start.

Re: Crashes

Posted: Thu Mar 14, 2013 5:33 am
by Vhati
Therm wrote:I'm almost certain its due to a screwup in the xmls, but I was just wondering if theres anyway to properly diagnose where things broke. Any ideas?
In the mod manager, select the mod you're working on, and click "Validate".
You'll get a list of things to fix.

One of them might be what you're after.

Re: Crashes

Posted: Thu Mar 14, 2013 7:33 am
by UltraMantis
Crashes are almost allways .xml related. It's very hard to spot typos or copy paste errors, but those are most likely to be the reason. It also helps if you avoid making too many changes at once.

Re: Crashes

Posted: Thu Mar 14, 2013 1:09 pm
by speedoflight
Well, i noticed something. If the crash is produced before u can get to the main game menu, the problem is in the ship.xml file or the txt one. If the crash is after u click in the "new game" button and select a ship (or before) the problem is in the blueprints.xml.append file.

Anyways, i expereienced some crashes, and the cause was always a ">" that i forgot. I usually do a lot of copy paste, and sometimes this could happen xD.

Re: Crashes

Posted: Thu Mar 14, 2013 3:18 pm
by Therm
GMM validate comes up clean :/

Guess i'll have to comb through all this then

Re: Crashes

Posted: Thu Mar 14, 2013 7:50 pm
by DryEagle
often as not it'll be because you have a <thing> instead of a <thing/>

Re: Crashes

Posted: Thu Mar 14, 2013 10:40 pm
by Vhati
Therm wrote:GMM validate comes up clean :/
Ouch. I guess your xml syntax is good then.

You may be giving FTL values it doesn't like though. ("10" is a number, but FTL can't handle 10 crew for instance)
Or tags that, while written correctly, appear in the wrong place...

When you find it, report back with the broken snippet if you think it's something relatively simple. Maybe GMM can be taught to detect it.

Re: Crashes

Posted: Fri Mar 15, 2013 9:16 am
by DryEagle
if you want to pm me your files i'll take a look over them for you, always easier to spot something when you're seeing it first time

Re: Crashes

Posted: Mon Mar 18, 2013 2:39 am
by Therm
I combed over the files several times, and couldn't find anything blatantly wrong, which leads me to believe that an assumption I made about events does not hold.

If I have an event A that goes to event B, can event B have a choice that loads event A again? I did some testing and it *looks* like this always results in a crash. Just wanted to make sure that you can't do these loops before I tear my files up again

Re: Crashes

Posted: Mon Mar 18, 2013 5:35 am
by DryEagle
I'm fairly certain the game verifies all event chains during loading screen (before main menu) so if you have some loops there then it will probably break it, yes.