How to make a map-specific AI

Have modding questions or discovered something new? Post here.
Post Reply
User avatar
Secg
Half Track L2
Half Track L2
Posts: 200
Joined: Sat Jun 10, 2017 12:28 am
United States of America

How to make a map-specific AI

Post 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?
ImageImage
User avatar
Secg
Half Track L2
Half Track L2
Posts: 200
Joined: Sat Jun 10, 2017 12:28 am
United States of America

Map-specific AI

Post 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?
Last edited by Secg on Wed Jul 31, 2019 8:06 pm, edited 4 times in total.
ImageImage
User avatar
j3rry
Map Maker
Map Maker
Posts: 121
Joined: Thu Oct 11, 2018 5:43 am
Location: Central Russia
Russia

Re: Map-specific AI

Post 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.
Last edited by j3rry on Thu Jan 06, 2022 6:16 am, edited 1 time in total.
User avatar
Secg
Half Track L2
Half Track L2
Posts: 200
Joined: Sat Jun 10, 2017 12:28 am
United States of America

Re: How to make a map-specific AI

Post by Secg »

Thanks for the feedback, j3rry! It doesn't work me for as well :NOOB2:
ImageImage
User avatar
Magnos
Half Track
Half Track
Posts: 61
Joined: Sun Dec 16, 2018 1:27 pm
Egypt

Re: How to make a map-specific AI

Post 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 ;)
User avatar
Secg
Half Track L2
Half Track L2
Posts: 200
Joined: Sat Jun 10, 2017 12:28 am
United States of America

Re: How to make a map-specific AI

Post by Secg »

Magnos wrote: Wed Jul 31, 2019 4:54 pm
Good suggestion :SWEET: , I'll try it!
ImageImage
User avatar
unikc
Half Track
Half Track
Posts: 53
Joined: Tue Apr 16, 2019 11:56 am
Location: Indonesia
Contact:
Indonesia

Re: How to make a map-specific AI

Post 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
Another day another idea 8) :C
BTW I Love Easy Modding.
User avatar
Secg
Half Track L2
Half Track L2
Posts: 200
Joined: Sat Jun 10, 2017 12:28 am
United States of America

Re: How to make a map-specific AI

Post 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
ImageImage
User avatar
unikc
Half Track
Half Track
Posts: 53
Joined: Tue Apr 16, 2019 11:56 am
Location: Indonesia
Contact:
Indonesia

Re: How to make a map-specific AI

Post 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.
Another day another idea 8) :C
BTW I Love Easy Modding.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests