I'm currently trying to get back to some AGS scripting, but obviously I got quite rusty.
Could anyone please help me with this error?
Code: ags
In tiles.ash, I have a struct:
Code: ags
In tiles.asc I create the struct like this and try to export it (at the bottom of the script). The error occurs.
Code: ags
Now the interesting part is: when I overwrite those two lines to something stupid, the error remains
Code: ags
When I now copy and paste those two lines a few lines above, it works fine. Like those script lines were haunted.
Am I missing something?
--EDIT: Sorry already found it myself:
A few lines earlier is a pretty huge struct (tiles[100000]) which I also export. It seems like I can't export anything else after that. I moved the needed lines above this mega struct and it works fine now.
Could anyone please help me with this error?
//AGS 3.3 RC1
Tiles.asc(484): Error (line 484): export offset too high; script data size too large?
In tiles.ash, I have a struct:
struct ctile_sprites {
DynamicSprite *spr;
int code;
short frm_speed[MAX_FRAME_TILE];
short frames_in_use;
short frame_counter;
short ani_delay;
short ani_delay_counter;
};
In tiles.asc I create the struct like this and try to export it (at the bottom of the script). The error occurs.
ctile_sprites tile_sprites[NUM_MAX_SPRITES];
// a few lines later ...
export tile_sprites;
Now the interesting part is: when I overwrite those two lines to something stupid, the error remains
int blargh;
export blargh;
When I now copy and paste those two lines a few lines above, it works fine. Like those script lines were haunted.
Am I missing something?
--EDIT: Sorry already found it myself:
A few lines earlier is a pretty huge struct (tiles[100000]) which I also export. It seems like I can't export anything else after that. I moved the needed lines above this mega struct and it works fine now.