iltuocapo Posted May 23, 2017 Report Share Posted May 23, 2017 Hello guys How are playerbots supposed to be used? I mean, where do I find the syntax of the various needed commands? Thanks in advance Ciao U Link to comment Share on other sites More sharing options...
iltuocapo Posted May 23, 2017 Author Report Share Posted May 23, 2017 Wait a sec I suspect playerbot code is not included in my build. Inside /home/mangos/zero/src/server/linux/src/modules there is no "bot" subfolder idd. How should I proceed? I built my Zero from getmangos.sh, nothing different... Thanks in advance for help U Link to comment Share on other sites More sharing options...
Elowan Posted May 24, 2017 Report Share Posted May 24, 2017 what is playerbot AI? like simulating population or other players? or more like you can command a group of chars, like multiboxing?! Link to comment Share on other sites More sharing options...
Talendrys Posted May 24, 2017 Report Share Posted May 24, 2017 To build playerbot, you need to toggle the option while the screen is requestiong your build options. Tal' Link to comment Share on other sites More sharing options...
iltuocapo Posted May 24, 2017 Author Report Share Posted May 24, 2017 Holy cow, I didnt notice that. Thanks m8, I'll redo it all and be more careful :-) Do I also have to re-load the DBs? I don't think so because I saw some playerbot-related tables inside those I already imported Thanks ciao U Link to comment Share on other sites More sharing options...
antz Posted May 24, 2017 Report Share Posted May 24, 2017 nope, the db is fine Link to comment Share on other sites More sharing options...
iltuocapo Posted May 24, 2017 Author Report Share Posted May 24, 2017 3 hours ago, antz said: nope, the db is fine Aright, going for a rebuild! Let's see what happenZ Link to comment Share on other sites More sharing options...
iltuocapo Posted May 24, 2017 Author Report Share Posted May 24, 2017 I'm afraid it is NOT as discussed. I relaunched ./getmangos.sh, and the guy does NOT ask me wether I want to build bots. Nor wether I want to build SOAP btw. Is there maybe an old version of getmangos.sh on the server ?? Link to comment Share on other sites More sharing options...
Talendrys Posted May 24, 2017 Report Share Posted May 24, 2017 Well, it looks like because SOAP has been added for sure. For playerbots you may need to update the build line in the script though. Tal' Link to comment Share on other sites More sharing options...
iltuocapo Posted May 24, 2017 Author Report Share Posted May 24, 2017 Ok I got the story now. 1) SOAP option *is* included. It is not visible because (on my terminal) the list is too long and it goes beyond the "TTY FRAME" bottom edge. If you scroll down with the arrows lo! it comes up. 2) BOT *is not* included. BUT !!! I found an old post on this topic where Tal' was giving instructions on how to amend getmangos.sh to add this option. I applied those. All went well and I also found a bug in there In the new proposed cmake syntax the added -PLAYERBOTS= option should have just one "-" before it, not 2 Building as I write, I'll keep you posted Link to comment Share on other sites More sharing options...
iltuocapo Posted May 24, 2017 Author Report Share Posted May 24, 2017 Where do I find the list of commands to manage bots ? I tried to dig past forum messages but I found nothing Thanks! Ciao U Link to comment Share on other sites More sharing options...
Talendrys Posted May 24, 2017 Report Share Posted May 24, 2017 If you know how to do it, can you submit back this change ? Tal' Link to comment Share on other sites More sharing options...
iltuocapo Posted May 24, 2017 Author Report Share Posted May 24, 2017 I dont know how to, but if you teach me I will Link to comment Share on other sites More sharing options...
iltuocapo Posted May 24, 2017 Author Report Share Posted May 24, 2017 The whole thing recompiled properly. BUT 1) Unlike before, when I start the server the AHBOT seems not to be working anymore. I mean, it is built, but .ahbot status gives me 0 auctions up. Prior to this rebuild it created the supposed amount of auctions at server starti. 2) Oddly enough, if I type .help from my test char, I get a ".ahbot ..." item at the top of the list, and ANOTHER ".ahbot" (without the ellipses) at the end of the list, right after ".bot". 3) How do I manage (player)bots ?? Which commands do I send, how do I create them etcetc? Ciao U Link to comment Share on other sites More sharing options...
iltuocapo Posted May 26, 2017 Author Report Share Posted May 26, 2017 I managed to start PLAYERBOT I still have very little clue on how to "use" the bots in game But I have a major problem in the meanwhile: while the module is active, it rapidly "eats" all available RAM on the server. Eventually RAM usage reaches 100% and the process quits. Without "any" activity from the client. Any clue about this? Thanks U Link to comment Share on other sites More sharing options...
iltuocapo Posted May 27, 2017 Author Report Share Posted May 27, 2017 I made a simple test: disabled playerbot, launched ZERO, left instance up without any client connected. Memory used by mangosd upon startup let's say "X" Then I went to sleep 8-9 hours later, memory used by mangosd grew to approx "1.5 X" Is this normal? Does this happen until a ceiling limit, then it stabilises? Any experiences here? Thanks U Link to comment Share on other sites More sharing options...
Talendrys Posted May 27, 2017 Report Share Posted May 27, 2017 Hello, I don't have experience with playerbots but I see two potential reasons for this: - Live bots needs to be managed, on top of the creatures and the maps - There could be memory leak into the playerbots module. So, at a first sight, I would say this could be logic. Tal' Link to comment Share on other sites More sharing options...
Talendrys Posted May 27, 2017 Report Share Posted May 27, 2017 About the configuration file as a service, this is the "Initialize" method of playerbots: if (!config.SetSource(SYSCONFDIR"aiplayerbot.conf")) { sLog.outString("AI Playerbot is Disabled. Unable to open configuration file aiplayerbot.conf"); return false; } Therefore, it's not made for such start out of the installation directory and this is sad. AHBot is and can be triggered via the option -a at startup. Tal' Link to comment Share on other sites More sharing options...
iltuocapo Posted May 27, 2017 Author Report Share Posted May 27, 2017 1 hour ago, Talendrys said: Hello, I don't have experience with playerbots but I see two potential reasons for this: - Live bots needs to be managed, on top of the creatures and the maps - There could be memory leak into the playerbots module. So, at a first sight, I would say this could be logic. Tal' Makes sense. On 1gb ram, 50 Bots eventually flow over and kill the process. But this may be because their physiological need "à régime" may be 1.1gb. I'll try to - allocate less bots - allocate more ram And see if they stabilize eventually. If not, it's a leak Link to comment Share on other sites More sharing options...
iltuocapo Posted May 27, 2017 Author Report Share Posted May 27, 2017 47 minutes ago, Talendrys said: About the configuration file as a service, this is the "Initialize" method of playerbots: if (!config.SetSource(SYSCONFDIR"aiplayerbot.conf")) { sLog.outString("AI Playerbot is Disabled. Unable to open configuration file aiplayerbot.conf"); return false; } Therefore, it's not made for such start out of the installation directory and this is sad. AHBot is and can be triggered via the option -a at startup. Tal' Got it. But this should mean that a workaround might be copy-paste the contents of aiplayerbots.Conf at the end of abbot.conf. Then, playerbots would enable / disable depending on the setting inside the file. I'll try, worst case it won't work Link to comment Share on other sites More sharing options...
Talendrys Posted May 27, 2017 Report Share Posted May 27, 2017 Nope, putting values at the end won't work. But knowing the value of SYSCONFDIR while running the processes as a service could help you locating it. Also adding extra options to add the playerbots conf. file as a parameter is also a good idea. Tal' Link to comment Share on other sites More sharing options...
iltuocapo Posted May 27, 2017 Author Report Share Posted May 27, 2017 How do I "know the value of SYSCONFDIR"? 3 hours ago, Talendrys said: Nope, putting values at the end won't work. But knowing the value of SYSCONFDIR while running the processes as a service could help you locating it. Also adding extra options to add the playerbots conf. file as a parameter is also a good idea. Tal' Link to comment Share on other sites More sharing options...
Talendrys Posted May 27, 2017 Report Share Posted May 27, 2017 I don't know Tal' Link to comment Share on other sites More sharing options...
iltuocapo Posted May 27, 2017 Author Report Share Posted May 27, 2017 11 minutes ago, Talendrys said: I don't know Tal' LOL We'll find out Link to comment Share on other sites More sharing options...
Talendrys Posted May 28, 2017 Report Share Posted May 28, 2017 Hello, I see in another topic that you finally found out thanks to a line I've forgotten to add in the service registration For your information, I've added Player Bots support into the getmangos.sh installer: https://github.com/mangoszero/server/pull/20 Tal' Link to comment Share on other sites More sharing options...
Question
iltuocapo
Hello guys
How are playerbots supposed to be used? I mean, where do I find the syntax of the various needed commands?
Thanks in advance
Ciao
U
Link to comment
Share on other sites
24 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.