![]() |
![]() |
Root |
![]()
Post
#1
|
Member ![]() ![]() Group: Members Posts: 24 Joined: 20-July 13 Member No.: 2,291 ![]() |
Hello all!
I've got a few problems with running bots on a dedicated server. Server is crashing when client connects after bots have been added, and same is happening when player disconnects. Previously server crashed when only one bot was added. I figured out a problem - that was wrong PlayerRunCmd offset (was 416, but after recent update it has changed to 417). There are no working bots for Day of Defeat: Source at this moment, and this bots looks really cool! Those are way better than many people ![]() I would also request a ZombieMod support, but its not really necessary. Here is a stack traces (with a dumps) when player connected and disconnected respectivitely. P.S. Keep up good work, Cheeseh! I really appeciate it alot! P.P.S. I am also a developer, but I am making SourceMod plugins for DoD:S. And your project is just awesome. GJ ![]() |
![]() ![]() |
darkranger |
![]()
Post
#2
|
Advanced Member ![]() ![]() ![]() Group: Members Posts: 51 Joined: 3-February 13 From: Austria Member No.: 2,254 ![]() |
EDIT 2: Seems like its happening on only 3xi_trainmap, on each other I dont have that problem (darkranger can you confirm?) NO, can not confirm that. had some crashes Before (2 weeks or so) with sourcemod. but after updating to latest version no crashes since there! but there are not much players on my Gungame TDM server, so i can not really 100% say that all is correct! LINK TO MY HL STATS (server is only up from 16CET to 06 CET!) i have reworked this little script that changes map if server is empty or last player leaves the server: CODE #include <sourcemod> new Handle:timer = INVALID_HANDLE new Handle:map_idle_time new status new Handle:g_nextmap public Plugin:myinfo = { name = "Auto change map for RC BOTS", author = "Mleczam, modified from Darkranger", description = "Change the map if last Player Leaves the Server ( for RC BOTS)", version = "1.5DODS", url = "http://dark.asmodis.at/" } public OnPluginStart() { map_idle_time = CreateConVar("sm_autochangemap_rc_bots_idlechange","5","When last Player leaves after this time server changes the map", FCVAR_PLUGIN) status = 0 } public OnMapStart() { timer = CreateTimer(240.0, sprawdz ,0, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE) status = 0 } public OnClientDisconnect(client) { timer = CreateTimer(5.0, sprawdz ,0, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE) status = 0 } public Action:sprawdz(Handle:Timer) { new ccount new NOfClients = GetClientCount(true) LogMessage("Autochangemap CHECK!") for (new i = 1; i <= NOfClients; i++) if (IsClientInGame(i) && !IsFakeClient(i)) { ccount++ } if( ccount > 0 || status) return Plugin_Handled KillTimer(timer) timer = INVALID_HANDLE timer = CreateTimer(GetConVarFloat(map_idle_time), sprawdz2) return Plugin_Handled } public Action:sprawdz2(Handle:Timer) { new ccount; new NOfClients = GetClientCount(true) KillTimer(timer) for (new i = 1; i <= NOfClients; i++) if (IsClientInGame(i) && !IsFakeClient(i)) { ccount++; } if( ccount > 0 ) { timer = INVALID_HANDLE; timer = CreateTimer(5.0, sprawdz ,0, TIMER_REPEAT|TIMER_FLAG_NO_MAPCHANGE) return Plugin_Handled } else { g_nextmap = FindConVar("sm_nextmap") decl String:snextmap[32]; GetConVarString(g_nextmap, snextmap, sizeof(snextmap)) ServerCommand("changelevel %s",snextmap) LogMessage("Autochangemap Change Map to %s", snextmap) status = 1 } return Plugin_Handled } |
Cheeseh |
![]()
Post
#3
|
![]() Admin ![]() ![]() ![]() ![]() ![]() Group: Admin Posts: 3,066 Joined: 11-September 03 From: uk Member No.: 1 ![]() |
I don't think rcbot2 will work well with sourcemod cos it has to hook the PlayerRunCmd function and so does sourcemod, so there are bound to be problems
|
![]() ![]() |
![]() |
Lo-Fi Version | Time is now: 20th June 2025 - 07:28 PM |