Page 1 of 1

Crash in editor after adding scenario text

Posted: Tue Dec 02, 2014 2:08 am
by DaveyJJ
The campaign and first scenario I was working on had been working working fine. Then I added three lines of scenario text, exported it per the "i" information on the modal for the text, and now BA2 crashes with the following error every time I try to load the campaign or open it in the editor. I'm handy with text editors and code, so can probably go into whatever file needs editing and fix it up manually.

Thoughts?

Image

Re: Crash in editor after adding scenario text

Posted: Tue Dec 02, 2014 4:33 pm
by pipfromslitherine
Can you post the contents of the file it references, I can probably spot the error from that.

Cheers

Pip

Re: Crash in editor after adding scenario text

Posted: Tue Dec 02, 2014 8:33 pm
by DaveyJJ
I'll do that this evening, Pip.

Re: Crash in editor after adding scenario text

Posted: Wed Dec 03, 2014 12:36 am
by DaveyJJ

Code: Select all

[#START]
ANIM BOUNCE SCENUI_Death In A Field of Corntitle 0 1000 1000 10
ANIM PLACE SCENUI_Death In A Field of Corntexta 0 1024 1024
ANIM MOVE SCENUI_Death In A Field of Corntexta 40 70 140 1
ANIM BOUNCE SCENUI_Death In A Field of Corntexta 40 1000 1000 10
ANIM PLACE SCENUI_Death In A Field of Corntextb 0 1024 1024
ANIM MOVE SCENUI_Death In A Field of Corntextb 80 640 357 1
ANIM BOUNCE SCENUI_Death In A Field of Corntextb 80 1000 1000 10
ANIM PLACE SCENUI_Death In A Field of Corntextc 0 1024 1024
ANIM MOVE SCENUI_Death In A Field of Corntextc 120 90 574 1
ANIM BOUNCE SCENUI_Death In A Field of Corntextc 120 1000 1000 10

[SCENUI_Death In A Field of Corn]
type display
level 3

[SCENUI_Death In A Field of Corntitle]
type text
x 400
y 70
width 300
height 30
string IDS_SCENARIO_Death In A Field of Corn
textleft 410
textwidth 280
texttop 75
textheight 20
font TooltipFont
colour ff000000
file text_window.dds
Rescale
windowedback 10

[SCENUI_Death In A Field of Corntexta]
type text
x 1024
y 1024
width 300
height 30
string IDS_SCENARIO_DESC_Death In A Field of Corn
textleft 1034
textwidth 280
texttop 1029
textheight 20
font TooltipFont
colour ff000000
file text_window.dds
Rescale
windowedback 10

[SCENUI_Death In A Field of Corntextb]
type text
x 1024
y 1024
width 300
height 30
string IDS_SCENARIO_DESC_Death In A Field of Corn_b
textleft 1034
textwidth 280
texttop 1029
textheight 20
font TooltipFont
colour ff000000
file text_window.dds
Rescale
windowedback 10

[SCENUI_Death In A Field of Corntextc]
type text
x 1024
y 1024
width 300
height 30
string IDS_SCENARIO_DESC_Death In A Field of Corn_c
textleft 1034
textwidth 280
texttop 1029
textheight 20
font TooltipFont
colour ff000000
file text_window.dds
Rescale
windowedback 10

Re: Crash in editor after adding scenario text

Posted: Wed Dec 03, 2014 1:41 am
by DaveyJJ
Line 13 appears to be the first one under the title animations ...

[SCENUI_Death In A Field of Corn]

Spaces. I can't have spaces. This is now fixed.

Re: Crash in editor after adding scenario text

Posted: Wed Dec 03, 2014 4:30 pm
by pipfromslitherine
In truth that was my guess before I saw the file :) I didn't write the UI text plugin so wasn't sure how it handled it. Glad you are up and running.

Cheers

Pip