EQEmulator Forums

EQEmulator Forums (https://www.eqemulator.org/forums/index.php)
-   Support::Windows Servers (https://www.eqemulator.org/forums/forumdisplay.php?f=587)
-   -   Trying to setup a RoF testing server (https://www.eqemulator.org/forums/showthread.php?t=36256)

prickle 01-20-2013 05:30 PM

I think i found the sticking point. In the old system we had to modify the world/makefile and add -DBOTS to it. I was just looking that the current world/CMakeLists.txt file and found that it doesn't have the "EQEMU_ENABLE_BOTS" conditional. I've added it to mine and recompiled, but the object files don't seem to be getting compiled right. I think i'm missing something else...

still digging

Derision 01-20-2013 05:41 PM

Try this patch:
Code:

Index: world/CMakeLists.txt
===================================================================
--- world/CMakeLists.txt        (revision 2433)
+++ world/CMakeLists.txt        (working copy)
@@ -67,6 +67,10 @@

 ADD_DEFINITIONS(-DWORLD)

+IF(EQEMU_ENABLE_BOTS)
+      ADD_DEFINITIONS(-DBOTS)
+ENDIF(EQEMU_ENABLE_BOTS)
+
 TARGET_LINK_LIBRARIES(world Common ${PERL_LIBRARY} debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE})

 IF(MSVC)

i.e.

Add:
Code:

IF(EQEMU_ENABLE_BOTS)
      ADD_DEFINITIONS(-DBOTS)
ENDIF(EQEMU_ENABLE_BOTS)

After ADD_DEFINITIONS(-DWORLD) in the world/CMakeLists.txt file

prickle 01-20-2013 06:17 PM

yeah... I just finished doing that with world/CMakelists.txt and was just about to post up my diff patch file. You beat me to it though.

That patch + Rev 2433 has bots working like it was before the change to CMake now. :) "#rules values bots" now pulls up all of the Bots:*** settings and I don't need anything in quest_globals to spawn my bots :D

for the record here's the diff I made on that file:
Code:

--- world/CMakeLists.txt (Rev 2433)
+++ world/CMakeLists.txt (working copy)
@@ -67,6 +67,10 @@ ADD_EXECUTABLE(world ${world_sources} ${

 ADD_DEFINITIONS(-DWORLD)

+IF(EQEMU_ENABLE_BOTS)
+    ADD_DEFINITIONS(-DBOTS)
+ENDIF(EQEMU_ENABLE_BOTS)
+
 TARGET_LINK_LIBRARIES(world Common ${PERL_LIBRARY} debug ${MySQL_LIBRARY_DEBUG} optimized ${MySQL_LIBRARY_RELEASE})

 IF(MSVC)

Thanks again for all the help and hard work everyone :-D


All times are GMT -4. The time now is 09:36 AM.

Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.