Page 1 of 1

How to make a map-specific AI

Posted: Mon Apr 09, 2018 7:49 pm
by Secg
I finished writing an AI which only makes Dumdum for the Dumdum Frenzy map. The said AI will not attempt make any unit but DumDums, thus preventing the game from crashing when the AI could not find a Bulldozer.

Still, does any one know how to make this AI only works in Dumdum Frenzy and whenever I enter the game with a computer opponent the game will always assign the Dumdum AI to the computer?

Map-specific AI

Posted: Tue Jul 30, 2019 3:08 am
by Secg
Alright, Extreme Fighters!

I know this thread is too old & I have some apprehension about 'necro-ing' it. Still, I remember that elsewhere mapmaker j3rry unintentionally answered this question of mine: How to make a map-specific AI?

j3rry proposed that player(s) who wish(es) to play the map with AIs, whose personality is exactly whatever player(s) want to play alongsides or against, should:
  • write or download the personality (say doombot.x);
    put that personality doombot.x file in mods > persona;
    back up and then temporarily remove the all other AI .x personalities-files (including default.x) in the mods > persona folders
This method works :ROCK: ! However, after playing I have to put the temporarily removed personalities back in persona < mods!

Suddenly another solution flared up in my mind, what if I:
  • extract & then mod all of default.x > default.zwp's files (so that the AI will only churn out Dumdums &use them to attack), then
    repack the folder default > default.zwp > default.x, then
    put that into my Doombot Hellscape map folder, then
    repack the Doombot Hellscape map folder into Doombot Hellscape.zwp > Doombot Hellscape.x format
Still, I do not know idk how the game will prioritize reading what personality?
default.x personality in my map Doombot Hellscape.x archival map file? Or
default.x in persona < mods?

Re: Map-specific AI

Posted: Wed Jul 31, 2019 7:24 am
by j3rry
Secg wrote: Tue Jul 30, 2019 3:08 am
I have tried that. It still loads default AIs, because problem is that you can not define certain personality to a playable slot. It could be done only for ambient AI.

Re: How to make a map-specific AI

Posted: Wed Jul 31, 2019 9:22 am
by Secg
Thanks for the feedback, j3rry! It doesn't work me for as well :NOOB2:

Re: How to make a map-specific AI

Posted: Wed Jul 31, 2019 4:54 pm
by Magnos
Sorry but for now there's no way to run an AI to make the computer players only use it while playing online with friends..
except one way! to make everyone in gameranger who will play the map choose a edited amrts.exe file!!! ;)

it's simple to edit the exe file to accept the map Personality!
First you have to complete make your personality strategy x file but make sure to rename mod.cfg to anything with the same number of letters like dmd.cfg

then copy amrts.exe and rename it to whatever you want, open the new exe file with notepad++ and replace all mod.cfg files with dmd.cfg
the other personality dmd will always work as default so you will use this exe file to play your dumdum freenzy only
(it's easy to change the exe file from gameranger but Annoying !)

Actually there's another way to make AI using the Objectives but it's not complete because you can't use the Bulldozer through objective in map to construct something, just constructing from building and moving like the story mode levels...

to make a Really so Hard AI for training you can use this two ways together ;)

Re: How to make a map-specific AI

Posted: Wed Jul 31, 2019 8:04 pm
by Secg
Magnos wrote: Wed Jul 31, 2019 4:54 pm
Good suggestion :SWEET: , I'll try it!

Re: How to make a map-specific AI

Posted: Sun Aug 11, 2019 8:48 pm
by unikc
On game.cfg
You will find
-----------------
....
Startregion(...);
startpoint(....,...);
Startyaw(.....)
"""Personality("none")""" <-------- try to change "none" to your personality.x (test.x)
So it will be
""""Personality("test")

i dunno if this works
But i guess i try it before...
peace out

Re: How to make a map-specific AI

Posted: Mon Aug 12, 2019 1:31 am
by Secg
unikc wrote: Sun Aug 11, 2019 8:48 pm i dunno if this works
But i guess i try it before...
peace out
It only works if I temporarily remove all other personalities

Re: How to make a map-specific AI

Posted: Mon Aug 12, 2019 8:18 am
by unikc
Secg wrote: Mon Aug 12, 2019 1:31 am
unikc wrote: Sun Aug 11, 2019 8:48 pm i dunno if this works
But i guess i try it before...
peace out
It only works if I temporarily remove all other personalities
.....ooo...k i not a good modder.