Invalid chunk errors

Tech support for Battle Academy 2

Moderators: Slitherine Core, BA Moderators

Post Reply
Eagletanker
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 197
Joined: Sat Apr 15, 2017 3:30 pm

Invalid chunk errors

Post by Eagletanker »

Whenever I try to access the campaign I am working on from the single player campaign screen, the game kicks me out and back to the start screen with a pop up window saying Invalid Chunk Header on line 16 in /Documents/My Games/BA2/Campaigns/Barbarossa/Data/UI/Scenui_Fortified Hills.TXT.(0)
What does it mean and how can I fix it.
PoorOldSpike
Colonel - Ju 88A
Colonel - Ju 88A
Posts: 1593
Joined: Sun Aug 08, 2010 6:06 pm
Location: Plymouth, England

Re: Invalid chunk errors

Post by PoorOldSpike »

If you mean 'Barbarossa Stopping the Titan', the first version worked perfectly so you must have done something since then that makes it crash; that message says something about fortified hills, so perhaps the program is having trouble with wire and tank traps etc on slopes?
Eagletanker
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 197
Joined: Sat Apr 15, 2017 3:30 pm

Re: Invalid chunk errors

Post by Eagletanker »

I looked at the file, and it’s just two lines of text in the note pad. I don’t have any wire or traps on slopes, even then, There are missions with wire and traps on hills. It might just be a text error I have to manually fix
Paul59
General - King Tiger
General - King Tiger
Posts: 3859
Joined: Tue Jul 21, 2015 11:26 pm

Re: Invalid chunk errors

Post by Paul59 »

TankerOne wrote: Fri Dec 27, 2019 9:44 pm I looked at the file, and it’s just two lines of text in the note pad. I don’t have any wire or traps on slopes, even then, There are missions with wire and traps on hills. It might just be a text error I have to manually fix
I guess that Fortified Hills is the name of a new scenario in the campaign?

Those Scenario UI files are normally several lines long. If I open your SCENUI_SUPRISE!.TXT in Notepad++ it is 123 lines, so I guess something must have gone seriously wrong with the Scenui_Fortified Hills.TXT file if it is only 2 lines long. The error message also says there is an error on line 16, so I suggest you get Notepad++ (it is free) and use it to open the file, you might then see what is wrong. You might have to post the contents on the file in the Technical Support forum, so that one of the experts can have a look.

I think these files are created automatically, so I don't have any experience of working with these particular files, so I probably won't be much more help.
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
Eagletanker
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 197
Joined: Sat Apr 15, 2017 3:30 pm

Re: Invalid chunk errors

Post by Eagletanker »

Okay, When I get home I will post the file contents.
Eagletanker
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 197
Joined: Sat Apr 15, 2017 3:30 pm

Re: Invalid chunk errors

Post by Eagletanker »

Quick question because I am a dummy when it comes to this stuff, Lines are going down right. If you need an example, it would be like
T
H
I
S.
Paul59
General - King Tiger
General - King Tiger
Posts: 3859
Joined: Tue Jul 21, 2015 11:26 pm

Re: Invalid chunk errors

Post by Paul59 »

TankerOne wrote: Sat Dec 28, 2019 5:36 am Quick question because I am a dummy when it comes to this stuff, Lines are going down right. If you need an example, it would be like
T
H
I
S.
I am not 100% sure what you mean, but here is a screenshot of what your Surprise SCENUI file looks like in Notepad++;

Image

The lines are numbered down the right hand side, so line 16 in this case is the one that reads;

ANIM MOVE SCENUI_Suprise!texte 200 110 572 1


BTW, this file controls how your scenario introduction texts are displayed, the problem has nothing to do with fortifications and wire!
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
Eagletanker
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 197
Joined: Sat Apr 15, 2017 3:30 pm

Re: Invalid chunk errors

Post by Eagletanker »

[#START]
ANIM BOUNCE SCENUI_Fortifed Hillstitle 0 1000 1000 10
ANIM PLACE SCENUI_Fortifed Hillstexta 0 1024 1024
ANIM MOVE SCENUI_Fortifed Hillstexta 40 70 140 1
ANIM BOUNCE SCENUI_Fortifed Hillstexta 40 1000 1000 10
ANIM PLACE SCENUI_Fortifed Hillstextb 0 1024 1024
ANIM MOVE SCENUI_Fortifed Hillstextb 80 630 285 1
ANIM BOUNCE SCENUI_Fortifed Hillstextb 80 1000 1000 10
ANIM PLACE SCENUI_Fortifed Hillstextc 0 1024 1024
ANIM MOVE SCENUI_Fortifed Hillstextc 120 90 430 1
ANIM BOUNCE SCENUI_Fortifed Hillstextc 120 1000 1000 10
ANIM PLACE SCENUI_Fortifed Hillstextd 0 1024 1024
ANIM MOVE SCENUI_Fortifed Hillstextd 160 650 575 1
ANIM BOUNCE SCENUI_Fortifed Hillstextd 160 1000 1000 10

[SCENUI_Fortifed Hills]
type display
level 3

[SCENUI_Fortifed Hillstitle]
type text
x 400
y 70
width 300
height 30
string IDS_SCENARIO_Fortifed Hills
textleft 410
textwidth 280
texttop 75
textheight 20
font TooltipFont
colour FF000000
file text_window.dds
Rescale
windowedback 10

[SCENUI_Fortifed Hillstexta]
type text
x 1024
y 1024
width 300
height 30
string IDS_SCENARIO_DESC_Fortifed Hills
textleft 1034
textwidth 280
texttop 1029
textheight 20
font TooltipFont
colour FF000000
file text_window.dds
Rescale
windowedback 10

[SCENUI_Fortifed Hillstextb]
type text
x 1024
y 1024
width 300
height 30
string IDS_SCENARIO_DESC_Fortifed Hills_b
textleft 1034
textwidth 280
texttop 1029
textheight 20
font TooltipFont
colour FF000000
file text_window.dds
Rescale
windowedback 10

[SCENUI_Fortifed Hillstextc]
type text
x 1024
y 1024
width 300
height 30
string IDS_SCENARIO_DESC_Fortifed Hills_c
textleft 1034
textwidth 280
texttop 1029
textheight 20
font TooltipFont
colour FF000000
file text_window.dds
Rescale
windowedback 10

[SCENUI_Fortifed Hillstextd]
type text
x 1024
y 1024
width 300
height 30
string IDS_SCENARIO_DESC_Fortifed Hills_d
textleft 1034
textwidth 280
texttop 1029
textheight 20
font TooltipFont
colour FF000000
file text_window.dds
Rescale
windowedback 10

Here is the text file. From my note pad it looks like two lines.
Paul59
General - King Tiger
General - King Tiger
Posts: 3859
Joined: Tue Jul 21, 2015 11:26 pm

Re: Invalid chunk errors

Post by Paul59 »

Well, Line 16 looks like it would be the one that says: [SCENUI_Fortifed Hills]

I wonder if the problem is caused by the space between "Fortified" and "Hills"? I know from P&S and FOG2 that scenario folders should have no spaces, probably the same applies to BA2 and this is what happens when you do put a space in!

I don't know for sure what you can do to fix this, but maybe you could rename the scenario folder from "Fortifed Hills" to "Fortifed_Hills", and then go though all the files (including this Scenui_Fortified Hills.TXT, also Text1.txt and Text9.txt if you have them) in the scenario folder and change "Fortifed Hills" to "Fortifed_Hills". That might work.
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
Eagletanker
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 197
Joined: Sat Apr 15, 2017 3:30 pm

Re: Invalid chunk errors

Post by Eagletanker »

Okay, will do
Eagletanker
Sergeant - Panzer IIC
Sergeant - Panzer IIC
Posts: 197
Joined: Sat Apr 15, 2017 3:30 pm

Re: Invalid chunk errors

Post by Eagletanker »

So, deleted the space, and it Still didn’t work.
Paul59
General - King Tiger
General - King Tiger
Posts: 3859
Joined: Tue Jul 21, 2015 11:26 pm

Re: Invalid chunk errors

Post by Paul59 »

TankerOne wrote: Sun Dec 29, 2019 6:17 am So, deleted the space, and it Still didn’t work.
It is very difficult to diagnose this problem without having the actual scenario, perhaps you could send me a link to it in a pm?
Field of Glory II Scenario Designer - Age of Belisarius, Rise of Persia, Wolves at the Gate and Swifter than Eagles.

Field of Glory II Medieval Scenario Designer.

FOGII TT Mod Creator

Warhammer 40,000: Sanctus Reach Tournament Scenario Designer.
pipfromslitherine
Site Admin
Site Admin
Posts: 9863
Joined: Wed Mar 23, 2005 10:35 pm

Re: Invalid chunk errors

Post by pipfromslitherine »

I would remove the ! from the various names in the file. Non-alphanumeric chars can cause all kinds of issues in the data files.

Cheers

Pip
follow me on Twitter here
Post Reply

Return to “Tech Support”