Author Topic: .map files?  (Read 749 times)

Offline Wolfsbane

  • Heavyweight
  • Posts: 583
  • Rep: -5
  • Pokemens.
    • View Profile
    • Awards
  • See profile for gamer tags: Yes
  • Skype: suicideladder
.map files?
« on: August 03, 2011, 09:56:51 AM »
what the heck is a .map file?

a couple questions about them.

1.What are they used for?
2.How do i edit them?
Man this needed an update. Anyways, Your local autistic idiot signing out.

Offline G.K.

  • *
  • Posts: 12155
  • Rep: 10
  • Striving for a good personal text since 1994.
    • View Profile
    • Awards
Re: .map files?
« Reply #1 on: August 03, 2011, 11:49:36 AM »
I believe they are used to help navigate AI bots on arenas with multiple levels. Unless you are making a complex arena, there's really no need.
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 Trovaner

  • *
  • Posts: 1222
  • Rep: 32
    • View Profile
    • Awards
Re: .map files?
« Reply #2 on: August 03, 2011, 03:35:32 PM »
Map files are used to mark walls, hazards, ramps, and empty space within arenas. They don't work well for overlapping floors but they were designed to mark a multi-levelled surface. The only time that I'm aware of this data being used is when "Arenas.currentArena.IsStraightPathClear(XYZ-StartingLocation, XYZ-EndingLocation, IgnoreHazards)" is called. Which happens to be in most of the AI tactics ('Charge', 'Shove', 'Reorient', 'PushOffEdge', and 'Dethrone').

Arenas/__init__.py has methods for loading, saving, and creating map files but loading is the only one that works. It is possible to get the other two to work but it requires a bit of tweaking. Another option would be to use a text editor to make the map files by hand (it really isn't that hard to figure them out).