change svn 144 by linux |
change svn 144 by linux |
bir3yk |
May 20 2010, 10:26 AM
Post
#1
|
RCBot Fan Group: Members Posts: 107 Joined: 4-June 09 Member No.: 1,566 |
Cheeseh hi. Stop not given as frequently update svn Let me give you correct the code for linux and you change the svn. And every time I handed it right Let's look at 144 svn. I will do today to change, and you add these changes into svn.
|
Cheeseh |
May 20 2010, 11:13 PM
Post
#2
|
Admin Group: Admin Posts: 3,056 Joined: 11-September 03 From: uk Member No.: 1 |
Cheeseh hi. Stop not given as frequently update svn Let me give you correct the code for linux and you change the svn. And every time I handed it right Let's look at 144 svn. I will do today to change, and you add these changes into svn. Sorry bir3yk but I must commit changes as a backup, you;d need to know that developers have to update the SVN when they are finished coding a section as this will help other developers to program with the updated code. You should only release a linux version when I release a windows version. unfortunately the SVN is actually delayed, it's actually at 146 now. I will update the linux code myself when I have the time, as long as you have the linux SDK it should not be affected by checking out rcbot2, you only need to check out the utils/rcbot2 folder |
bir3yk |
May 21 2010, 08:20 AM
Post
#3
|
RCBot Fan Group: Members Posts: 107 Joined: 4-June 09 Member No.: 1,566 |
Cheeseh hi. look at any changes in source is compiled into linux. Corrected in svn;)
svn 146 CODE bot.cpp ======================================================== #include "eiface.h" #ifdef __linux__ #include "shareddefs.h" //bir3yk #endif #include "usercmd.h" #include "iservernetworkable.h" // may come in handy #ifdef __linux__ #include "shake.h" //bir3yk #endif #ifndef __linux__ inline Vector CBot :: getOrigin () #else Vector CBot :: getOrigin () //bir3yk #endif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_genclass.h ======================================================== #ifndef __linux__ vector<T> ::iterator it; #else typename vector<T> ::iterator it; #endif for ( it = array.begin(); it != array.end(); ++ it ) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_profiling.h ========================================================== #ifndef __linux__ inline __int64 getOverall () #else inline long long getOverall () #endif { return m_overall; } private: #ifndef __linux__ unsigned __int64 start_cycle; unsigned __int64 end_cycle; unsigned __int64 m_average; unsigned __int64 m_min; unsigned __int64 m_max; unsigned __int64 m_last; unsigned __int64 m_overall; #else unsigned long long start_cycle; unsigned long long end_cycle; unsigned long long m_average; unsigned long long m_min; unsigned long long m_max; unsigned long long m_last; unsigned long long m_overall; #endif const char *m_szFunction; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot.h ======================================================== #include "iplayerinfo.h" #ifdef __linux__ #include "shake.h" //bir3yk #endif #include "IEngineTrace.h" // for traceline functions #include "eiface.h" #ifdef __linux__ #include "shareddefs.h" //bir3yk #endif #include "igameevents.h" #ifndef __linux__ inline Vector getOrigin (); #else Vector getOrigin (); //bir3yk #endif /* * init() ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_configfile.h ======================================================== #include "iplayerinfo.h" #ifdef __linux__ #include "shake.h" //bir3yk #endif #include "IEngineTrace.h" // for traceline functions +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_globals.cpp ========================================================= //#define tolower(a) (((a)>='A')&&((a)<='Z'))?('a'+((a)-'A')):(a) #include "bot.h" #define tolower(a) (((a)>='A')&&((a)<='Z'))?('a'+((a)-'A')):(a) //bir3yk szFolderName[folderNameSize] = 0; #ifndef __linux__ mkdir(szFolderName); #else mkdir(szFolderName, O_CREAT); //bir3yk #endif +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_main.cpp ========================================================= #include "tier2/tier2.h" #ifdef __linux__ #include "shake.h" //bir3yk #endif #include "IEffects.h" #ifdef __linux__ #define LOAD_INTERFACE(var,type,version) if ( (var = (type*)interfaceFactory(version,NULL)) == NULL ) { Warning("[RCBOT] Cannot open interface "#version " "#type " "#var "\n"); return false; } else { Msg("[RCBOT] Found interface "#version " "#type " "#var "\n"); } #define LOAD_GAME_SERVER_INTERFACE(var,type,version) if ( (var = (type*)gameServerFactory(version,NULL)) == NULL ) { Warning("[RCBOT] Cannot open game server interface "#version " "#type " "#var "\n"); return false; } else { Msg("[RCBOT] Found interface "#version " "#type " "#var "\n"); } #else #define LOAD_INTERFACE(var,type,version) if ( (var = (type*)interfaceFactory(version,NULL)) == NULL ) { Warning("[RCBOT] Cannot open interface "## #version ##" "## #type ##" "## #var ##"\n"); return false; } else { Msg("[RCBOT] Found interface "## #version ##" "## #type ##" "## #var ## "\n"); } #define LOAD_GAME_SERVER_INTERFACE(var,type,version) if ( (var = (type*)gameServerFactory(version,NULL)) == NULL ) { Warning("[RCBOT] Cannot open game server interface "## #version ##" "## #type ##" "## #var ##"\n"); return false; } else { Msg("[RCBOT] Found interface "## #version ##" "## #type ##" "## #var ## "\n"); } #endif #ifndef __linux__ LOAD_INTERFACE(debugoverlay,IVDebugOverlay,VDEBUG_OVERLAY_INTERFACE_VERSION); #endif +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_const.h ========================================================= #ifdef __linux__ #define BOT_VER "TF2 0.56 Beta linux 146 (BUILD " __DATE__ "-" __TIME__ ")" //bir3yk #else #define BOT_VER "TF2 0.56 Beta (BUILD " ## __DATE__ ## "-" ## __TIME__ ## ")" #endif +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_profiling.cpp ========================================================== // if windows USE THE QUERYPERFORMANCECOUNTER #ifdef _WIN32 inline unsigned __int64 RDTSC(void) { _asm _emit 0x0F _asm _emit 0x31 } #define WIN32_LEAN_AND_MEAN #include <windows.h> #else // #define rdtsc _emit 0x0f _asm _emit 0x31 // inline unsigned long long rdtsc(void) // __asm__ volatile (".byte 0x0f, 0x31" : "=A" (void)); // { // } extern __inline__ unsigned long long int rdtsc() { unsigned long long int x; __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x)); return x; } #endif #ifdef _WIN32 QueryPerformanceCounter(reinterpret_cast<LARGE_INTEGER*>(&start_cycle)); #else start_cycle = rdtsc(); #endif #ifdef _WIN32 unsigned __int64 end_cycle; QueryPerformanceCounter(reinterpret_cast<LARGE_INTEGER*>(&end_cycle)); #else unsigned long long end_cycle; end_cycle = rdtsc(); #endif +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_strings.cpp ========================================================= ///#include <vector> // (RCBOT2 String Interning Pool) #include "bot.h" #include "bot_strings.h" #include <vector> //bir3yk +++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_usercmd.cpp ========================================================= #include "igameevents.h" #ifdef __linux__ #include "shareddefs.h" //bir3yk #endif #include "usercmd.h" ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_waypoint.cpp ========================================================== #include "bot_wpt_dist.h" #include <vector> //bir3yk using namespace std; //bir3yk ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_waypoint_locations.cpp ========================================================== #include "bot_globals.h" #include <vector> //bir3yk using namespace std; //bir3yk ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_navigator.h ========================================================== void init (); void belief ( Vector origin, Vector facing, float fBelief, float fStrength, BotBelief iType ){}; //bir3yk ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_mods.h ========================================================== #ifdef __linux__ setup("tf","orangebox",MOD_TF2,BOTTYPE_TF2); //bir3yk #else setup("tf","source dedicated server",MOD_TF2,BOTTYPE_TF2); #endif ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ bot_script.cpp ============================================================= if ( line[len-1] == '\n' ) line[--len] = 0; #ifdef __linux__ if ( line[len-1] == '\r' ) line[--len] = 0; #endif if ( len < 1 ) continue; ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ |
Lo-Fi Version | Time is now: 19th April 2024 - 07:56 PM |