I dont know when I replace my old plugin file with the updated one, i get this message:
Code:(18:41:33) | [Oxide] 6:42 PM [Info] LastManStanding was compiled successfully in 142ms (18:41:33) | [Oxide] 6:42 PM [Info] Rolling back plugin to last good version: LastManStanding (18:41:33) | [Oxide] 6:42 PM [Info] Loaded plugin LastManStanding v1.1.1 by TheMechanical97 (18:41:33) | [Oxide] 6:42 PM [Info] [Event Manager] Registered event game: Last Man Standing (18:41:34) | [Oxide] 6:42 PM [Info] Unloaded plugin LastManStanding v1.1.1 by TheMechanical97 (18:41:34) | [Oxide] 6:42 PM [Info] Loaded plugin LastManStanding v1.1.1 by TheMechanical97 (18:41:34) | [Oxide] 6:42 PM [Info] [Event Manager] Registered event game: Last Man Standing
Plugin RollBack
Discussion in 'Rust Development' started by TheMechanical97, Jan 26, 2016.
-
Wulf Community Admin
Plugins roll back when there was an error with compiling. Check the compiler log for possible errors that weren't shown in the normal log.
-
But it says:
Code:(18:41:33) | [Oxide] 6:42 PM [Info] LastManStanding was compiled successfully in 142ms (18:41:33) | [Oxide] 6:42 PM [Info] Rolling back plugin to last good version: LastManStanding (18:41:33) | [Oxide] 6:42 PM [Info] Loaded plugin LastManStanding v1.1.1 by TheMechanical97
-
Wulf Community Admin
Check the log I mentioned above. -
Where is that log?
[DOUBLEPOST=1453830693][/DOUBLEPOST]Get This log:
Code:6:44 PM [Error] Unable to load LastManStanding. System.ArgumentException: An element with the same key already exists in the dictionary. at System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) [0x00000] in <filename unknown>:0 at Oxide.Plugins.LastManStanding..ctor () [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0
-
Wulf Community Admin
Did you delete any lang/localization files while the server was loaded? -
mm no, i just remove the plugin , data and lang and then put the new file in
-
Wulf Community Admin
So you did delete the lang, which is why you are getting that I believe. You'd need to restart the server now I believe. I thought it was fixed, which Oxide version are you on? -
Last version
-
Wulf Community Admin
Last version isn't a version, what is the actual version?
-
I have just updated Oxide
[DOUBLEPOST=1453833293][/DOUBLEPOST]Got this after reload
Code:(19:33:30) | [Oxide] 7:33 PM [Info] LastManStanding was compiled successfully in 2019ms (19:33:30) | [Oxide] 7:33 PM [Info] No previous version to rollback plugin: LastManStanding
[DOUBLEPOST=1453846295,1453831600][/DOUBLEPOST]Help?Code:7:33 PM [Info] LastManStanding was compiled successfully in 2019ms 7:33 PM [Error] Unable to load LastManStanding. System.ArgumentException: An element with the same key already exists in the dictionary. at System.Collections.Generic.Dictionary`2[System.String,System.String].Add (System.String key, System.String value) [0x00000] in <filename unknown>:0 at Oxide.Plugins.LastManStanding..ctor () [0x00000] in <filename unknown>:0 at (wrapper managed-to-native) System.Reflection.MonoCMethod:InternalInvoke (object,object[],System.Exception&) at System.Reflection.MonoCMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000] in <filename unknown>:0 7:33 PM [Info] No previous version to rollback plugin: LastManStanding
-
Wulf Community Admin
I passed it by @Nogrod, waiting for a reply. It should have been fixed as I mentioned. I'd avoid deleting data and lang while the server is running though. -
And how can i fix that? I reloaded and stopped it and now its not working at all. Norollback version
-
Wulf Community Admin
For now, likely a restart. -
I've done that already :S
-
I have had no issues unloading a plugin and removing data or Lang files whilst server is still running, and I do it frequently when I'm In the development process
-
the error is in your LastManStanding plugin lines 214 & 215
