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)
You are not logged in. Please login or register.
Teeworlds Forum → Development → 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)
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)
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!
oooh. Nice. Nifty. Windows only.
!!!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
Teeworlds Forum → Development → some one should write a something for mod switching
Powered by PunBB, supported by Informer Technologies, Inc.
Currently installed 3 official extensions. Copyright © 2003–2009 PunBB.