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

Go Back   .:: Bots United ::. > Cyborg Factory > HPB_bot
HPB_bot The trusty good ole mechs by botman HLDMTFCOpposing ForceDMCFront Line Force

Reply
 
Thread Tools
Re: Compiling dlls with MingWing
Old
  (#31)
Whistler
Whistler
 
Whistler's Avatar
 
Status: Offline
Posts: 1,490
Join Date: Feb 2004
Location: P. R. China
Default Re: Compiling dlls with MingWing - 21-03-2005

if you are using Dev-C++, you can change the dll filename in Project->Project Options->Build Options->Override output filename

the Template source code will build a playable HPB_bot.dll file (non-metamod version), but it won't support waypoints.

edit:
I've also made HPB bot 3.0 source code (full non-metamod version with waypoint support) buildable with MinGW/Dev-C++, so if you need it:
http://filebase.bots-united.com/inde...on=file&id=286

Last edited by Whistler; 21-03-2005 at 04:42..
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#32)
Beasty
Member
 
Status: Offline
Posts: 49
Join Date: Feb 2005
Default Re: Compiling dlls with MingWing - 27-03-2005

Sorry for this really late reply! I was on a short holiday. Anyway, I get this error when starting a game:

*****
Can't load 'E:\SIERRA\Half-Life/MY_MOD\cl_dlls\NoVGUI.dll'
*****

Is there a way to turn VGUI on for my mods?
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#33)
Whistler
Whistler
 
Whistler's Avatar
 
Status: Offline
Posts: 1,490
Join Date: Feb 2004
Location: P. R. China
Default Re: Compiling dlls with MingWing - 27-03-2005

copy the NoVGUI.dll (which is included with botman's SDK patch in cl_dll folder) to your Half-Life\valve\cl_dlls folder and it should be okay.

also you can't use the VGUI scoreboard with MinGW

Last edited by Whistler; 27-03-2005 at 12:10..
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#34)
Beasty
Member
 
Status: Offline
Posts: 49
Join Date: Feb 2005
Default Re: Compiling dlls with MingWing - 28-03-2005

Alright, thanks! I'm a bit curious about this VGUI stuff. Is the VGUI scoreboard the scoreboard when you hold tab in a multiplayer game? And why can't you use it in MinGW?
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#35)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 4643'60N 043'0W 0.187A
Default Re: Compiling dlls with MingWing - 28-03-2005

Yes, it's that one, and it can't compile on MinGW because the code uses Microsoft-specific parts (I suppose it's some MSVC assembly) that have not been "translated" to GCC style yet.



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: Compiling dlls with MingWing
Old
  (#36)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Compiling dlls with MingWing - 28-03-2005

The problem with using VGUI is that all you have is vgui.lib which was compiled with the MSVC compiler using MSVC C++ linkage. There isn't any other compiler or linker than can handle the Microsoft method of name mangling in C++, so you are stuck using only the source code that you can compile (which is the SDK).

If Valve had created a COFF version of the VGUI library, you would be able to link against it with other compilers/linkers, but they didn't, so you can't.

botman
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#37)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 4643'60N 043'0W 0.187A
Default Re: Compiling dlls with MingWing - 29-03-2005

wrapper DLL ?



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: Compiling dlls with MingWing
Old
  (#38)
Beasty
Member
 
Status: Offline
Posts: 49
Join Date: Feb 2005
Default Re: Compiling dlls with MingWing - 29-03-2005

Oh, alright! So does the scoreboard display a sort of list in the center when you hold down tab instead? And what is wrapper.dll?
  
Reply With Quote
Re: Compiling dlls with MingWing
Old
  (#39)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 4643'60N 043'0W 0.187A
Default Re: Compiling dlls with MingWing - 29-03-2005

yes, it's the old style scoreboard. The wrapper DLL was just an idea... a workaround, sort of. But it's meaningful to coders only



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: Compiling dlls with MingWing
Old
  (#40)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Compiling dlls with MingWing - 29-03-2005

The NoVGUI.dll is essentially a wrapper DLL (that only wraps one function necessary to initialize the client display). In order to do a wrapper DLL, you'd have to use MSVC to build it (since MSVC is the only one that can handle VGUI.lib) and export all the functions with standard C linkage (plain non-mangled names). This would destroy the C++ aspect of the VGUI library (since you don't have classes with standard C). Destroying the C++ aspect of the VGUI library would make it kind of pointless as a mod feature since it would be difficult to create new (custom) VGUI windows.

It might be easier just to create your own VGUI library and re-implement all the work that Valve put into the VGUI library (there are MANY Linux GUI libraries that you could start from that are open source), but this would take quite a lot of work and wasn't worth it in my opinion.

And it's worth even less now that you can download the MSVC command line environment (.net 2005 beta) for free. If you don't want to compile using Microsoft's tools, because you don't like Microsoft, just keep in mind who's operating system you are running the game on anyway.

botman
  
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 - 2018, Jelsoft Enterprises Ltd.
vBulletin Skin developed by: vBStyles.com