Oz-Lin / cs2-rockthevote

General purpose cs2 map voting plugin, made with love from scratch
11 stars 2 forks source link

Help #4

Open gha241 opened 1 week ago

gha241 commented 1 week ago

the plugin turns on and off after changing the map, what could be the problem? IMG_20241114_190322

gha241 commented 1 week ago

@Oz-Lin

Oz-Lin commented 1 week ago

https://github.com/Oz-Lin/cs2-rockthevote/blob/ozlin-dev/Core/ExtendRoundTimeManager.cs#L47C1-L64C10

If you are using the dev branch, you can see that it runs into the exception part. It's a temporary fix until someone can find a way to deal with that null reference exception issue. You can try without the exception checking code, but when typing !nominate, nothing shows up as in https://github.com/Oz-Lin/cs2-rockthevote/issues/2#issuecomment-2357586373