Page 1 of 1

Invalid chunk errors

Posted: Thu Dec 26, 2019 10:33 pm
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.

Re: Invalid chunk errors

Posted: Fri Dec 27, 2019 1:29 pm
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?

Re: Invalid chunk errors

Posted: Fri Dec 27, 2019 9:44 pm
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

Re: Invalid chunk errors

Posted: Sat Dec 28, 2019 12:47 am
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.

Re: Invalid chunk errors

Posted: Sat Dec 28, 2019 1:24 am
by Eagletanker
Okay, When I get home I will post the file contents.

Re: Invalid chunk errors

Posted: Sat Dec 28, 2019 5:36 am
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.

Re: Invalid chunk errors

Posted: Sat Dec 28, 2019 2:56 pm
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!

Re: Invalid chunk errors

Posted: Sat Dec 28, 2019 8:54 pm
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.

Re: Invalid chunk errors

Posted: Sat Dec 28, 2019 11:10 pm
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.

Re: Invalid chunk errors

Posted: Sat Dec 28, 2019 11:53 pm
by Eagletanker
Okay, will do

Re: Invalid chunk errors

Posted: Sun Dec 29, 2019 6:17 am
by Eagletanker
So, deleted the space, and it Still didn’t work.

Re: Invalid chunk errors

Posted: Sun Dec 29, 2019 12:25 pm
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?

Re: Invalid chunk errors

Posted: Mon Jan 06, 2020 4:07 pm
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