Author Topic: Gunner's CityRPG [Beta]  (Read 4599 times)

the build is fantastic, especially the lake

i'll spend alot of time here

Or, the op can become even smarter and learn some Torquescript to prevent that event from even working.
Isn't the banEvent thing already built into the cityrpg mod?
Code: [Select]
$CityRPG::bannedEvent["Player", "addHealth"] = true;

Aaaaaaand the server crashed.

RIP

Aaaaaaand the server crashed.

RIP
can't make out what happened, currently editing the gamemode to fix game-breaking bugs

We need a server like Furdle's GTA thing!

crikey i love getting hosted booted 92349 times

User StiXil (ID:46369) Crashed the server, quote "You'll regret not unbanning my friend"
User Starzy was banned from the server on basis of breaking rules and disobeying admins.

Warning for all future hosters alike that this a malicious user.

Maybe host should update himself on "how 2 stop servr crachers" ~ by Computermix


The gamemode will start to lag when around 1000 clients have data objects created; to prevent this append the bold lines to the OnClientEnterGame function in the package.cs and the getData function in saving.cs. Position is important.
Quote
   function gameConnection::onClientEnterGame(%client)
   {
      if(!isObject(CityRPGData.getData(%client.bl_id)))
         CityRPGData.addData(%client.bl_id);

      if(!isObject(CityRPGData.user[%client.bl_id]))
         CityRPGData.user[%client.bl_id] = CityRPGData.getData(%client.bl_id);

      
      parent::onClientEnterGame(%client);
      
      if(isObject(CityRPGMini))
         CityRPGMini.addMember(%client);
      else
         CityRPG_BuildMinigame();

      if(CityRPGData.getData(%client.bl_id).valueGender $= "ambig")
      {
         messageClient(%client, '', "\c6You have been set as a male by default. Type \c3/loveChange\c6 to be known as female.");
         CityRPGData.getData(%client.bl_id).valueGender = "Male";
      }

      %client.gender = CityRPGData.getData(%client.bl_id).valueGender;
      
      %client.doIPKTest();

      %client.schedule(1000,applyForcedBodyParts);
      %client.schedule(1000,applyForcedBodyColors);
   }

function Sassy::getData(%this, %ID)
{
   if(isObject(CityRPGData.user[%id]))
      return CityRPGData.user[%id];


   for(%a = 0; %a <= %this.dataCount; %a++)
   {
      if(%this.data[%a].ID == %ID)
      {
         return %this.data[%a];
      }
   }
   
   return false;
}
« Last Edit: December 11, 2014, 02:34:03 PM by Aoki² »

Is it true that the server was crashed by someone?

Is it true that the server was crashed by someone?
yes, but he was perma'd.

User StiXil (ID:46369) Crashed the server, quote "You'll regret not unbanning my friend"
StiXil was recently auto-banned for attempting to crash my server as well.

StiXil was recently auto-banned for attempting to crash my server as well.
It's pretty unfortunate that the community has had this enormous influx of Steam players - not all have malicious intent, but it just seems that "hacking" wasn't really a thing before most recently.

The gamemode will start to lag when around 1000 clients have data objects created; to prevent this append the bold lines to the OnClientEnterGame function in the package.cs and the getData function in saving.cs. Position is important.
Quote
   function gameConnection::onClientEnterGame(%client)
   {
      if(!isObject(CityRPGData.getData(%client.bl_id)))
         CityRPGData.addData(%client.bl_id);

      if(!isObject(CityRPGData.user[%client.bl_id]))
         CityRPGData.user[%client.bl_id] = CityRPGData.getData(%client.bl_id);

      
      parent::onClientEnterGame(%client);
      
      if(isObject(CityRPGMini))
         CityRPGMini.addMember(%client);
      else
         CityRPG_BuildMinigame();

      if(CityRPGData.getData(%client.bl_id).valueGender $= "ambig")
      {
         messageClient(%client, '', "\c6You have been set as a male by default. Type \c3/loveChange\c6 to be known as female.");
         CityRPGData.getData(%client.bl_id).valueGender = "Male";
      }

      %client.gender = CityRPGData.getData(%client.bl_id).valueGender;
      
      %client.doIPKTest();

      %client.schedule(1000,applyForcedBodyParts);
      %client.schedule(1000,applyForcedBodyColors);
   }

function Sassy::getData(%this, %ID)
{
   if(isObject(CityRPGData.user[%id]))
      return CityRPGData.user[%id];


   for(%a = 0; %a <= %this.dataCount; %a++)
   {
      if(%this.data[%a].ID == %ID)
      {
         return %this.data[%a];
      }
   }
   
   return false;
}
Thank you! This should prove to be pretty damn helpful. All the server really needs as of now is a good autosave