Some patches the devs might be interested in :)

Developer discussion of experimental fixes, changes, and improvements.

Moderators: Nexuiz Moderators, Moderators

Postby Psychcf » Mon Dec 03, 2007 3:02 am

you need to download the sources from the nexuiz site, apply the patches, compile it using fteqcc (it should be in the repos), then put the compiled files in a pk3, then put that in your ~/.nexuiz folder.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby KadaverJack » Mon Dec 03, 2007 9:34 am

[TSA] Psychcf wrote:you need to download the sources from the nexuiz site, apply the patches, compile it using fteqcc (it should be in the repos), then put the compiled files in a pk3, then put that in your ~/.nexuiz folder.

1) you don't need to put files you don't want to distribute in pk3s
2) those patches are for the engine, not the game code, so unpack the engine sources from the zip, apply the patch and run "make nexuiz" (you might wanna run 'apt-get build-dep nexuiz' first to install dev packages you need)
(or you could try if the precompiled binary on that site works for you)
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Psychcf » Mon Dec 03, 2007 1:17 pm

ah, I didn't know it was for the engine. In that case you want to get the engine code, apply patches, and then use make as Kadaver said
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby Spaceman » Tue Dec 04, 2007 1:58 pm

Is the engine code in nexuiz-23.zip?

I've found /Nexuiz/sources/enginesource20070531.pk3 in nexuiz-23.zip is this the correct place to start?

I assume I need to extract this and then apply the patch somehow.

The first three lines of the patch are
Code: Select all
diff -up orig/darkplaces/console.c darkplaces/console.c
--- orig/darkplaces/console.c   2007-05-30 16:29:22.000000000 +0200
+++ darkplaces/console.c   2007-08-23 14:52:26.000000000 +0200

Should I extract enginesource* to /Nexuiz/sources/orig/darkplaces/... and then where do I put the patch file?

Many thanks.
Spaceman
Alien trapper
 
Posts: 264
Joined: Tue Aug 28, 2007 10:53 am

Postby KadaverJack » Tue Dec 04, 2007 4:25 pm

victim wrote:Is the engine code in nexuiz-23.zip?

yes

I've found /Nexuiz/sources/enginesource20070531.pk3 in nexuiz-23.zip is this the correct place to start?

correct, except it's enginesource20070531.zip, but i assume that's what you meant...

Should I extract enginesource* to /Nexuiz/sources/orig/darkplaces/... and then where do I put the patch file?

Just extract the engine source anywhere, and do:
Code: Select all
cd darkplaces
patch -p1 < /whereever/you/put/the.patch
make nexuiz
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Spaceman » Tue Dec 04, 2007 7:27 pm

Well spotted, it should have been zip not pk3 :oops:

Many thanks for all the help.

I've applied the patch and run make, moved the three new files and renamed them. I had to apt-get some SDL dev files but it was relatively painless.

From Blµb's page
To be applied with patch -p0

does it matter if I used -p1 ? And what does < do? Is it some kind of pipe?

I've just tried a quick game of Nexuiz and it seems to work really well :D

Again many thanks :D :D
Spaceman
Alien trapper
 
Posts: 264
Joined: Tue Aug 28, 2007 10:53 am

Postby Psychcf » Tue Dec 04, 2007 7:54 pm

< basically sends a file to the stdin of a cli program.

In other words, it's like running a command, pasting the file contents in and pressing ctrl+d (represents end-of-file)
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby KadaverJack » Thu Dec 06, 2007 7:58 am

victim wrote:From Blµb's page
To be applied with patch -p0

does it matter if I used -p1 ?

Yes, -pN strips the first N slashes from the file names in the diff. If you use -p0, it doesn't strip anything, so patch is searching for darkplaces/console.c instead of console.c (which works fine as long you are patching from darkplaces/.., but i usually apply patches from inside the source directory, thus the -p1)
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Vladimir » Thu Dec 06, 2007 12:30 pm

I'm sorry, but I'm still not exactly clear on this. How do you apply the patch? The patch I'm applying is the sprites one. I'm sorry, but I'm a total newbie at applying patches. :oops:
Vladimir
Newbie
 
Posts: 7
Joined: Mon Jul 30, 2007 8:48 am

Postby Blµb » Fri Dec 07, 2007 11:10 am

Uh, sorry, I should have corrected that part...

the non SVN patches are to be applied "from outside the directory"
so in the fold where you have your source folder

if you use the svn patches, use patch -p0 from within the source dir
Blµb
Alien trapper
 
Posts: 277
Joined: Thu Mar 29, 2007 1:49 pm

PreviousNext

Return to Nexuiz - Development

Who is online

Users browsing this forum: No registered users and 1 guest

cron