How to determine the AI which Research to do first? Skirmish

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
Post Reply
REZ
Trained
Trained
Posts: 93
Joined: 16 Dec 2009, 11:49
Location: Pattensen, Germany

How to determine the AI which Research to do first? Skirmish

Post by REZ »

Hello,

(1) where and
(2) how
to determine the AI in a skirmish game, which Research to do first, second, third ... and how to go on?
Do work with WZ 3.1.
Or is this already set through prresearch.txt?
But my new weapons do not show up for the AI-Players.

http://developer.wz2100.net/wiki/AiTutorial
Did look through the scripting tutorial, which is written clearly and very good to understand :-) :-) :-)
But my aim, to determine Research order I could not figure it out so far.

Does anyone might have a hint for me?
That would be nice :-)

C.U. R.E.Z.
User avatar
Rommel
Trained
Trained
Posts: 446
Joined: 03 Nov 2012, 19:44

Re: How to determine the AI which Research to do first? Skir

Post by Rommel »

That AI tutorial seems to be an introduction to programming as opposed to actually creating an AI, I would like to know if there are any more detailed instructions on creating an AI. thanks
Moving back instead of forward
Seems to me absurd
~
Metallica - Eye of the beholder
User avatar
NoQ
Special
Special
Posts: 6226
Joined: 24 Dec 2009, 11:35
Location: /var/zone

Re: How to determine the AI which Research to do first? Skir

Post by NoQ »

Depends on what AI you're trying to tweak.

For Nexus AI and Semperfi AI you need to see their .vlo files for lists of research items, namely the tech array. They both have two personalities randomly chosen. The .vlo file only describes its early research; later they just stumble randomly around the tech tree. Semperfi's research path is a bit more detailed.

NullBot has its research path split into different subpaths (early pre-defined research path, fundamental research, research for specific weapon branches), even more split in NullBot3, and the AI dynamically decides which path is right now most important to follow. You may want to expand the early research path to make sure the AI researches exactly what you want.

The AI tutorial you quoted is somehow outdated: it describes the original wzscript coding, which is now deprecated in favor of the new javascript engine. You would need to understand wzscript to tweak Nexus and Semperfi; you would need javascript to tweak NullBot. See links in this message for javascript documentation.
REZ
Trained
Trained
Posts: 93
Joined: 16 Dec 2009, 11:49
Location: Pattensen, Germany

Re: How to determine the AI which Research to do first? Skir

Post by REZ »

Hello,

thank You for Your answers :-)

@ NoQ thank You for the details in Your answer :-)
This helps me a lot.
At the moment I do think, I will go for the JS, because of the compatiblity 3.1 upwards.
Now I get a first idea, how the research works in the different AIs.

Thank You a lot :-) :-) :-)
C.U. R.E.Z.
Post Reply