That'd be great, because all other Oxide.Ext.* extensions I've tested along with dependent plugins have had no issues loading across multiple games.
Custom extension not loading after update
Discussion in 'Rust Development' started by Kolyma, Oct 21, 2017.
-
Wulf Community Admin
-
-
Wulf Community Admin
- No need to use // Reference, just use the using statement. Any // Reference will be ignored as it isn't needed, only using statements.
- Namespace should match filename or at least be prefixed with Oxide, so Oxide.Ext.AutoWipe, not AutoWipe.
- You don't need to specify IsGameExtension (or IsCoreExtension for that matter), as those should and are only used by Oxide's core stuff.
With the above changes made, confirmed to be working just fine.
-
Oops, I enjoy making mistakes and blaming Oxide.
-
Wulf Community Admin
-
-
Wulf Community Admin
-
this function in the Compilation.cs: Oxide/Compilation.cs at 6ffe28cd16a59c6a3ccbbb80e1ccc935d667fdd7 · OxideMod/Oxide · GitHub
handles referencing Extensions.
So for example. With my extension "Oxide.Ext.UI" the REGEX check on line 257 from the above link would return:
Full match 0-12 `Oxide.Ext.UI`
Group 1. 0-12 `Oxide.Ext.UI`
Group 2. 10-12 `UI`
On lines 261 and 262 it becomes apparent.
Code:var name = match.Groups[2].Value; if (extensionNames.Contains(name)) continue;
Code:extensionNames = Interface.Oxide.GetAllExtensions().Select(ext => ext.Name).ToArray();
Therefore, the suffix on the extension (in this case `UI`) needs to be the same set in the extensions Name property.
Not saying this is wrong, just saying that is what caused all my problems when trying to create my first extension and will hopefully help anyone with a similar issue.
To show it in an extension. These underlined in red need to be the exact same.