Author Topic: /ApplyAV fix for Bot_Events  (Read 1085 times)

Would anyone mind either fixing up the /applyav command forBrian Smither's Bot Events , or getting bot_hole to work with Port's v20? EDIT: Just do $Server::MaxPlayerVehicles_Total, thanks Zeblote!

/ApplyAV has to be done twice to get the face decals, and it spams a stuffton of this:



« Last Edit: December 29, 2015, 06:40:15 PM by tber123 »

Use the new bot events or deal with those problems.
Nobody is going to fix an obsolete addon.
If you are missing certain events the old bot events had, then suggest those.

Use the new bot events or deal with those problems.
Nobody is going to fix an obsolete addon.
If you are missing certain events the old bot events had, then suggest those.

Only problem with that is that Bot_Hole doesn't work with Port's v20 client(Trying to place a single Hole Bot tells you that the server has reached a limit). What about just a fix for /ApplyAV or Bot_Hole that works with Port's v20?

Only problem with that is that Bot_Hole doesn't work with Port's v20 client(Trying to place a single Hole Bot tells you that the server has reached a limit). What about just a fix for /ApplyAV or Bot_Hole that works with Port's v20?
Use the new bot events or deal with those problems.
Nobody is going to fix an obsolete addon.
If you are missing certain events the old bot events had, then suggest those.

You basically asked the same question in your post as the OP..

You basically asked the same question in your post as the OP..

I quoted it and asked the new question(fixing just applyav) after his post, then I added that to the OP in case someone scrolls through and posts without looking at the other posts. Probably was a bad idea since barely anyone has posted so far.

OP is fixed.
« Last Edit: December 28, 2015, 11:36:25 AM by tber123 »

Problem is, the mod is so broken I don't think anyone would really take that much time fixing it or making a new one. What's wrong with the bot hole custom event?

Problem is, the mod is so broken I don't think anyone would really take that much time fixing it or making a new one. What's wrong with the bot hole custom event?



This is what happens when I try to use it on Port's v20.

I'm guessing not all mods are compatible with all versions. Go to your advanced options and change the max physics vehicles and bot vehicles.

Here is a quick fix:

Open the holes.cs in the Bot_Hole.zip
Search for "Server is limited to" and then delete this entire section:
Code: [Select]
  //Checks if server is at it's limit for bots, uses the same quota as the player vehicles
   if(isObject(mainHoleBotSet) && mainHoleBotSet.getCount() >= $Server::MaxPlayerVehicles_Total)
   {
      %client = %brickGroup.client;
      if( %client )
         %client.centerPrint("Server is limited to" SPC $Server::MaxPlayerVehicles_Total SPC "Bots",3);

      return 0;
   }

But beware.
If you do this, everyone will be able to spawn as many bots as they like.
This can lag up the server, if it even works at all.



An other way is to hardcode the amount you want.
Just change the script to something like:
Code: [Select]
  //Checks if server is at it's limit for bots, uses the same quota as the player vehicles
   if(isObject(mainHoleBotSet) && mainHoleBotSet.getCount() >= 30)
   {
      %client = %brickGroup.client;
      if( %client )
         %client.centerPrint("Server is limited to 30 Bots",3);

      return 0;
   }
« Last Edit: December 28, 2015, 08:35:20 PM by honytawk »

...Or just set $Server::MaxPlayerVehicles_Total to something?

...Or just set $Server::MaxPlayerVehicles_Total to something?
How would you go about that?
Because it isn't a normal variable.

Or is it really just as simple as:
Code: [Select]
$Server::MaxPlayerVehicles_Total = 30;And I am just dumb?

Or is it really just as simple as:
Code: [Select]
$Server::MaxPlayerVehicles_Total = 30;

Yes.

How would you go about that?
Because it isn't a normal variable.

Or is it really just as simple as:
Code: [Select]
$Server::MaxPlayerVehicles_Total = 30;And I am just dumb?

This actually worked so far. Spawned 10 Hole bots in a straight line and no error messages came up.



Can't find the Bot_Hole event(not Event_Bots) that makes the bot look like a player so far, face decals and all. /ApplyAV still has to be done twice(and I still have to delete the stuffton of "onactivate-->self" event spam slowly) if I want a lookalike bot with the same face.
« Last Edit: December 29, 2015, 06:54:57 PM by tber123 »

That's because you have the old bot events on, they use a different type of class