[bash] Move maps to a new copy of Nexuiz
|
06-02-2008, 08:24 PM
(This post was last modified: 06-02-2008 08:32 PM by -z-.)
Post: #1
|
|||
|
|||
[bash] Move maps to a new copy of Nexuiz
[size=x-large]About[/size]
Inspire your neighbor, they'll inspire you back.To make upgrading easier, I've created a bash script to move all pk3's except [b]common-spog.pk3[/b] and [b]data[0-9]{8}.pk3[/b] to a new copy of Nexuiz. [size=x-large]Instructions[/size] 1. Save the following code as [url=http://nexuizninjaz.com/scripts/nn_map_copy.sh]nn_map_copy.sh[/url] in your [b]Nexuiz data directory[/b]. Code: #!/bin/bash 2. chmod it so you can run it Code: chmod +x nn_map_copy.sh 3. Grab a copy the latest Nexuiz build and extract it to the same parent as the one you're upgrading from: Code: my_nexuiz_servers 4. Run it Code: ./nn_map_copy.sh 5. Answer the questions. Code: Where are these bad boys going? (Name of the new Nexuiz directory) Yay! [url=http://maps.nexuizninjaz.com]maps.nn[/url] | [url=http://pics.nexuizninjaz.com]pics.nn[/url] | [url=http://chat.nexuizninjaz.com]chat.nn[/url] | [url=http://toolz.nexuizninjaz.com/cvar]2.5 cvar browser[/url] |
|||
08-25-2008, 11:04 AM
(This post was last modified: 08-25-2008 11:08 AM by esteel.)
Post: #2
|
|||
|
|||
RE: [bash] Move maps to a new copy of Nexuiz
In case the server is running on Linux/Mac one can also put all the .pk3 files into ~/.nexuiz/data that way those files will be used regardless of which server version you install. For windows it uses c:\Documents and Settings\User\My Games\Nexuiz (if i remember correctly) either when the current user can not write to Nexuiz\data or used the parameter -mygames at startup. Or you can specify a complete path to use for the 'nexuiz user directory' with -userdir PATH (this works for all three systems, mac, linux, windows)
[size=xx-large][/size]pirates[url=http://xeno.planetnexuiz.com/forum][img]http://xeno.planetnexuiz.com/img/sigs/scarabRedux.png[/img][/url] i support free software:http://www.fsfe.org/en/fellows/esteel my nexuiz gallery:http://www.gamepn.com/galleries.php?gallery=302&view |
|||
08-25-2008, 01:08 PM
Post: #3
|
|||
|
|||
RE: [bash] Move maps to a new copy of Nexuiz
To be honest, this script is quite outdated. It was written to help myself learn to script bash. I've science accumulated a wealth of knowledge and techniques that could help improve this script... but it's been over shadowed by my unreleased server management tool.
Inspire your neighbor, they'll inspire you back.However, it's still a useful script. [url=http://maps.nexuizninjaz.com]maps.nn[/url] | [url=http://pics.nexuizninjaz.com]pics.nn[/url] | [url=http://chat.nexuizninjaz.com]chat.nn[/url] | [url=http://toolz.nexuizninjaz.com/cvar]2.5 cvar browser[/url] |
|||
« Next Oldest | Next Newest »
|