Hi,

You don't give enough useful infos i think... sorry but i can't help a lot.

Give a quick summary of what you wanna do and what you got/observed.
Explain the "initial condition", which version of the code, platform etc...
You can take a look to Fedora's mailing list guidelines as an example.

And the most important,
give a diff from a baseline release.

Code speaks for itself.

I guess you're using a Windows platform with visual studio.
I don't know any of the softwares but if the game compiles and starts (no
segfault),
that means all the files where compiled properly and linked.
So i think, the change of directory shouldn't be incriminated.

But i can't help more.

Regards.

On Thu, Feb 10, 2011 at 7:59 AM, Yasir I. Al-Dosary - zgzg2020™ <
[email protected]> wrote:

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