I am trying to figure out where the problem of the slic database access lies. So far I know this:
This does work the argument of GovernmentDB is a string variable of the government name or something like this. This doesn't work and make the game crash:
I also know that the code somewhere converts the GOVERNMENT_CORPORATE_REPUBLIC into a number. Unfortunatly I don't know where it is determined that GovernmentDB accepts just an advance name/type or whatever but not a number, maybe it is somewhere in these *.y or *.l files determined, but so far I wasn't able to find it.
I only found the place where you can have a GovernmentDB, unfortunatly it is a template and the parser is so far a miracle to me.
So does anyone has some knowledge about Bison?
-Martin
Code:
int1 = GovernmentDB(GOVERNMENT_CORPORATE_REPUBLIC).CrimeOffset;
Code:
int1 = GovernmentDB(3).CrimeOffset;
I only found the place where you can have a GovernmentDB, unfortunatly it is a template and the parser is so far a miracle to me.
So does anyone has some knowledge about Bison?
-Martin
Comment