documentation
Moderators: hoijui, Moderators
documentation
i'm putting some documentation of the groupAI up at
http://taspring.clan-sy.com/wiki/Greenai
feedback welcome...
http://taspring.clan-sy.com/wiki/Greenai
feedback welcome...
- Lindir The Green
- Posts: 815
- Joined: 04 May 2005, 15:09
So... What exactly is the difference between a group ai and a global ai?
You said that the nanoblobs ai is a group ai, but it seems that it completely controls an army
Is a global ai just a group ai that is activated at the beginning of the game?
If so, the documentation will be really useful for me.
You said that the nanoblobs ai is a group ai, but it seems that it completely controls an army

Is a global ai just a group ai that is activated at the beginning of the game?
If so, the documentation will be really useful for me.
Group and Global AI's differ in only how the program handles them. Global AIs are initialized at the start and include callback functions that allow the program to tell the AI when something occurs (and what that something was). Group AI's lack this ability, so one can imagine a groupai being a callback-less GlobalAI (that requires considerably more work for maintaining accurate 'state' of the world though...callbacks make life easy).
Besides those differences, they both use the IAICallback interface and have similar code access. The documentation should be fairly useful as a result :D
Besides those differences, they both use the IAICallback interface and have similar code access. The documentation should be fairly useful as a result :D
Cheating in OTA wasnt the same, it was dependant on the AI being able to build things that ahd no visible button in the build menus, so the AI could build ti but you couldnt. These buildings being invisible and having unfair amounts of resources being generated. This wouldnt wokr in spring though because ofthe way it handles build menus.
Allowing a globalAI to cheat without typing .cheat would be unfair because ti is possible to play a game against soemone else yet ahve a globalAI cotnrolling your untis with you. Try adding aidll=NTAI.dll to a script udner your player entry and starting the game and you'll see what i mean.
Allowing a globalAI to cheat without typing .cheat would be unfair because ti is possible to play a game against soemone else yet ahve a globalAI cotnrolling your untis with you. Try adding aidll=NTAI.dll to a script udner your player entry and starting the game and you'll see what i mean.
i hadnt thought about that, good point.Allowing a globalAI to cheat without typing .cheat would be unfair because ti is possible to play a game against soemone else yet ahve a globalAI cotnrolling your untis with you. Try adding aidll=NTAI.dll to a script udner your player entry and starting the game and you'll see what i mean.
i meant like that, having a way of generating res like for instance .atm for the global ai only (not group ai), so that ppl could choose a cheating or not ai to fit their play strengthand having unfair amounts of resources being generated