May 28, 2023, 08:39:51 pm

The Gang Garrison 2 Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

NOTICE: Due to a rise in bot activity, new posters need to be approved before posting.

Join the community Discord server!

Pages: [1] 2 3

Author Topic: Making a locator file  (Read 11573 times)

cspotcode

  • Coder
  • Administrator
  • *****
  • Karma: 134
  • Offline Offline
  • Posts: 411
Making a locator file
« on: March 01, 2009, 03:21:55 am »

Quick-and-dirty explanation of locator files:

A locator file is a plain text file (the kind you can make with Notepad), except a locator file has the extension .locator instead of .txt.

For those who are new to this whole file-extension thing, here's one way to do it:
 - Type the URL of the map into an empty notepad document.  This should be the only thing in the document, and it should be only one line.
 - Go to "File" > "Save As..."
 - Change "Save As Type" from "Text Documents" to "All Files".  You'll notice that, while "Text Documents" has a .txt next to it, "All Files" does not.  This means that notepad will let us specify our own file extension.
 - For the filename, type in the exact name of the map followed by ".locator".  So if I just made "coolmap.png", then I'd name my locator file "coolmap.locator"
 - Save it

You can always open the file later in notepad, even though Windows probably won't know what a .locator file is.  Just open notepad, go to "File" > "Open..", change the "Text Documents" dropdown list to "All Files", and open the .locator.

You should also know that the filename in the URL doesn't have to match the filename of the locator and png files.  You could upload coolmap.png to wwwDOTsomethingsomethingDOTwhatever/44959g2.png.  If you type "wwwDOTsomethingsomethingDOTwhatever/44959g2.png" into "coolmap.locator", then GG2 will save the map as coolmap.png, not 22959g2.png.

See also: Dedicated Server and Custom Map Tutorials
« Last Edit: March 01, 2009, 03:40:23 am by cspotcode »
Logged
"The knack of flying is learning how to throw yourself at the ground and miss."
- Douglas Adams

Wolsk

  • New Member
  • *
  • Karma: -2
  • Offline Offline
  • Posts: 36
Re: Making a locator file
« Reply #1 on: April 18, 2009, 07:12:21 pm »

This didn't work for me.
Any ideas?
« Last Edit: April 18, 2009, 07:18:09 pm by Wolsk »
Logged

Mr.Awesomest

  • Junior Member
  • **
  • Karma: -19
  • Offline Offline
  • Posts: 166
  • I'm just so awesome.
Re: Making a locator file
« Reply #2 on: April 18, 2009, 07:36:30 pm »

Click all files, and then click somewhere else. Then put .locator in.

It worked for me.
Logged


Ingame name: Your sister

Wolsk

  • New Member
  • *
  • Karma: -2
  • Offline Offline
  • Posts: 36
Re: Making a locator file
« Reply #3 on: April 18, 2009, 07:39:21 pm »

I'm trying this:
http://ganggarrison.com/forums/index.php?topic=2118.0.

It still doesn't work.

CAN ANYONE HELP?
MAYBE EVEN GIVE A LINK TO THE LOCATOR FILE.
« Last Edit: April 18, 2009, 09:23:25 pm by Wolsk »
Logged

Mr.Awesomest

  • Junior Member
  • **
  • Karma: -19
  • Offline Offline
  • Posts: 166
  • I'm just so awesome.
Re: Making a locator file
« Reply #4 on: April 18, 2009, 09:51:03 pm »

Did you save it on Notepad?
Logged


Ingame name: Your sister

Taters

  • Veteran Beta Tester
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 103
Re: Making a locator file
« Reply #5 on: April 18, 2009, 09:54:38 pm »

Logged

Wolsk

  • New Member
  • *
  • Karma: -2
  • Offline Offline
  • Posts: 36
Re: Making a locator file
« Reply #6 on: April 18, 2009, 09:58:57 pm »

It still doesn't work.  I don't get it.

*Edit* I think I know whats wrong.  The guy only put the picture up with the background, but he should have put the black and white one up also.  The black and white one is the locator.

*Edit Again* Nope.  Still doesn't work.
« Last Edit: April 18, 2009, 10:04:49 pm by Wolsk »
Logged

Taters

  • Veteran Beta Tester
  • *****
  • Karma: 44
  • Offline Offline
  • Posts: 103
Re: Making a locator file
« Reply #7 on: April 18, 2009, 10:10:03 pm »

Are you trying to host the map?

you need to download the map itself. The locator is used only to point other people's clients to the file. Its not as flexible as you might think.
« Last Edit: April 18, 2009, 10:10:22 pm by Taters »
Logged

Wolsk

  • New Member
  • *
  • Karma: -2
  • Offline Offline
  • Posts: 36
Re: Making a locator file
« Reply #8 on: April 19, 2009, 12:53:27 am »

I don't get what you mean.
Logged

Alfred

  • King of the Modders
  • ******
  • Karma: 162
  • Offline Offline
  • Posts: 1813
Re: Making a locator file
« Reply #9 on: April 19, 2009, 01:56:29 am »

Upload your map to an image site like tinypic or photobucket.

For tinypic copy the direct link url, for photobucket right click your image and click copy image location.

Once you have that, open notepad and paste it in. Now save that as maplist.txt

Finally, change the extension from .txt to .locator
Logged
my name is taimat
i eat a lot of chips
break a lot of games
suck a lot of dicks
Quote
[05:36] <@Vindicator> wow
[05:36] <@Vindicator> bawls taste amazing

Wolsk

  • New Member
  • *
  • Karma: -2
  • Offline Offline
  • Posts: 36
Re: Making a locator file
« Reply #10 on: April 19, 2009, 02:12:56 am »

It still doesn't work.  Can someone do it, make a server, and let me join, please?  That at least would work.

Tell me if you make the server.
Logged

Alfred

  • King of the Modders
  • ******
  • Karma: 162
  • Offline Offline
  • Posts: 1813
Re: Making a locator file
« Reply #11 on: April 19, 2009, 02:15:26 am »

You need to have the map AND locator in your maps folder. the maplist needs to be where the exe is, and you have to point to it in the ini (If its called maplist, put maplist for maprotation=)
Logged
my name is taimat
i eat a lot of chips
break a lot of games
suck a lot of dicks
Quote
[05:36] <@Vindicator> wow
[05:36] <@Vindicator> bawls taste amazing

Wolsk

  • New Member
  • *
  • Karma: -2
  • Offline Offline
  • Posts: 36
Re: Making a locator file
« Reply #12 on: April 19, 2009, 02:17:08 am »

I don't get it.

*Edit* What do I do if I'm just changing the default sampleMapRotation file?
« Last Edit: April 19, 2009, 02:21:20 am by Wolsk »
Logged

juicebox360

  • Guest
Re: Making a locator file
« Reply #13 on: April 19, 2009, 04:02:05 am »

I don't get it.

*Edit* What do I do if I'm just changing the default sampleMapRotation file?
Okay, please do the following:

State the names of the following files: gg2.ini, sampleMapRotation.txt, any locator files
State (AKA copy-paste) the contents of the following files: gg2.ini, sampleMapRotation.txt, any locator files

By narrowing down exactly where you are struggling, we might be able to help. Either that, or I'll send a "template server" over to you with a ready-made maprotation file, some sample maps and locators, the usual.
Logged

Wolsk

  • New Member
  • *
  • Karma: -2
  • Offline Offline
  • Posts: 36
Re: Making a locator file
« Reply #14 on: April 19, 2009, 01:38:30 pm »

OK here it is:

gg2.ini
[Settings]
PlayerName=Wolsk
Fullscreen=0
UseLobby=1
HostingPort=8190
IngameMusic=1
PlayerLimit=10
Disable Particles=0
Disable Gibs=0
[Server]
MapRotation=sampleMapRotation.txt
Dedicated=0
ServerName=Wolsk's Rocket/Demo Jumping Server (Noobs Only)
CapLimit=10
AutoBalance=1
[Maps]
ctf_truefort=1
ctf_2dfort=2
ctf_conflict=3
ctf_classicwell=4
ctf_waterway=5
ctf_orange=6

sampleMapRotation.txt
# List the maps you would like to play through, one on each line.
# For built-in maps, the names are identical to the ones used in the
# [Maps] section of the ini file.
# For external maps, the name should be the filename of the map, excluding
# the .png file extension.

# Maps may be repeated.  Although it doesn't make sense to play the same
# map twice in a row, you could play some maps more often than others.

# If you want to use this map rotation in your server, open gg2.ini and
# change the line that says
#    MapRotation=
# to say
#    MapRotation=sampleMapRotation.txt

# Happy hosting!

rockettv3
rrr

locator files
arena_lunchhour
ctf_avanti
ctf_awesome
ctf_badtowers
ctf_bridge
ctf_castle
ctf_conduit
ctf_containment
ctf_deathslant
ctf_dirtbowl
ctf_facility
ctf_greenhillzone
ctf_heenok
ctf_heenok2
ctf_hell
ctf_helltrikky
ctf_launch
ctf_lostisland
ctf_lumberyard
ctf_MARIOKART
ctf_montane
ctf_neighbors
ctf_new
ctf_oldfort
ctf_overweightolympics
ctf_propelarena
ctf_riflemansrevenge
ctf_rustybeef
ctf_sewercontrol
ctf_sharing
ctf_simtower_b2
ctf_skyscrapers
ctf_sunset
ctf_thunder
ctf_toxic
ctf_turbine
ctf_waterfront
ctf_worldscollide
ctf_zvector
dm_MARIOKART
final_destination
gg_thumbs
mario3_airship
mario3_desertsnow
rockettv2
rockettv3 (this is the one that doesn't work)
rrr
vote_lobby
vote_lobby2
Logged
Pages: [1] 2 3
 

Page created in 0.053 seconds with 35 queries.