diff --git a/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs b/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs index a7c674f..e950e03 100644 --- a/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs +++ b/Novetus/NovetusCore/StorageAndFunctions/GlobalFuncs.cs @@ -2233,7 +2233,7 @@ public class GlobalFuncs + mapfile + "\" -script \" dofile('" + luafile + "'); " + ScriptFuncs.Generator.GetScriptFuncForType(ClientName, type) - + (!string.IsNullOrWhiteSpace(GlobalPaths.AddonScriptPath) ? " dofile('" + GlobalPaths.AddonScriptPath + "');" : "") + + ((!string.IsNullOrWhiteSpace(GlobalPaths.AddonScriptPath) && type != ScriptType.Client) ? " dofile('" + GlobalPaths.AddonScriptPath + "');" : "") + quote + (no3d ? " -no3d" : ""); } diff --git a/Novetus/NovetusCore/StorageAndFunctions/GlobalPaths.cs b/Novetus/NovetusCore/StorageAndFunctions/GlobalPaths.cs index c66528c..39314a5 100644 --- a/Novetus/NovetusCore/StorageAndFunctions/GlobalPaths.cs +++ b/Novetus/NovetusCore/StorageAndFunctions/GlobalPaths.cs @@ -120,7 +120,7 @@ public class GlobalPaths #endregion #region Empty Paths (automatically changed) - public static string AddonScriptPath = ""; + public static string AddonScriptPath = "rbxasset://scripts/addon.lua"; #endregion } #endregion diff --git a/Novetus/NovetusCore/StorageAndFunctions/ScriptFuncs.cs b/Novetus/NovetusCore/StorageAndFunctions/ScriptFuncs.cs index 3c88477..0424bb0 100644 --- a/Novetus/NovetusCore/StorageAndFunctions/ScriptFuncs.cs +++ b/Novetus/NovetusCore/StorageAndFunctions/ScriptFuncs.cs @@ -168,7 +168,7 @@ public class ScriptFuncs execScriptMethod + "('rbxasset://../../content/scripts/" + GlobalPaths.ScriptName + ".lua')" + (shouldUseLoadFile ? "()" : "") : execScriptMethod + "('rbxasset://scripts/" + GlobalPaths.ScriptName + ".lua')" + (shouldUseLoadFile ? "()" : "")), GetScriptFuncForType(type), - !string.IsNullOrWhiteSpace(GlobalPaths.AddonScriptPath) ? "dofile('" + GlobalPaths.AddonScriptPath + "')" : "" + (!string.IsNullOrWhiteSpace(GlobalPaths.AddonScriptPath) && type != ScriptType.Client) ? "dofile('" + GlobalPaths.AddonScriptPath + "')" : "" }; if (GlobalVars.SelectedClientInfo.SeperateFolders) diff --git a/changelog.txt b/changelog.txt index 31cfbad..cbb1d8c 100644 --- a/changelog.txt +++ b/changelog.txt @@ -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 Enhancements: - Novetus will now switch to the Extended style by default under Wine due to the lack of WPF support.