Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Hard coded paths - Metamod-P 1.19p31

Help
2007-04-14
2013-04-05
  • I'm running the latest version of Metamod-P:
    meta version
    Metamod v1.19p31  2007/04/05 (5:13)
    by Will Day
       http://www.metamod.org/
    Patch: Metamod-P (mm-p) v31
    by Jussi Kivilinna
        http://metamod-p.sourceforge.net/
    compiled: Apr  5 2007, 11:07:06 EET (optimized)

    I have my liblist.gam file setup as:
    ]# grep gamedll /hlds/tfc/liblist.gam
    gamedll "dlls\tfc.dll"
    //gamedll_linux "dlls/tfc_i386.so"
    gamedll_linux "addons/Metamod-P/dlls/metamod_i386.so"
    ]#

    I have my directory structure as:
    ]# ls -alh /hlds/tfc/addons/ | grep -i meta
    lrwxrwxrwx   1 root root    9 Apr  2 23:33 metamod -> Metamod-P
    lrwxrwxrwx   1 root root    9 Apr  2 23:33 Metamod -> Metamod-P
    lrwxrwxrwx   1 root root    9 Apr  2 23:43 MetaMod -> Metamod-P
    lrwxrwxrwx   1 root root   17 Apr 14 16:20 Metamod-P -> Metamod-Pv1.19p31
    drwxr-x---   3 root root 4.0K Apr  5 00:44 Metamod-Pv1.19p28
    drwxr-x---   3 root root 4.0K Apr 14 16:19 Metamod-Pv1.19p31
    ]#

    When I check the config:
    meta config
    Config options from localinfo:
       debuglevel           0

       gamedll             

       plugins_file         /hlds/tfc/addons/Metamod-Pv1.19p31/plugins.ini

       exec_cfg             addons/metamod/exec.cfg

       autodetect           true

       clientmeta           true

    it can be clearly seen that "exec_cfg" is hard coded. Can you please make it so that it isn't hardcoded? I had to setup symlinks because of this hardcoded lowercase metamod. The "plugins_file" is correctly finding itself in the filesystem even with symlinks as it should :)

     
    • plugins_file isn't fixed. Metamod still reads hardcoded path 'addons/metamod/plugins.ini' but corrects displayed pathname to remove symlinks. If you want to override default hardcoded paths see: http://metamod-p.sourceforge.net/doc/html/metamod.html#localinfo

      1. Tested:

      liblist.gam:
      gamedll_linux "addons/mm-p/dlls/metamod_i386.so"

      addons:
      drwxr-xr-x  3 hlds hlds   32 2007-04-15 20:24 mm-p/

      Config options from localinfo:
         debuglevel           0
         gamedll
         plugins_file         addons/metamod/plugins.ini
         exec_cfg             addons/metamod/exec.cfg
         autodetect           true
         clientmeta           true

      Currently loaded plugins:
            description      stat pend  file              vers      src   load  unlod
      0 plugins, 0 running

      2. Tested:

      liblist.gam:
      gamedll_linux "addons/mm-p/dlls/metamod_i386.so"

      addons:
      lrwxrwxrwx  1 hlds hlds    4 2007-04-15 20:24 metamod -> mm-p/
      drwxr-xr-x  3 hlds hlds   32 2007-04-15 20:24 mm-p/

      Config options from localinfo and /home/hlds/hlds/valve/addons/mm-p/config.ini:
         debuglevel           0
         gamedll              /home/hlds/hlds/valve/dlls/sevs_i386.so
         plugins_file         /home/hlds/hlds/valve/addons/mm-p/plugins.ini
         exec_cfg             addons/metamod/exec.cfg
         autodetect           true
         clientmeta           true

      Currently loaded plugins:
            description      stat pend  file              vers      src   load  unlod
      [ 1] JK_Botti         RUN   -    jk_botti_mm_i386  v0.50     ini   Start ANY
      [ 2] WON2Steam Log F  RUN   -    won2steam_mm_i38  v1.1      ini   ANY   ANY
      2 plugins, 2 running

       
    • /hlds/tfc/liblist.gam:
      gamedll_linux "addons/Metamod-P/dlls/metamod_i386.so"

      /hlds/tfc/addons/Metamod-Pv1.19p31/plugins.ini:
      linux   addons/RadioMod/dlls/RadioMod_i386.so   RadioMod
      linux   addons/HookMod/dlls/HookMod_i386.so     HookMod
      //linux addons/EntMod/dlls/EntMod_i386.so       EntMod
      linux   addons/AdminMod/dlls/admin_MM_i386.so   AdminMod

      /hlds/tfc/addons/Metamod-Pv1.19p31/exec.cfg:
      echo Executing /hlds/tfc/addons/Metamod-Pv1.19p31/exec.cfg
      echo Done executing /hlds/tfc/addons/Metamod-Pv1.19p31/exec.cfg

      ===========================================================================================

      Scenario 1

      /hlds/tfc/addons/:
      lrwxrwxrwx   1 root root   17 Apr 14 16:20 Metamod-P -> Metamod-Pv1.19p31
      drwxr-x---   3 root root 4.0K Apr 23 01:54 Metamod-Pv1.19p31

      [root@wilber /hlds]# ./hlds_run -game tfc -steamerr +ip 220.233.224.217 +port 27015 +maxplayers 12 +sv_lan 0 +sv_region 5
      Auto detecting CPU
      Using Pentium II Optimised binary.
      Auto-restarting the server on crash

      Console initialized.
      scandir failed:/hlds/./valve/SAVE
      scandir failed:/hlds/./platform/SAVE
      Protocol version 47
      Exe version 1.1.2.1/Stdio (tfc)
      Exe build: 20:02:49 Oct 24 2006 (3651)
      STEAM Auth Server
      couldn't exec language.cfg
      Server IP address 220.233.224.217:27015
        
         Metamod version 1.19p31 Copyright (c) 2001-2006 Will Day
           Patch: Metamod-P (mm-p) v31 Copyright (c) 2004-2007 Jussi Kivilinna
         Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
         This is free software, and you are welcome to redistribute it
         under certain conditions; type `meta gpl' for details.
        
      scandir failed:/hlds/./valve/SAVE
      scandir failed:/hlds/./platform/SAVE

      Executing Admin Mod config file
      Adding master server 68.142.72.250:27010
      Adding master server 69.28.151.162:27010
      Connection to Steam servers successful.
         VAC secure mode is activated.
      meta config
      Config options from localinfo:
         debuglevel           0

         gamedll             

         plugins_file         addons/metamod/plugins.ini

         exec_cfg             addons/metamod/exec.cfg

         autodetect           true

         clientmeta           true

      meta list
      Currently loaded plugins:
            description      stat pend  file              vers      src   load  unlod
      0 plugins, 0 running
      quit
      Adding master server 68.142.72.250:27010
      Adding master server 69.28.151.162:27010
      Mon Apr 23 22:24:15 EST 2007: Server Quit

      [root@wilber hlds]#

      ===========================================================================================

      Scenario 2

      Restore the symlinks:
      /hlds/tfc/addons/:
      lrwxrwxrwx   1 root root    9 Apr 23 22:26 metamod -> Metamod-P
      lrwxrwxrwx   1 root root    9 Apr 23 22:26 Metamod -> Metamod-P
      lrwxrwxrwx   1 root root    9 Apr 23 22:26 MetaMod -> Metamod-P
      lrwxrwxrwx   1 root root   17 Apr 14 16:20 Metamod-P -> Metamod-Pv1.19p31
      drwxr-x---   3 root root 4.0K Apr 23 01:54 Metamod-Pv1.19p31

      [root@wilber hlds]# ./hlds_run -game tfc -steamerr +ip 220.233.224.217 +port 27015 +maxplayers 12 +sv_lan 0 +sv_region 5
      Auto detecting CPU
      Using Pentium II Optimised binary.
      Auto-restarting the server on crash

      Console initialized.
      scandir failed:/hlds/./valve/SAVE
      scandir failed:/hlds/./platform/SAVE
      Protocol version 47
      Exe version 1.1.2.1/Stdio (tfc)
      Exe build: 20:02:49 Oct 24 2006 (3651)
      STEAM Auth Server
      couldn't exec language.cfg
      Server IP address 220.233.224.217:27015
        
         Metamod version 1.19p31 Copyright (c) 2001-2006 Will Day
           Patch: Metamod-P (mm-p) v31 Copyright (c) 2004-2007 Jussi Kivilinna
         Metamod comes with ABSOLUTELY NO WARRANTY; for details type `meta gpl'.
         This is free software, and you are welcome to redistribute it
         under certain conditions; type `meta gpl' for details.
        
      Executing /hlds/tfc/addons/Metamod-Pv1.19p31/exec.cfg
      Done executing /hlds/tfc/addons/Metamod-Pv1.19p31/exec.cfg
      scandir failed:/hlds/./valve/SAVE
      scandir failed:/hlds/./platform/SAVE

      Executing Admin Mod config file
      Adding master server 72.165.61.189:27010
      Adding master server 68.142.72.250:27010
      Connection to Steam servers successful.
         VAC secure mode is activated.
      meta config
      Config options from localinfo:
         debuglevel           0

         gamedll             

         plugins_file         /hlds/tfc/addons/Metamod-Pv1.19p31/plugins.ini

         exec_cfg             addons/metamod/exec.cfg

         autodetect           true

         clientmeta           true

      meta list
      Currently loaded plugins:
            description      stat pend  file              vers      src   load  unlod
      [ 1] RadioMod         RUN   -    RadioMod_i386.so  v2        ini   Start Start
      [ 2] HookMod          RUN   -    HookMod_i386.so   v5        ini   Start Start
      [ 3] AdminMod         RUN   -    admin_MM_i386.so  v2.50.60  ini   Start ANY 
      3 plugins, 3 running
      quit
      Adding master server 72.165.61.189:27010
      Adding master server 68.142.72.250:27010
      Mon Apr 23 22:28:22 EST 2007: Server Quit

      [root@wilber hlds]#

      ===========================================================================================

      For the "meta config" output can you make it so that "exec_cfg" output is similar to the "plugins_file" output?? For example:
         plugins_file         /hlds/tfc/addons/Metamod-Pv1.19p31/plugins.ini

         exec_cfg             /hlds/tfc/addons/Metamod-Pv1.19p31/exec.cfg

      instead of the current:
         plugins_file         /hlds/tfc/addons/Metamod-Pv1.19p31/plugins.ini

         exec_cfg             addons/metamod/exec.cfg

      Also in the first scenario above where
      /hlds/tfc/addons/:
      lrwxrwxrwx   1 root root   17 Apr 14 16:20 Metamod-P -> Metamod-Pv1.19p31
      drwxr-x---   3 root root 4.0K Apr 23 01:54 Metamod-Pv1.19p31

      can't you detect where you are in the filesystem from
      /hlds/tfc/liblist.gam:
      gamedll_linux "addons/Metamod-P/dlls/metamod_i386.so"

      and then just look for /hlds/tfc/addons/Metamod-Pv1.19p31/plugins.ini
      rather than looking for addons/metamod/plugins.ini ??

       
      • I'd rather not go all trouble of making yet another release just to fix print output that isn't fixed in metamod.org.
        Sure I can detect where metamod.dll/so is in filesystem. I wont do it because that isn't the way metamod.org does things and I want to keep metamod-p compatible with metamod.org with this. So please instead of requesting these features here, request theim for metamod.org so when they are implemented there I can do same here.

         
    • I wouldn't expect you to make these minor changes and then do another release... However the next time you go to do another release, could you then please include these changes?

      I will also go and request the same changes at metamod.org as requested.

       
    • Requested:
      http://sourceforge.net/forum/forum.php?thread_id=1722205&forum_id=76421
      http://tech.groups.yahoo.com/group/metamod/messages

      Metamod hasn't been updated since 2006/04/17, while you have done 3 updates since then. Could you please consider adding these changes to your next release.