Loading...
  OR  Zero-K Name:    Password:   

Managing Ai for Custom Mods

1 posts, 39 views
Post comment
Filter:    Player:  
sort
USrankKW8
17 hours ago
Managing Ai for Custom Mods

folders:

../Zero-K/Ai/Skirmish/MyAiVersion1
../Zero-K/games/MyModVersion1

The ai that are in ../Zero-K/Ai/Skirmish can be modified (in one shot) and played in any Zero-K game including all custom mods.
This is good.

But, this is not good for certain custom mods.
If a custom mods is made where it changes the units (by a lot) it has no ai management.
Custom mod MyModVersion1 has a new unit named NewUnit1 and also has a new ai MyAiVersion1 that uses the new unit NewUnit1.
Custom mod MyModVersion2 has a new unit named NewUnit2 and also has a new ai MyAiVersion2 that uses the new unit NewUnit2.

game MyModVersion1 can play ai MyAiVersion2
game MyModVersion2 can play ai MyAiVersion1
This is NOT good.

What if ../Zero-K/Ai is kept the same and is always included in all games.
but now change it so that an additional Ai folder can be optional and is in ../Zero-K/games/MyModVersion1/Ai
So when playing a game all the ai in ../Zero-K/Ai/Skirmish are selectable (normal list) and also if there is a Ai folder within the game it is added to the ai list to be selectable also.
This would fix the "game MyModVersion1 can play ai MyAiVersion2" issue.
MyAiVersion1 and MyAiVersion2 would not exist in ../Zero-K/Ai/Skirmish and only exist in the correct "game" folder so when a player picks one of the games the correct ai will be added to the list.

Also, possibly more beneficial, a player does not need to download and manage custom ai themselves.
I would take a guess and say 95% of players would never download and manage custom ai even if they wanted to play the mod. :(

So Question:
Is this VERY difficult to create? or Possible but not many resources to create this?
If someone saw this as most likely possible and not VERY difficult but no one has time. I could look into it.

Hoping someone could somewhat quickly say "yes" or "no"

Please give any better ideas if it is possible.

Thoughts please.
+0 / -0