12-01-2011, 08:38 AM
Hi! I have some problem to set up my costom server.
WHAT I WANT TO DO
change gun sounds(or misc sound) when players come to my server
MATERIAL(only one sound file as an example)
hoge.pk3 -> sound -> weapons -> uzi_fire.ogg, uzi_fire_custom.ogg
SERVER ENVIRONMENT
Ubuntu 10.04 LTS x64
Apache(for HTTP server)
CLIENT ENVIRONMENT
Windows 7 x64
Server and this machine is connected by router
WHAT I DID
WHAT I WANT TO KNOW
I'm sorry my noob English and dirty sentences...
Thank you.
WHAT I WANT TO DO
change gun sounds(or misc sound) when players come to my server
MATERIAL(only one sound file as an example)
hoge.pk3 -> sound -> weapons -> uzi_fire.ogg, uzi_fire_custom.ogg
SERVER ENVIRONMENT
Ubuntu 10.04 LTS x64
Apache(for HTTP server)
CLIENT ENVIRONMENT
Windows 7 x64
Server and this machine is connected by router
WHAT I DID
- divVarent told me, to do that, I need to change the source code and compile these by my self. So I did something following:
- 1.1 Refer to Xonotic - Repository Access,
Code:$ git clone git://git.xonotic.org/xonotic/xonotic.git
$ cd xonotic
$./all update -l best - 1.2 Then I changed the characters: 'uzi_fire.wav' to 'uzi_fire_custom.wav' in following files:
Code:(under xonotic/data/xonotic-data.pk3dir/qcsrc/)
server/w_uzi.qc
server/tturrets/units/unit_machinegun.qc
server/tturrets/units/unit_walker.qc
server/vehicles/spiderbot.qc
client/tturrets.qc - 1.3 Then I compiled.
Compile was successfully finished and I confirmed loaded sound is changed to 'uzi_file_custom.ogg'(It seems that the format, wav or ogg is not cared. Both works fine.)Code:$ ./all compile
$ ./all run glx
- 1.1 Refer to Xonotic - Repository Access,
- set up pk3 file and server so that players can download custom sound files.
- 2.1 put hoge.pk3 on my local server's public directory
- 2.2 in $HOME/.xonotic/data/curl_urls.txt,
Code:hoge.pk3 http://LOCALSERVER_IP/public/
- 2.3 run server
Code:$ ./all run dedicated
- 2.4 (client side) run Xonotic and connect to my server from another PC (Windows 7 x64)
This PC can download pk3 files from my local server out of Xonotic, I mean just HTTP protocol.
- 2.5 pk3 file isn't downloaded from my server in game. I saw the console on PC(client), it displays "sound/weapons/uzi_fire_custom.wav" is not found." And, machinegun has no-sound in this session(in my server. Of course local game works fine because default sound file is loaded).
- 2.6 Next, I assigned 'uzi_fire_custom.wav' to sv_curls_serverpackages and restart server, but not changed...
- 2.1 put hoge.pk3 on my local server's public directory
- Even if PC could download hoge.pk3 from my server,
- 3.1 The directory to save downloaded pk3 files is dlcache, so I suppose that PC could download hoge.pk3, and I put hoge.pk3 into dlcache directory.
- 3.2 And then, I tried to connect to my server. However, custom sound 'uzi_fire_custom.ogg' is not loaded.
- 3.1 The directory to save downloaded pk3 files is dlcache, so I suppose that PC could download hoge.pk3, and I put hoge.pk3 into dlcache directory.
WHAT I WANT TO KNOW
- Why the pk3 file can't be downloaded?
- Even if pk3 file can be downloaded, game cannot load sound files dlcache directory?
I'm sorry my noob English and dirty sentences...
Thank you.