.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   Metamod and metamod plugins (http://forums.bots-united.com/forumdisplay.php?f=15)
-   -   Uh oh- has CS update broken MetaMod? (http://forums.bots-united.com/showthread.php?t=1534)

Whistler 01-05-2004 14:23

Re: Uh oh- has CS update broken MetaMod?
 
...and for Metamod:
Code:

mBOOL meta_load_gamedll(void) {
...........................
    if(!setup_gamedll(&GameDLL)) {
          META_ERROR("dll: Unrecognized game: %s", GameDLL.name);
          // meta_errno should be already set in lookup_game()
          return(mFALSE);
    }

+    // If the game DLL isn't there, try dumping it out of the Steam cache...
+    if (access(GameDLL.real_pathname, 0) == -1) {
+      int i;
+      unsigned char *filebuf;
+
+      i = strlen(GameDLL.real_pathname) - 1;
+
+      while (i >= 0) {
+          if (GameDLL.real_pathname[i] == '/')
+            break;
+          i--;
+      }
+
+      i++;
+
+      filebuf = LOAD_FILE_FOR_ME(UTIL_VarArgs("dlls/%s", &GameDLL.real_pathname[i]), &i);
+
+      if (filebuf) {
+          // Create the path for the file...
+#ifdef _WIN32
+          mkdir(UTIL_VarArgs("%s/dlls", GameDLL.gamedir));
+#else
+          mkdir(UTIL_VarArgs("%s/dlls", GameDLL.gamedir), 0777);
+#endif
+          FILE *fp = fopen(GameDLL.real_pathname, "wb");
+          if (fp) {
+              // dump the file and close it
+              fwrite(filebuf, i, 1, fp);
+              fclose(fp);
+          }
+
+          FREE_FILE(filebuf);
+      }
+    }

    // open the game DLL
    if(!(GameDLL.handle=DLOPEN(GameDLL.pathname))) {
          META_ERROR("dll: Couldn't load game DLL %s: %s", GameDLL.pathname, DLERROR());
          RETURN_ERRNO(mFALSE, ME_DLOPEN);
    }

I'll send this to Will Day and hope he can fix this in next version.

auzie88 04-05-2004 03:21

Re: Uh oh- has CS update broken MetaMod?
 
i have no idea what u guys r talking about, i have the new update and when i start a LAN game it doesnt work. anyone wanna help?

Hardwood 04-05-2004 17:13

Re: Uh oh- has CS update broken MetaMod?
 
Auzzie are you using AMX. If not then I can't help. If you are then AMX is the problem. Go back a page of this thread and follow the link to amxxmod I posted.

PenPen 04-05-2004 22:51

Re: Uh oh- has CS update broken MetaMod?
 
Thanks Hardwood!
Although my problem was not exactly same as yours, your post gave me an idea to try fixing my problem.

=====

My post might help others with similar problem with mine.


Problem : After recent update (x2) my server won't start.

System : WinXP; Steam; Dedicated Server; MetaMod; AdminMod; StatsMe; Realbot WIP #9

Solution :
1. Change a line inside liblist.gam
from gamedll "addons\metamod\dlls\metamod.dll"
to gamedll "dlls\mp.dll"
2. Start Server and Quit.
3. Undo the changes done in Step #1.
4. Change a line inside plugins.ini under metamod folder.
from
win32 ../realbot/dll/realbot_mm.dll
Win32 addons/adminmod/dlls/admin_MM.dll
win32 addons/statsme/dlls/sm_cstrike_mm.dll
to
Win32 addons/adminmod/dlls/admin_MM.dll
win32 addons/statsme/dlls/sm_cstrike_mm.dll
5. Start Server and Quit.
6. Undo the changes done in Step #4.

Bingo!

=====

I am not sure why above steps solved my problem, but it solved my problem twice. April-29 update and May-4 update.

I hope there's a better solution, so I wouldn't have to do above everytime steam updates something.

Whistler 05-05-2004 08:16

Re: Uh oh- has CS update broken MetaMod?
 
okay I have updated this for Metamod. you can get one copy from http://yapb.yeah.net and you won't need to modify liblist.gam every time after Steam update.

Eskimo 04-06-2004 14:20

Re: Uh oh- has CS update broken MetaMod?
 
i went to the metamod fix link, but the page couldn't be displayed....

Whistler 05-06-2004 06:46

Re: Uh oh- has CS update broken MetaMod?
 
1 Attachment(s)
oops, there seems to severe server problems w/ planet.time.net.my.
If you need it, you can compile the source code yourself of get it here...

*edit*: I think someone should really update the BU version of metamod like this and delete this file to save some space on the server :)

sPlOrYgOn 05-06-2004 12:18

Re: Uh oh- has CS update broken MetaMod?
 
no...
metamod is now being updated again..
and they put it on sourceforge maybe someone should submit this to them...

stefanhendriks 05-06-2004 17:23

Re: Uh oh- has CS update broken MetaMod?
 
The crash problem is because MP.DLL gets deleted on a STEAM UPDATE! So, when you run a game, metamod.dll will not find a dll to hook to and crash. Simple as that.

By just renaming the liblist.gam into liblist.old. Then START a new server, and after you created one, you quit it.. You already fixed your problem.

Most of the time you can just rename back the liblist.old into liblist.gam but to be sure you should check out any changes (although it hasnt been changed at all since any CS update afaik)

sPlOrYgOn 05-06-2004 17:35

Re: Uh oh- has CS update broken MetaMod?
 
yea we know that already :D


All times are GMT +2. The time now is 12:10.

Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.