.:: Bots United ::.

.:: Bots United ::. (http://forums.bots-united.com/index.php)
-   General Bot Coding (http://forums.bots-united.com/forumdisplay.php?f=24)
-   -   I'm STEAMed up !!! (http://forums.bots-united.com/showthread.php?t=79)

BAStumm 03-01-2004 05:30

Re: I'm STEAMed up !!!
 
according to alfred (the original metamod author and now employee of valve) all you need is the modified files I posted above to have an up to date sdk (from 2.3). I've had no compile issues with metamod and the sdk since applying alfreds patches.

Austin 03-01-2004 06:23

Re: I'm STEAMed up !!!
 
Quote:

Originally Posted by botmeister
As for portability, I think _stat is Win32 only, while fopen is cross platform.

Oops, been in Windoze to long..
Use this:

struct stat buf;
if( stat( "valve/steam.inf", &buf ) == 0 )
{
//file exists
}


I think this is much better since fopen can fail for a number of reasons when the file actually exists.

stefanhendriks 03-01-2004 10:20

Re: I'm STEAMed up !!!
 
the metamod.org site is down all the time. Perhaps we should host metamod for the sake of keeping it online.

Nova 03-01-2004 10:24

Re: I'm STEAMed up !!!
 
Quote:

Originally Posted by stefanhendriks
the metamod.org site is down all the time. Perhaps we should host metamod for the sake of keeping it online.

Well if we do THAT the traffic is going to be INCREDIBLE ... but would be worht considering, great publicity ...

Sargeant.Rock 27-02-2004 07:34

Re: I'm STEAMed up !!!
 
Quote:

Originally Posted by Pierre-Marie Baty
Sorry for the syntax of these patchs, but someone has yet to port the GNU
diff utility to Windows... I should perhaps give it a go one of these days
;-)

GNUWin32, diffutils 8)

http://sourceforge.net/project/showf...ckage_id=16423

download and install, add X:\Program Files\gnuwin32\bin to your system path (where X is the drive you chose to install diffutils), and there you go... Diff from the command prompt to your heart's content...:)

I am trying to port Marine Bot (the only real bot for Firearms) into a MetaMod compatible plugin. I have the source code from the latest test release of MB, I have the latest (2.3) HL SDK I could find, and I downloaded your MetaMod 1.17sp source. I have searched the web over, and perused these forums for over 3 hours now, and can find no instructions anywhere on what I have to do to to my Marine Bot source files to make them into a MetaMod plugin. Any help or suggestions would be greatly appreciated. BTW, this will initially be a Linux only plugin, as I don't have enough hard-drive space left on my Windows box to install Visual Studio .NET and compile for Windows.???:(

Pierre-Marie Baty 27-02-2004 08:47

Re: I'm STEAMed up !!!
 
I believe the safe way is first to understand perfectly how a metamod plugin works. To achieve this, download some simple plugins and look closely at their source code. I would recommend mine, since for each I try to keep the same structure (except the most complicated ones such as the bots). There are, basically, two interfaces in the HL engine, and metamod provides hooks for both. Once you get used to what these interfaces are, how they work and how to hook them, you can give a go porting your bot to metamod. Download one of the current metamod bot's source code and keep it as a reference on how to do things when you're really stuck.

And BTW, when your bot is a metamod plugin, you can compile it for Windows with MinGW32, or if you're a real geek do like Will Day and cross-compile it for Windows directly on your linux box ;)

Anyway, thanks for the diffutils !

stefanhendriks 27-02-2004 10:46

Re: I'm STEAMed up !!!
 
Quote:

Originally Posted by Nova
Well if we do THAT the traffic is going to be INCREDIBLE ... but would be worht considering, great publicity ...

hehe, thats my point ;) the more publicity the better :)

Pierre-Marie Baty 27-02-2004 14:21

Re: I'm STEAMed up !!!
 
mh, perhaps it might be a smart idea to ask Will Day before even talking of stuff like that, what do you think ?

stefanhendriks 27-02-2004 16:35

Re: I'm STEAMed up !!!
 
sure, its just that the idea is nice. Of course some aproval by Will Day would be handy :)

Onno Kreuzinger 27-02-2004 18:51

Re: I'm STEAMed up !!!
 
Hi,
i did not tell, but "our" meamod does compile with gcc 3.2 PMB, i just don't know why we should, or shoudl we? There are plenty of warnings, but thats just cosmetic. If needed i could beautify it..
The probability of problems with linux rental servers is bigger when using gcc 3.2. so using gcc 2.95.3 is just the safe way where my thoughts...

i'm just installing the cross compile stuff, so then metamod won't be a problem to have for both platforms ;-)
i will also try to make hpb_bot for win32 in linux. i acctualy never compiled win stuff on win, besides java stuff, but thats no win32 stuff *g*

OT:
guys the server is having a leak, a memory leak, the hlds is beyond 400mb ram, i wont kill it so someone who wants to can have a look at.

OT2:
we seem to got rid of the swap problem. it was the swap partition, the server is running on low mem for atleast 24 hrs and no crash or swap_free error in the logs for 10 days.

cheers memed


All times are GMT +2. The time now is 04:53.

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