PDA

View Full Version : Slater's local.cfg generator


Slater
09-02-2008, 10:31 AM
Hi folks. Haven't been posting in a long time, but that doesn't mean I haven't been playing Pocket Tanks like crazy.

It's also the first few weeks at school here at SF State, and I figured I'd brush up on my Javascript before doing anything too serious. So tonight I made a little JavaScript-driven application that lets you configure your local.cfg file in just a few clicks.

For those of you who don't know what your local.cfg file is, it's a configuration file that keeps track of all your Pocket Tanks settings. It's typically located in your user's "My Games" folder (next to stuff like "My Pictures" and "My Music"); to get there, open My Game, then open Pocket Tanks (the directory My Games\Pocket Tanks), and local.cfg should be there right in front of you. Here's a picture of the directory on my computer (http://img65.imageshack.us/img65/7047/findinglocalcfgsi3.png). Note the CFG file named "local" in there: that's what we're interested in.

As I was saying, this file houses some information on your gaming preferences: what weapons you want to use, how you like your wind, what kind of field you like to play on, etc. It's pretty simple.

Here is my script: http://libra.sfsu.edu/~nbyrd/PocketTanks/local_cfg_generator.html
It's pretty self-explanitory: set things the way you want them, scroll to the bottom of the page, and click the "Generate local.cfg" button. Copy what the script spits out, put it in your local copy of local.cfg, save it, and you're good to go!

As you can tell, I like to mix things up: hence a couple randomization buttons thrown in there. To select all weapons, simply put 230 in the number box. (Note that if you do this, it might take a few seconds for the script to finish up. Your browser will look like its frozen, but it hasn't.)

The only major bug that exists (that I've noticed, at least) is that Single Shot will always appear in the weapon set when you run the game. There's no way to prevent this: it's a safeguard feature in Pocket Tanks to keep you from trying to play with 0 weapons. (This is triggered when the program detects that local.cfg has been modified outside of the Pocket Tanks program).

So yeah... have fun!
(Oh, and have a Raccoon (http://img389.imageshack.us/img389/9820/dsc01241ov7.jpg) I snapped a pic of a couple hours ago)

Rex Nex
09-02-2008, 03:07 PM
You freaking didnt.... someone delete this, If I think this is what I think it is...

Slater, I would. Now. Unless you want to be banned for a piracy tool.

Unless this just edits your CFG. Its hard to tell for me now :/

Doomedrusher
09-02-2008, 03:15 PM
You freaking didnt.... someone delete this, If I think this is what I think it is...

Slater, I would. Now. Unless you want to be banned for a piracy tool.

Unless this just edits your CFG. Its hard to tell for me now :/

YOU FOOL! Read the post! It just edits your PT preferences.

Rex Nex
09-02-2008, 04:05 PM
The name made me think otherwise...

Generator... hmm...

Well, thats cool. Nice that you made a .cfg gen.

ekoz
09-02-2008, 06:33 PM
wow. who knew you would still be saying you fool, even when it looses it's shock value. nothing like hearing a good "you fool!" from DR in real life.

Everlast
09-04-2008, 04:05 PM
What kind of generator could you make for pocket tanks that would be illegal??? :confused:

prateek.singla
09-04-2008, 04:37 PM
What kind of generator could you make for pocket tanks that would be illegal??? :confused:

Something that would generate the power and angle to hit your opponent.....

blue_moon
09-04-2008, 07:02 PM
That's not illegal, it's cheating.

Something illegal would be, for example, finding out what program Blitwise used for encryption and then decrypting all the files.

OmegaClassA
09-04-2008, 08:03 PM
or reprogaming pocket tanks

blue_moon
09-04-2008, 08:09 PM
Or decompile the game and releasing the source code. Or taking Mike hostage. Or messing with Tim. But I think we get the idea. Something that can change angles and powers to get a perfect hit is not and never will be illegal.

Samail
09-06-2008, 06:12 AM
Quote saved.

(And I almost never use that smilie.)

John Brooks
09-14-2008, 07:46 PM
You freaking didnt.... someone delete this, If I think this is what I think it is...

Slater, I would. Now. Unless you want to be banned for a piracy tool.

Unless this just edits your CFG. Its hard to tell for me now :/

Yo what did you think this is? That must be pretty embarassing...