Crash in editor after adding scenario text

Tech support for Battle Academy 2

Moderators: Slitherine Core, BA Moderators

Post Reply
DaveyJJ
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 112
Joined: Tue Jul 06, 2010 12:04 am
Location: Waterloo, Ontario
Contact:

Crash in editor after adding scenario text

Post 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
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: Crash in editor after adding scenario text

Post by pipfromslitherine »

Can you post the contents of the file it references, I can probably spot the error from that.

Cheers

Pip
follow me on Twitter here
DaveyJJ
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 112
Joined: Tue Jul 06, 2010 12:04 am
Location: Waterloo, Ontario
Contact:

Re: Crash in editor after adding scenario text

Post by DaveyJJ »

I'll do that this evening, Pip.
DaveyJJ
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 112
Joined: Tue Jul 06, 2010 12:04 am
Location: Waterloo, Ontario
Contact:

Re: Crash in editor after adding scenario text

Post 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
DaveyJJ
Senior Corporal - Destroyer
Senior Corporal - Destroyer
Posts: 112
Joined: Tue Jul 06, 2010 12:04 am
Location: Waterloo, Ontario
Contact:

Re: Crash in editor after adding scenario text

Post 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.
pipfromslitherine
Site Admin
Site Admin
Posts: 9928
Joined: Wed Mar 23, 2005 10:35 pm

Re: Crash in editor after adding scenario text

Post 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
follow me on Twitter here
Post Reply

Return to “Tech Support”