1

Topic: some one should write a something for mod switching

for me its tedious to rename my game.png and then rename a mod.png some one should write a script or some thing that would stream line switching between mods (i'm not a programmer)

my name is NOT clasic_traveller_die its CLASIC_TRAVELLER_DIEHARD classic traveller is a si-fi rpg from the same era as dungens and dragons lookit up on wikipedia smile

2

Re: some one should write a something for mod switching

I could probably do something simple in python (or bash if you don't want a gui or non-linux compability). Could you describe a bit more what you had in mind?

you got the game.png in data/, right? how about a program that looks for png-files in data/mods/ and just do a bit of copy/pasting?

(note, I haven't said that I _will_ do this)

Tee. Code. Offbeat.

3

Re: some one should write a something for mod switching

clasic_traveller_diehard wrote:

for me its tedious to rename my game.png and then rename a mod.png some one should write a script or some thing that would stream line switching between mods (i'm not a programmer)

1. Make a copy of the original game.png and call it: game.pn_
2. Create the following batch file:

mod.bat
copy %1 game.png
teewars.exe
copy game.pn_ game.png


3. Drag and drop the mod you want to play onto the batch file (mod.bat) ... enjoy!

4

Re: some one should write a something for mod switching

oooh. Nice. Nifty. Windows only.

Tee. Code. Offbeat.

5 (edited by jeppo 2008-01-26 23:53:19)

Re: some one should write a something for mod switching

!!!untestet!!!
set tw_dir to teewars dir

mod.sh
#!/bin/bash
tw_dir=/usr/local/games/teewars
if [ ! -d $tw_dir ]; then echo 'Variable \$tw_dir is wrong!'; exit 1; fi
cd $tw_dir/data
for i in *game.png;do echo $i;done
echo -n "Mod Name? "
read mod_name
cp -f game.png old_game.png
cp -f $mod_name game.png
cd ..
./teewars
mv -f data/old_game.png data/game.png