vertexoteric
Nub
Cakes 0
Posts: 9
|
|
« on: February 18, 2007, 01:37:12 PM » |
|
hello, i'm using ubuntu and i've just downloaded the most recent openarena content using subversion. i've written a little howto for anyone who's interested. firstly i installed subversion with this command... sudo apt-get install subversion... then i made sure i was in my home directory by typing... cd...then i used subversion with the co (checkout) subcommand to download all the files... svn co http://openarena.ws/svn/...this created a folder called svn in my home directory and downloaded everything into it. i then renamed the svn folder to something more memorable, openarena-subversion, with this command... mv svn openarena-subversion...i now have an up to date copy of all the files for openarena. any time i want to update it all i had to do is go into the folder and get subversion to update with... cd openarena-subversion svn update...i hope this will be useful to someone. vertexoteric
|
|
« Last Edit: February 18, 2007, 01:40:42 PM by vertexoteric »
|
Logged
|
|
|
|
dmn_clown
Posts a lot
Cakes 1
Posts: 1324
|
|
« Reply #1 on: February 18, 2007, 03:04:24 PM » |
|
svn co http://openarena.ws/svn/...this created a folder called svn in my home directory and downloaded everything into it. i then renamed the svn folder to something more memorable, openarena-subversion, with this command... mv svn openarena-subversion You, don't need that step: svn co http://openarena.ws/svn/ /openarena-subversion/
|
|
|
Logged
|
|
|
|
vertexoteric
Nub
Cakes 0
Posts: 9
|
|
« Reply #2 on: February 18, 2007, 03:12:52 PM » |
|
thanks for the tip.
|
|
|
Logged
|
|
|
|
vertexoteric
Nub
Cakes 0
Posts: 9
|
|
« Reply #3 on: February 18, 2007, 04:30:55 PM » |
|
i've noticed a file called Build-pieced.bat that seems to be designed to package the files into pk3 files. am i right in assuming this is a windows batch file? is there a linux equivalent?
|
|
|
Logged
|
|
|
|
Blaenk
more like blank dumb
Lesser Nub
Cakes 0
Posts: 135
|
|
« Reply #4 on: February 18, 2007, 05:07:36 PM » |
|
It's almost identical in linux, just rename it to .sh and use bash to run it, you might have to change a couple things around but it's almost identical.
|
|
|
Logged
|
|
|
|
vertexoteric
Nub
Cakes 0
Posts: 9
|
|
« Reply #5 on: February 18, 2007, 05:50:21 PM » |
|
thanks, i did that and it worked pretty well. it stumbled a few times on the rem command, which i guess i should replace with a # and there were a few times it tried to zip stuff that doesn't seem to be there anymore, but apart from that it was pretty good. i might go through it, swap the rems for #s and tidy up the references to the bits that aren't in the svn.
i haven't had a chance to use the pk3s yet, but i'll try them out tomorrow.
|
|
|
Logged
|
|
|
|
dmn_clown
Posts a lot
Cakes 1
Posts: 1324
|
|
« Reply #6 on: February 18, 2007, 11:53:37 PM » |
|
It's almost identical in linux, just rename it to .sh and use bash to run it, you might have to change a couple things around but it's almost identical.
No, actually it's not. The syntax is wrong for the Unix Zip. #!/bin/sh
#This script assumes that you have #zip installed and it is in your #path, if it is not, it will not work. #Please check your distribution's documentation #on how to install zip if it is not already installed.
zip -9r pak0.pk3 default.cfg zip -9r pak0.pk3 CREDITS zip -9r pak0.pk3 COPYING zip -9r pak0.pk3 README zip -9r pak0.pk3 LINUXNOTES zip -9r pak0.pk3 CHANGES zip -9r pak0.pk3 productid.txt zip -9r pak0.pk3 gfx/* -x \*svn* zip -9r pak0.pk3 icons/* -x \*svn* zip -9r pak0.pk3 menu/* -x \*svn* zip -9r pak0.pk3 models/ammo/* -x \*svn* zip -9r pak0.pk3 models/flags/* -x \*svn* zip -9r pak0.pk3 models/gibs/* -x \*svn* zip -9r pak0.pk3 models/mapobjects/* -x \*svn* zip -9r pak0.pk3 models/misc/* -x \*svn* zip -9r pak0.pk3 models/players/grism/* -x \*svn* zip -9r pak0.pk3 models/players/sarge/* -x \*svn* zip -9r pak0.pk3 models/powerups/* -x \*svn* zip -9r pak0.pk3 models/weaphits/* -x \*svn* zip -9r pak0.pk3 models/weapons2/* -x \*svn* zip -9r pak0.pk3 models/ammo/* -x \*svn* zip -9r pak0.pk3 models/ammo/* -x \*svn* zip -9r pak0.pk3 scripts/* -x \*svn* -x scripts/player*.shader -x scripts/bots.txt zip -9r pak0.pk3 sound/items/* -x \*svn* zip -9r pak0.pk3 sound/misc/* -x \*svn* zip -9r pak0.pk3 sound/movers/* -x \*svn* zip -9r pak0.pk3 sound/weapons/* -x \*svn* zip -9r pak0.pk3 sound/world/* -x \*svn* zip -9r pak0.pk3 sound/feedback/hit.wav -x \*svn* zip -9r pak0.pk3 sound/feedback/hit_teammate.wav -x \*svn* zip -9r pak0.pk3 sprites/* -x \*svn* zip -9r pak0.pk3 textures/effects/* -x \*svn* zip -9r pak0.pk3 textures/oafx/* -x \*svn* zip -9r pak0.pk3 textures/oa/* -x \*svn* zip -9r pak0.pk3 textures/detail/* -x \*svn* zip -9r pak0.pk3 vm/* -x \*svn* zip -9r pak0.pk3 sound/player/announcer/* -x \*svn* zip -9r pak0.pk3 sound/player/fry.wav -x \*svn* zip -9r pak0.pk3 sound/player/gibimp1.wav -x \*svn* zip -9r pak0.pk3 sound/player/gibimp2.wav -x \*svn* zip -9r pak0.pk3 sound/player/gibimp3.wav -x \*svn* zip -9r pak0.pk3 sound/player/gibsplt1.wav -x \*svn* zip -9r pak0.pk3 sound/player/gurp1.wav -x \*svn* zip -9r pak0.pk3 sound/player/gurp2.wav -x \*svn* zip -9r pak0.pk3 sound/player/land1.wav -x \*svn* zip -9r pak0.pk3 sound/player/talk.wav -x \*svn* zip -9r pak0.pk3 sound/player/watr_in.wav -x \*svn* zip -9r pak0.pk3 sound/player/watr_out.wav -x \*svn* zip -9r pak0.pk3 sound/player/watr_un.wav -x \*svn* zip -9r pak0.pk3 sound/player/footsteps/* -x \*svn* zip -9r pak0.pk3 sound/player/sarge/* -x \*svn*
zip -9r pak1-maps.pk3 levelshots/* -x \*svn* zip -9r pak1-maps.pk3 maps/*.bsp -x \*svn*
zip -9r pak2-players.pk3 models/players/* -x \*svn* -x models/players/grism/* -x models/players/sarge/* zip -9r pak2-players.pk3 sound/player/* -x \*svn* -x sound/player/announcer/* -x sound/player/footsteps/* -x sound/player/sarge/* zip -9r pak2-players.pk3 scripts/player_* -x \*svn*
zip -9r pak3-music.pk3 music/* -x \*svn*
zip -9r pak4-textures.pk3 textures/* -x \*svn* -x textures/effects/* -x textures/oafx/* -x textures/oa/* -x textures/detail/* zip -9r pak4-textures.pk3 env/* -x \*svn*
zip -9r pak5-TA.pk3 models/weapons/* -x \*svn*
zip -9r pak6-misc.pk3 video/* -x \*svn* zip -9r pak6-misc.pk3 botfiles/* -x \*svn* zip -9r pak6-misc.pk3 sound/feedback/* -x \*svn* zip -9r pak6-misc.pk3 sound/teamplay/* -x \*svn* zip -9r pak6-misc.pk3 scripts/bots.txt -x \*svn* zip -9r pak6-misc.pk3 maps/*.aas -x \*svn* #zip -9r pak6-misc.pk3 demos/* -x \*svn*
exit 0
That would be the correct syntax for a GNU/Linux buildpk3 script. The windows batch script only appears to work properly while ignoring several files that it should be including and including files that it should be ignoring.
|
|
|
Logged
|
|
|
|
Blaenk
more like blank dumb
Lesser Nub
Cakes 0
Posts: 135
|
|
« Reply #7 on: February 19, 2007, 01:14:35 AM » |
|
Woops, sorry. I use my own scripts, that work perfectly on either Operating System (Mac as well), I simply cd into the folder and recursively add it's contents to a pk3, it's that easy, of course, I'm not contaminating my tree with svn so that explains the exclusion parts.
|
|
|
Logged
|
|
|
|
vertexoteric
Nub
Cakes 0
Posts: 9
|
|
« Reply #8 on: February 19, 2007, 03:18:48 PM » |
|
hello dmn_clown, is that code you posted the correct linux code? or just the windows batch script with #!/bin/sh put at the start.
|
|
|
Logged
|
|
|
|
dmn_clown
Posts a lot
Cakes 1
Posts: 1324
|
|
« Reply #9 on: February 19, 2007, 04:28:49 PM » |
|
That is the correct code for a make pk3 script using the GNU/Linux version of zip.
|
|
|
Logged
|
|
|
|
vertexoteric
Nub
Cakes 0
Posts: 9
|
|
« Reply #10 on: February 19, 2007, 05:26:27 PM » |
|
nice one, thanks for that.
|
|
|
Logged
|
|
|
|
vertexoteric
Nub
Cakes 0
Posts: 9
|
|
« Reply #11 on: February 21, 2007, 01:29:05 PM » |
|
i used the linux script to build the paks and it worked fine. lots of improvements and it looks great, but i can't connect to games servers. is that because my paks aren't standard and the servers are pure?
it's not a problem, i made a copy of my openarena folder to put the new paks in, so i can still use the original to connect to servers.
|
|
|
Logged
|
|
|
|
dmn_clown
Posts a lot
Cakes 1
Posts: 1324
|
|
« Reply #12 on: February 22, 2007, 08:08:02 AM » |
|
Yes, and if you do connect to a non-pure server that has earlier versions of maps you will get an "inline model error."
|
|
|
Logged
|
|
|
|
vertexoteric
Nub
Cakes 0
Posts: 9
|
|
« Reply #13 on: February 22, 2007, 12:34:37 PM » |
|
interesting, thanks for the info.
|
|
|
Logged
|
|
|
|
BlackHawk22
Nub
Cakes 0
Posts: 5
|
|
« Reply #14 on: March 17, 2007, 02:07:36 AM » |
|
w...t...f...
Am I a complete moron...? What about XP users?
|
|
|
Logged
|
|
|
|
Blaenk
more like blank dumb
Lesser Nub
Cakes 0
Posts: 135
|
|
« Reply #15 on: March 17, 2007, 12:19:35 PM » |
|
Yes, you are a complete moron. Follow the instructions in the first post or google for TortoiseSVN, download it and install it, then right click somewhere and for the checkout url, type in http://openarena.ws/svn/ then choose where you want to download the stuff. Once that's done, you can build/package everything (The pk3's) with the batch file, simply double click on it Don't ask questions again until you've tried.
|
|
|
Logged
|
|
|
|
|