News:

Happy 20th, FFvT3R!

Main Menu

Throwing stuff at heroes with AI on rumble room

Started by toddyaraujo, July 14, 2010, 12:17:03 PM

Previous topic - Next topic

toddyaraujo

hi there!
I bought the FF pack on the last steam sale and i'm not regretting it  :thumbup: i really like this game (made me give a break to DOTA/LOL and that is something.

After toying with custom heroes a bit i started to mess with the m25data. i wrote the code to armor(X-man) from AfghanAnt, trying to learn from AI doc on FFF. Now i'm really getting a hang on it.

here is her code:
Spoiler
['armor',
   ["timer", 'auto',
      'TUseRemedy()',
      "TThrow(pct=100, time=1, mindist=0, maxdist='long', type='enemy', subtype='flying', situation='none', role='none', priority=high, objdist=400, mode='move', pickup_time=3, throw_time=3)",
      "TMelee('energetic punch', pct=60, time=1, energy=66, mindist=None, maxdist=None, type='enemy', subtype='not flying', situation='none', role='none', priority='high', overpower=1)",
      "TMelee('armor rush', pct=100, time=1, energy=66, mindist=None, maxdist=None, type='enemy', subtype='not flying', situation='none', role='none', priority='high', overpower=1)",
      "TMelee('one-two punch', pct=80, time=1, energy=33, mindist=None, maxdist=None, type='enemy', subtype='not flying', situation='none', role='none', priority='medium', overpower=1)",
      "TMelee('jab', pct=40, time=1, energy=None, mindist=None, maxdist=None, type='enemy', subtype='not flying', situation='none', role='none', priority='low', overpower=1)",
      "TDirect('energetic push', pct=100, time=1, energy=33, mindist=100, maxdist=200, type='enemy', subtype='none', situation='not blind, nearally', role=None, priority='low', overpower=1)",
      "TArea('armor expansion', pct=40, time=1, energy=33, mindist=0, maxdist=None, type='enemy', subtype='none', situation='not nearally, swarmed', role='none', priority='medium')"
      "TEmpathy('energy thorns', pct=40, time=1, energy=33, mindist=0, maxdist=400, type='enemy', subtype='none', situation='not empathy, hurt', role='none', priority='medium')",
      "TFleeMelee(mindist='ranged_min',movetype='move',time=1)",
      'TFleeMelee(type="any",subtype="emitting_damage",time=1)',
      'TMoveTo(mindist=\'short\' ,subtype="not emitting_damage",time=3)',
   ],
],
I can't get her to throw objects at all. Although i want her to do it against flying foes. Am i missing something? already tried to changing pcts and priorities, but it made no good.
i'm cause, she won't be the only to get this flaw on her design (A strong hero that dont throw)
I'M STUCK!!!  :banghead:

Xenolith

#1
Is her Strength 4 or more?
Are there flying targets?  I mean, targets that are actually flying rather than targets that can fly who are on the ground?

Is this for  :ff: or  :ffvstr:?  I know you said FF, but I thought the M25AI files for FF looked different, but I have very limited experieice withe ai files for that game.

toddyaraujo

Sry i was unclear...
i got no much experience at all on modding stuff
It was just now that i figuring out skin/mesh realtionship
1st, yes she is more than 4str.
2nd, i'm testing against superman and he's flying all the time.
3rd is for  :ffvstr:

Xenolith

And, you have FFX3.3 installed, right?  Just making sure.  If not, you need that to run M25AI.

toddyaraujo

Yup! i have it installed.
She working just fine overall, spending her powers and not stopping attacking. But she should been throwing things around those pesky flyers =(
Anything else that i should have installed?

TrajkLogik

How was this AI file created? Several of your tactics have subtype='none' maxdist=None, which you don't need and aren't put there by the AI Generator. Also, your tactic for TThrow has a priority=high. Try priority=1000 instead.
Actually, you should ensure that you open FFX Control Center before loading the game, click Save and then close it. Then, run :ffvstr: and go to the Rumble Room and run the hero through the M25AI Generator and see if that works.

Xenolith

To support what TL is saying, I'd run the guy through the AI generator and then modify the AI file once it is created, rather than creating your own.  I'm not sure all those parameters are actually used by the TThrow "function" so mayb the AI is getting confused by all that text?  I'm speaking out of my hat here.

toddyaraujo

Thanks guys!

I was writing the file by myself copying and pasting command lines from FFX manual, since i was getting "generic_Hero" AI files. But i really did not ran the FFX control center. Now, at least the generator is working, i will work my way around it to make it work properly...

Probaly i'll be back in 5 minutes with another question =))))

laughing paradox

You're not supposed to have all those spaces in the tactic parenthesis.

This:

TThrow(pct=100, time=1, mindist=0, maxdist='long', type='enemy', subtype='flying', situation='none', role='none', priority=high, objdist=400, mode='move', pickup_time=3, throw_time=3)",

.. should look like this:

TThrow(pct=100,time=1,mindist=0,maxdist='long',type='enemy',subtype='flying',situation='none',role='none',priority=high,objdist=400,mode='move',pickup_time=3,throw_time=3)",

catwhowalksbyhimself

yes, but the computer ignores the spaces, so it really doesn't matter whether they are there or not, as far as I know.
I am the cat that walks by himself, all ways are alike to me.

bearded

i crashed the entire game engine by trying to add some new powers to mutator by leaving in a space after the comma. it doesn't like spaces.