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)
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)