gametechmods

Robot Arena => General Support => Topic started by: Natster-104 on July 26, 2014, 06:54:43 AM

Title: AIing trouble
Post by: Natster-104 on July 26, 2014, 06:54:43 AM
When trying to Ai mechadino's bot for the last one standing, I ai'd it, and it works, but it doesn't fire it's weaponry

Bot Shot:

(https://gametechmods.com/uploads/images/55018AI help.png)

Bindings:

list.append(("Crystal","Poker",{'invertible':True,'radius':0.05,'topspeed':99,'throttle':130,'turn':40,'turnspeed':1.5}))

Any help?
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 06:56:11 AM
What is the smartzone named?
Title: Re: AIing trouble
Post by: Philippa on July 26, 2014, 06:56:33 AM
What did you call the Smartzone?

Edit: YOU TIT.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 06:58:03 AM
weapon
Title: Re: AIing trouble
Post by: RedAce on July 26, 2014, 07:01:55 AM
Could you send me the bot so I can see what the problem is?
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 07:04:36 AM
Is the button actually wired up to fire?

Could you send me the bot so I can see what the problem is?
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 07:06:22 AM
Could you send me the bot so I can see what the problem is?
Yeah sure, as soon as I find my power pack x(
Is the button actually wired up to fire?
Yes
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 07:08:53 AM
Could you send me the bot too? I am intrigued as to why this isn't working.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 07:30:35 AM
Could you send me the bot too? I am intrigued as to why this isn't working.
Sure
Title: Re: AIing trouble
Post by: cephalopod on July 26, 2014, 08:05:22 AM
You need a 'weapons' thing in bindings for the bot to use a weapon, so just put ,'weapons':(0,) in before the closing wiggly bracket after turnspeed and it'll work.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 08:06:40 AM
You need a 'weapons' thing in bindings for the bot to use a weapon, so just put ,'weapons':(0,) in before the closing wiggly bracket after turnspeed and it'll work.
Ah, I see, thanks a bunch Craaig
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 08:07:03 AM
You need a 'weapons' thing in bindings for the bot to use a weapon, so just put ,'weapons':(0,) in before the closing wiggly bracket after turnspeed and it'll work.
Oh yeah, I never noticed that. Yeah, the bot needs to recognize that it has a weapon through the bindings or else it won't bother to fire a weapon it doesn't know it has.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 08:15:20 AM
tried it, and now my game won't even load or boot up
Title: Re: AIing trouble
Post by: cephalopod on July 26, 2014, 08:17:59 AM
Your binding should be

Code: [Select]
    list.append(("Crystal","Poker",{'invertible':True,'radius':0.05,'topspeed':99,'throttle':130,'turn':40,'turnspeed':1.5,'weapons':(0,)}))
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 08:19:39 AM
Nope, the games buggered up, let me restart my computer
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 08:20:09 AM
list.append(("Crystal","Poker",{'invertible':True,'radius':0.05,'topspeed':99,'throttle':130,'turn':40,'turnspeed':1.5,'weapons':(0,)}))

Does your line of AI look like this? If so (and still doesn't work), try to match the number of weapons Crystal has with the number of weapons listed.
Title: Re: AIing trouble
Post by: cephalopod on July 26, 2014, 08:23:39 AM
Matching the number of weapons will make no difference to the game loading/crashing. In fact, the only difference having the correct numbers there makes is if all the weapon id's listed have been torn off of the bot, the weapon will stop firing.
If that correct binding isn't working and the game is crashing, there's a different issue.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 08:25:23 AM
No, you don't understand, it's broken, it gets to the infogrames loading screen, and goes:

Quote
Robot arena 2 has stopped working

so somethings busted, probably not the bindings though
Title: Re: AIing trouble
Post by: cephalopod on July 26, 2014, 08:26:40 AM
Did you change anything in the AI Team folders, or any other binding lines? Worth checking.
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 08:27:12 AM
What I don't get is, you said that your game crashed shortly after you made the change when it wasn't crashing before... Did you make any other changes, apart from the Crystal bindings? Incorrect bindings doesn't make your RA2 crash immediately.

Did you change anything in the AI Team folders, or any other binding lines? Worth checking.
Basically what he said.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 08:29:27 AM
added an image, and changed the teams.txt,but thats about it
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 08:29:51 AM
What did you change in the teams.txt?
Title: Re: AIing trouble
Post by: Elementos on July 26, 2014, 08:32:02 AM
From my experience, if the game crashes on load-up that means the bindings have a comma or something hiding somewhere out of place, or the teams.txt hasn't been written properly.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 08:32:46 AM
The names of the teams and the picture

Heres my ai folder:
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 08:33:15 AM
DP
From my experience, if the game crashes on load-up that means the bindings have a comma or something hiding somewhere out of place, or the teams.txt hasn't been written properly.
hmm, I'll look into it
Title: Re: AIing trouble
Post by: cephalopod on July 26, 2014, 08:35:50 AM
I imagine it's the space in Tournament banner.bmp.
Rename it to Tournament_banner.bmp and change the teams.txt accordingly.

EDIT: It could equally be that you've got a capital B in the teams.txt and not the file, so fix both.
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 08:37:09 AM
What Craaig said.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 08:38:54 AM
Nope, still doesn't work,

I think I might need to get a new stock game  :dumb)
Title: Re: AIing trouble
Post by: cephalopod on July 26, 2014, 08:40:39 AM
Code: [Select]
    list.append(("Crystal","Poker",{'invertible':True,'radius':0.05,'topspeed':99,'throttle':130,'turn':40,'turnspeed':1.5,'weapons':(0,)}))
    list.append(("Praetorian","Omni",{'topspeed':99,'throttle':130,'range':99,'weapons':(1,2,3,4,5,6,7,8)}))9
    list.append(("Alien Queen","Omni",{'topspeed':99,'throttle':130,'range':25,'weapons':(1,2,3,4,5,6,7,8,9,10)}))

What's the 9 doing at the end of Praetorian's line?
Title: Re: AIing trouble
Post by: Elementos on July 26, 2014, 08:41:32 AM
I'm pretty sure that will be the problem.

From my experience, if the game crashes on load-up that means the bindings have a comma or something hiding somewhere out of place.
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 08:42:50 AM
Same here. At least we managed to iron out more problems in the process.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 08:45:48 AM
Code: [Select]
    list.append(("Crystal","Poker",{'invertible':True,'radius':0.05,'topspeed':99,'throttle':130,'turn':40,'turnspeed':1.5,'weapons':(0,)}))
    list.append(("Praetorian","Omni",{'topspeed':99,'throttle':130,'range':99,'weapons':(1,2,3,4,5,6,7,8)}))9
    list.append(("Alien Queen","Omni",{'topspeed':99,'throttle':130,'range':25,'weapons':(1,2,3,4,5,6,7,8,9,10)}))

What's the 9 doing at the end of Praetorian's line?
No idea, must have been an accident, but it works now! :D
Title: Re: AIing trouble
Post by: Elementos on July 26, 2014, 09:21:23 AM
 :bigsmile:
Title: Re: AIing trouble
Post by: yugitom on July 26, 2014, 09:29:27 AM
You have to thank Craaig and his keen eyes.
Title: Re: AIing trouble
Post by: Natster-104 on July 26, 2014, 09:32:14 AM
I do, very much so, thanks a lot craaig
Title: Re: AIing trouble
Post by: Mecha on July 26, 2014, 10:18:13 PM
Good job AI-ing, but you could have asked 09' for the bindings he used for Tusslers 4.
Title: Re: AIing trouble
Post by: Natster-104 on July 27, 2014, 03:13:16 AM
Good job AI-ing, but you could have asked 09' for the bindings he used for Tusslers 4.
Yes but that would have prolonged SBV as it would have probably have taken a while for 09 to get back to me,

Also, off topic, Beetle Bashers? :P
Title: Re: AIing trouble
Post by: Naryar on July 28, 2014, 09:46:15 AM
there is an AI thread somewhere, why not use it