Error box loading scenario

Modders can post their questions on scripting and more.

Moderators: Slitherine Core, BA Moderators

Post Reply
VR_Nocturne
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 62
Joined: Thu Aug 04, 2011 12:51 am

Error box loading scenario

Post by VR_Nocturne »

Everything was fine. I went to export the description I typed in through the editor. Worked. Saved. Closed editor.

Went to test it - got the box that shows up in the attached screenshot.

And now it won't go away. I delete everything that wasn't there in the text1 and text9 files (only new files I made) and no luck.

Every time I try to load my campaign, it crashes with this box. Can't even get to the map load screen.

I can't get back into my map now.
Attachments
Error.jpg
Error.jpg (114.61 KiB) Viewed 1918 times
pipfromslitherine
Site Admin
Site Admin
Posts: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: Error box loading scenario

Post by pipfromslitherine »

Could it be that it generated a UI file? This error is because of too long a tag in a file, probably not a text file as these don't load using the code specified.

Cheers

Pip
follow me on Twitter here
VR_Nocturne
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 62
Joined: Thu Aug 04, 2011 12:51 am

Re: Error box loading scenario

Post by VR_Nocturne »

It did, and that was the problem.

However, isn't that supposed to be where it shows the text for the description of the map/scenario?

Hmm...I looked at a stock one and it seems the UI file the editor generates does not have line breaks? Maybe that's why it threw the error since it looked like one incredibly long line?
This is the UI file made by the editor for my map.
This is the UI file made by the editor for my map.
MyUIFile.jpg (86.25 KiB) Viewed 1910 times
This is how the UI file looks for the stock Kharkov campaign.
This is how the UI file looks for the stock Kharkov campaign.
StockKarkovUIFile.jpg (52.67 KiB) Viewed 1910 times
VR_Nocturne
Corporal - Strongpoint
Corporal - Strongpoint
Posts: 62
Joined: Thu Aug 04, 2011 12:51 am

Re: Error box loading scenario

Post by VR_Nocturne »

I figured it out.

It has to do with the size of the filename I use to save the map... :?

This isn't mentioned anywhere and it's not as though I had a really long name (Storming the Soviet Plains). When I saved it as "Misson1" - it worked without a problem.

I think either the limit should be much longer or mention (and disallow in the editor) names that are long enough to cause the whole game to crash.
pipfromslitherine
Site Admin
Site Admin
Posts: 9923
Joined: Wed Mar 23, 2005 10:35 pm

Re: Error box loading scenario

Post by pipfromslitherine »

Yes - it should definitely prevent you from entering names that are too long. Will add to the bug list. Sorry for the hassles!

Cheers

Pip
follow me on Twitter here
Post Reply

Return to “Battle Academy 2: Modders Corner”