Forums » Bugs

/navroute save happiliy overwrites files.

Feb 05, 2005 terjekv link
don't do "/navroute save vendetta". :-)

and could we have a seperate directory for navroutes to avoid this problem?
Feb 05, 2005 Spellcast link
lol.

I'm sorry terjekv, I just find that funny. Its the kind of thing that you know is serious, but you just have to laugh at it anyhow.

I'm sure the devs will fix it.

lol
Feb 06, 2005 Beolach link
A seperate subdirectory exclusively for saved navroutes would also make the suggested "/navroute list" easy to implement, I believe.
Feb 07, 2005 terjekv link
well, it's not like I _did_ /navroute save vendetta. I've worked as a unix sysadmin long enough to think "hmmm..." when I see "filename" used as a parameter. :-p

what I _did_ do however was to make the game files unwriteable for my user account. I do however doubt that to be a fix we can expect normal users to do, especially when updates come along.
Feb 09, 2005 raybondo link
haha, that's funny. If I move the default directory, then everyone's current saves won't work anymore. I guess I should have it check to see what it's overwriting when it overwrites something and only let it overwrite previous navroutes.
Feb 09, 2005 Beolach link
Couldn't you change "/navroute save" to use a new subdirectory, and "/navroute load" to look first in the new subdirectory, and if there's no file w/ that name, then it looks in the current default?
Feb 09, 2005 roguelazer link
Or perhaps you could use an extension? IE: .rte. So /navroute save "name" will save a file called name.rte, and /navroute load "name" will look for a file called name.rte. Then tell people to change all their files? Or make /navroute "load" look first for the .rte, then for the un-extensioned.
Feb 09, 2005 yodaofborg link
Id like to have em in a subdir eitherway, as my vendetta directory is already a mess =p, maybe just say "hey, if you want your old routes to work, you have to a) move them, or b) do them again =p"
Feb 10, 2005 terjekv link
one can easily recognize navroutes in the Vendetta directory (if one is to allow updating only navroutes, one has to anyway). this means that one can move them to a proper place with a one-off check. and this is a good thing for the future, the root directory is a mess already. :-/

I'd also love for the screencaps to be in a directory for themselves.
Feb 10, 2005 Beolach link
> I'd also love for the screencaps to be in a directory for themselves.

I made a vendetta.sh shell script that moves my errors.log & screenies to a subdirectory, adding a date & time to the filenames.
Feb 10, 2005 roguelazer link
#!/bin/bash

WD=`pwd`
cd ~/.vendetta

for f in *.tga
do convert "$f" "$(basename "$f" .tga).jpg"
done

rm -f *.tga

mkdir images-`date +%F`
mv *.jpg images-`date +%F`

cd ${WD}

Put in cron.weekly for best results.
Feb 15, 2005 waleran link
I think it'd be fine to change /navroute [and the screenshot command, for that matter] so that they now use a subdirectory. It'll disrupt a few players, until they learn of the change, but the sooner you implement it, the fewer players would be inconvenienced. Of course I'm also hoping that a separate folder will make it easier for you to implememt a "/navroute list" command -- I'd like that.
Feb 18, 2005 raybondo link
Yep.
I made VO save navroutes into a ./navroutes directory and append .navroute to the end of the filename.
It will still be able to load current navroutes.
I also implemented a /navroute list function that works with both ways.
The directory and extension are transparent to the player.
Feb 18, 2005 Spellcast link
go ray. :)
Feb 20, 2005 waleran link
That's gonna be nice. :)
Feb 22, 2005 mgl_mouser link
I wish VO would save it's files elsewhere than next to the application (in case of Mac, that falls within the applicaiton bundle). This is not very safe or wanted on multi-user systems.

I'd ratter to be able to specify a base path somewhere. Or at least have Vendetta save it's files in ~/ somewhere.