aciko
  • aciko
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago
Hello,

I made 3 new Zero Hour factions, it's almost over, they only miss SCRIPT for AI (new factions only).

I kept all Zero Hour factions as in Zero Hour, pure and original (12 factions), and added my 3 new factions, that is now 15 factions. Now I have problem with AI Script and i have several questions for everyone:

1) Can i make AI for new factions ?

2) In worldbuilder, click on Edit->Edit Player List and click on "Add Skirmish Players", and you get all skirmish players for Zero Hour, excluding my 3 new factions. In begin i just ignore this, and click on "New Player" chose some my factions, change players name and others info.

Go to Edit->Scripts. I Choose folder of my new skirmish player.

Before all I imported "SkirmishScripts.scb" from "Advanced AI mod for Zero Hour improved by AEI" (very interesting mod), I looked through their code what each faction do, build etc. Written some similar scripts for one of my factions, and whats happens - NOTHING, All Zero Hour factions is WORKING, only my new faction DON'T WORK.

3) What to do. I removed all script "Add Skirmish Players" and write some basic script for CHINA and for my faction, just for AI to build several buildings. CHINA AI build this, but my faction DON'T want to build. AGAIN DON'T WORK !

MY SUSPICION:
- Maybe I need to change something in my NEW factions in INI files, maybe i missed something.
- Maybe you can write scripts for only max 12 skirmish FACTIONS.

On success:
- If everything works i will try to put lots of new factions, of course AI is important !!!

On failure:
- Stop modding. Bad luck..

Hope someone have some INFO, it's will be very HELPFUL.

Best Regards
Sponsor
klingondragon
8 years ago
Did you edit the skirmish ai build list ini?
aciko
  • aciko
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago

Did you edit the skirmish ai build list ini?

Originally Posted by: klingondragon 



Do you mean on this ?

Data\INI\Default\AIData.ini ?

inside INI file:
SkirmishBuildList ?
klingondragon
8 years ago
Probably. I don't remember the exact file name(s).
aciko
  • aciko
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago
Yes, I did.
And I did all which I was described in first post.
And there is no results.
AdrianeMapMaker
8 years ago
Can you plz take a picture of the script which the new faction is included
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




aciko
  • aciko
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago

Can you plz take a picture of the script which the new faction is included

Originally Posted by: adrianemapmaker 



I haven't because I delete it, but i will make quick script. In meantime i was install and delete many mods to saw how they are make their script.

I know that i made mistake somewhere.

Here are it:

UserPostedImage

UserPostedImage

UserPostedImage
AdrianeMapMaker
8 years ago
Is that only script in ultramarines? The UM paper work?
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




Zatsupachi
8 years ago
Your best bet is to replace one of the factions.
AI Scripting is the bane of all(if not most) modders, because it's the most finicky thing ever.
"It's precision_bomber."
Death Label HAS BEEN RELEASED(go get v0.99):
http://www.moddb.com/mods/death-label/downloads/death-label-ver-099 
Next Episode:
precision_bomber's Zero Hour SCIENCE!
AdrianeMapMaker
8 years ago
Oh wait... Did you said you had the scripts like build etc..

I knew what's the problem.. In the maps of Zh .. Try to add skirmish players on them... Since the maps are not updated all the old skirmish faction only works.. The maps.. they don't have the folder ultramarines.. That's why..the new script have no folder to go...
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage




aciko
  • aciko
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago

Your best bet is to replace one of the factions.
AI Scripting is the bane of all(if not most) modders, because it's the most finicky thing ever.

Originally Posted by: Zatsupachi 



That can be solution, I can for example replace GLA and add Ultramarines units instead GLA faction, but i want to keep purity of Zero Hour original factions and add new factions.

Oh wait... Did you said you had the scripts like build etc..

I knew what's the problem.. In the maps of Zh .. Try to add skirmish players on them... Since the maps are not updated all the old skirmish faction only works.. The maps.. they don't have the folder ultramarines.. That's why..the new script have no folder to go...

Originally Posted by: adrianemapmaker 



Hmm, you want to say to me that i should edit every ZH map ?

Maybe you are in right, i downloaded Global Crisis mod for Zero Hour.

They have two new factions, that are Israel and Syria. I installed mod properly and import their SkirsmiScripts.scb and it's look like this:

UserPostedImage

They have Maps folder in their mod:

UserPostedImage

And now i open Twighligh Flame in Worldbuilder, only open and we can see this:

UserPostedImage

and gets this:

UserPostedImage

I will do one test, i will edit some ZH original map, and will keep only basic script which only build barracks, and for begin only add Ultramarines as faction on that map, if that don't work i will import SkirmishSkripts.scb.

I really hope that i can add +20 new factions in ZeroHour, but we will see...
aciko
  • aciko
  • 50.25% (Neutral)
  • Private Topic Starter
8 years ago
I am done with test and we have results, AI builds barracks:

UserPostedImage

What you should to do ?

- Make your new faction

- \ZeroHour\Data\INI\Default\AIData.ini

fill this file with your building, look how that like in original factions

- \ZeroHour\Data\Scripts\SkirmishScripts.scb

Edit->Player List...

I will Add my factions last ! And i will keep all Zero Hour factions as original, because I want this.

Click on "Add Skirmish Players" if you haven't anything (Neutral always stay in list), you will get all ZeroHour factions, after this, click on "New Player" chose your faction, give Player Name and Player Display Name for your new faction and click OK.

Edit->Scripts

Edit scripts for you faction (find some tutorial for this) Export your scripts, Export All Scripts.

After this click on OK.

You can reopen worldbuilder, select some map, and Edit->Player List...

click on "New Player" chose your faction, give Player Name and Player Display Name for your new faction and click OK.

And save your map.

Open Zero Hour and that is it, AI will work !

That is it for now. Thank you all, and special thank for adrianemapmaker !
AdrianeMapMaker
8 years ago
Glad that I help๐Ÿ˜ ๐Ÿ‘
A part of ZH worldbuilders map making community
https://discord.gg/tJ6zyGb 

UserPostedImage