Jump to content

Rob Vary

Member
  • Posts

    39
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Rob Vary's Achievements

Contributor

Contributor (5/15)

  • Reacting Well
  • One Year In
  • Conversation Starter
  • Dedicated
  • First Post

Recent Badges

15

Reputation

  1. Rob Vary

    Player Stuck

    Additional screenshot
  2. Rob Vary

    Player Stuck

    I just fished a player out of a spot on the map and thought I should report it. I think it's just a terrain issue. Coordinates: -200.5419, 169.8414, -97.46424
  3. Yes, that's why I called it nonstandard versioning. It seemed simpler to request that your plugin handle this case rather than getting another developer to change their versioning.
  4. I've got two plugins (Metal Detector & Drug Business) that use nonstandard versioning (0.2 & 0.35 respectively), so they constantly come up as needing updates since this plugin is looking for 0.2.0 & 0.35.0 instead. Could you account for this nonstandard versioning?
  5. Rob Vary

    Drug Business

    Is there any way we could have the drugs have some sort of buff effect when consumed? This would likely require using food items as the base for the skinned drugs, but it would make things really cool for RP servers.
  6. Rob Vary

    Missed Config Checks

    On lines 1276, 1292, 1618, 1646, 1674, & 1696, values are still hardcoded instead of using configuration values.
  7. Rob Vary

    Farmer Default Config

    Is the Farmer section of the default config meant to be empty?
  8. Could we make it so there's an option to have the Electrician profession required to use the wire tool?
  9. For this error, we need to move dealer.KillMessage(); on line 601 down to at least line 610 after the conditional. If we don't, we're deleting the actual dealer npc and then trying to use it to find the index afterward. We won't be able to reference that object to find the index because that object was already deleted. Also, we should likely uncomment the SaveData(); on line 617 so that the dealer deletion is saved right away.
  10. If I'd like my dealers to only spawn at night, say between the hours of 20:00 and 6:00, and I set that in the config, they will never spawn. Consider a helper function to account for when config.basicSettings.hoursFrom > config.basicSettings.hoursTill. For instance, I believe this should cover it. private bool inTimeRange(float hour) { var start = config.basicSettings.hoursFrom; var end = config.basicSettings.hoursTill; if (start <= end) { return start <= hour && hour <= end; } else { return start <= hour || hour <= end; } }
  11. Rob Vary

    Dealer Announce

    Despite setting "Announce when the dealer arrive/leave" to false, it was still announcing when they leave. This is because of a forgotten config check on line 302.
  12. Rob Vary

    PitPack

    Are we supposed to be able to actually drink the water in the wells?
  13. Rob Vary

    Medic

    Just got a report that someone was wounded while sitting in the driver's seat of a minicopter, but they were still able to fly it.
  14. Can you access the inside and actually use the apartment rooms?
  15. Rob Vary

    NullReferenceException

    Getting a NullReferenceException with the new version. Fixed by deleting config then updating. Failed to initialize plugin 'ReskinnableHorses v1.1.0' (NullReferenceException: Object reference not set to an instance of an object) at Oxide.Plugins.ReskinnableHorses.Init () [0x00040] in <20acad24ca9343c6a51235461ae5fb49>:0 at Oxide.Plugins.ReskinnableHorses.DirectCallHook (System.String name, System.Object& ret, System.Object[] args) [0x000e2] in <20acad24ca9343c6a51235461ae5fb49>:0 at Oxide.Plugins.CSharpPlugin.InvokeMethod (Oxide.Core.Plugins.HookMethod method, System.Object[] args) [0x00079] in <60c318df79ed41688ea59335e48d61ad>:0 0b/s in, 0b/s out at Oxide.Core.Plugins.CSPlugin.OnCallHook (System.String name, System.Object[] args) [0x000d8] in <dfcb48ea05694263bbc08e62a39c274c>:0 A simple fix is to have some method(s) to check if the config is up-to-date and update it if it isn't. Example: private class Configuration { [JsonProperty("Future Config Options Here")] public bool TempBool = true; public string ToJson() => JsonConvert.SerializeObject(this); public Dictionary<string, object> ToDictionary() => JsonConvert.DeserializeObject<Dictionary<string, object>>(ToJson()); } protected override void LoadDefaultConfig() => config = new Configuration(); protected override void LoadConfig() { base.LoadConfig(); try { config = Config.ReadObject<Configuration>(); if (config == null) { throw new JsonException(); } if (!config.ToDictionary().Keys.SequenceEqual(Config.ToDictionary(x => x.Key, x => x.Value).Keys)) { Puts("Configuration appears to be outdated; updating and saving"); SaveConfig(); } } catch { Puts($"Configuration file {Name}.json is invalid; using defaults"); LoadDefaultConfig(); } } protected override void SaveConfig() { Puts($"Configuration changes saved to {Name}.json"); Config.WriteObject(config, true); }
1.6m

Downloads

Total number of downloads.

7.7k

Customers

Total customers served.

115.3k

Files Sold

Total number of files sold.

2.3m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.