config.cfg problems on linux (not showing up)

If you've had any problems with Nexuiz, or would like to report bugs, post here.

Moderators: Nexuiz Moderators, Moderators

Postby KadaverJack » Sat Dec 09, 2006 3:05 am

Custom config files aren't executed automagically (only config.cfg & autoexec.cfg are). You have to append "+exec your_config.cfg" to the server command.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby esteel » Sat Dec 09, 2006 8:53 am

psychiccyberfreak wrote:to answer the latest post: yes, I installed it from a deb and followed the instructions. That's all set.

Code: Select all
exec /home/****/Desktop/Nexuiz/nexuiz-linux-686-dedicated +set hostname "[TSA] Pre-Tournament Practice" +set sv_motd "Visit us at: ^6http://clan.psychdesigns.net/"


and I have a config file in the data folder.

Sorry but 'installed from a deb' and then using '/home/xx/Desktop/Nexuiz '??? Did you install it first and copied it then into your own home directory? Why?
But maybe we just have one big misunderstanding here :)

And as KadaverJack said only 2 config files are loaded automatically. When i try your script you posted those two (hostname, sv_motd) get set so you just need to add an +exec your_config.cfg. Why have you not just used the example files in Nexuiz/Docs/server ? Those are tested and should just work if you follow the instructions :)
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Psychcf » Sat Dec 09, 2006 4:19 pm

yes, that script is temporary just to get it running. Mabie I shouldn't have posted it, but it uses the same principals. when I do add a +exec to the run command, it still says "could not exec your_config.cfg", and I do use the example in the docs section.

I guess if I'm using the shell script to configure it that'll do, but I still would like to understand what's happening...
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby KadaverJack » Sat Dec 09, 2006 7:48 pm

As esttel mentioned: your setup is quite confusing...
You installed a nexuiz deb package, why do you have a Nexuiz folder in ~/Desktop?
You should either use
Code: Select all
exec nexuiz-server [...]
(that will use the debian package) or
Code: Select all
cd ~/Desktop/Nexuiz
exec ./nexuiz-linux-686-dedicated [...]
to use your own installation.

It's important that your script changes the directory before starting the server, otherwise the server won't find it's data/ dir.
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

Postby Psychcf » Mon Dec 11, 2006 12:15 am

Ok, in some freak way, the config file works now. Now, I tried to log scores, and I get this output:

VM_fputs: invalid file handle -1 used in server
s12511: CALL2 fopen (=())
s12512: STORE_F GLOBAL1, GLOBAL3148
s12513: STORE_F (=:scores:dm_bloodprison:600), GLOBAL4
s12514: STORE_F (=
), GLOBAL7
s12515: CALL2 strcat (=())
s12516: STORE_F GLOBAL3148, GLOBAL4
s12517: STORE_F GLOBAL1, GLOBAL7
s12518: CALL2 fputs (=())
: DumpStats : statement 58
: NextLevel : statement 19
: CheckRules_World : statement 102
: StartFrame : statement 32
VM_fputs: invalid file handle -1 used in server
s12617: STORE_F GLOBAL252, GLOBAL7
s12618: CALL2 ServerConsoleEcho (=ServerConsoleEcho())
s12619: STORE_F (=sv_logscores_file), GLOBAL4
s12620: CALL1 cvar (=())
s12621: IFNOT GLOBAL1, s12627
s12622: STORE_F GLOBAL3148, GLOBAL4
s12623: STORE_F (=:end
), GLOBAL7
s12624: CALL2 fputs (=())
: DumpStats : statement 164
: NextLevel : statement 19
: CheckRules_World : statement 102
: StartFrame : statement 32
VM_fclose: invalid file handle -1 used in server
s12619: STORE_F (=sv_logscores_file), GLOBAL4
s12620: CALL1 cvar (=())
s12621: IFNOT GLOBAL1, s12627
s12622: STORE_F GLOBAL3148, GLOBAL4
s12623: STORE_F (=:end
), GLOBAL7
s12624: CALL2 fputs (=())
s12625: STORE_F GLOBAL3148, GLOBAL4
s12626: CALL1 fclose (=())
: DumpStats : statement 166
: NextLevel : statement 19
: CheckRules_World : statement 102
: StartFrame : statement 32
:scores:dm_bloodprison:600
:end
"timelimit" changed to "15"
Loaded maps/soylent.ent


so, I know because I know some C that fputs is what saves it to a file (I think anyone could figure that out anyway.) but I can't figure out what the problem could be.
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby esteel » Mon Dec 11, 2006 12:34 am

Its too late right now to really check but i think either Nexuiz can't write into the log stats file or the variable sv_logscores_logfile does contains an illegal filename..
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Psychcf » Mon Dec 11, 2006 8:08 pm

esteel wrote:Its too late right now to really check but i think either Nexuiz can't write into the log stats file or the variable sv_logscores_logfile does contains an illegal filename..


yep, I made the /data/data folder, set permissions to 777 (probably shouldn't of) and I used the default "scores.log" name. I'll reboot and see if it works...
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby esteel » Tue Dec 12, 2006 8:05 pm

So did that help? Well i'm sorry but i never had such problem when setting up a server.. its not that hard and its even harder to do much wrong.. so i'd like to see your server working :)
esteel
Site admin and forum addon
 
Posts: 3924
Joined: Wed Mar 01, 2006 8:27 am

Postby Psychcf » Tue Dec 12, 2006 8:16 pm

this might help: when I use printstats I get the same output. and mabie I should post my config file too?
Psychcf
Forum addon
 
Posts: 1554
Joined: Sun Dec 03, 2006 11:38 pm
Location: NY, USA

Postby KadaverJack » Tue Dec 12, 2006 9:25 pm

psychiccyberfreak wrote:this might help: when I use printstats I get the same output. and mabie I should post my config file too?

the output of "cvarlist" and the shell's output of 'ls -lR ~/.nexuiz' might be of more use...
KadaverJack
Site admin and forum addon
 
Posts: 1102
Joined: Tue Feb 28, 2006 9:42 pm

PreviousNext

Return to Nexuiz - Support / Bugs

Who is online

Users browsing this forum: No registered users and 1 guest

cron