Author Topic: Add-on Forcer (Now transmits datablocks, please update!)  (Read 5958 times)

The name is already gone and wasn't really an issue.
You need to transmit all the new data like datablocks, ui name tables, events.

hm, you're right

also im working on a dedicated server version. might not get to it for a while because i'm a volunteer at a summer camp.
client
Code: [Select]
function executeAnAddon(%name)
{
commandToServer('execAddon',%name);
}
server
Code: [Select]
function serverCmdExecAddon(%client,%file)
{
//Host check

//Check if file exist

//Exec file
}

I'll force the force-addons addon, then force more addons

also don't allow superadmins to use this

that literally turns nearly any means of writing arbitrary files to the server into a potential script injection point - just write code to the file, then exec said file
it doesn't have to be an add-on

yeah, it could be useful, but no, don't do it

A few of you are acting really pretentious in this topic. Also yeah, best bet is to keep this Host only.

but I still need to restart to enable the add-on forcer!!!! :cookieMonster:

I'll force the force-addons addon, then force more addons
uhhhh
add one forcingception?

but I still need to restart to enable the add-on forcer!!!! :cookieMonster:
discoverfile("Add-ons/Script_ForceAddon.zip");
exec("Add-ons/Script_ForceAddon/client.cs");

I remember a private addon my friend let me have that did this in V20. Broke in the V21 update.

Will this allow me to reload a file after I do a quick model tweak to update?

Will this allow me to reload a file after I do a quick model tweak to update?
Yes. After you update the model, do transmitDatablocks();, it should update the datablocks to what they should look like. Sometimes it might not work, though.

Will this allow me to reload a file after I do a quick model tweak to update?
for updating models I believe you need to rename the model's filename otherwise blockland won't bother to reload it
correct me if I'm wrong though

Yes. After you update the model, do transmitDatablocks();, it should update the datablocks to what they should look like. Sometimes it might not work, though.
iirc it should transmit data blocks automatically, provided you are hosting a server

iirc it should transmit data blocks automatically, provided you are hosting a server
It doesn't.

Is it broken? When I put .zip at the end it says "unknown file extension".