Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mod Checker Not Working #20

Closed
saro8802 opened this issue Oct 18, 2022 · 25 comments
Closed

Mod Checker Not Working #20

saro8802 opened this issue Oct 18, 2022 · 25 comments

Comments

@saro8802
Copy link

Hi, ty for the bot. Atm im using the bot on a dedicated server (windows based) the mod checker is not working we got a mod update but not check came up, i waited 2 circle of setted time, in my case was every 30 minutes. Afetr 1 hour i setted at 5 minutes but anything. Let me know how to help. Maybe if you can put a command to activate this restart could be more easy to find the problem. ty

@egebilecen
Copy link
Owner

Hey there. There should be a pzbot.log file in the same folder as bot's. Please send it as an attachment. Also, if the mod that is updated either unlisted or private, bot won't detect it. Other than that, I need to check the log file. Also be sure bot has access / permissions in the log channel.

@saro8802
Copy link
Author

saro8802 commented Oct 18, 2022

Hi, confirm all mod are public, and bot has access to log channel. I upload the log.
pzbot.log

@egebilecen
Copy link
Owner

Ah, okay. So issue with your server is, it isn't located in default server folder which is C:\Users\<username>\Zomboid\Server. Because of this, bot can't find the workshop mod list used in your server. Can you send me your server.bat file? I have an open issue to check alternative server folder by parsing it's content. I will try to implement it in few days. I want to check if it's the same case for you as well.

@saro8802
Copy link
Author

saro8802 commented Oct 18, 2022

Yeah, i did move my install folder in (D:) i upload the bat. ty
server bat.zip

@egebilecen
Copy link
Owner

Thank you. I will fix this issue today or tomorrow!

@saro8802
Copy link
Author

Nice, tyvmuch! ;)

@egebilecen
Copy link
Owner

Hey! v1.2.5-beta, I have added the future for supporting updated server locations. Can you check it out and confirm it is working?

@saro8802
Copy link
Author

Sure, testing now.

@saro8802
Copy link
Author

same,
Exception: System.IO.DirectoryNotFoundException
Message: Impossibile trovare una parte del percorso 'C:\Users\ChiaFarm\Zomboid\Server'.
Stack trace: in System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
in System.IO.FileSystemEnumerableIterator1.CommonInit() in System.IO.FileSystemEnumerableIterator1..ctor(String path, String originalUserPath, String searchPattern, SearchOption searchOption, SearchResultHandler1 resultHandler, Boolean checkHost) in System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption) in ServerUtility.GetServerConfigIniFilePath() in C:\Documents\Programming\C#\PZServerDiscordBot\src\ServerUtility.cs:riga 19 in Schedules.WorkshopItemUpdateChecker(List1 args) in C:\Documents\Programming\C#\PZServerDiscordBot\src\Schedules\WorkshopItemUpdateChecker.cs:riga 36
in Scheduler.ClockElapsed(Object sender, ElapsedEventArgs e) in C:\Documents\Programming\C#\PZServerDiscordBot\src\Scheduler.cs:riga 66
Date: 18/10/2022 17:54:38 UTC
Exception occured in ScheduleItem callback function. ScheduleItem: WorkshopItemUpdateChecker

@egebilecen
Copy link
Owner

Hmm. Sorry for the inconvenience. Will try to debug the problem.

@saro8802
Copy link
Author

ty

@egebilecen
Copy link
Owner

Found the issue, fixing it now. Will soon re-release the v1.2.5-beta version.

@egebilecen
Copy link
Owner

v1.2.5-beta-2 Please give this a try! I hope I didn't mess up something again, haha.

@saro8802
Copy link
Author

saro8802 commented Oct 19, 2022

Ok, actually it dosen't allow me to download, it says "virus detected" found Wacatac trojan... why??

@saro8802
Copy link
Author

i'm using windows defender, i did download with another pc and tested the file on antivirus, nothing detected, idk why my first pc is blocking this...

@saro8802
Copy link
Author

trying the release now

@saro8802
Copy link
Author

Ok so, i did upload the new version, atm i'm not getting any error, rn i can't upgrade one of my mods to trigger the bot cause im not at home, but as soon when it happens i'll let you know. ty

@egebilecen
Copy link
Owner

Thank you!

@saro8802
Copy link
Author

not related issue, the bot is telling me to upload to version 1.2.4 cause im currently on the 1.2.5 XD, maybe it's cause is beta? idk

@egebilecen
Copy link
Owner

Don't worry about that. Version checking system isn't too advanced, haha. If it is older than your version, you can safely ignore. Especially for betas.

@saro8802
Copy link
Author

saro8802 commented Oct 19, 2022

So, we got an update and the bot seems to be worked as planned! :D let me know if you need some other tests. Waiting for the definitive version! ty

@saro8802
Copy link
Author

saro8802 commented Oct 19, 2022

Question: is there some way to have a log of what mod did upgrade? So to be able to know what eventually broke the server or just to go check the new updates on steam? ty

@egebilecen
Copy link
Owner

So, we got an update and the bot seems to be worked as planned! :D let me know if you need some other tests. Waiting for the definitive version! ty

No problem, there isn't any tests needed at this point, thank you again. It may take a week for me to work on new version. Keep an eye on the log channel as bot prints out the new version.

Question: is there some way to have a log of what mod did upgrade? So to be able to know what eventually broke the server or just to go check the new updates on steam? ty

Bot stops checking other mods when it encounters an update for the first time so at the moment, it's not possible. Also there might be cases where a mod getting updated meanwhile server has a pending restart which will cause mod update checker to skip as server will be restarted anyway. So I am not sure how useful it could be but feel free to create an issue about it. I will mark it as enhancement. No promises on it's getting implemented, though.

@saro8802
Copy link
Author

I see your point, generally speaking you know some other ways to get this information? Not related to your bot. ty

@egebilecen
Copy link
Owner

No idea to be honest. I never managed server myself. :(

Repository owner locked as resolved and limited conversation to collaborators Oct 20, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants