AI Mod (some questions)

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
Master_Jochen
Greenhorn
Posts: 10
Joined: 21 Jan 2010, 11:38

AI Mod (some questions)

Post by Master_Jochen »

Hi there,

I have a few basic questions.

1. Is there a function witch will return the Rank of a droid ?
2. Is ist posible to deaktivate that the AI gets 12000 energy if the fall under a level
3. I looked to aivolution to figure out how data is saved but couldnt... can somone explain how?
4. Is it posible to play ogg files from the ai script? if how?
5. Is it posible to get the value of the ai slider in the menue?

Last but not least thx for all answers i will get.
KukY
Regular
Regular
Posts: 1859
Joined: 20 Mar 2009, 21:56

Re: AI Mod (some questions)

Post by KukY »

Master_Jochen wrote:1. Is there a function witch will return the Rank of a droid ?
If you are an AI, you wouldn't care about your units rank...
Master_Jochen wrote:2. Is ist posible to deaktivate that the AI gets 12000 energy if the fall under a level
You mean 15 000 when activating autoplay?
Master_Jochen wrote:3. I looked to aivolution to figure out how data is saved but couldnt... can somone explain how?
Ask one who made that AI. I think it was Troman...
Master_Jochen wrote:4. Is it posible to play ogg files from the ai script? if how?
I think not.
Master_Jochen wrote:5. Is it posible to get the value of the ai slider in the menue?
How do you mean?
Master_Jochen
Greenhorn
Posts: 10
Joined: 21 Jan 2010, 11:38

Re: AI Mod (some questions)

Post by Master_Jochen »

KukY wrote: If you are an AI, you wouldn't care about your units rank...
Mhh so does this answer of you mean that the ranks of droids dont make them stronger?

Otherwise my answer is yes i would care about. Why woud i ask this question if i give a damn about the rank.
Sorry but i gues you struck a nerv with this question cause when there is somthing out ther i hate in forums then the answers....witch actuly questions

Why the hell you wanne do this? :scream:
LOL but nevermind.
KukY wrote:You mean 15 000 when activating autoplay?
Yes.
Master_Jochen wrote: Master_Jochen wrote:5. Is it posible to get the value of the ai slider in the menue?


How do you mean?
I mean the diffeculty slider in the menue before you start a multyolayer match every ai has it´s own slider
I may bee wrong and the slider is for somthing totaly differend.
KukY
Regular
Regular
Posts: 1859
Joined: 20 Mar 2009, 21:56

Re: AI Mod (some questions)

Post by KukY »

Master_Jochen wrote:Mhh so does this answer of you mean that the ranks of droids dont make them stronger?
Ranks make units stronger, but ranks are only usable in campaign. In MP your unit will be killed before it can reach rank of "Trained" and there is theoreticaly no way to move it up to rank "Hero".
User avatar
DylanDog
Code contributor
Code contributor
Posts: 347
Joined: 08 Apr 2009, 15:15
Location: Germany

Re: AI Mod (some questions)

Post by DylanDog »

Master_Jochen wrote:Hi there,

I have a few basic questions.

1. Is there a function witch will return the Rank of a droid ?
2. Is ist posible to deaktivate that the AI gets 12000 energy if the fall under a level
3. I looked to aivolution to figure out how data is saved but couldnt... can somone explain how?
4. Is it posible to play ogg files from the ai script? if how?
5. Is it posible to get the value of the ai slider in the menue?

Last but not least thx for all answers i will get.
1) NO
2)-3)-4)-5): All of this has nothing to do with the AI script itself but with the WZ code, you can have allok at what is possible to do with AI scrpt here.

I also looked at AIvolution script to search for a method to save files but had not found it :-(, I think this is "incorporated" in some way in the WZ C/C++ code too.
My Warzone 2100 mods:
Download DyDo-AI for Warzone skirmish/multiplayer games.
Download A2C-HM (Alpha 2 Campaign - Hard Mode).
Download A3C-HM (Alpha 3 Campaign - Hard Mode).
Master_Jochen
Greenhorn
Posts: 10
Joined: 21 Jan 2010, 11:38

Re: AI Mod (some questions)

Post by Master_Jochen »

Hey DylanDog,

I also loaded your AI from you webpage and loocked in the code...
I try to learn by this to codes DyDo and Aivolution

I think your oil hack is predy cool

But by the way i vond some function called getdroidlevel() but i dont think its exesseble from the script ...

But hey if not it shoulded be that hard for the developers to pot in a function like that ... At least i gues so :-)

And the save dater thing kind of works at least the new files are created in my documents folder, called like the maps are called.
User avatar
DylanDog
Code contributor
Code contributor
Posts: 347
Joined: 08 Apr 2009, 15:15
Location: Germany

Re: AI Mod (some questions)

Post by DylanDog »

Master_Jochen wrote:Hey DylanDog,
I think your oil hack is predy cool
yes...it WAs cool but I just copied it from BP ;-)

This feature has been removed in the version I am working on as with the current WZ 2.3Beta release there is a much more elegant way of getting the positions of all free oilRes.
My Warzone 2100 mods:
Download DyDo-AI for Warzone skirmish/multiplayer games.
Download A2C-HM (Alpha 2 Campaign - Hard Mode).
Download A3C-HM (Alpha 3 Campaign - Hard Mode).