.:: Bots United ::.  
filebase forums discord server github wiki web
cubebot epodbot fritzbot gravebot grogbot hpbbot ivpbot jkbotti joebot
meanmod podbotmm racc rcbot realbot sandbot shrikebot soulfathermaps yapb

Go Back   .:: Bots United ::. > Developer's Farm > General Bot Coding
General Bot Coding See what a pain it is to get those little mechs shooting around

Reply
 
Thread Tools
Re: I'm STEAMed up !!!
Old
  (#21)
BAStumm
Member
 
BAStumm's Avatar
 
Status: Offline
Posts: 138
Join Date: Jan 2004
Location: Spokane, WA USA
Default Re: I'm STEAMed up !!! - 03-01-2004

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.






  
Reply With Quote
Re: I'm STEAMed up !!!
Old
  (#22)
Austin
Moderator
 
Austin's Avatar
 
Status: Offline
Posts: 403
Join Date: Nov 2003
Default Re: I'm STEAMed up !!! - 03-01-2004

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.
  
Reply With Quote
Re: I'm STEAMed up !!!
Old
  (#23)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: I'm STEAMed up !!! - 03-01-2004

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


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: I'm STEAMed up !!!
Old
  (#24)
Nova
Council Member
 
Nova's Avatar
 
Status: Offline
Posts: 761
Join Date: Nov 2003
Location: Kiel, Germany
Default Re: I'm STEAMed up !!! - 03-01-2004

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 ...


nova

- Quote: <kodex> I swear. Beta testing increases your e-wang ! :p

- Remember, today is the tomorrow you worried about yesterday.


  
Reply With Quote
Re: I'm STEAMed up !!!
Old
  (#25)
Sargeant.Rock
Member
 
Sargeant.Rock's Avatar
 
Status: Offline
Posts: 1
Join Date: Feb 2004
Location: Topeka, KS
Default Re: I'm STEAMed up !!! - 27-02-2004

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

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.???


-----BEGIN GEEK CODE BLOCK-----
Version: 3.1
GAT/CM/CS/ED/IT/MU/P/TW d- s: a C+++
UL++++ P+ L+ E--- Y+ PGP t+ 5 X++ R*
tv b++ DI+++ D G e++ h--- r+++ y++**
------END GEEK CODE BLOCK------
  
Reply With Quote
Re: I'm STEAMed up !!!
Old
  (#26)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: I'm STEAMed up !!! - 27-02-2004

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 !



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: I'm STEAMed up !!!
Old
  (#27)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: I'm STEAMed up !!! - 27-02-2004

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


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: I'm STEAMed up !!!
Old
  (#28)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: I'm STEAMed up !!! - 27-02-2004

mh, perhaps it might be a smart idea to ask Will Day before even talking of stuff like that, what do you think ?



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote
Re: I'm STEAMed up !!!
Old
  (#29)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: I'm STEAMed up !!! - 27-02-2004

sure, its just that the idea is nice. Of course some aproval by Will Day would be handy


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: I'm STEAMed up !!!
Old
  (#30)
Onno Kreuzinger
aka: memed / Server Admin
 
Onno Kreuzinger's Avatar
 
Status: Offline
Posts: 705
Join Date: Jan 2004
Location: germany
Default Re: I'm STEAMed up !!! - 27-02-2004

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


sunny morning view from my balcony:

see our WIKI!
see our filebase!

Last edited by Onno Kreuzinger; 27-02-2004 at 18:59..
  
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump



Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com