wootguy / rcbot

Fork of Cheeseh's RCBot plugin
GNU General Public License v3.0
2 stars 0 forks source link

error: pasting ""\\y"" and ""Jump"" does not give a valid preprocessing token #12

Closed Glitch31415 closed 1 month ago

Glitch31415 commented 2 months ago
[  2%] Building CXX object CMakeFiles/rcbot.dir/src/bot_menu.cpp.o
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Jump"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:198:74: note: in expansion of macro ‘ICOLOR’
  198 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(1, ICOLOR("Jump", W_FL_JUMP),BotMenu_Func_Jump_Waypoint);
      |                                                                          ^~~~~~
compilation terminated due to -Wfatal-errors.
make[2]: *** [CMakeFiles/rcbot.dir/build.make:174: CMakeFiles/rcbot.dir/src/bot_menu.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/rcbot.dir/all] Error 2
wootguy commented 2 months ago

removing -Wfatal-errors from the flags in cmake should get you further. I'll try to get an HL co-op build working this week.

Glitch31415 commented 2 months ago

where do I remove that? I looked in the both the build.sh files but when cmake is called it doesn't have that flag


└─$ cat mmlib/build.sh
#!/bin/sh

mkdir build; cd build
cmake .. -DCMAKE_BUILD_TYPE=RELEASE
make
wootguy commented 2 months ago

https://github.com/wootguy/mmlib/blob/af189c359d6cacf6de6d312c76bbdf285e05024a/CMakeLists.txt#L38

Glitch31415 commented 2 months ago

[ 16%] Building CXX object CMakeFiles/rcbot.dir/src/bot_menu.cpp.o
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Jump"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:198:74: note: in expansion of macro ‘ICOLOR’
  198 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(1, ICOLOR("Jump", W_FL_JUMP),BotMenu_Func_Jump_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Jump"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:198:74: note: in expansion of macro ‘ICOLOR’
  198 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(1, ICOLOR("Jump", W_FL_JUMP),BotMenu_Func_Jump_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Crouch-Jump"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:199:74: note: in expansion of macro ‘ICOLOR’
  199 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(2, ICOLOR("Crouch-Jump", W_FL_CROUCHJUMP),BotMenu_Func_CrouchJump_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Crouch-Jump"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:199:74: note: in expansion of macro ‘ICOLOR’
  199 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(2, ICOLOR("Crouch-Jump", W_FL_CROUCHJUMP),BotMenu_Func_CrouchJump_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Crouch"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:200:74: note: in expansion of macro ‘ICOLOR’
  200 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(3, ICOLOR("Crouch", W_FL_CROUCH),BotMenu_Func_Crouch_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Crouch"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:200:74: note: in expansion of macro ‘ICOLOR’
  200 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(3, ICOLOR("Crouch", W_FL_CROUCH),BotMenu_Func_Crouch_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Ladder"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:201:74: note: in expansion of macro ‘ICOLOR’
  201 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(4, ICOLOR("Ladder", W_FL_LADDER), BotMenu_Func_Ladder_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Ladder"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:201:74: note: in expansion of macro ‘ICOLOR’
  201 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(4, ICOLOR("Ladder", W_FL_LADDER), BotMenu_Func_Ladder_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Stay Close To"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:202:74: note: in expansion of macro ‘ICOLOR’
  202 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(5, ICOLOR("Stay Close To", W_FL_STAY_NEAR), BotMenu_Func_StayClose_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Stay Close To"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:202:74: note: in expansion of macro ‘ICOLOR’
  202 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(5, ICOLOR("Stay Close To", W_FL_STAY_NEAR), BotMenu_Func_StayClose_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Teleport"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:203:74: note: in expansion of macro ‘ICOLOR’
  203 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(6, ICOLOR("Teleport", W_FL_TELEPORT), BotMenu_Func_Teleport_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Teleport"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:203:74: note: in expansion of macro ‘ICOLOR’
  203 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(6, ICOLOR("Teleport", W_FL_TELEPORT), BotMenu_Func_Teleport_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Fly/Grapple\n\n"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:204:74: note: in expansion of macro ‘ICOLOR’
  204 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(7, ICOLOR("Fly/Grapple\n\n", W_FL_FLY), BotMenu_Func_Fly_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Fly/Grapple\n\n"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:204:74: note: in expansion of macro ‘ICOLOR’
  204 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS].AddMenuItem(7, ICOLOR("Fly/Grapple\n\n", W_FL_FLY), BotMenu_Func_Fly_Waypoint);
      |                                                                          ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""End Of Level/Objective"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:217:83: note: in expansion of macro ‘ICOLOR’
  217 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(1, ICOLOR("End Of Level/Objective", W_FL_ENDLEVEL), BotMenu_Func_EndLevel_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""End Of Level/Objective"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:217:83: note: in expansion of macro ‘ICOLOR’
  217 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(1, ICOLOR("End Of Level/Objective", W_FL_ENDLEVEL), BotMenu_Func_EndLevel_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Opens Later"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:219:75: note: in expansion of macro ‘ICOLOR’
  219 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(2, ICOLOR("Opens Later", W_FL_OPENS_LATER), BotMenu_Func_OpensLater_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Opens Later"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:219:75: note: in expansion of macro ‘ICOLOR’
  219 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(2, ICOLOR("Opens Later", W_FL_OPENS_LATER), BotMenu_Func_OpensLater_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Pain/Death"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:224:83: note: in expansion of macro ‘ICOLOR’
  224 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(3, ICOLOR("Pain/Death", W_FL_PAIN), BotMenu_Func_Wall_Stick_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Pain/Death"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:224:83: note: in expansion of macro ‘ICOLOR’
  224 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(3, ICOLOR("Pain/Death", W_FL_PAIN), BotMenu_Func_Wall_Stick_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Wait For Lift"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:228:75: note: in expansion of macro ‘ICOLOR’
  228 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(4, ICOLOR("Wait For Lift", W_FL_WAIT_FOR_LIFT),BotMenu_Func_WaitLift_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Wait For Lift"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:228:75: note: in expansion of macro ‘ICOLOR’
  228 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(4, ICOLOR("Wait For Lift", W_FL_WAIT_FOR_LIFT),BotMenu_Func_WaitLift_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Check for lift"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:229:75: note: in expansion of macro ‘ICOLOR’
  229 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(5, ICOLOR("Check for lift", W_FL_CHECK_LIFT), BotMenu_CheckForLift_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Check for lift"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:229:75: note: in expansion of macro ‘ICOLOR’
  229 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(5, ICOLOR("Check for lift", W_FL_CHECK_LIFT), BotMenu_CheckForLift_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Lift Button"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:230:75: note: in expansion of macro ‘ICOLOR’
  230 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(6, ICOLOR("Lift Button", W_FL_LIFT), BotMenu_Func_Lift_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Lift Button"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:230:75: note: in expansion of macro ‘ICOLOR’
  230 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(6, ICOLOR("Lift Button", W_FL_LIFT), BotMenu_Func_Lift_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Human Tower\n"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:231:75: note: in expansion of macro ‘ICOLOR’
  231 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(7, ICOLOR("Human Tower\n", W_FL_HUMAN_TOWER), BotMenu_Func_HumanTower_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Human Tower\n"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:231:75: note: in expansion of macro ‘ICOLOR’
  231 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS2].AddMenuItem(7, ICOLOR("Human Tower\n", W_FL_HUMAN_TOWER), BotMenu_Func_HumanTower_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Tank"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:241:75: note: in expansion of macro ‘ICOLOR’
  241 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(1, ICOLOR("Tank", W_FL_TANK), BotMenu_Func_Tank_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Tank"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:241:75: note: in expansion of macro ‘ICOLOR’
  241 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(1, ICOLOR("Tank", W_FL_TANK), BotMenu_Func_Tank_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Throw Grenade"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:254:91: note: in expansion of macro ‘ICOLOR’
  254 |                         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(2, ICOLOR("Throw Grenade", W_FL_GREN_THROW), Bot_Menu_GrenThrow_Waypoint);
      |                                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Throw Grenade"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:254:91: note: in expansion of macro ‘ICOLOR’
  254 |                         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(2, ICOLOR("Throw Grenade", W_FL_GREN_THROW), Bot_Menu_GrenThrow_Waypoint);
      |                                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Pushable Point"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:258:83: note: in expansion of macro ‘ICOLOR’
  258 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(3, ICOLOR("Pushable Point", W_FL_PUSHABLE), BotMenu_Func_Pushable_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Pushable Point"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:258:83: note: in expansion of macro ‘ICOLOR’
  258 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(3, ICOLOR("Pushable Point", W_FL_PUSHABLE), BotMenu_Func_Pushable_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Scientist Point"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:259:83: note: in expansion of macro ‘ICOLOR’
  259 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(4, ICOLOR("Scientist Point", W_FL_SCIENTIST_POINT), BotMenu_Func_Sci_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Scientist Point"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:259:83: note: in expansion of macro ‘ICOLOR’
  259 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(4, ICOLOR("Scientist Point", W_FL_SCIENTIST_POINT), BotMenu_Func_Sci_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Barney Point"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:265:83: note: in expansion of macro ‘ICOLOR’
  265 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(5, ICOLOR("Barney Point", W_FL_BARNEY_POINT), BotMenu_Func_Barney_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Barney Point"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:265:83: note: in expansion of macro ‘ICOLOR’
  265 |                 gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(5, ICOLOR("Barney Point", W_FL_BARNEY_POINT), BotMenu_Func_Barney_Waypoint);
      |                                                                                   ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:93: error: pasting ""\\y"" and ""Un-Reachable\n\n"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                             ^~~~~
/home/glitch/rcbot/src/bot_menu.cpp:277:75: note: in expansion of macro ‘ICOLOR’
  277 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(7, ICOLOR("Un-Reachable\n\n", W_FL_UNREACHABLE), BotMenu_Func_Unreachable_Waypoint);
      |                                                                           ^~~~~~
/home/glitch/rcbot/src/bot_menu.cpp:47:113: error: pasting ":" and ""Un-Reachable\n\n"" does not give a valid preprocessing token
   47 | #define ICOLOR(name, flag) ((waypointIdx != -1 && (waypoints[waypointIdx].flags & flag)) ? ("\\y" ##name "\\w") : ##name)
      |                                                                                                                 ^
/home/glitch/rcbot/src/bot_menu.cpp:277:75: note: in expansion of macro ‘ICOLOR’
  277 |         gBotGlobals.m_Menus[BOT_MENU_WAYPOINT_GIVE_FLAGS3].AddMenuItem(7, ICOLOR("Un-Reachable\n\n", W_FL_UNREACHABLE), BotMenu_Func_Unreachable_Waypoint);
      |                                                                           ^~~~~~
make[2]: *** [CMakeFiles/rcbot.dir/build.make:174: CMakeFiles/rcbot.dir/src/bot_menu.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/rcbot.dir/all] Error 2
make: *** [Makefile:91: all] Error 2
wootguy commented 1 month ago

Should work now. You might need to replace mmlib/lib/hlcoop.so with your own version of sevenkewp.so (same lib, just renamed). Run the new build_hlcoop.sh script to build.

Glitch31415 commented 1 month ago

Should work now. You might need to replace mmlib/lib/hlcoop.so with your own version of sevenkewp.so (same lib, just renamed). Run the new build_hlcoop.sh script to build.

i just cloned the repo and there's a "sevenkewp.so" and a "hlcoop.lib" in that folder, which one are you talking about?

wootguy commented 1 month ago

oh, rename sevenkewp.so to hlcoop.so. hlcoop.lib is for windows.

Glitch31415 commented 1 month ago

alright

Glitch31415 commented 1 month ago

more uint16_t errors, gonna fix that for myself

Glitch31415 commented 1 month ago

it builds a normal rcbot.so file instead of rcbot_mm.so, can i use that through metamod?

wootguy commented 1 month ago

yeah this fork works only with metamod

Glitch31415 commented 1 month ago

alright, it builds and the bots load where do i find the configuration stuff for this? my bots still immediately attack players

wootguy commented 1 month ago

configs are in the release zip: https://github.com/wootguy/rcbot/releases/tag/sc525

if they still attack players after adding the configs then something may have gone wrong with the build.

wootguy commented 1 month ago

I messed something up, they attack me too

Glitch31415 commented 1 month ago

I get this at the end of the rcbot output when the map loads:

[RCBOT>] Error with config, unknown command : 
[RCBOT>] Error with config, unknown command : 
[RCBOT>] Error with config, unknown command : 
[RCBOT>] Error with config, unknown command : 
[RCBOT>] Team's learned data for team0.rld header mismatch
[RCBOT>] Team's learned data for team1.rld header mismatch
[RCBOT>] Team's learned data for team2.rld header mismatch
[RCBOT>] Team's learned data for team3.rld header mismatch
[RCBOT>] RCBOT BUILD Oct  7 2024-00:20:27
wootguy commented 1 month ago

rebuild to fix the player attacking. Also you'll need to copy the waypoints from rcbot/waypoints/svencoop to rcbot/waypoints/valve

Error with config

I get that too but they still work.