Adding more opponents in game.

I recall a IRC chat with Brad some time ago how that the game will handle far more races than it does atm. I have seen posts by Cari before that touch on this and with some XMLing and DX editing our team has got an idea of the first steps needed to be taken to achieve more opponents in game.

Question is, what defines the max number of opponents that can show in the game. After looking around i guess it must be hardcoded.

Is there a way to achieve this that we have overlooked?
Has anyone come close to achieving more opponents in game?

Don't suppose SD want to chime in here with a tip either way?

 

7,746 views 15 replies
Reply #1 Top

I assume it is hardcoded in the sense that there are only 9 opponent "slots" on the selection screen, and I do not think you can add any more by editing the DXpack file. HOWEVER, it should be possible to add in more by editing the save files themselves. Of course, there is a limit to how many AIs you can have running simultaneously before they take up so much space that the game either crashes or slows to the point of unplayability, but I believe that the level would be extremely high, maybe 50+ opponents just guessing.

Reply #2 Top

We can modify the Dxpacks to allow more slots. In Fact that work is handled already. Getting the game to allocate a Race Id to show in that Slot and then load that extra slot into the game is the issue.

I recall a mod once that had the player playing as the custom race and you played against all other AI including the Dread Lords.

Maybe there will be some info there that may be useful.

Reply #3 Top

editing the dxpacks will not help. since whatever object you add does not have a hardcoded name, it will not be used by the game. Instead, it'll just be an empty box like the one shown in the dxpack. There's only so much you can do when editing dxpacks ;)

Technically, you could just make a ton of races and then create a map that uses all of them.

 

-Dave

Reply #4 Top

But then users of the mod are locked to using that one map. I would need to look at the map editor more to see what features there are. That may be the only way this will work but i think we would ditch the idea to allow greater flexability for the player.

 

Reply #5 Top

Technically, you could just make a ton of races and then create a map that uses all of them.
End of quote

Does this mean you can use the map editor to circumvent the ten race cap? If so , that is quite interesting :) .

Reply #6 Top

You could also try using a custom scenario to get more races, but on that you may have the limit of 9 races + custom + dread lords.

Reply #7 Top

Although this is not a terribly good idea for a mod, it may techically be possible to add races into a save file itself using a hex editor, IF you knew what the correct groupings were and were willing to do this for every single game.

Reply #8 Top

the problem with using a scenario to overcome the race cap is that you're locked into using 1 race

Reply #9 Top

Yeah that would be too limiting.

I think we will can this idea and concentrate on getting more races selectable to play showing up, though that seems as futile.

Reply #10 Top

btw, who's "we?" What mod?

Reply #11 Top

Its a mod a few of us guys in the ToE are working on. We're no where near ready to give out any details and we are still in the developing phases but its very extensive and unique.

:)

Reply #12 Top

Quoting DSep, reply 8
the problem with using a scenario to overcome the race cap is that you're locked into using 1 race
End of DSep's quote

You could create one scenario for each race to play, a bit of a hack I know, but seemingly the only way.

Reply #13 Top

i thought about that, but who would want to have to look through a thousand different scenarios to find the right one?

Reply #14 Top

You guys have some interesting ideas, Got me thinking... :)

Reply #15 Top

You could create one scenario for each race to play, a bit of a hack I know, but seemingly the only way.
End of quote

i thought about that, but who would want to have to look through a thousand different scenarios to find the right one?
End of quote

Hmmm maybe 24 though. I think having 24 custom maps to accomodate each race might be ok.

Still though, need to have those 24 races show as playable...(dreams)