02.03.2005, 09:09:58
@Comrade:
No, the game doesn't recognize two commas only.
It's like this:
The first comma is hardcoded. So there HAVE to be AT LEAST two entries.
After that, only one comma is in code, because there's a loop.
That loop splits the tag at comma positions until there are no commas left.
I debugged that: The fourth BaseUnit is being loaded properly.
But there has to be something which makes the unit not being recognized as a baseunit, and that's what I can't find
I found some data storing stuff a bunch of lines below that loop.
It stores 3 variables (!, and it's the SAME storing algorithm as used for HarvesterUnit, VeteranUnits and SecretUnits (which is why I asked whether they are limited to 3 also, but that's false).
I dunno if that one's the thing I'm searching for, but I'm sure I'll find out.
@Bobing:
Adding countries was very easy in fact, the only data which was really stored was the flag PCX file.
The loadscreen stuff is being loaded only when the loading screen is being built, that means after the user clicked on "Start Game".
Then the game checks what country and side the player has and loads its loading screen stuff.
So storing data wasn't that problem there.
But storing data was something important when making new infantry deaths.
So countries were easier, I just made them later because I made some before, and that would have been boring
No, the game doesn't recognize two commas only.
It's like this:
The first comma is hardcoded. So there HAVE to be AT LEAST two entries.
After that, only one comma is in code, because there's a loop.
That loop splits the tag at comma positions until there are no commas left.
I debugged that: The fourth BaseUnit is being loaded properly.
But there has to be something which makes the unit not being recognized as a baseunit, and that's what I can't find
I found some data storing stuff a bunch of lines below that loop.
It stores 3 variables (!, and it's the SAME storing algorithm as used for HarvesterUnit, VeteranUnits and SecretUnits (which is why I asked whether they are limited to 3 also, but that's false).
I dunno if that one's the thing I'm searching for, but I'm sure I'll find out.
@Bobing:
Adding countries was very easy in fact, the only data which was really stored was the flag PCX file.
The loadscreen stuff is being loaded only when the loading screen is being built, that means after the user clicked on "Start Game".
Then the game checks what country and side the player has and loads its loading screen stuff.
So storing data wasn't that problem there.
But storing data was something important when making new infantry deaths.
So countries were easier, I just made them later because I made some before, and that would have been boring