Author Topic: Fixing This Arena A Bit...  (Read 2874 times)

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Fixing This Arena A Bit...
« on: February 20, 2011, 05:42:04 AM »

Just found this on the downloads section, yes, this is the first version of the onslaught arena. This arena doesn't appear to be complete though...

Firstly it needs AI coding
It would be preferable to have start points 3 and 4
And when a robot is eliminated, the game crashes

No (or not much) GMF work here (I think), so I'm hoping this shouldn't be too hard

But I don't have a clue where to get started, so help would be appreciated

Thanks :D

Offline Squirrel_Monkey

  • Squirrel_Monkeyweight
  • *
  • Posts: 7582
  • Rep: 7
  • [Insert clever and witty comment here]
    • 0SquirrelMonkey0
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #1 on: February 20, 2011, 05:44:41 AM »
It's clearly only designed for 2 bots though... 3 and 4 would start by the gaps.
Better than GK since 2009.
I think SM is a pretty cool guy, eh builds unicycle-bots and doesn't afraid of anything

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #2 on: February 20, 2011, 05:52:42 AM »
It's clearly only designed for 2 bots though... 3 and 4 would start by the gaps.
It wouldn't be too much of a problem, as the bots would drive away from them straight away

Otherwise, start points could be moved to where the small indents are on the skin...

Offline JoeBlo

Re: Fixing This Arena A Bit...
« Reply #3 on: February 20, 2011, 05:55:37 AM »
Startpoints will need to be added in the GMF

AI coding will need to be added in the python

Elimination will need to be fixed in the python

Thats your starting points.. the other Onslaught Arena in DSL 2.1 would be MUCH easier to work with.. particularly in the AI coding department.. Circles are 100x more annoying then a square

on another subject.. I never knew this arena existed.. I actually spent countless time trying to turn the AU Challenge Arena into exactly that (minus the gaps in the wall)

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #4 on: February 20, 2011, 06:03:57 AM »
Why so difficult?

OK, so how do I add AI coding and start points to the 2.1 Onslaught arena?

Offline JoeBlo

Re: Fixing This Arena A Bit...
« Reply #5 on: February 20, 2011, 06:36:20 AM »
Why so difficult?

An AI coding works by making a virtual wall between 4 coordinates..

So a Square has 16 coordinates for wall collisions..

and the above arena will need an estimated 72 coordinates and the angles can be annoying too

Not impossible but much more of a headache to work with.. escially for your first attempt at editing..

starting small is recommended..

OK, so how do I add AI coding and start points to the 2.1 Onslaught arena?

jump into the BBEANS v2 Arena's python and familiarize yourself with how things  are laid out.. then find the inner wall collision and copy it to the onslaught arena python in the same place you found the BBEANS one..

Then adjust to suit the coordinates of the Onslaught Arena..

Common Co-Ordinate knowledge is really all you need for this task.. ;)


Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #6 on: February 20, 2011, 07:48:46 AM »
Does it matter where I put it into the .py file?

This is the right bit, isn't it:
#fence
        self.AddCollisionLine((-10, 12), (10, 12))
        self.AddCollisionLine((10, 12), (12, 10))
        self.AddCollisionLine((12, 10), (12, -10))
        self.AddCollisionLine((12, -10), (10, -12))
        self.AddCollisionLine((10, -12), (-10, -12))
        self.AddCollisionLine((-10, -12), (-12, -10))
        self.AddCollisionLine((-12, -10), (-12, 10))
        self.AddCollisionLine((-12, 10), (-10, 12))

:P

Offline JoeBlo

Re: Fixing This Arena A Bit...
« Reply #7 on: February 20, 2011, 07:51:52 AM »
yes, very much so.. look at the indenting of the lines.. a python file is split up into different sections,

you need to put it in the same section you found it..

[warning]Always remember to make backups of files prior to editing![/warning]

Edit: Yes it is..

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #8 on: February 20, 2011, 08:07:02 AM »
I don't see the need of making a backup, I can just recopy the file over from DSL :P

Now I'm confused, this is the .py (which just happens to be about 20 times smaller than the BBEANS .py):

I can't see any different sections like the one I took it from in the BBEANS.py, which included all hazard colisions and stuff, but there aren't any ATM.
So yeah, where do it put it? :P

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #9 on: February 20, 2011, 08:10:35 AM »
See if it comes under def.activate, or def.tick or whatever.
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #10 on: February 20, 2011, 08:16:20 AM »
See if it comes under def.activate, or def.tick or whatever.
Well the bot still drives in the pit

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #11 on: February 20, 2011, 08:16:53 AM »
What?
My above post explains everything about everything.

Host of: Wheely Tag, Back To The Beginnings, BTTB 2, BTTB 3, BTTB 4, & BTTB V.

Heavy Metal: Champion (Mockery of the Whole Concept)
Robotic International Wars Series 1: Champion (Minifridge 6)
RA2 Team Championships 1 & 2: Champion (High Speed Train & Upthrust - as part of Naryar's Not Quite Evil Council of Doom)

Runner Up in: The Amazing Rage (Team Fedex), R0B0NOVA (Zaphod Stock), Steel Warzone (Inception of Instability), Box of Nightmares (Gicquel), Wheely Tag (Minifridge the Second)

Clash Cubes IV: 5th place (Fretless)
BBEANS 6: Rumble Winner & 6th Place (Minifridge 4)

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #12 on: February 20, 2011, 08:19:15 AM »
What?
Well I added that into the python, where you said, and the AI bot still drives into the pit :P

Offline JoeBlo

Re: Fixing This Arena A Bit...
« Reply #13 on: February 20, 2011, 08:26:10 AM »
Hmm is been a while but try putting it...




def Activate(self, on):
        if on: self.players = plus.getPlayers()
       
        < HERE >

        Arenas.SuperArena.Activate(self, on)




You will also need the self.AddPOV so the AI knows to Navigate the pit..


Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #14 on: February 20, 2011, 08:34:27 AM »
Thats where I put it

You will also need the self.AddPOV so the AI knows to Navigate the pit..
What? :P

Offline JoeBlo

Re: Fixing This Arena A Bit...
« Reply #15 on: February 20, 2011, 08:44:58 AM »
You can try a little you know :P

Right below where you got the  self.AddCollisionLine's from the BBEANS Python there is 8 lines starting with self.AddPOV

You will need those so the AI Navigates around the hole..

Offline GoldenFox93

  • Giga Heavyweight
  • Posts: 12161
  • Rep: -5
  • The Guy
    • http://www.facebook.com/h
    • http://www.youtube.com/ro
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: goldenfox93
Re: Fixing This Arena A Bit...
« Reply #16 on: February 20, 2011, 08:58:44 AM »
Judging by the look of the arena, I'm looking forward to seeing what it's like once it's finished  :P



"Cries and screams are music to my ears."
-Soundwave

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #17 on: February 20, 2011, 09:00:16 AM »
There are only 4 lines  :confused:

But yeah, I added it underneath and it still doesn't work

I don't need the #fence bit do I?

Judging by the look of the arena, I'm looking forward to seeing what it's like once it's finished  :P
Its just a corrected DSL Onslaught arena now :P

Offline GoldenFox93

  • Giga Heavyweight
  • Posts: 12161
  • Rep: -5
  • The Guy
    • http://www.facebook.com/h
    • http://www.youtube.com/ro
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: goldenfox93
Re: Fixing This Arena A Bit...
« Reply #18 on: February 20, 2011, 09:06:20 AM »
Judging by the look of the arena, I'm looking forward to seeing what it's like once it's finished  :P
Its just a corrected DSL Onslaught arena now :P
Technically, I hadn't known that arena existed until now, and even then, some things were wrong with it. But like I say, once it's finished, I look forward to downloading it for my DSL   :cool:



"Cries and screams are music to my ears."
-Soundwave

Offline Vertigo

  • *
  • Posts: 4547
  • Rep: 5
    • View Profile
    • Awards
Re: Fixing This Arena A Bit...
« Reply #19 on: February 20, 2011, 09:08:45 AM »
It won't be finished

It will be a normal DSL onslaught arena with AI coding and 4 start points