FSX Any Ideas On This Error

Hey,


I just tried compiling my ground polygons (HW/LM/SP/SU/FA/WI). It was a lot of tedious work coding everything. I finally finished, but now It wont compile. See the image below for the error I get.


Any advice would be great!

Thanks,


-Chris-
 

Attachments

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Hi Chris,

Without seeing the code it is hard to know what is wrong, but I think it could be that the texture list has too many entries. How many textures do you have in there?
 
I was hoping that wasn't the problem but... I have 162 textures. 27 ground poly's, each with a HW/LM/SP/SU/FA/WI. I guess if that is the case I can use the summer texture for both Spring & Summer, but I'd rather not have to.


Thanks,

-Chris-


EDIT: Just removed the entire spring season and re-coded everything. still receiving the error; minus spring I have 135 textures. So either I need to split my ground poly's into 2 BGLs, get rid of some more seasons, or the error I'm getting is totally unrelated and I'm following a rabbit trail! lol
 

Attachments

Last edited:

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Hi,

I had another look at the BGL opcodes, and I don't think you have a problem with the amount of textures yet. That is only after about 800 texture entries if I calculated it right.

You only have 270 textures so that should be fine (the night texture needs to be defined for every seasons, since it is a subtexture type).

So I had a look at the code and it seems the problem is with the IFIN1 command. This command can only jump over 65536 bytes of code, I think you have too many polygons for this command to jump over.

To get around that you would need to restructure the entire code. Maybe it is easier than to export as two files.

Btw, I am working on tool support for ground polygons, so that in the future ASM tweaking to get seasons is no longer needed.
 
Thanks Arno,

So I may end up just splitting the ground poly's into separate East and West files. If you don't mind though, how would I reconfigure the ASM to make this file work? I'm always eager to learn more.


-Chris-
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Hi Chris,

Another idea would be to do the season check around the MATERIAL command only and not around the DRAW_TRI_LIST command. That will keep the jumps smaller, but would mean you have slightly more checks.
 
So I tried exporting as 2 files for my ground poly's.. Still no luck. I basically just split the airport in half East side and West side.

I guess since that didn't work, how do I re-structure the code as you mentioned above?


Thanks,

-Chris-
 

arno

Administrator
Staff member
FSDevConf team
Resource contributor
Hi Chris,

If all polygons with a certain material are at the east or west, then splitting like that will not work indeed.

What I suggested is that you put the IFIN to check for the different season around each MATERIAL command. So you choose for each material assignment the right one based on the season. The triangles are just always drawn with the same code.

That how the code sample on the Wiki tutorial looks.
 
Top