Mikihero / BetterCoinflips

SCP:SL plugin that adds a Risk-Reward mechanic to the in-game coin.
12 stars 3 forks source link

InvalidCastException when using the coin #5

Closed SHTLUOLEI closed 1 year ago

SHTLUOLEI commented 1 year ago

When I successfully generated dll and ran it, I found a random error. I don't know what the error is, because I am a plug-in beginner, so I would like to ask you to help me fix it. Thank you Screenshot 2023-01-12 012536

Mikihero commented 1 year ago

The plugin doesn't yet have a release because all I did was get the plugin to compile, once I test everything, and decide how I wanna deal with some problems etc. the plugin will be released. That said this should be a pretty easy fix, one of my casts is just incorrect so fixing it won't be too hard. Also even tho the plugin is not yet release for 6.0 I really appreciate the feedback. One last question: what system are using? (linux/windows) If you're using linux, Did you encounter any errors while loading the plugin? And where are you hosting your server? Is it a vps, a hosting or perhaps your own machine? All that info would be really helpful in identifying an old bug that no one really understood if it were to reappear.

Mikihero commented 1 year ago

Good news: I've found the bug Bad news: It's an EXILED issue with a cast in GrenadePickup or smth Good news: It might be fixed in beta21 which is supposed to release very soon PS: I'd still be very grateful if you answered my last few questions from the message above, thank you in advance.

SHTLUOLEI commented 1 year ago

I use the windows system of win11, the server is running on my own machine Screenshot 2023-01-12 151230 The console didn't report any errors when the plugin was loading, but when I used the coin, normally, random success didn't have a coin flip. But sometimes there will be a normal coin flip, and the console will report an error, which is the error we gave you before I am not good at English, these are translated into English by software, there may be some reading problems, sorry

Mikihero commented 1 year ago

As I said, the bug is caused by EXILED itself and will be fixed whenever beta21 is released (which shouldn't take too long from now)

SHTLUOLEI commented 1 year ago

Ok, thank you. The coin random plugin has taught me a lot as a beginner

Mikihero commented 1 year ago

@SHTLUOLEI check if the issue still persists on the latest update