Jump to content

1 Screenshot

  • 1.3m
  • 11.7k
  • 44.96 kB

Recommended Comments



im having trouble changing the config file. no changes were saved.
i had to manually edit the plugin cs to add webhook stuff.
and now i cant add missing plugins - so pretty much the same issue as before, but this time i cant edit the plugin code to add missing plugins.

ive tried to delete the config; unload - make changes and load the plugin while server  is running; changing the config while server was off. all to no avail.
current plugin that are not recognized:

Edited by Richkan
Link to comment
Share on other sites

I don't know why the discord hook stopped working but it stopped sending them. I am thinking the plugin is broke or something. I have made a new webhook thinking the other was being rate limited but still nothing.

Link to comment
Share on other sites
1 hour ago, Marcell Pickard said:

I don't know why the discord hook stopped working but it stopped sending them. I am thinking the plugin is broke or something. I have made a new webhook thinking the other was being rate limited but still nothing.

 Can you give me your config

Edited by tofurahie
Link to comment
Share on other sites

I deleted the config file and reloaded... This is what I get now. The config file gets created but nothing happens to it but to one plugin and then no more updates.

image.png.996cd9700ae1f5eb680f6d8711518d93.png

UPDATE: There are few plugins that are causing the plugin to crash. I set them to ignore once I put in debugging info into the .cs file and figured out which ones are failing. I am now removing/replacing old plugins that are not being updated or are no longer exist.

Edited by IceMan
  • Confused 1
Link to comment
Share on other sites
3 hours ago, IceMan said:

I deleted the config file and reloaded... This is what I get now. The config file gets created but nothing happens to it but to one plugin and then no more updates.

image.png.996cd9700ae1f5eb680f6d8711518d93.png

UPDATE: There are few plugins that are causing the plugin to crash. I set them to ignore once I put in debugging info into the .cs file and figured out which ones are failing. I am now removing/replacing old plugins that are not being updated or are no longer exist.

Can you give me more info? i want to fix it

Link to comment
Share on other sites
17 minutes ago, tofurahie said:

Can you give me more info? i want to fix it

All of the below is right after starting the updater after deleting the config file. For example if I have ServerArmour installed. ServerArmour installs DiscordApi.cs, once the updater runs it detects and adds to the updater config. I then will get the NullReferenceException when it tries to find out more info. In the system log I get....

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.UpdateChecker.ParseVersion (System.String v) [0x00019] in <571981a1742a41d6973733c685f22ac0>:0 
  at Oxide.Plugins.UpdateChecker+<CheckNewVersion>c__Iterator2.MoveNext () [0x00388] in <571981a1742a41d6973733c685f22ac0>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <0b31faaf1c50461d95c83ac166a20393>:0 

This is the function that is causing the "NullReferenceException: Object reference not set to an instance of an object".

It is the same error with every plugin that produces the above error, and then the updater stops working all together.

 

I hope this helps.  If you need anything else... let me know. Also it only appears to happen on plug-ins that do not exist on any market. It also has problems with finding some plugins on CodeFling. I dont know why. But this week I can remove my fixed config and try to reproduce things.

Edited by IceMan
Link to comment
Share on other sites
3 minutes ago, IceMan said:

For example if I have ServerArmour installed. ServerArmour installs DiscordApi.cs, once the updater runs it detects and adds to the updater config. I then will get the NullReferenceException when it tries to find out more info. In the system log I get....

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.UpdateChecker.ParseVersion (System.String v) [0x00019] in <571981a1742a41d6973733c685f22ac0>:0 
  at Oxide.Plugins.UpdateChecker+<CheckNewVersion>c__Iterator2.MoveNext () [0x00388] in <571981a1742a41d6973733c685f22ac0>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <0b31faaf1c50461d95c83ac166a20393>:0 

This is the function that is causing the "NullReferenceException: Object reference not set to an instance of an object".

It is the same error with every plugin that produces the above error, and then the updater stops working all together.

 

I hope this helps.  If you need anything else... let me know.

what is version in this plugin ?

Link to comment
Share on other sites
4 hours ago, IceMan said:

All of the below is right after starting the updater after deleting the config file. For example if I have ServerArmour installed. ServerArmour installs DiscordApi.cs, once the updater runs it detects and adds to the updater config. I then will get the NullReferenceException when it tries to find out more info. In the system log I get....

NullReferenceException: Object reference not set to an instance of an object
  at Oxide.Plugins.UpdateChecker.ParseVersion (System.String v) [0x00019] in <571981a1742a41d6973733c685f22ac0>:0 
  at Oxide.Plugins.UpdateChecker+<CheckNewVersion>c__Iterator2.MoveNext () [0x00388] in <571981a1742a41d6973733c685f22ac0>:0 
  at UnityEngine.SetupCoroutine.InvokeMoveNext (System.Collections.IEnumerator enumerator, System.IntPtr returnValueAddress) [0x00026] in <0b31faaf1c50461d95c83ac166a20393>:0 

This is the function that is causing the "NullReferenceException: Object reference not set to an instance of an object".

It is the same error with every plugin that produces the above error, and then the updater stops working all together.

 

I hope this helps.  If you need anything else... let me know. Also it only appears to happen on plug-ins that do not exist on any market. It also has problems with finding some plugins on CodeFling. I dont know why. But this week I can remove my fixed config and try to reproduce things.

Try this again now it should work

Link to comment
Share on other sites

It is working as it should now. Much appreciate you looking into this.  I am so thankful for you writing this plugin and sharing with the community.

Link to comment
Share on other sites
7 minutes ago, Marcell Pickard said:

Your message identifier is incorrect, you do not need to copy the last part of the HOOK, you need to copy the last part of the URL message that UpdateChecker has already sent (you need to get the at least1 message from UpdateChecker for your Discord)

Here is a Guide

Edited by tofurahie
  • Like 1
Link to comment
Share on other sites

I love the way you're taking the plugin, it's much better than it was before this update.

There is an issue that I can't fix though and that is it's still saying there are plugins to update when there is not. There are plugins it  says it can't find even though I've added links to these ones in the config. I've not tried anything through the GUI because I thought doing it in the config would be sufficient, but I cannot resolve this at all. 

I've even checked the code of some plugins because it's saying there's a new version, for example 1.0.1 -> 1.0.2, and in the CS file there isn't a single mention of 1.0.1, and the config for Update Checker also says 1.0.2 which is correct.

Has anyone come across this, is it worth learning how to use the GUI to try that way too? It's only 6 plugins I have issue with (out of 100+), but it's pinging my Discord every 90 minutes with messages I cannot resolve. 

Link to comment
Share on other sites
2 minutes ago, ChristopherS said:

I love the way you're taking the plugin, it's much better than it was before this update.

There is an issue that I can't fix though and that is it's still saying there are plugins to update when there is not. There are plugins it  says it can't find even though I've added links to these ones in the config. I've not tried anything through the GUI because I thought doing it in the config would be sufficient, but I cannot resolve this at all. 

I've even checked the code of some plugins because it's saying there's a new version, for example 1.0.1 -> 1.0.2, and in the CS file there isn't a single mention of 1.0.1, and the config for Update Checker also says 1.0.2 which is correct.

Has anyone come across this, is it worth learning how to use the GUI to try that way too? It's only 6 plugins I have issue with (out of 100+), but it's pinging my Discord every 90 minutes with messages I cannot resolve. 

I know about url's search problem so i will fix it tomorrow, about GUI it's just for newbies (anyway use if you want)

  • Love 1
Link to comment
Share on other sites
17 minutes ago, tofurahie said:

I know about url's search problem so i will fix it tomorrow, about GUI it's just for newbies (anyway use if you want)

Ahh that's awesome to hear. I thought I was maybe doing something a little wrong. Again though, you've done amazing work with this update I love how it is now compared to where it was. It's been in my server kitbag of crucial plugins for a while now, this is an amazing change to it. 

Link to comment
Share on other sites
On 8/8/2023 at 2:31 PM, tofurahie said:

Your message identifier is incorrect, you do not need to copy the last part of the HOOK, you need to copy the last part of the URL message that UpdateChecker has already sent (you need to get the at least1 message from UpdateChecker for your Discord)

Here is a Guide

Still not understanding what I am doing wrong have tried it both of these ways,
 "Discord WebHook": "https://discord.com/channels/651455552517570586/1123789761535025192",
  "Discord message ID": "1123789761535025192",

  "Discord WebHook": "https://discord.com/api/webhooks/1138980789560819745/ZTNIh27Fa4zBw6qWfWrmqbo-KWNFklDEz-6CDOIdVS1e-Ud5ysieNDefL6xL2GykYB1y",
  "Discord message ID": "1123789761535025192",

Is it maybe because interval is set to 1440?

Link to comment
Share on other sites
4 hours ago, Marcell Pickard said:

Still not understanding what I am doing wrong have tried it both of these ways,
 "Discord WebHook": "https://discord.com/channels/651455552517570586/1123789761535025192",
  "Discord message ID": "1123789761535025192",

  "Discord WebHook": "https://discord.com/api/webhooks/1138980789560819745/ZTNIh27Fa4zBw6qWfWrmqbo-KWNFklDEz-6CDOIdVS1e-Ud5ysieNDefL6xL2GykYB1y",
  "Discord message ID": "1123789761535025192",

Is it maybe because interval is set to 1440?

From which message did you copy the message ID?

Link to comment
Share on other sites

I have tried it multiple ways trying to see what works, I have copied it from an older message posted by the plugin before. I have held SHIFT-Left-click to get the channel to open up in browser which it states in guide is the way you get channel ID and message ID. Not entirely sure if I am just really special or if this isn't working.

Screenshot 2023-08-10 132950.png

Link to comment
Share on other sites
3 hours ago, Marcell Pickard said:

I have tried it multiple ways trying to see what works, I have copied it from an older message posted by the plugin before. I have held SHIFT-Left-click to get the channel to open up in browser which it states in guide is the way you get channel ID and message ID. Not entirely sure if I am just really special or if this isn't working.

Screenshot 2023-08-10 132950.png

I see the topmost message was edited so it worked on it

Edited by tofurahie
  • Like 1
Link to comment
Share on other sites
4 hours ago, tofurahie said:

I see the topmost message was edited so it worked on it

Ahhh so it doesn't post a new message like before? It just edits a message. That makes more sense now, gotcha

  • Like 1
Link to comment
Share on other sites
42 minutes ago, WarKingz said:

This fine before updates now all messed up wrong links and incorrect link to the plugins why 

Do you have the wrong plugin links?

Link to comment
Share on other sites

I've installed Update Checker V4.0.3 and there is a link that doesn't seem to be right. It's Airfield Drops (AFDrops) on lone.design. I've double checked and i have the correct link (https://lone.design/product/airfield-drops/) but get "AFDrops - not found" in console. I'm also randomly getting "KeyNotFoundException: The given key was not present in the dictionary." in console after reloading Update Checker. Any idea what could be causing this?

Link to comment
Share on other sites
2 hours ago, Psyonide said:

I've installed Update Checker V4.0.3 and there is a link that doesn't seem to be right. It's Airfield Drops (AFDrops) on lone.design. I've double checked and i have the correct link (https://lone.design/product/airfield-drops/) but get "AFDrops - not found" in console. I'm also randomly getting "KeyNotFoundException: The given key was not present in the dictionary." in console after reloading Update Checker. Any idea what could be causing this?

I fixed it 

Edited by tofurahie
  • Like 1
Link to comment
Share on other sites

Thanks for this. I waited a long time to install it because I was afraid the setup would be cumbersome, but it auto-populated the list - very impressive!

It would be nice if it included a command to generate a Discord test message/update, so that we don't have to wait for an update to be found to know if webhook integration is working.

Might also be nice to have an option for it to edit the Discord message to include the last update check time and status even when no updates were found.

  • Like 1
  • Love 1
Link to comment
Share on other sites

since i update this last version, the plugin started to send me messages " all plugins are up to date" but i cant find in config to disable this notification in discord ? is this a glitch with me or a new thing that i can disable ? 

  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Like 12
  • Confused 3
  • Love 11

User Feedback

1.4m

Downloads

Total number of downloads.

6.8k

Customers

Total customers served.

101k

Files Sold

Total number of files sold.

2m

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.