IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> RCBot v1.443-beta Released!
RoboCop
post Jun 11 2017, 10:54 AM
Post #1


Member
**

Group: Moderator
Posts: 41
Joined: 17-December 15
From: Dundee, Scotland
Member No.: 2,435



This is a enhancement build for Sven Co-op v5.x

https://apg-clan.org/vbdownloads.php?do=dow...downloadid=1150

https://github.com/APGRoboCop/rcbot1

Known bugs:
>> Bots won't attack nor select better weapon when in combat for Sven Co-op v5.x
>> Opposing Force bots are immobilised and they tend to crash when they 'Hear sounds' from
CBot::HearSound(eSoundType, Vector, edict_s*) ()
pfnEmitSound(edict_s*, int, char const*, float, float, int, int) ()


Any help for testing or pointing out the dodgy src code from GitHub will be very much appreciated to assist the bots to behave better in Sven Co-op v5!

RCBot versions:
--------------


V 1.443_beta2
=---------=

added: support for Sven Co-op v5 for both Win32 and Linux builds
added: support for Opposing Force DeathMatch and CTF
added: waypoint console info for adding and delete a single waypoint
added: support for Metamod 1.19 or higher
added: support for new Sven Co-op v5 weapons like the M16, Deagle, SporeGun and ShockRoach
changed: RCBot compiled with HLSDK 2.3-p4 and Metamod SDK v1.21
changed: all builds optimised for Pentium 4 SSE2 or higher processers

V 1.3
=---------=

added: support for Battlegrounds mod.
added: support for half-life deathmatch.
added: megaHAL bot chatting [thanks pierre at racc bot (racc.bots-united.com)].
added: new command "rcbot config chat_percent" and "rcbot config chat_reply_percent" (See commands text file)
added: new command "rcbot config marine_auto_build". If set to 1, an infantry portal
will automatically be built nearby the command console when a bot joins the server.
added: program does not allow clients to join if min bots has not been reached (if bots still need to join).
added: new config command reserve_bot_slots (to configure above addition).
added: ability to kick bots from certain team in natural selection in bot menu.
added: ability to make a squad through squad menu.
added: ability to return bots in squad back to formation in squad menu.
added: more lift/elevator functionality.
added: bots in svencoop search for weapons they need if they dont have weapon to kill gargantuas etc.
added: improved Aliens in NS (they check out buildings under attack etc)
added: new commands "config balance_teams" "config
fixed: fixed NS Gorges not building much.
fixed: bots using all weapons in DMC/all known bugs in DMC fixed.
fixed: crash bug in natural selection attack code.
fixed: bots now treat "func_train" entities like doors/lifts.
fixed: bots killing themselves when waiting for commander orders in NS.
fixed: bots join team in NS one at a time incase of crashing.
fixed: wait_for_orders command not working in NS.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Cheeseh
post Jun 11 2017, 12:53 PM
Post #2


Admin
*****

Group: Admin
Posts: 2,881
Joined: 11-September 03
From: uk
Member No.: 1



QUOTE(RoboCop @ Jun 11 2017, 11:54 AM) *

This is a enhancement build for Sven Co-op v5.x

https://apg-clan.org/vbdownloads.php?do=dow...downloadid=1150

https://github.com/APGRoboCop/rcbot1

Known bugs:
>> Bots won't attack nor select better weapon when in combat for Sven Co-op v5.x
>> Opposing Force bots are immobilised and they tend to crash when they 'Hear sounds' from
CBot::HearSound(eSoundType, Vector, edict_s*) ()
pfnEmitSound(edict_s*, int, char const*, float, float, int, int) ()


Any help for testing or pointing out the dodgy src code from GitHub will be very much appreciated to assist the bots to behave better in Sven Co-op v5!

RCBot versions:
--------------
V 1.443_beta2
=---------=

added: support for Sven Co-op v5 for both Win32 and Linux builds
added: support for Opposing Force DeathMatch and CTF
added: waypoint console info for adding and delete a single waypoint
added: support for Metamod 1.19 or higher
added: support for new Sven Co-op v5 weapons like the M16, Deagle, SporeGun and ShockRoach
changed: RCBot compiled with HLSDK 2.3-p4 and Metamod SDK v1.21
changed: all builds optimised for Pentium 4 SSE2 or higher processers

V 1.3
=---------=

added: support for Battlegrounds mod.
added: support for half-life deathmatch.
added: megaHAL bot chatting [thanks pierre at racc bot (racc.bots-united.com)].
added: new command "rcbot config chat_percent" and "rcbot config chat_reply_percent" (See commands text file)
added: new command "rcbot config marine_auto_build". If set to 1, an infantry portal
will automatically be built nearby the command console when a bot joins the server.
added: program does not allow clients to join if min bots has not been reached (if bots still need to join).
added: new config command reserve_bot_slots (to configure above addition).
added: ability to kick bots from certain team in natural selection in bot menu.
added: ability to make a squad through squad menu.
added: ability to return bots in squad back to formation in squad menu.
added: more lift/elevator functionality.
added: bots in svencoop search for weapons they need if they dont have weapon to kill gargantuas etc.
added: improved Aliens in NS (they check out buildings under attack etc)
added: new commands "config balance_teams" "config
fixed: fixed NS Gorges not building much.
fixed: bots using all weapons in DMC/all known bugs in DMC fixed.
fixed: crash bug in natural selection attack code.
fixed: bots now treat "func_train" entities like doors/lifts.
fixed: bots killing themselves when waiting for commander orders in NS.
fixed: bots join team in NS one at a time incase of crashing.
fixed: wait_for_orders command not working in NS.

pinned 2 wink.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
w00tguy123
post Jun 12 2017, 12:18 AM
Post #3


Advanced Member
***

Group: Members
Posts: 63
Joined: 9-March 07
Member No.: 1,069



It's cool to see someone working on this, but I'm not sure the attack bugs can be fixed without help from the SC devs. Some headers are needed last I remember?

Even then, bots might break more often now that SC is a stand-alone game (they can edit the engine code). Metamod might also stop working in the future.

Anyway, nice job. It'd be great to see the bots working again.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
RoboCop
post Jun 12 2017, 07:36 AM
Post #4


Member
**

Group: Moderator
Posts: 41
Joined: 17-December 15
From: Dundee, Scotland
Member No.: 2,435



QUOTE(w00tguy123 @ Jun 12 2017, 01:18 AM) *

It's cool to see someone working on this, but I'm not sure the attack bugs can be fixed without help from the SC devs. Some headers are needed last I remember?

Even then, bots might break more often now that SC is a stand-alone game (they can edit the engine code). Metamod might also stop working in the future.

Anyway, nice job. It'd be great to see the bots working again.

Well when I joined Sven Discord channel and posted this release on their forums, its like they didn't show any interest on our latest RCBot. I wasn't sure of Sniper or any of the Sven devs are willing to help.

As for Metamod, I had to use the official Metamod-p-37 from Hullu but had to rename the /dlls/server.so as /dlls/hi_i386.so for Linux.

And I did recompile a Standalone version of RCBot just in case Metamod won't work for SC v5.

Saddly I'm no C++ professional, but at least I only know just enough to use MSVC++/VS2017 and Linux GCC - as well have it optimised for newer CPUs with SSE2.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
madmax2
post Jun 13 2017, 12:23 AM
Post #5


RCBot Guru
*****

Group: Waypointers
Posts: 680
Joined: 2-March 12
From: USA, WA state
Member No.: 2,162



When I get time I'll try your latest dll's, see what happens, thanks... smile.gif

I think the headers we need are cbase.h & basemonster.h, I believe one of these has to do with the enemy classes (friend or foe)?

Cheeseh also asked sniper for this last time he tried:

enum Ownership is missing
definition VAR_CUSTOM in entvartype_s is missing
undefined non pointer class CStringMap

I think Sniper may be the only one on the team that can help with this? If they are near another update (been about 1.5 months since last one), like within days, it's unlikely he will respond. This won't be a priority. The SC forums is not the best way to get in touch with sniper. Someone will need to ask him on discord (which I still don't have).

If another update is near, it might be best to try contacting him just after next update?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Solokiller
post Jun 13 2017, 08:06 AM
Post #6


Member
**

Group: Members
Posts: 12
Joined: 17-December 16
Member No.: 2,482



You've been asking for the headers for over a year, it doesn't matter if they're close to an update or not, it's not going to happen.
I'm just going to give you what you need:

CODE

enum Ownership
{
OWNERSHIP_AUTO = 0, //Automatic ownership
OWNERSHIP_YES, //Ownership
OWNERSHIP_NO //No ownership
};

typedef enum entvartype_s
{
VAR_CUSTOM = 8
} entvartype_t;


Reverse engineered from their Linux server library, with a little guess work involved, and the old Angelscript documentation that contains the Ownership enum.

I made the CStringMap class so i can give you that:
https://www.dropbox.com/s/kjt4mvmywcl5tnv/C...ingMap.rar?dl=0

I don't know if you can compile it without additional code from them though.

Don't expect any help from the team. They seem to want to drop support for anything Metamod related, and RCBot would require the constant releasing of their code. They don't want to release their stuff so it's unlikely that you'll ever get that.

Keep in mind that due to recent changes RCBot may crash, so try to update bare pointers to EHANDLE where needed to try to fix that.

What kind of problems are you experiencing with Metamod-P?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
madmax2
post Jun 13 2017, 06:41 PM
Post #7


RCBot Guru
*****

Group: Waypointers
Posts: 680
Joined: 2-March 12
From: USA, WA state
Member No.: 2,162



QUOTE
You've been asking for the headers for over a year, it doesn't matter if they're close to an update or not, it's not going to happen.


Yes, I hear ya... I was just hoping... I think Sniper may only release headers to Cheeseh, as he has done that for years. And not to just anyone that asks... I've only tried about twice this last year (He did do it once, but not the 2nd time)... but you could be correct...

I'll defer to Cheeseh & Robocop to comment on what you have provided...

Thanks Solo... smile.gif
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
RoboCop
post Jun 13 2017, 08:13 PM
Post #8


Member
**

Group: Moderator
Posts: 41
Joined: 17-December 15
From: Dundee, Scotland
Member No.: 2,435



Well from those mixed messages, I can't work out which solution to try out. Even though I'm trying to research on how to fix RCbot2 for TF2 along hosting my 16 vB site and running 60 servers for [APG].

Anyway, those src codes for RCBot1 were found as support for SC 4.5 and I had to add the new Sven v5 weapons for RCBot1. I have spotted out some modifications judging where Sven Viking, AdamR and Sniper have their src code comments provided which was added around 2010.

I've also reported to Hullu/Jussi Kivilinna from Metamod-P in Github on maybe allowing Sven Co-op v5 as he did devise Metamod-P.

https://github.com/jkivilin/metamod-p/issues/2

The Sven Co-op fans from the SC forums said that the Vanheer Metamod-P-39 lags more than the latest official version of MM-p-37 - and it does from where I experienced from my server. And the Jonnyboy version seems to have the similar issues as Vanheer, but I've not tried the JonnyBoy Metamod-P versionbefore.

As for the Standalone version of RCBot1 I had to ensure that detect server.so or server.dll from /dlls.

I may not been here for long but will Sniper only help on supporting RCBot1 more than just a tad - like making some kind of dividend? I know that Sven Co-op team are non-profit organisation and would appreciate maybe a recurring donation; seeing their game in Steam Store is Free To Play. But I don't know much on the history and relationship between RCBot and Sven.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Solokiller
post Jun 14 2017, 06:51 AM
Post #9


Member
**

Group: Members
Posts: 12
Joined: 17-December 16
Member No.: 2,482



Well i am Sam Vanheer, i made that branch. It's the only one that works properly with Sven Co-op, so the lag could be caused by their own changes. If there are problems with my build i can fix them as well.

The SC team really needs to revert the changes made to the engine interfaces, those are what requires the use of a custom build in the first place. Then the original Metamod-P builds should work with it, provided no other compatibility issues exist.

If you can convince them of that, great. I tried and they didn't go for it, and the general consensus is that they don't support third party mods. People have tried to get help to update AMX mod from the team and they haven't been that willing. If you can find a way to convince them (and Sniper specifically) then you should be able to get it done, but i wouldn't count on it.

EDIT: I didn't realize that you'd posted an issue on the Metamod-P repository, i've commented there: https://github.com/SamVanheer/Metamod-P-CMake/issues/4
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
RoboCop
post Jun 16 2017, 10:36 PM
Post #10


Member
**

Group: Moderator
Posts: 41
Joined: 17-December 15
From: Dundee, Scotland
Member No.: 2,435



QUOTE(Solokiller @ Jun 14 2017, 07:51 AM) *

Well i am Sam Vanheer, i made that branch. It's the only one that works properly with Sven Co-op, so the lag could be caused by their own changes. If there are problems with my build i can fix them as well.

The SC team really needs to revert the changes made to the engine interfaces, those are what requires the use of a custom build in the first place. Then the original Metamod-P builds should work with it, provided no other compatibility issues exist.

If you can convince them of that, great. I tried and they didn't go for it, and the general consensus is that they don't support third party mods. People have tried to get help to update AMX mod from the team and they haven't been that willing. If you can find a way to convince them (and Sniper specifically) then you should be able to get it done, but i wouldn't count on it.

EDIT: I didn't realize that you'd posted an issue on the Metamod-P repository, i've commented there: https://github.com/SamVanheer/Metamod-P-CMake/issues/4


Well my friend Hullu appears to accepted my request for allowing support for the official Metamod-P version to support Sven v5. But I will continue to investigate and keep our eyes open.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
RoboCop
post Jun 19 2017, 10:04 PM
Post #11


Member
**

Group: Moderator
Posts: 41
Joined: 17-December 15
From: Dundee, Scotland
Member No.: 2,435



Also I've been doing a stress test DMC with RCBot. I've loaded DMC with GDB as well running it on -debug and I found this crash from my Linux shell:-

CODE
Program received signal SIGSEGV, Segmentation fault.
0xf395d37b in CBotGAValues::get(int) ()
   from /home/desktop/steamcmd/hlds_l/rcbot/dlls/rcbot_mm.so
(gdb) bt
#0  0xf395d37b in CBotGAValues::get(int) ()
   from /home/desktop/steamcmd/hlds_l/rcbot/dlls/rcbot_mm.so
#1  0xf3983e7c in CPerceptron::setWeights(CBotGAValues*, int, int) ()
   from /home/desktop/steamcmd/hlds_l/rcbot/dlls/rcbot_mm.so
#2  0xf392240f in CBot::SpawnInit(int) ()
   from /home/desktop/steamcmd/hlds_l/rcbot/dlls/rcbot_mm.so
#3  0xf3924f56 in CBot::Think() ()
   from /home/desktop/steamcmd/hlds_l/rcbot/dlls/rcbot_mm.so
#4  0xf397bd0d in CBotGlobals::StartFrame() ()
   from /home/desktop/steamcmd/hlds_l/rcbot/dlls/rcbot_mm.so
#5  0xf397103f in StartFrame() ()
   from /home/desktop/steamcmd/hlds_l/rcbot/dlls/rcbot_mm.so
#6  0xf3d0b619 in ?? ()
   from /home/desktop/steamcmd/hlds_l/./dmc/addons/metamod/dlls/metamod.so
#7  0xf77f6c28 in SV_Physics () at ../engine/sv_phys.c:1985
#8  0xf77eeb26 in SV_Frame () at ../engine/sv_main.c:9236
#9  0xf77b6e92 in _Host_Frame (time=0.00706341583) at ../engine/host.c:1404
#10 0xf77b7252 in Host_Frame (time=0.00706341583, iState=1,
    stateInfo=0xffffbccc) at ../engine/host.c:1522
#11 0xf77db8dc in CEngine::Frame (this=0xf78726a0 <g_Engine>)
    at ../engine/sys_engine.cpp:245
#12 0xf77d8c43 in RunFrame (this=<optimised out>)
    at ../engine/sys_dll2.cpp:1235
---Type <return> to continue, or q <return> to quit---
#13 CDedicatedServerAPI::RunFrame (
    this=0xf786dd00 <__g_CDedicatedServerAPI_singleton>)
    at ../engine/sys_dll2.cpp:1226
#14 0x080498cc in main ()
(gdb)


I've not bothered with testing Sven just yet. Also here is the lest of Metamod addons I've used for my DMC server:-

CODE

] meta list
Currently running plugins:
[  1] Adminmod, v2.50.61-beta2 (MM), Jun 18 2017, by Alfred Reynolds & RoboCop <robocop@lycos.co.uk>, see www.adminmod.org
[  2] LogDaemon, v1.0.0.7, 2015/11/30, by Will Day <willday@metamod.org>, Tim Thelin, <Kndroc@hotmail.com>, Pieter de Zwart,
[  3] RCBot For Half-Life, v1.443_mm, Jun  4 2017, by Cheeseh (cheeseh@bots-united.com), see http://rcbot.bots-united.com
3 plugins

] meta version
Metamod v1.21.1-am  2013-09-26 (5:13)
by Will Day <willday@metamod.org>
   http://www.metamod.org/
compiled: Sep 26 2013, 17:09:41 -0500 (optimized)


Also does this rcbot crash logs mean anything or have any clues to you?
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Solokiller
post Jun 21 2017, 08:12 PM
Post #12


Member
**

Group: Members
Posts: 12
Joined: 17-December 16
Member No.: 2,482



I don't have much experience with RCBot, but based on what i'm seeing in the code it might be caused by m_personalGA->pick returning a CBotGAValues object that doesn't have enough values. This seems to be something called "learned data", which is stored in files that end with ".rld", so you could try removing those files and then checking if it still crashes.

Do keep in mind that using the headers from one game will make RCBot incompatible with any other game.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
RoboCop
post Jun 23 2017, 07:17 AM
Post #13


Member
**

Group: Moderator
Posts: 41
Joined: 17-December 15
From: Dundee, Scotland
Member No.: 2,435



QUOTE(Solokiller @ Jun 21 2017, 09:12 PM) *

I don't have much experience with RCBot, but based on what i'm seeing in the code it might be caused by m_personalGA->pick returning a CBotGAValues object that doesn't have enough values. This seems to be something called "learned data", which is stored in files that end with ".rld", so you could try removing those files and then checking if it still crashes.

Do keep in mind that using the headers from one game will make RCBot incompatible with any other game.

Well that's the thing. I shouldn't toy with headers that may corrupt the bots. Also I had a couple replies from Sven Co-op vBulletin site and they users claim the existing headers are fine, but need some adjustments to the timer frequency and some other scripts from this post:-

https://forums.svencoop.com/showthread.php/...ll=1#post527689
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Solokiller
post Jun 24 2017, 09:14 AM
Post #14


Member
**

Group: Members
Posts: 12
Joined: 17-December 16
Member No.: 2,482



QUOTE(RoboCop @ Jun 23 2017, 09:17 AM) *

Well that's the thing. I shouldn't toy with headers that may corrupt the bots. Also I had a couple replies from Sven Co-op vBulletin site and they users claim the existing headers are fine, but need some adjustments to the timer frequency and some other scripts from this post:-

https://forums.svencoop.com/showthread.php/...ll=1#post527689


You should try to get their modified source code then, preferably on something like Github so you can see which changes were made.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
RoboCop
post Jul 5 2017, 07:21 AM
Post #15


Member
**

Group: Moderator
Posts: 41
Joined: 17-December 15
From: Dundee, Scotland
Member No.: 2,435



Here is the crash log using the debug build from using RCBot in DMC:-

CODE
#0  0xf7da3418 in ?? () from /lib/i386-linux-gnu/libc.so.6
#1  0xf3ca6fa9 in MyTouch (pPlayer=0x816a608, this=0x971d6e8)
    at ../dmc/dlls/quake_items.cpp:877
#2  CItemAmmo::MyTouch (this=0x971d6e8, pPlayer=0x816a608)
    at ../dmc/dlls/quake_items.cpp:845
#3  0xf3ca6623 in CQuakeItem::ItemTouch (this=0x971d6e8, pOther=0x816a608)
    at ../dmc/dlls/quake_items.cpp:122
#4  0xf3d911ca in api_caller_void_args_2p(void const*, void const*) ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#5  0xf3d91b30 in main_hook_function_void(unsigned int, enum_api_t, unsigned int, void const*) ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#6  0xf3d9232c in mm_DispatchTouch(edict_s*, edict_s*) [clone .lto_priv.42]
    () from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#7  0xf78031a9 in SV_TouchLinks (ent=0xf46aeae4,
    node=0xf7c97a60 <sv_areanodes+928>) at ../engine/world.c:448
#8  0xf7803201 in SV_TouchLinks (ent=0xf46aeae4,
    node=0xf7c97a40 <sv_areanodes+896>) at ../engine/world.c:456
#9  0xf78031e3 in SV_TouchLinks (ent=0xf46aeae4,
    node=0xf7c979c0 <sv_areanodes+768>) at ../engine/world.c:458
#10 0xf78031e3 in SV_TouchLinks (ent=0xf46aeae4,
    node=0xf7c978c0 <sv_areanodes+512>) at ../engine/world.c:458
#11 0xf78031e3 in SV_TouchLinks (ent=0xf46aeae4,
---Type <return> to continue, or q <return> to quit---
    node=0xf7c976c0 <sv_areanodes>) at ../engine/world.c:458
#12 0xf78033a8 in SV_LinkEdict (ent=0xf46aeae4, touch_triggers=true)
    at ../engine/world.c:602
#13 0xf77feab6 in SV_RunCmd (ucmd=0xffffc8ac, random_seed=0)
    at ../engine/sv_user.c:1149
#14 0xf77d3c16 in PF_RunPlayerMove_I (fakeclient=0xf46aeae4,
    viewangles=0xf46aebb4, forwardmove=299.984314, sidemove=3.06950521,
    upmove=0, buttons=0, impulse=0 '\000', msec=14 '\016')
    at ../engine/pr_cmds.c:2545
#15 0xf38732b6 in CBot::RunPlayerMove (this=0xf391c950 <gBotGlobals+2108>)
    at bot.cpp:9002
#16 0xf38d1612 in CBotGlobals::StartFrame (this=0xf391c114 <gBotGlobals>)
    at globals.cpp:829
#17 0xf38bf4b4 in StartFrame () at dll.cpp:1188
#18 0xf3d91c18 in main_hook_function_void(unsigned int, enum_api_t, unsigned int, void const*) ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#19 0xf3d91fe2 in mm_StartFrame() [clone .lto_priv.63] ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#20 0xf77f9c28 in SV_Physics () at ../engine/sv_phys.c:1985
#21 0xf77f1b26 in SV_Frame () at ../engine/sv_main.c:9236
#22 0xf77b9e92 in _Host_Frame (time=0.00706320908) at ../engine/host.c:1404
#23 0xf77ba252 in Host_Frame (time=0.00706320908, iState=1,
---Type <return> to continue, or q <return> to quit---
    stateInfo=0xffffcf5c) at ../engine/host.c:1522
#24 0xf77de8dc in CEngine::Frame (this=0xf78756a0 <g_Engine>)
    at ../engine/sys_engine.cpp:245
#25 0xf77dbc43 in RunFrame (this=<optimised out>)
    at ../engine/sys_dll2.cpp:1235
#26 CDedicatedServerAPI::RunFrame (
    this=0xf7870d00 <__g_CDedicatedServerAPI_singleton>)
    at ../engine/sys_dll2.cpp:1226
#27 0x08049c65 in RunServer () at ../dedicated/sys_ded.cpp:766
#28 0x08049472 in main (argc=20, argv=0xffffd194)
    at ../dedicated/sys_ded.cpp:1146


I am kinda tied up with other things at home, hence the slow progress on fixing. I still continue investigating on RCBot on Sven, soon as I get the time to check the logs and how stable the bots are.

Also HL2 RULEZ guy found a solution for fixing the bots to attack in Sven:

https://forums.svencoop.com/showthread.php/...ll=1#post527751
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
Solokiller
post Jul 6 2017, 09:12 PM
Post #16


Member
**

Group: Members
Posts: 12
Joined: 17-December 16
Member No.: 2,482



I checked the code for DMC where it's failing: https://github.com/ValveSoftware/halflife/b..._items.cpp#L841

My guess is the player class is being provided by RCBot and it doesn't have that method in it.
I don't think it was designed to work with DMC, i'm not quite sure about that. If the bot works with vanilla HL then it should be fine, it would just need special handling for DMC.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
madmax2
post Jul 7 2017, 09:14 PM
Post #17


RCBot Guru
*****

Group: Waypointers
Posts: 680
Joined: 2-March 12
From: USA, WA state
Member No.: 2,162



DMC was a supported mod...

RCbot doe's work on DMC & HLDM, with the old rcbotbeta (v1.441b) on windows. They do attack and I just observed them using several weapons on my old Sierra/WON install. They could have specific dmc code, dmc is listed as mod_id=7 in the weapons.ini file. But I think rcbot just uses the HLDM (player vs player) code for dmc.

I'm not sure if I ever tried rcbot for HLDM or DMC on steam? How long does it take to crash?
When I get some time, I can test rcbot HLDM/DMC on steam/windows... but not a long stress test...
User is offlineProfile CardPM
Go to the top of the page
+Quote Post
RoboCop
post Jul 8 2017, 04:37 PM
Post #18


Member
**

Group: Moderator
Posts: 41
Joined: 17-December 15
From: Dundee, Scotland
Member No.: 2,435



QUOTE(madmax2 @ Jul 7 2017, 10:14 PM) *

DMC was a supported mod...

RCbot doe's work on DMC & HLDM, with the old rcbotbeta (v1.441b) on windows. They do attack and I just observed them using several weapons on my old Sierra/WON install. They could have specific dmc code, dmc is listed as mod_id=7 in the weapons.ini file. But I think rcbot just uses the HLDM (player vs player) code for dmc.

I'm not sure if I ever tried rcbot for HLDM or DMC on steam? How long does it take to crash?
When I get some time, I can test rcbot HLDM/DMC on steam/windows... but not a long stress test...

Well I'm sure if it's just DMC that is unstable with this latest beta build. I found various types of crashes coming from DMC that doesn't seem to include the quake_items.cpp:-

CODE
Program received signal SIGSEGV, Segmentation fault.
0xf38ea518 in WaypointFindPath (pPath=0xffffbba0, path_index=0xffffbb9c,
    waypoint_index=-1, team=-1) at waypoint.cpp:1086
1086             if ((*pPath)->index[*path_index] != -1)  // found a path?
(gdb) bt
#0  0xf38ea518 in WaypointFindPath (pPath=0xffffbba0, path_index=0xffffbb9c,
    waypoint_index=-1, team=-1) at waypoint.cpp:1086
#1  0xf38a6f57 in BotNavigate_FindPathFromTo (iFrom=-1, iTo=68, iTeam=-1)
    at bot_navigate.cpp:1728
#2  0xf38a72ab in BotNavigate_UpdateWaypoint (
    pBot=0xf392ab64 <gBotGlobals+59984>) at bot_navigate.cpp:1202
#3  0xf384885b in CBot::Think (this=0xf392ab64 <gBotGlobals+59984>)
    at bot.cpp:3542
#4  0xf38d1605 in CBotGlobals::StartFrame (this=0xf391c114 <gBotGlobals>)
    at globals.cpp:820
#5  0xf38bf4b4 in StartFrame () at dll.cpp:1188
#6  0xf3d91c18 in main_hook_function_void(unsigned int, enum_api_t, unsigned int, void const*) ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#7  0xf3d91fe2 in mm_StartFrame() [clone .lto_priv.63] ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#8  0xf77f9c28 in SV_Physics () at ../engine/sv_phys.c:1985
#9  0xf77f1b26 in SV_Frame () at ../engine/sv_main.c:9236
#10 0xf77b9e92 in _Host_Frame (time=0.00706122583) at ../engine/host.c:1404
#11 0xf77ba252 in Host_Frame (time=0.00706122583, iState=1,
    stateInfo=0xffffcf5c) at ../engine/host.c:1522
#12 0xf77de8dc in CEngine::Frame (this=0xf78756a0 <g_Engine>)
    at ../engine/sys_engine.cpp:245
---Type <return> to continue, or q <return> to quit---
#13 0xf77dbc43 in RunFrame (this=<optimised out>)
    at ../engine/sys_dll2.cpp:1235
#14 CDedicatedServerAPI::RunFrame (
    this=0xf7870d00 <__g_CDedicatedServerAPI_singleton>)
    at ../engine/sys_dll2.cpp:1226
#15 0x08049c65 in RunServer () at ../dedicated/sys_ded.cpp:766
#16 0x08049472 in main (argc=20, argv=0xffffd194)
    at ../dedicated/sys_ded.cpp:1146
(gdb)

-----------------------

Program received signal SIGSEGV, Segmentation fault.
0xf389cf44 in CBotGAValues::get (this=0x84083a0, iIndex=15) at bot_ga.cpp:108
108        return m_theValues[iIndex];
(gdb) bt
#0  0xf389cf44 in CBotGAValues::get (this=0x84083a0, iIndex=15)
    at bot_ga.cpp:108
#1  0xf38dd344 in CPerceptron::setWeights (this=0x939e658, vals=0x84083a0,
    iFrom=15, iNum=8) at perceptron.cpp:85
#2  0xf3842bbe in CBot::SpawnInit (this=0xf393421c <gBotGlobals+98568>,
    bInit=0) at bot.cpp:1680
#3  0xf38461e2 in CBot::Think (this=0xf393421c <gBotGlobals+98568>)
    at bot.cpp:2934
#4  0xf38d1605 in CBotGlobals::StartFrame (this=0xf391c114 <gBotGlobals>)
    at globals.cpp:820
#5  0xf38bf4b4 in StartFrame () at dll.cpp:1188
#6  0xf3d91c18 in main_hook_function_void(unsigned int, enum_api_t, unsigned int, void const*) ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#7  0xf3d91fe2 in mm_StartFrame() [clone .lto_priv.63] ()
   from /home/desktop/steamcmd/hlds/./dmc/addons/metamod/metamod.so
#8  0xf77f9c28 in SV_Physics () at ../engine/sv_phys.c:1985
#9  0xf77f1b26 in SV_Frame () at ../engine/sv_main.c:9236
#10 0xf77b9e92 in _Host_Frame (time=0.00779089006) at ../engine/host.c:1404
#11 0xf77ba252 in Host_Frame (time=0.00779089006, iState=1,
    stateInfo=0xffffcf5c) at ../engine/host.c:1522
#12 0xf77de8dc in CEngine::Frame (this=0xf78756a0 <g_Engine>)
    at ../engine/sys_engine.cpp:245
---Type <return> to continue, or q <return> to quit---
#13 0xf77dbc43 in RunFrame (this=<optimised out>)
    at ../engine/sys_dll2.cpp:1235
#14 CDedicatedServerAPI::RunFrame (
    this=0xf7870d00 <__g_CDedicatedServerAPI_singleton>)
    at ../engine/sys_dll2.cpp:1226
#15 0x08049c65 in RunServer () at ../dedicated/sys_ded.cpp:766
#16 0x08049472 in main (argc=20, argv=0xffffd194)
    at ../dedicated/sys_ded.cpp:1146
(gdb)


As you can see the crashes also occur from the waypoint.cpp and the bot_ga.cpp.

And for Sven I will need to do a debug test with that now and hope the players won't mind me using Debug mode that would impact the servers performance.
User is offlineProfile CardPM
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
3 User(s) are reading this topic (3 Guests and 0 Anonymous Users)
0 Members:

 



Lo-Fi Version Time is now: 23rd August 2017 - 07:30 PM