Author Topic: Adding objects to an arena...  (Read 1857 times)

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
Adding objects to an arena...
« on: September 19, 2009, 09:31:01 AM »
Hey All
I was wondering how to add objects like bricks to arenas (like the ones from the test garage ect)
Thanks
Wham
Damn I should probably put something fancy in this bit huh?

Offline Sage

  • *
  • Posts: 6179
  • Rep: 11
  • RA2 Wizard & GTM's Favorite Stock Builder 2015
  • Awards Sage's Favorite BOTM Winner
    • View Profile
    • Awards
Adding objects to an arena...
« Reply #1 on: September 19, 2009, 09:47:17 AM »
You decompile them both, then just transfer the geomobject section over to the arena from the component, and then go down to the bottom and copy the rigid body section. then make sure that works, and you can add a material to the top of the arena for the skin of the component.
You got my vote for RA2 Wizard. Always and forever.

Offline Clickbeetle

  • *
  • Posts: 3374
  • Rep: 21
  • In Soviet Russia, bugs stomp YOU!
  • Awards BOTM Winner
    • View Profile
    • Beetle Bros site
    • Awards
Adding objects to an arena...
« Reply #2 on: September 19, 2009, 05:46:18 PM »
I think he means how to use Python to make them appear and disappear.

The code for that is

Code: [Select]
self.AddXtraSound("Obstacle", "arenas\\crates\\crates.gmf", "metal", "Sounds\\crate.wav")
"Obstacle" is the name of the object.  Can be anything.  Then you put in the path for the gmf you want to add.  "metal" is always constant.  The last thing is the path for the sound effect when you hit the object.

To remove extras, you do

Code: [Select]
self.RemoveXtra("Obstacle")
Alternatively, you can do

Code: [Select]
self.AddXtra("Obstacle", "arenas\\bbeans\\redlights.gmf", "metal")
if you don't want the added objects to make any sound.

To lack feeling is to be dead, but to act on every feeling is to be a child.
-Brandon Sanderson, The Way of Kings

Offline Madiaba

Appreciation-400
« Reply #3 on: September 19, 2009, 06:31:43 PM »
Wow, so much help. Cool. :-D
.
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline JoeBlo

Adding objects to an arena...
« Reply #4 on: September 19, 2009, 10:47:35 PM »
ah thanks Click I was wondering about that

Mad is that how you got the cone in that arena you helped me with ? or was it in the GMF ?

Offline Madiaba

Adding objects to an arena...
« Reply #5 on: September 20, 2009, 12:23:31 AM »
I don't remember which way specifically, Joe.
 
Just check in the arena.py for "self.AddXtraSound".
.
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline WhamettNuht

  • *
  • Posts: 1302
  • Rep: 12
  • Robot Building Drag Queen
    • View Profile
    • Awards
  • Discord: WhamettNuht #1457
Adding objects to an arena...
« Reply #6 on: September 20, 2009, 02:57:46 AM »
@Click: Well, i think, what im mostly after is getting some of the practice arena objects for an obstical course arena (kinda like the one in robotica, the gauntlet) which is why i asked you for the race track arena last night.

So far im having a bit of a play around with the GMF, mostly getting the start zones to a shorter distance (dont think theres enough objects to fit a 500meter track, lol.
I have the starting zones at a good distance, but at the moment the only problem is when i start the game, after the countdown, once the robots are 'let loose' they fall through the floor for some reason.
I havent edited anything apart from the sz and thats it, i cant find a collision mesh in the arenas gmf.
Any help will be greatly appreciated.
I thought i might aswell make a gauntlet type arena since some people would like one to be around (like me for example, i was getting kinda tired with the old dsl one, even though its the most difficult thing to complete lol) so i might aswell do my bit for the community :)
I'll post all results for sure (thats if i can get much help)
Thanks
Wham
Damn I should probably put something fancy in this bit huh?

Offline Madiaba

Adding objects to an arena...
« Reply #7 on: September 20, 2009, 09:00:34 AM »
Not sure when CB will be around next...
Send it over Wham, and I'll get it going for you.
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...

Offline Madiaba

Adding objects to an arena...
« Reply #8 on: September 20, 2009, 10:18:03 AM »
Here, Wham. I don't want to infringe on CB/FB's work, so I just made it so that you can drive on it. This arena is at very rudimentary stages.
 
The GMFs: https://gametechmods.com/uploads/files/Blah.rar
.
Input is appreciated. :)
-Arrogance is a quantity devoid of quality...
-As a client once told me "This is my story, and it's sticking to me!"
-Relationships these days are like the 'Arrival' section of the airport: a lot of baggage is being revealed in one place, and not a lot of it is being correlated to its real owners...