News:

Use the "Forum Search"
It may help you to find anything in the forum ;).

compat.tab - double entries

Started by Leartin, May 06, 2016, 09:05:50 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Leartin

I know, it's something I could find out by testing, but not in a heartbeat and since somebody might know:

Code (compat.dat) Select

objectA
objectB
objectB
objectC

If Object A is missing, it's replaced by Object B. If Object B is missing, it's replaced by Object C.
But will Object A be replaced by Object C if both A and B are missing?

Code (compat.dat) Select

objectA
objectB
objectA
objectC

Object A is now replaced twice. In which order does the compat.dat work? Will A be replaced by B or by C?
Will the availability of B and C have any affect? Say A would be replaced by B, but B does not exist either - will it be replaced by C instead?

Furthermore, is there a wildcard character, like "?" or "*" to replace a bunch of similar named objects with one fallback-object (kinda like the game itself looks at the name when replacing citybuildings to have the same type and level)?

prissi

No, the hashtable will be parse exactly one time using the internal name. There some few object (houses and trees) where the games then tries to find something similar if replacing fails.

Multiple lookups with wildcards are rather recipies for desaster: It would be very easy to make accidental loops ...

And there is no support for wildcards.