.:: 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
Error compiling METAMOD 1.17
Old
  (#1)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Error compiling METAMOD 1.17 - 30-12-2003

I set up the correct include paths, i applied the latest .h files from Alfed at valve. I also applied PMB's patch. I get over 100 of errors like this:

Code:
engine_api.cpp(386) : error C2440: '=' : cannot convert from 'void (__cdecl *)(void *,char *,...)' to 'void (__cdecl *)(struct _iobuf *,char *,...)'
        This conversion requires a reinterpret_cast, a C-style cast or function-style cast
I bet something simple is just wrong, but i can't find it. Perhaps anyone can help me here?

btw, if you where searching for the latest headers of the 'new but not yet released sdk', i have uploaded them to bots-united (/home/source)


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Error compiling METAMOD 1.17
Old
  (#2)
botmeister
Ex-Council Member
 
botmeister's Avatar
 
Status: Offline
Posts: 1,090
Join Date: Nov 2003
Location: Canada
Default Re: Error compiling METAMOD 1.17 - 30-12-2003

Looks like the functions headers are different.

The compiler is complaining that you are replacing void * with struct _iobuf * (or the otherway around).

Search for the function headers and make sure they all match up, or are typed cast correctly.


Maker of the (mEAn) Bot.Admin Manager

"In theory, there is no difference between theory and practice. But, in practice, there is." - Jan L.A. van de Snepscheut
  
Reply With Quote
Re: Error compiling METAMOD 1.17
Old
  (#3)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: Error compiling METAMOD 1.17 - 30-12-2003

well, i also figured the functions do not match, but i don't know what header files to get on. I just installed the sdk and such, i don't use different .h files then usual, thats why i am puzzled ( i am using the original header files already).


Author of RealBot, "Arrakis" and "Dune 2 - The Maker" | co-Founder of Bots-United | Fundynamic | Blog | E-Mail me
  
Reply With Quote
Re: Error compiling METAMOD 1.17
Old
  (#4)
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: Error compiling METAMOD 1.17 - 30-12-2003

yes... there is one change you forgot to apply. There is one of the functions in the enginefuncs which takes normally a "FILE *" as first parameter, you need to replace this by "void *". I can't remember which one though.



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
Reply


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

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