Poll

What to do about RTB?

Replace all copies with the original v4.05.
1 (4.3%)
Make sure that we replace copies with the same version. (i.e, Port's, mine, DaProg's, etc.)
6 (26.1%)
Same as above, BUT replace copies of the original version with mine, which removes all returntoblockland.com features. This might be good because the domain will be available soon, and who knows who will get it.
16 (69.6%)

Total Members Voted: 23

Author Topic: ATTENTION: Modders, fix your client add-ons.  (Read 15819 times)

There's a large number of client-sided mods that break the game mode system. When the game mode is changed on the server, clients are supposed to rejoin the server automatically. However, many client-side mods prevent this.

Make sure that your client-side add-ons don't contain code like this.

BAD:
Code: [Select]
package example
{
function disconnect()
{
parent::disconnect();
}

function disconnectedCleanup()
{
parent::disconnectedCleanup();
}
};

GOOD:
Code: [Select]
package example
{
function disconnect(%a)
{
return parent::disconnect(%a);
}

function disconnectedCleanup(%a)
{
return parent::disconnectedCleanup(%a);
}
};

Note how that variable is passed through to the parent.

This problem is preventing me from really working on an add-on of mine. If necessary I can fix the offending add-ons myself with my updater, but I'd prefer not to do that.

Let me know if you have trouble fixing the problem. Thanks for your help.

Edit!
Quote
Let's try this instead. If you find an add-on with a problem (even if it's not yours), fix the problem, send it to me, I'll verify that it's safe, and I'll put it on the updater.
Quote
Offending Add-Ons

  • Client_CRP
  • Client_Dueling
  • Client_EventFavorites
  • Client_MiniGolf
  • Client_Mute
  • Client_RealisticSpace
  • Client_TMBI
  • GameMode_ZAPT
  • Item_Keycard
  • Player_Mech
  • Script_AdminApplications
  • Script_AutoWrench
  • Script_Healthbar
  • Script_ItemRotate
  • Server_Permissions
  • System_BlocklandEssentials
  • System_ItemStorage
  • System_LoadAddOn
  • System_ReturnToBlockland
  • System_StaticMaps
  • Weapon_BusterGun
  • Weapon_LaserPointer
  • Weapon_Package_QuakeType
  • Weapon_PortalGun
  • Weapon_TF2BasicMelee
  • Weapon_TF2DemoPack
  • Weapon_TF2ScoutPack
  • Weapon_TF2* (the rest of them)
  • Weapon_WH40k_Imperium
  • Support_RaycastingWeapons.cs
« Last Edit: January 10, 2015, 03:46:23 PM by Greek2me »

I asked Ephi to fix RTB forever ago. He said he added it to his list

RTB might be one that I need to fix with the updater.

I wondered why I never auto rejoined servers that changed the game mode. Because I remember Badspot mentioning it.

You can add Client_CRP to that list.

It actually might be easier to get a list of the offending add-on CRCs and just have Badspot CRC ban them all.

Fixing all the addons that are broken would take years wouldn't it be easier to make a script that makes you rejoin when it changes?

It actually might be easier to get a list of the offending add-on CRCs and just have Badspot CRC ban them all.
b-but

zapt...

Let's try this instead. If you find an add-on with a problem, fix the problem, send it to me, I'll verify that it's safe, and I'll put it on the updater.

Well top priority i'd say is to fix the original RTB, and/or da prog's rtb.

Interesting, no wonder why I have been issues lately.

I always wonder why that I never reconnected.
So add-ons break it? I'll keep a look out on what add-ons parent disconnect and disconnectedCleanup.

List of add-ons that I found to not parent Disconnect properly, I'll update as I come across them.
Code: [Select]
Add-on -> Script [Package]

Client_RealisticSpace -> Move Inds.cs [MoveInds]
Client_RealisticSpace -> Fabricator GUI.cs [RSC_FabberGUI]
Script_AdminApplications -> client.cs [AdminApp_Client]
System_ItemStorage -> client.cs [ISAddOn_CLPackage]
Script_AutoWrench -> client.cs [autoEvents]

If you're wondering how I found out about this, I used a little quick code I came up with.
Code: [Select]
package trace {
function disconnect(%bool) {
trace(1);
%return = Parent::disconnect(%bool);
trace(0);
return %return;
}
};
activatePackage("trace");
« Last Edit: December 31, 2014, 05:07:49 AM by Pah1023 »

Ones I've found that aren't on the list.

System_BlocklandEssentials (not that many people have it)
Client_Dueling (not that many people have it anymore)
Client_Mute
Client_TMBI (big one)
Script_ItemRotate (my own mod, I'll fix this :P )
System_StaticMaps
Script_AdminApplications (Me and [GSF]Ghost's mod, I'll tell him to release a quick update fixing this)
Client_OrbShift (another one of Nexus' mods)
Client_CRP
All Support_RaycastingWeapons.cs files, which are in TF2 weapons + Item_KeyCard

Added master list. Fix whatever you can and submit them!