EFEastern Front Forum Archive
Read-only public archive · no login or tracking

Archived topic · 72 posts

'Controlling' the AI

General Discussion

#130715

Re: 'Controlling' the AI

Hi guys,
JoJo: in the scarutil.scar file did you create the x,y,z orientation as described on lines 378 to~403? I ask because the convention creates a map on your tabletop x,z and y azis is the vertical , rising to the ceiling.  This is an application of "left hand rule", (x,z,y). Normally Cartesesian systems use a righthand rule. (x,y,z) orientation.

You should send a resume to the local tech school. You are a natural teacher.
孫 The
EF_v1.7.10

子 Art
Illegitimi non Carborundum -"Vinegar" Joe Stilwell

兵 of
Sun Tzu says: In warfare one compels and is not compelled by others

[b] 法 War
#130716

Re: 'Controlling' the AI

Otto wrote:
Hi guys,
JoJo: in the scarutil.scar file did you create the x,y,z orientation as described on lines 378 to~403? I ask because the convention creates a map on your tabletop x,z and y azis is the vertical , rising to the ceiling.  This is an application of "left hand rule", (x,z,y). Normally Cartesesian systems use a righthand rule. (x,y,z) orientation.

Those lines were made before, probably those are from vCoh, i never add anything to scarutil.scar except imports, i always create new scar files when i need them as you can see a lot of scar files out there, easier ti maintain, every code chuck is where it suppose to be etc.

You should send a resume to the local tech school. You are a natural teacher.
LOL, Tnx a lot.

#130719

Re: 'Controlling' the AI

Thanks, (x,z,y) orientation hmm. That clears up some things. Sounds like something from Gulliver's Travels. Oh well I'm lefthanded anyway.  ;D
孫 The
EF_v1.7.10

子 Art
Illegitimi non Carborundum -"Vinegar" Joe Stilwell

兵 of
Sun Tzu says: In warfare one compels and is not compelled by others

[b] 法 War
#130774

Re: 'Controlling' the AI

Hi jojo

I've already tested it and it's true that AI PE only uses reward units but Wehr AI is still using Terror doctrine and PE AI is still using Luftwaffe doctrine :(

EDIT 1 : Tested it 2nd time. First I saw Wehr build stormtroopers and was happy then I was praying PE will follow tank destroyer.. After waiting for about 20 mins then I saw Jagdpanzer :DDDD I hope it works now jojo thanks! I wonder why it didn't work first time around but only after 2nd game?

EDIT 2 : FFFFFFFFF I forgot that AI will auto upgrade Jagdpanzer to Panther gun and have increased range now I can't fight it head 2 head. Is it possible to prevent AI from upgrading Panther gun? Just asking xD

EDIT 3 : Tested it 3rd time to make sure it REALLY works. Wehr and PE use Blitz and Tank Destroyer as intended but the weird thing now is Wehr AI build Geschutzwagen instead of Stug IV  ??? This is really random.

Last edited August 26, 2012 at 6:11 PM by viruz777

#130825

Re: 'Controlling' the AI

Hey viruzz, becareful what you wish for. Go to \rules_addon_purchase. create or edit line:



if    (upgrade_pbg    ==    BP_GetUpgradeBlueprint("upgrade\axis_pe\items\panzer_elite_jagdpanzer_l70_gun.rgd")) then
        return demand_neverbuild
end



孫 The
EF_v1.7.10

子 Art
Illegitimi non Carborundum -"Vinegar" Joe Stilwell

兵 of
Sun Tzu says: In warfare one compels and is not compelled by others

[b] 法 War
#130829

Re: 'Controlling' the AI

haha i'll try this thanks ottoooooo  :-* :-* :-*

don't worry it will make my life easier  ;D
#130838

Re: 'Controlling' the AI

viruz777 wrote:
Hi jojo

I've already tested it and it's true that AI PE only uses reward units but Wehr AI is still using Terror doctrine and PE AI is still using Luftwaffe doctrine :(

EDIT 1 : Tested it 2nd time. First I saw Wehr build stormtroopers and was happy then I was praying PE will follow tank destroyer.. After waiting for about 20 mins then I saw Jagdpanzer :DDDD I hope it works now jojo thanks! I wonder why it didn't work first time around but only after 2nd game?
IDK, never happened to me

EDIT 2 : FFFFFFFFF I forgot that AI will auto upgrade Jagdpanzer to Panther gun and have increased range now I can't fight it head 2 head. Is it possible to prevent AI from upgrading Panther gun? Just asking xD
It is possible, Otto answered it :P

EDIT 3 : Tested it 3rd time to make sure it REALLY works. Wehr and PE use Blitz and Tank Destroyer as intended but the weird thing now is Wehr AI build Geschutzwagen instead of Stug IV  ??? This is really random.
It is not random you have old code, there was some fix that added all or nothing, but in internal it is removed, i will send you file that will remove that.
#131017

Re: 'Controlling' the AI

Sorry for late reply jojo was busy the whole day yesterday.

Anyway, I thought you sent me already edited jar.scar where Wehr AI will not build any reward units? You're sending me new replacement file?
#131029

Re: 'Controlling' the AI

Yes jar.scar is ok, but old code that i have removed is still in last version that you have.

To remove that old code go to default.ai file and remove lines from 546 to 575. Then jar.scar will work without any problems ;).
#131580

Re: 'Controlling' the AI

Hi Jojo I finally had time to test it but midgame it suddenly said fatal AI error - execution paused again.

I checked console and I think it's from the error that says "SCAR - Could not execute rule: AI_Think2". I'm not sure what is causing that but I tried this a few times and when I got fatal AI error and check console there is always this message  :-[
#131700

Re: 'Controlling' the AI

Two lines call range of 1-12 out of range. This may have to do with an error in the ai unit purchase routine. IIRC in 1.6 it is set at range 1-5 with a variance of 25 %. If the range was changed to 1-8 or 1-9 a 25% variance would put it out of range as stated.
孫 The
EF_v1.7.10

子 Art
Illegitimi non Carborundum -"Vinegar" Joe Stilwell

兵 of
Sun Tzu says: In warfare one compels and is not compelled by others

[b] 法 War
#131911

Re: 'Controlling' the AI

Errr I'm sorry Otto but I don't understand what this means xD Is that out of range causing the fatal AI error? I didn't edit any lines except what you and jojo have instructed me to.
#133759

Re: 'Controlling' the AI

Been so quiet here  :(
#133760

Re: 'Controlling' the AI

How has your quest for Panzer battles coding been working?

孫 The
EF_v1.7.10

子 Art
Illegitimi non Carborundum -"Vinegar" Joe Stilwell

兵 of
Sun Tzu says: In warfare one compels and is not compelled by others

[b] 法 War
#133776

Re: 'Controlling' the AI

jojo has been soooooooo quiet for sooooooo long so I'm hoping he'll one day return and pull my hand out of the deep dark well :') I can't progress forward without his help.
#133791

Re: 'Controlling' the AI

What is thenature of your problem?

孫 The
EF_v1.7.10

子 Art
Illegitimi non Carborundum -"Vinegar" Joe Stilwell

兵 of
Sun Tzu says: In warfare one compels and is not compelled by others

[b] 法 War
#133819

Re: 'Controlling' the AI

well jojo does still come onto the forum, and he will respond if you PM him, he just has been keeping quiet thats all :)
Forum post image
#133826

Re: 'Controlling' the AI

Jojo is fishing til about the middle of October. :)

Heh Robotnik When I make the most innocuous of changes to code (one at a time ), and copy them into EF AI folder I get a Fatal ai error. What are the proper command line parmeters to use?

孫 The
EF_v1.7.10

子 Art
Illegitimi non Carborundum -"Vinegar" Joe Stilwell

兵 of
Sun Tzu says: In warfare one compels and is not compelled by others

[b] 法 War

Last edited October 3, 2012 at 1:40 AM by Otto Halfhand

#133840

Re: 'Controlling' the AI

command line parameters  ??? you mean for starting COH?

heres what i use

-dev -mod EF_Devbox -nomovies
Forum post image
#134146

Re: 'Controlling' the AI

Otto wrote:
What is thenature of your problem?


Well Otto as you can see the progression of my discussion with jojo on page 4, he gave me some files to overwrite, and also with regards to reward units. I followed his instructions but I'm still getting Fatal AI error. Asked for jojo's help but he didn't respond so I've been waiting since.

#134147

Re: 'Controlling' the AI

robotnik wrote:
well jojo does still come onto the forum, and he will respond if you PM him, he just has been keeping quiet thats all :)


Why is he keeping quiet in this thread? He will only respond to PMs from now on? I didn't know this. I thought if I made this thread then other people could help give me some useful input if they were aware of any information. Didn't know jojo would be the single person to be my salvation and I would rely on his help all this while.

So will he come back here or should I just PM him what I posted on page 4 but he didn't respond to? I'm also worried that he might be busy coding new stuff for the EF Community and the last thing he needs is an extra headache from 1 person wanting to customise his own AI experience and spamming his inbox.
#134173

Re: 'Controlling' the AI

Hey,
sorry for keeping quiet. It is true that i have a lot of projects and stuff to code, also i have new job so i come few times a day on forum to see if there is something interesting. I did not had much time to resolve you problem but i will try today to go through all our conversation and i will test files that i sent to you. Also i saw some AI errors in internal version that need to be resolved.

QuoteWhy is he keeping quiet in this thread? He will only respond to PMs from now on? I didn't know this.

I will respond dont worry am just so busy, also i tried to setup notifications on this topic but there is just no button to setup it.

To speed up my walking through posts in this topic. Could you just tell me is code working or working and error every time in middle game? Did you finish any games without errors?

Last edited October 8, 2012 at 3:48 PM by jojorabbit