Author Topic: Event_LoadSave V2 (4-30-12)  (Read 3418 times)

See this: http://forum.blockland.us/index.php?topic=191774.0

You can put either saves/bedroom/demo house.bls or bedroom/demo house.bls.
both work.

onActivate > Client > loadMapFromFile [Bedroom/demo house.bls] [ X ]
Would load the demo house with ownership.

NEW IN V2-
Doesn't use /reloadbricks.
Allows the option of putting saves/ into the file path.
Supports loading ownership, see: checkbox

Download
« Last Edit: May 01, 2012, 02:32:01 PM by Lugnut1206 »

:O
Useful, would it work with onminigame reset?

Is there can there  be a way to clear loaded bricks?

Changing maps?

Is there can there  be a way to clear loaded bricks?

Changing maps?
1 yes
2 probably
:O
Useful, would it work with onminigame reset?
no, it needs to find a client somewhere. I could make a fake one probably, that might work.
That's V2.

See if the client exists
If he doesn't exist check if the owners brick is admin
If it is make a temp admin client
Load
And delete.

I don't really see a use for this unless someone posts event_killBrick

4 words.


I.loving.Love.You.

I don't really see a use for this unless someone posts event_killBrick

And I don't see how killBrick was considered dangerous when named bricks can't be shared.


:D
We now need clear bricks

IT'S ADMIN ONLY because I'm a noob and it uses /reloadbricks to work.

Steam me, I can fix dat 4 u


ima fix it right now cuz im bored.
im also going to make it not use servercmdreloadbricks


Tell me how this works
Code: [Select]

function GameConnection::loadMapFromFile(%this, %map)
{
if(!isFile("saves/" @ %map))
return messageClient(%this,'',"\c3Can't find the map.");
if(!%this.isAdmin)
return messageClient(%this,'',"\c3You're not admin!");
messageall('MsgAdminForce', "\c3" @ %this.name SPC "\c6 is attempting to load a save file via events!" SPC "saves/" @ %map);
schedule(100, 0, serverDirectSaveFileLoad,"saves/" @ %map, 3, "", 1, 1); //name, colormethod, directory, dotrust, silent
}

registerOutputEvent(GameConnection, "loadMapFromFile", "string 200 200");
« Last Edit: April 29, 2012, 09:38:52 AM by Brian Smithers »

I used serverDirectSaveFileLoad but it kept giving me errors about loadfile_tick() and $loadingBricks_brickgroup not being found.

See if the client exists
If he doesn't exist check if the owners brick is admin
If it is make a temp admin clientp
Load
And delete.
I don't know how to do this.



No pix?
No  :cookie:!
i want to take my computer
and shove it down my star fish.