Hi,
I have moved some of the files around. I moved the botlib folder from quake3 
solution to game solution.
Then, using (__declspec(dllexport) / __declspec(dllimport) ) exported/imported 
the function GetBotLibAPI( ) so that the exe can still access it.
The compilation phase went without any errors.
However, when I run the Game, the hud keeps showing "bot library used before 
being setup" message in red, and I cannot add any bots.

I ran two Visual Studios at the same time, and ran two Game instances at the 
same time, one with my changes, and one original version, so that I can see 
where things become different. Both instances seem identical up to int 
SV_BotLibSetup( void ) function. When I do a "Quick Watch" on the variable 
botlib_export for both instances:
The original version contains cleanly ordered addresses, and next to those 
addresses are functions, for example:
BotLibSetup       : 0x00485190 Export_BotLibSetup
BotLibShutdown : 0x004852f0  Export_BotLibShutdown

However, my edited version:
BotLibSetup       : 0x00485190
BotLibShutdown : 0x004852f0 

Nothing is shown on the right side of the addresses. I am guessing the 
addresses 
are yet to be populated with function pointers.

1- Which of my two changes made this error?
a. Moving botlib from quake3 to game.
b. exporting/importing the function GetBotLibAPI(), which returns a 
export_botlib variable.

2- In both cases, any suggestions on how to fix this problem while leaving 
botlib on the game side?

Thanks,
Yasir

_______________________________________________
ioquake3 mailing list
[email protected]
http://lists.ioquake.org/listinfo.cgi/ioquake3-ioquake.org
By sending this message I agree to love ioquake3 and libsdl.

Reply via email to