George wrote:DaleStan wrote:Well, the first problem is that you're not using literal strings,
Who said they have to be literal? "OIL " have non-literal symbol " "
Sorry, I changed that because the space gets eaten by HTML and is just a poor choice on my part. In the real a66 release, it will be using "OIL_" with an underscore, as documented on the wiki now.
DaleStan wrote:You don't set labels that don't belong to cargos.
why not?
I can see the rationale behind leaving "reserved" spaces in the first 32 entries, because if you need them in the refit list, you can add them there later without recoding all action 3s. Even for the entries after that, it might be useful if you have some other scheme in mind.
In any case, it won't hurt at all, and it won't slow down the game at all if you reference non-existing cargos, so I have no problem with it.
However, to figure out what the problem is, just showing the translation table is rather useless. The table looks fine, but what doesn't work? The action 3? The refit mask?
Since your code is extremely hard to read (due to the lack of comments and because it uses hex instead of strings), I'll have to request a test grf if you want me to look at why it breaks.