Help - Search - Members - Calendar
Full Version: Lag
RCBot Forums > RCBot > Svencoop 5 Angelscript
Micke
Is it normal for the FPS to go down to 20 when there are just 10 bots? or is it just for me? sad.gif
RoboCop
Well, those RCBots coded in AngelScript aren't as superior nor as fast as RCBot Metamod version. We cannot seem to allow RCBot MM to work anymore as we need the Svengine Header files in order for RCBot MM to work in Sven v5. So it maybe best to spawn no more than 4 bots.
Cheeseh
I agree with Robocop. Metamod plugins (or typical plugins) would allow the execution of code at each frame, where as Angelscript only allows at specific time intervals, so it's more difficult to evenly load CPU. For now the only way is to reduce navrevs and visrevs value. see as_command rcbot.navrevs and as_command rcbot.visrevs cvars , reduce their current value
Micke
Running a dedicated server fixes the FPS and increases your ping instead which makes it playable. Unless you add too many bots and so your ping skyrocket.

What does navrevs and visrevs do?
madmax2
QUOTE(Micke @ Nov 20 2021, 06:37 PM) *

Running a dedicated server fixes the FPS and increases your ping instead which makes it playable. Unless you add too many bots and so your ping skyrocket.

What does navrevs and visrevs do?

Hi,

From the readme.md:

QUOTE
# Commands

visrevs (number of visible checks every 0.1 sec - reduce to increase CPU performance but bots' reaction time will be reduced)
navrevs (number of paths to check every 0.1 sec - reduce to increase CPU performance but bots' pathfinding time will be increased)
heal_npc (set to '0' to disable bots healing NPCs - default is '1')
revive_npc (set to '0' to disable bots reviving NPCs - default is '1')


For most maps I don't usually recommend more than 3 bots because of choke points in the maps... I don't think I've ever run more than 5 bots... I would think you would have problems with bots blocking choke points such as vents, which annoys me to no end... And if bots arrive at the same time at difficult jumps, they will miss those jumps a lot more... On the other hand , I don't play survival mode, so that might be why you want more bots? I appreciate the feedback smile.gif
Micke
Thank you madmax

it helped and made quite a difference.
been testing and trying to find a balance between the settings.


I was so sure for some reason that the bots could play pvp maps and fight players and bots.

EDIT: my friend helped me with the bot code so they can detect team 1 to 4 and fight against each others in teams
madmax2
QUOTE(Micke @ Nov 25 2021, 10:02 AM) *

Thank you madmax

it helped and made quite a difference.
been testing and trying to find a balance between the settings.
I was so sure for some reason that the bots could play pvp maps and fight players and bots.

EDIT: my friend helped me with the bot code so they can detect team 1 to 4 and fight against each others in teams

Cool cool.gif . So what pvp maps do you use rcbot for? Warforts? Would you or your friend be willing to share the code and/or files? Perhaps Cheeseh could use it?
Micke
we mainly used it to play on bm_sts for the bonus rounds

and we also made some other changes:

I made so I could put waypoint_auto on another player, and he helped me so two players can have autowaypoint on.

we fixed a crashing what would happen when a map replaces the yell for medic or grenade sprites, I made so it uses unique sprites just for rcbot.

He also made so the bots pick random names and random models from a txt file instead of using the profiles, so we can use huge model packs.

And finally he made so the bots can say random things.

heres the code/files: https://github.com/TomDobbelaere/RCBotSven5

oh and he said that "doing the if (true) was temporary lol"
madmax2
Nice work, tried them out on ctf_warforts smile.gif . Would you be interested in adding flag support for ctf? Might need a flag waypoint or maybe END waypoint could be used? Anyways, good job wink.gif .
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2024 Invision Power Services, Inc.