.:: 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 ::. > YappA > Offtopic
Offtopic Just anything. You have time to waste ? Prove it !!!

Reply
 
Thread Tools
Re: CZ released!!!
Old
  (#51)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: CZ released!!! - 31-03-2004

well i got a successfull compile now but the thing still dont work right yet:
Couldn't get GiveFnptrsToDll in .\czero\addons\metamod\metamod_cz.dll
HOST_ERROR: Couldn't get DLL API from .\czero\addons\metamod\metamod_cz.dll
  
Reply With Quote
Re: CZ released!!!
Old
  (#52)
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: CZ released!!! - 01-04-2004

Could you post your GiveFnptrsToDll() prototype ?



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: CZ released!!!
Old
  (#53)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: CZ released!!! - 01-04-2004

Code:
/***
*
* Copyright (c) 1996-2002, Valve LLC. All rights reserved.
* 
* This product contains software technology licensed from Id 
* Software, Inc. ("Id Technology"). Id Technology (c) 1996 Id Software, Inc. 
* All Rights Reserved.
*
* Use, distribution, and modification of this source code and/or resulting
* object code is restricted to non-commercial enhancements to products from
* Valve LLC. All other use, distribution, or modification is prohibited
* without written permission from Valve LLC.
*
****/
/*
===== h_export.cpp ========================================================
Entity classes exported by Halflife.
*/
#include "extdll.h"
#include "util.h"
#include "cbase.h"
// Holds engine functionality callbacks
enginefuncs_t g_engfuncs;
globalvars_t *gpGlobals;
#ifdef _WIN32
// Required DLL entry point
BOOL WINAPI DllMain(
HINSTANCE hinstDLL,
DWORD fdwReason,
LPVOID lpvReserved)
{
if	 (fdwReason == DLL_PROCESS_ATTACH)
	{
	}
else if (fdwReason == DLL_PROCESS_DETACH)
	{
	}
return TRUE;
}
void DLLEXPORT GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals )
{
memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t));
gpGlobals = pGlobals;
}
#else
extern "C" {
void GiveFnptrsToDll( enginefuncs_t* pengfuncsFromEngine, globalvars_t *pGlobals )
{
memcpy(&g_engfuncs, pengfuncsFromEngine, sizeof(enginefuncs_t));
gpGlobals = pGlobals;
}
}
#endif
...I think this is what you're asking for
  
Reply With Quote
Re: CZ released!!!
Old
  (#54)
stefanhendriks
RealBot Author
 
stefanhendriks's Avatar
 
Status: Offline
Posts: 3,088
Join Date: Nov 2003
Location: Netherlands
Default Re: CZ released!!! - 03-04-2004

guys, i thought we had a similiar problem when we tried to compile metamod and such on our server. Can't we just get that source bundled?


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

it is allready Pres :-)

http://server.bots-united.com/downloads


sunny morning view from my balcony:

see our WIKI!
see our filebase!
  
Reply With Quote
Re: CZ released!!!
Old
  (#56)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: CZ released!!! - 04-04-2004

so is this GiveFnptrsToDll() error; is it a sdk problem (still not current?) or is this a metamod code problem?
  
Reply With Quote
Re: CZ released!!!
Old
  (#57)
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: CZ released!!! - 04-04-2004

I think it's a compiler issue. Metamod is meant to compile with GCC on Linux, GCC + Cross-compiling (on Linux) for Windows, or MSVC natively for Windows. Other compilers may not behave correctly and GiveFnptrsToDll is not correctly exported.

How is "DLLEXPORT" defined in the code you're using ?



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: CZ released!!!
Old
  (#58)
Onno Kreuzinger
aka: memed / Server Admin
 
Onno Kreuzinger's Avatar
 
Status: Offline
Posts: 705
Join Date: Jan 2004
Location: germany
Default Re: CZ released!!! - 05-04-2004

Quote:
+ Cross-compiling (on Linux) for Windows
nope that is broken and not fixed, i read it after installing the cross compile stuff ...


sunny morning view from my balcony:

see our WIKI!
see our filebase!
  
Reply With Quote
Re: CZ released!!!
Old
  (#59)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: CZ released!!! - 05-04-2004

Code:
// Macro for function-exporting from DLL..
// from SDK dlls/cbase.h:
//! C functions for external declarations that call the appropriate C++ methods

// Windows uses "__declspec(dllexport)" to mark functions in the DLL that
// should be visible/callable externally.
//
// It also apparently requires WINAPI for GiveFnptrsToDll().
//
// See doc/notes_windows_coding for more information..

// Attributes to specify an "exported" function, visible from outside the
// DLL.
#undef DLLEXPORT
#ifdef _WIN32
		  #define DLLEXPORT __declspec(dllexport)
		  // WINAPI should be provided in the windows compiler headers.
		  // It's usually defined to something like "__stdcall".
#elif defined(linux)
		  #define DLLEXPORT /* */
		  #define WINAPI  /* */
#endif /* linux */
this?
__declspec(dllexport)
  
Reply With Quote
Re: CZ released!!!
Old
  (#60)
dead bwoy
Member
 
dead bwoy's Avatar
 
Status: Offline
Posts: 512
Join Date: Feb 2004
Location: STL MO USA
Default Re: CZ released!!! - 07-04-2004

so for those who are a$$ broke, like me, i found out that microsoft offers the same command line compiler that comes with msvc; FOR FREE!!! W00T!
check it out:
http://www.thefreecountry.com/compilers/cpp.shtml
here's hoping i can get it to work.

HELP:
ok, so im assuming that you use this command line compiler with dos (on windows). every command i try comes back with "not recognized as an internal or external command, operable program, or batch file." do i need to create a batch file to compile? what are the commands?

Last edited by dead bwoy; 07-04-2004 at 19:13..
  
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