AI modding: list of available templates

Get some help with creating maps or modding.
Need a map editor or other tools, look here!
User avatar
DylanDog
Code contributor
Code contributor
Posts: 347
Joined: 08 Apr 2009, 15:15
Location: Germany

AI modding: list of available templates

Post by DylanDog »

Hello
How can I find out a list of all available templates for building tanks an AI can build?
If I look at the file templates.txt, I see that only few templates are listed.
Just to give an example BecomePrey uses many templates not listed in templates.txt

Code: Select all

tmpl0[20]	TEMPLATE	"SK-Cobra-Hover-HMG"
tmpl0[19]	TEMPLATE	"SK-Cobra-Hover-Lancer"
tmpl0[18]	TEMPLATE	"SK-Mantis-Hover-HVC"
tmpl0[17]	TEMPLATE	"SK-Python-Hover-Hcannon"
...just to indicate some.

thanks!
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).
KukY
Regular
Regular
Posts: 1859
Joined: 20 Mar 2009, 21:56

Re: AI modding: list of available templates

Post by KukY »

In debug mode,on debug menu,switch to wanted player,click on units and watch them...
Ilr
Trained
Trained
Posts: 61
Joined: 07 Sep 2009, 22:11

Re: AI modding: list of available templates

Post by Ilr »

Doesn't extracting the list from MP.WZ also work? ...(and is a lot better for Copy-Pasting coding anyway)

It worked for me... I think...
User avatar
DylanDog
Code contributor
Code contributor
Posts: 347
Joined: 08 Apr 2009, 15:15
Location: Germany

Re: AI modding: list of available templates

Post by DylanDog »

I thought no one had answered to this question...let me explain first why I need this: I am developing a new AI and would like to let it build a template like:

medium cannon - cobra - halftrack

the issue is that I do not know how to call it. I have tried varus combinations of names but no one is working.

Looking at the file templates.txt, this template seems to be missing, but I noticed that also many other templates are missing in the templates.txt file, see below 2 templates that the AI is building and that arenot listed in templates.txt :

Code: Select all

        "SK-Cobra-Hover-Lancer"
        "SK-Python-Hover-Hcannon"

..therefore I have thought that the templates do not have to be listed in this file but must follow some rule...WHICH ONE?
For example if I try with

Code: Select all

         "SK-Cobra-Hover-Hcannon"
...it is not working even if it is a combination of the two mentioned working templates.

and what is more confusing...if I try to add to the ai script the template "NP-M-MdCannon-Halftrack" which is indeed in the templates.txt I get an error message...I am lost!!!!!
13KukYNexus666 wrote: In debug mode,on debug menu,switch to wanted player,click on units and watch them...
1- I have tried with the debugmode, I can see the name of the unit but this is not the name I need to indicate on the AI script...the name of the units you see in debug mode are more like a description.
Ilr wrote:Doesn't extracting the list from MP.WZ also work? ...(and is a lot better for Copy-Pasting coding anyway)

It worked for me... I think...
what do you mean with MP.WZ?
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).
KukY
Regular
Regular
Posts: 1859
Joined: 20 Mar 2009, 21:56

Re: AI modding: list of available templates

Post by KukY »

DylanDog wrote:I thought no one had answered to this question...let me explain first why I need this: I am developing a new AI and would like to let it build a template like:

medium cannon - cobra - halftrack

the issue is that I do not know how to call it. I have tried varus combinations of names but no one is working.

Looking at the file templates.txt, this template seems to be missing, but I noticed that also many other templates are missing in the templates.txt file, see below 2 templates that the AI is building and that arenot listed in templates.txt :

Code: Select all

        "SK-Cobra-Hover-Lancer"
        "SK-Python-Hover-Hcannon"

..therefore I have thought that the templates do not have to be listed in this file but must follow some rule...WHICH ONE?
For example if I try with

Code: Select all

         "SK-Cobra-Hover-Hcannon"
...it is not working even if it is a combination of the two mentioned working templates.

and what is more confusing...if I try to add to the ai script the template "NP-M-MdCannon-Halftrack" which is indeed in the templates.txt I get an error message...I am lost!!!!!
13KukYNexus666 wrote: In debug mode,on debug menu,switch to wanted player,click on units and watch them...
1- I have tried with the debugmode, I can see the name of the unit but this is not the name I need to indicate on the AI script...the name of the units you see in debug mode are more like a description.
Ilr wrote:Doesn't extracting the list from MP.WZ also work? ...(and is a lot better for Copy-Pasting coding anyway)

It worked for me... I think...
what do you mean with MP.WZ?
Call it?!?
You are trying to make templates by changing names?
As much as I know,you can call your template "7564957349",
but you need to change diffrent values,
ones that designate body and propulsion,
and weapon in seperate file.
TxtEditing
User avatar
DylanDog
Code contributor
Code contributor
Posts: 347
Joined: 08 Apr 2009, 15:15
Location: Germany

Re: AI modding: list of available templates

Post by DylanDog »

13KukYNexus666 wrote:
DylanDog wrote: Call it?!?
You are trying to make templates by changing names?
As much as I know,you can call your template "7564957349",
but you need to change diffrent values,
ones that designate body and propulsion,
and weapon in seperate file.
TxtEditing
...thanks !
all I needed was the link TxtEditing.
I was not aware of the file mp.wz...I have always looked at the stats folder within the base.wz file and not the mp.wz.file!
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).
KukY
Regular
Regular
Posts: 1859
Joined: 20 Mar 2009, 21:56

Re: AI modding: list of available templates

Post by KukY »

DylanDog wrote:...thanks !
all I needed was the link TxtEditing.
I was not aware of the file mp.wz...I have always looked at the stats folder within the base.wz file and not the mp.wz.file!
Well,now i know that one good thing happened today...