Pages: [1]
  Print  
Author Topic: How can i compile Open Arena?  (Read 8258 times)
MCMic
Nub


Cakes 0
Posts: 17



« on: July 12, 2008, 10:56:01 AM »

Hello, I want to modify some of files in the directory "source/code/cgame" of the svn.
I've downloaded the svn in a directory with "svn co http://openarena.ws/svn/ openarena"
Now I can modify the files in the source's directory but i don't know how i can compile the game for test my changes.

Do I need "q3lcc" ? how can i find it for GNU/Linux? (i use Ubuntu)

PS: I'm French, scuse my errors please.
Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #1 on: July 12, 2008, 11:35:27 AM »

If you get the tar-ball: http://openarena.ws/svn/source/077/openarena077scr3.tar.bz2 (it is already on your hard disk if you have downloaded the entire svn)

Replace the cgame files with your own cgame files, go to the base source folder (the one containing 'code' and 'ui') and type 'make'. Solve problems as they occur.
Logged

There are nothing offending in my posts.
MCMic
Nub


Cakes 0
Posts: 17



« Reply #2 on: July 12, 2008, 12:56:01 PM »

If you get the tar-ball: http://openarena.ws/svn/source/077/openarena077scr3.tar.bz2 (it is already on your hard disk if you have downloaded the entire svn)

Replace the cgame files with your own cgame files, go to the base source folder (the one containing 'code' and 'ui') and type 'make'. Solve problems as they occur.
thanks, it works Smiley
Logged
MCMic
Nub


Cakes 0
Posts: 17



« Reply #3 on: July 12, 2008, 01:24:43 PM »

How I launch the game next?
I've tried to use "build/release-linux-i386/ioquake3.i386", but it say "0 pk3 file", so I've copied pk3 file of my "/usr/share/games/openarena/baseoa", and now the game is launch but my change in the file of cgame aren't visible.

I've modified cgame/CG_event.c and cgame/CG_weapon.c, for test, and it doesn't make the changes i wish.
Logged
sago007
Posts a lot
*

Cakes 62
Posts: 1664


Open Arena Developer


WWW
« Reply #4 on: July 12, 2008, 02:11:25 PM »

Just follow these small steps (and write a bash script that does it for you)

Find the 'vm' folder: build/release-*/base*/vm
zip it
rename to 'something.pk3'
create a folder named 'something' next to baseoa in the OpenArena directory
place the pk3 file in that folder
launch OA
go to mods
launch the 'something' mod

Bash command I used in the Elimination mod (modify to your need):
make && cd build/release-linux-x86_64/baseq3 && rm vm/vm.d && zip -r /media/home32/poul/games/openArena/elimination/elimination.pk3 vm && /media/home32/poul/games/openArena/ioquake3.x86_64 +set fs_game elimination +set debug 1 +set sv_pure 0
It is a little old binaries have changed since I wrote this
Logged

There are nothing offending in my posts.
MCMic
Nub


Cakes 0
Posts: 17



« Reply #5 on: July 12, 2008, 02:55:48 PM »

thank you very much, it works Smiley
Logged
Pages: [1]
  Print  
 
Jump to: