added custom addon script support
This commit is contained in:
parent
be84a43b80
commit
dd0b41aa8f
|
|
@ -2233,7 +2233,7 @@ public class GlobalFuncs
|
||||||
+ mapfile
|
+ mapfile
|
||||||
+ "\" -script \" dofile('" + luafile + "'); "
|
+ "\" -script \" dofile('" + luafile + "'); "
|
||||||
+ ScriptFuncs.Generator.GetScriptFuncForType(ClientName, type)
|
+ ScriptFuncs.Generator.GetScriptFuncForType(ClientName, type)
|
||||||
+ (!string.IsNullOrWhiteSpace(GlobalPaths.AddonScriptPath) ? " dofile('" + GlobalPaths.AddonScriptPath + "');" : "")
|
+ ((!string.IsNullOrWhiteSpace(GlobalPaths.AddonScriptPath) && type != ScriptType.Client) ? " dofile('" + GlobalPaths.AddonScriptPath + "');" : "")
|
||||||
+ quote
|
+ quote
|
||||||
+ (no3d ? " -no3d" : "");
|
+ (no3d ? " -no3d" : "");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -120,7 +120,7 @@ public class GlobalPaths
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Empty Paths (automatically changed)
|
#region Empty Paths (automatically changed)
|
||||||
public static string AddonScriptPath = "";
|
public static string AddonScriptPath = "rbxasset://scripts/addon.lua";
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
|
||||||
|
|
@ -168,7 +168,7 @@ public class ScriptFuncs
|
||||||
execScriptMethod + "('rbxasset://../../content/scripts/" + GlobalPaths.ScriptName + ".lua')" + (shouldUseLoadFile ? "()" : "") :
|
execScriptMethod + "('rbxasset://../../content/scripts/" + GlobalPaths.ScriptName + ".lua')" + (shouldUseLoadFile ? "()" : "") :
|
||||||
execScriptMethod + "('rbxasset://scripts/" + GlobalPaths.ScriptName + ".lua')" + (shouldUseLoadFile ? "()" : "")),
|
execScriptMethod + "('rbxasset://scripts/" + GlobalPaths.ScriptName + ".lua')" + (shouldUseLoadFile ? "()" : "")),
|
||||||
GetScriptFuncForType(type),
|
GetScriptFuncForType(type),
|
||||||
!string.IsNullOrWhiteSpace(GlobalPaths.AddonScriptPath) ? "dofile('" + GlobalPaths.AddonScriptPath + "')" : ""
|
(!string.IsNullOrWhiteSpace(GlobalPaths.AddonScriptPath) && type != ScriptType.Client) ? "dofile('" + GlobalPaths.AddonScriptPath + "')" : ""
|
||||||
};
|
};
|
||||||
|
|
||||||
if (GlobalVars.SelectedClientInfo.SeperateFolders)
|
if (GlobalVars.SelectedClientInfo.SeperateFolders)
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,9 @@
|
||||||
|
1.3 Snapshot v22.8222.19775.1
|
||||||
|
Enhancements:
|
||||||
|
- Every client now has support for custom addon scripts (like NovetusCMD)!
|
||||||
|
- Install it to clients/[Client Name]/scripts/addon.lua.
|
||||||
|
- Client side scripts are unsupported due to security issues. Scripts will only execute serverside, or in Play Solo and/or Studio modes.
|
||||||
|
----------------------------------------------------------------------------
|
||||||
1.3 Snapshot v22.8220.23140.1
|
1.3 Snapshot v22.8220.23140.1
|
||||||
Enhancements:
|
Enhancements:
|
||||||
- Novetus will now switch to the Extended style by default under Wine due to the lack of WPF support.
|
- Novetus will now switch to the Extended style by default under Wine due to the lack of WPF support.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue