Closed stwe closed 2 years ago
eventually the expression "+112" will be misinterpreted
Can you search the cod file for the constant IDWOHN
and check if it was defined (and what value it hast) and how often this is used?
I checked with a NINA version of Anno 1602.
The constant IDWOHN
is defined as IDWOHN = 20601
This means that the value for IDWOHN+20
is correct (20621).
How do you calculate the value of 3064
?
Sorry, I mean the GFX value. That should be 3064. The reader writes the wrong GFX value. But it's also good to know that IDWOHN fits. What GFX do you have for the ID?
This issue is potentially fixed in https://github.com/siredmar/mdcii-engine/commit/520762b846d0181148f7635bf1bde74d3dd2d2ec
The problem was, that relative constant increments (and decrements) were not handled by the cod_parser.
Constant assignments are in this format: CONSTANT =
Relative constant assignment:
@GFXNR = +112
Relative variable assignment:
@GFXNR: +112
Well, this should be fixed. I'd be nice if you tested this if the change has some side effects i didn't see.
@siredmar It looks like the problem has been fixed. Thanks for the support. What is new is that the GFX values for rotated public buildings (e.g. Tavern, Market-Place) are not correct. But this can have many other reasons. Otherwise everything looks very good.
I think the GFX value 112 here is wrong.
In my opinion is 3064 correct.