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


  • I have a server and when I start it I have to run some commands on it myself for some settings, because it outputs:

    could not exec config.cfg
    could not exec autoexec.cfg

    or something like that. Help please.

    Oh, and yes, I have set the permissions. I'm not a newb.
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

Fri Dec 08, 2006 10:57 pm

  • these files should be present in the data directory.. are they?
    the spice extend life!
    the spice expand conciousness!
    the spice is vital to space travel!
    sooooo.. tell me what you want, waht you really-really want
    I will proceed directly to the intravenous injection of hard drugs, please.
    User avatar
    tChr
    Forum addon
     
    Posts: 1501
    Joined: Tue Feb 28, 2006 9:11 pm
    Location: Trondheim, Norway

Fri Dec 08, 2006 11:19 pm

  • I must have like 5 or 6 different config files in each data dir and it launches just can't find the files... weird (for some reason on the deb package there's more then one place that has a data dir)
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA


  • psychiccyberfreak wrote:I have a server and when I start it I have to run some commands on it myself for some settings, because it outputs:
    could not exec config.cfg
    could not exec autoexec.cfg
    or something like that. Help please.
    Oh, and yes, I have set the permissions. I'm not a newb.

    Those messages are not a problem! autoexec.cfg normaly does not exist but it is tried to load so that the user can make special permanant settings. Aliases are an example were its useful.
    config.cfg gets writen by the client only so if you just setup a server that file will not exist but that file is also loaded as to have the settings you changed in your client.

    I'm not sure what you mean with 'have to run some commands'.. what commands? Did you take a look at Nexuiz/Docs/server/readme.txt ?? What are you trying to do?
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Sat Dec 09, 2006 12:20 am

  • oh, but still, it's not loading the config file I gave it something's not right. Anotherwords, to change the hostname and stuff like that I have to change it at the terminal...
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

Sat Dec 09, 2006 12:34 am

Sat Dec 09, 2006 12:38 am

  • here's startup:

    Console initialized.
    Nexuiz Linux 22:53:04 Sep 5 2006
    Trying to load library... "libz.so.1" - loaded.
    Compressed files support enabled
    Added packfile data/common-spog.pk3 (26 files)
    Added packfile data/data20060905.pk3 (2867 files)
    Trying to load library... "libcurl.so.3" - loaded.
    cURL support enabled
    couldn't exec config.cfg
    couldn't exec autoexec.cfg
    Server using port 26000
    Server listening on address 0.0.0.0:26000
    Loaded maps/aggressor.ent
    saveconfif"fraglimit" changed to "20"
    "timelimit" changed to "15"
    gLoaded maps/aggressor.ent


    then it runs. I'm pretty shure I have the config file in the right place...
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

Sat Dec 09, 2006 12:47 am

  • Well that output looks normal..
    HOW do you make your server exec the file with your settings? And what settings do you want to change?

    I'm sorry its late, have to get some sleep.. hope someone else can help you or it will take a while :)
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Sat Dec 09, 2006 1:11 am

  • Did you:

    Copy Nexuiz/Docs/server/server_linux.sh into Nexuiz and Nexuiz/Docs/server/server.cfg into Nexuiz/data (or into ~/.nexuiz/data).

    the server.cfg is where the money is for servers

    $$$
    [Dave]Beowulf
    User avatar
    Beowulf
    Member
     
    Posts: 23
    Joined: Wed Nov 08, 2006 4:26 am
    Location: Geatland

Sat Dec 09, 2006 2:57 am

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

    To answer esteel's question, I use a custom tailored shell script:

    Code: Select all
    #!/bin/sh

    cd /home/****/Desktop/Nexuiz/

    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.
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

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.
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

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 :)
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

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...
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

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.
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

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.
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

Mon Dec 11, 2006 12:34 am

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...
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

Tue Dec 12, 2006 8:05 pm

Tue Dec 12, 2006 8:16 pm

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...
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Tue Dec 12, 2006 10:05 pm

  • ok. ls -lR ~/Nexuiz:

    Code: Select all
    common-spog.pk3    config.cfg         curl_urls.txt      data20060905.pk3
    default.cfg        demos              effectinfo.txt     empty.cfg
    env                game_reset.cfg     gfx                glsl
    high.cfg           low.cfg            maps               med.cfg
    menu               menu.dat           models             mutator_reset.cfg
    newhook.cfg        nexuiz-credits.txt nexuiz.modinfo     normal.cfg
    oldhook.cfg        particles          physics15.cfg      physics151.cfg
    physics151b.cfg    physics16rc1.cfg   physicsQ.cfg       physicsQBF.cfg
    physicsQBFplus.cfg physicsQBR.cfg     progs              progs.dat
    quake.rc           scripts            server.cfg         sound
    textures           ultimate.cfg       ultra.cfg          video


    uhhh cvars is to long, so I attached the shell output to a file.

    http://clan.psychdesigns.net/serverscripts/cvars.txt
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

Tue Dec 12, 2006 10:37 pm

  • You installed from a .deb and have all those files in your ~/Nexuiz dir? WHY??? Did you extract the pk3 files? If so what for?

    I'm sorry but you seem to make this overly complicated.. also i'm still not totaly sure about your exact problem.. Does your server start? Its only giving problem when using the stats output? Or what else is going wrong?
    User avatar
    esteel
    Site admin and forum addon
     
    Posts: 3924
    Joined: Wed Mar 01, 2006 8:27 am

Tue Dec 12, 2006 10:46 pm

  • psychiccyberfreak wrote:ok. ls -lR ~/Nexuiz:
    [...]

    That's the wrong directory... Nexuiz will only write to ~/.nexuiz, not ~/Nexuiz or anywhere else. (and the output doesn't has the -l switch, i need to see the permission)
    User avatar
    KadaverJack
    Site admin and forum addon
     
    Posts: 1102
    Joined: Tue Feb 28, 2006 9:42 pm

Tue Dec 12, 2006 11:01 pm

  • ok, yeah I got rid of the deb because it just didn't seem to work, so I downloaded the package from sourceforge and ploped it in my home dir. there is for some reason a /.nexuiz/ folder in my home dir and it was made by root. That's probably the reason. wow I feel dumb. Let me try fixing that now... YES!!! it works. Thanks.
    User avatar
    Psychcf
    Forum addon
     
    Posts: 1554
    Joined: Sun Dec 03, 2006 11:38 pm
    Location: NY, USA

Fri Dec 15, 2006 11:56 am



Return to Nexuiz - Support / Bugs




Information
  • Who is online
  • Users browsing this forum: No registered users and 1 guest