Author Topic: Adding objects (balls, etc) into arenas (practise, electric, etc)  (Read 571 times)

Offline krylus

  • Antweight
  • Posts: 24
  • Rep: 0
  • Heh.
    • freebuildkrylus
    • View Profile
    • The most well made server in Minecraft
    • Awards
How would I go about adding more objects into arenas (like the ones listed above) and get them to properly work? I know Practice.py in the scripts folder references to several objects in the practise arena, more specifically their sounds, but is there some text/gib file that imports the gmfs themselves? Thanks for the help!

Offline ianh05

  • *
  • Posts: 2778
  • Rep: 4
  • Stock AW Builder and Tourney Host!
    • View Profile
    • Awards
Re: Adding objects (balls, etc) into arenas (practise, electric, etc)
« Reply #1 on: March 08, 2011, 05:31:07 PM »
you should put all your questions/requests into one topic :)
Check out my UI Improvements topic for stuff like longer team/bot import lists:
https://gametechmods.com/forums/index.php?topic=13324.0
How to make awesome splashes with paint:
https://gametechmods.com/forums/index.php?topic=13310.0
My showcase filled with antweights:
https://gametechmods.com/forums/index.php?topic=1595.0
How to AI: For newbies (with pics!):
https://gametechmods.com/forums/index.php?topic=13814.0
Best tournament results:
Tag Team Challenge and CombatAnts 3: runner-up
Around the World: 3rd place.

Offline Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: Adding objects (balls, etc) into arenas (practise, electric, etc)
« Reply #2 on: March 08, 2011, 06:45:27 PM »
Depending on what you are planning to do, you either need to edit the GMF to include the objects at startup (then drop them using a python command if you want them to move or have mass so that they move right away) or add them to the arena from within the python (then wait for something to hit them if they are suppose to move). GIB and TXT files have nothing to do with objects.

In practice.py, you will find lines like these:
self.AddXtraSound("Obstacle", "arenas\\cones\\cones.gmf", "metal", "Sounds\\cone.wav") #(reference name, GMF object, sound for collisions)
self.AddXtra("Obstacle", "arenas\\ramps\\ramps.gmf", "metal") #(reference name, GMF object)