gametechmods

Robot Arena => Modifications => Topic started by: WhamettNuht on September 19, 2009, 09:31:01 AM

Title: Adding objects to an arena...
Post by: WhamettNuht 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
Title: Adding objects to an arena...
Post by: Sage 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.
Title: Adding objects to an arena...
Post by: Clickbeetle 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.
Title: Appreciation-400
Post by: Madiaba on September 19, 2009, 06:31:43 PM
Wow, so much help. Cool. :-D
.
Title: Adding objects to an arena...
Post by: JoeBlo 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 ?
Title: Adding objects to an arena...
Post by: Madiaba 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".
.
Title: Adding objects to an arena...
Post by: WhamettNuht 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
Title: Adding objects to an arena...
Post by: Madiaba 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.
Title: Adding objects to an arena...
Post by: Madiaba 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
.