Blockland Forums > Modification Help

Loading a server-sided save onto a dedicated server

Pages: << < (4/5) > >>

Xalos:

I'm not quite clear on how this works, but if I were to deactivate the package, any package that affects the same functions gets deactivated too.   ...or something like that.

If something comes along after me and plops its package on top of mine, and then mine deactivates itself, I've deactivated them both.

In short:
Blockland > Someone else > Me > Someone else 2
I deactivate Me
"Me" > Someone else 2 are both taken off
Blockland > Someone else


Also, it didn't work anyway, the group still wasn't there. >:/

Greek2me:

Try this:
--- Code: ---$mapVers = "4.2b2";
package onJoin
{
function GameConnection::AutoAdminCheck(%client)
{
parent::AutoAdminCheck(%client);
serverDirectSaveFileLoad("Saves/Slate/Lava Trench Wars "@$mapVers@".bls", 3, "", 0, 1);
                deactivatePackage(onJoin);
        }
};
activatePackage(onJoin);
--- End code ---


Xalos:

You have to return AutoAdminCheck, I learned that the hard way, when everyone was glitching on my server and getting fake auto admin.

Headcrab Zombie:


--- Quote from: Xalos on October 08, 2010, 09:06:07 PM ---I'm not quite clear on how this works, but if I were to deactivate the package, any package that affects the same functions gets deactivated too.   ...or something like that.

--- End quote ---
I've never had this problem. In fact I made several packages of the same function just for the purpose of testing, and it worked fine.


--- Quote from: Xalos on October 09, 2010, 01:00:47 AM ---You have to return AutoAdminCheck, I learned that the hard way, when everyone was glitching on my server and getting fake auto admin.

--- End quote ---
I've made several add-ons parenting AutoAdminCheck and have never had this problem either.

Xalos:


--- Quote from: Headcrab Zombie on October 09, 2010, 01:16:22 AM ---I've never had this problem. In fact I made several packages of the same function just for the purpose of testing, and it worked fine.
I've made several add-ons parenting AutoAdminCheck and have never had this problem either.

--- End quote ---
I got it from a Torque guide, so it may or may not be accurate.

I happen to know this is a fact, because the fake auto admin glitch was happening until I add the seven characters "return " to the beginning of calling the parent.

Pages: << < (4/5) > >>

Go to full version