.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   CS1.5+standard DLL+linux = strange segfault bug (http://forums.bots-united.com/showthread.php?t=2123)

cruft 27-06-2004 23:30

CS1.5+standard DLL+linux = strange segfault bug
 
Strange bug here. For a standard DLL on a CS1.5 linux platform, I get a segfault if the following engine funcs are set in GiveFnptrsToDll:
pengfuncsFromEngine->pfnGetFileSize = pfnGetFileSize;
pengfuncsFromEngine->pfnIsCareerMatch = pfnIsCareerMatch;
When these lines are commented out, everything works fine.

This happens for joebot (see this thread: http://forums.bots-united.com/showthread.php?t=1821).

I also tried HPB template 4 as a reference but it also has this same problem.

Anyone else encounter this bug?

stefanhendriks 28-06-2004 15:02

Re: CS1.5+standard DLL+linux = strange segfault bug
 
i think those are steam related? (or CS CZ related?).

Metamod does not have this problem though, so i guess thats why my bot works under both versions without trouble.

Whistler 29-06-2004 05:42

Re: CS1.5+standard DLL+linux = strange segfault bug
 
Actually you can just remove those hooks to make it compatiable with both Steam and normal HL, since bots don't need them. (That's why I'm using HLSDK 2.0 headers :) )


All times are GMT +2. The time now is 03:07.

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