Closed yamakhalah closed 7 years ago
Hi Thanks for that - The issue seems to be with the discord config in the config.json file.
Channel has to be a number, and the bot token is a long string inside speech marks. It has to be a discord bot account. An easy way to make one is in this guide https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token
Thanks for the quick reply ! I followed the requirements i can't find any error. There is the json:
{ "Twitch": { "OAuth": "", "Username": "", "Channel": "0" }, "Discord": { "DiscordToken": "Mjg0NjkxNzQ5NDEzMTkxNjgw.C5HTYQ.SB0T_boNJ-NnFSXXXX", "ChannelId": 281730147510599999 }, "Conan": { "FolderPath": "C:\Server\SteamCmd\steamapps\common\Conan\", "Executable": "ConanSandboxServer.exe", "StartupParameters": "-nosteamclient -game -server", "RaidingProtectionHoursEnabled": false, "RaidingStartHour": 0, "RaidingLengthInHours": 0, "AvatarsEnabledCertainHours": false, "AvatarActivationHour": 0, "AvatarsActiveLengthInHours": 0 }, "Update": { "ShouldInstallSteamCmdIfMissing": true, "ShouldInstallConanServerIfMissing": true, "SteamCmdPath": "C\Server\SteamCmd\", "AnnounceDiscord": true, "AnnounceTwitch": false, "AnnounceMinutesBefore": 10, "UpdateCheckInterval": 5, "InstalledBuild": 1651823, "UpdateOnLaunch": true }, "General": { "ShouldRestartConanOnNotRunning": true, "RestartServerAfterHours": 0 } }
Hi you need to escape all path :
with 2 \
Yeah there is two backslash :) Github just removed them
Any issue ? :(
Which releasz version do you use?
Error seems to be related with Discord setup.
Did you Try to try without setup discord config ?
Le sam. 25 févr. 2017 à 09:28, yamakhalah notifications@github.com a écrit :
Any issue ? :(
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/prom3theu5/ConanExilesServerUpdater/issues/20#issuecomment-282469634, or mute the thread https://github.com/notifications/unsubscribe-auth/AL0Vp4C3CJtnxs2okR2raLBjrAoTHttjks5rf-YbgaJpZM4MLwY- .
--
I just found the error the discord token was wrong, im sorry for the time waisted !
Another problem, the discord bot takes default messages but i have modified the messages.json with another text. Did you hardcoded the default message in case of problem with the file ? I don't undertsna dwhy he wasnt use the new messages
it's no trouble - don;t worry
Discord messages are all loaded from the messages.json file. However - this file is loaded into memory when you start the app - so you must make changes to this file before running the updater.
Hi
First and formost, thanks for your work.
Im using your script and i get a problem when he launch the server. The server is correctly launched but the app crash. Here is the logs:
2017-02-24 22:05:02.329 +01:00 [Information] Loaded settings from file: "config.json" 2017-02-24 22:05:02.345 +01:00 [Information] Loaded Messages from file: "messages.json" 2017-02-24 22:05:02.392 +01:00 [Information] Configuration Result: "[Success] Name ConanExilesUpdater [Success] DisplayName ConanExilesUpdater (Instance: ConanExilesUpdater) [Success] Description Conan Exiles Server Updater [Success] InstanceName ConanExilesUpdater [Success] ServiceName ConanExilesUpdater$ConanExilesUpdater" 2017-02-24 22:05:02.392 +01:00 [Information] "Topshelf" v"4.0.0.0", .NET Framework v"4.0.30319.42000" 2017-02-24 22:05:02.408 +01:00 [Debug] Running as a console application, creating the console host. 2017-02-24 22:05:02.408 +01:00 [Debug] Starting up as a console application 2017-02-24 22:05:02.408 +01:00 [Information] The "ConanExilesUpdater$ConanExilesUpdater" service is now running, press Control+C to exit. 2017-02-24 22:05:02.408 +01:00 [Information] ConanExilesUpdater Started Running 02/24/2017 21:05:02 2017-02-24 22:05:02.486 +01:00 [Information] SteamCMD Missing. Downloading Now 2017-02-24 22:05:02.642 +01:00 [Information] Extracting SteamCMD Zip 2017-02-24 22:05:14.626 +01:00 [Information] SteamCMD installed successfully 2017-02-24 22:05:23.595 +01:00 [Information] Installed Version is the same or greater than the steam version. No Update Needed! 2017-02-24 22:05:32.314 +01:00 [Information] Starting To Monitor Server is Running 2017-02-24 22:05:34.501 +01:00 [Information] Discord Connected! 2017-02-24 22:06:02.329 +01:00 [Information] Conan Server Not Detected - Launching Now 2017-02-24 22:06:02.329 +01:00 [Fatal] The service threw an unhandled exception System.NullReferenceException: Object reference not set to an instance of an object. at ConanExilesUpdater.Services.DiscordService.d5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b 6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2017-02-24 22:06:02.329 +01:00 [Information] Stopping the "ConanExilesUpdater$ConanExilesUpdater" service
2017-02-24 22:06:02.470 +01:00 [Information] The "ConanExilesUpdater$ConanExilesUpdater" service has stopped.
2017-02-24 23:32:32.231 +01:00 [Information] Loaded settings from file: "config.json"
2017-02-24 23:32:32.247 +01:00 [Information] Loaded Messages from file: "messages.json"
2017-02-24 23:32:32.294 +01:00 [Information] Configuration Result:
"[Success] Name ConanExilesUpdater
[Success] DisplayName ConanExilesUpdater (Instance: ConanExilesUpdater)
[Success] Description Conan Exiles Server Updater
[Success] InstanceName ConanExilesUpdater
[Success] ServiceName ConanExilesUpdater$ConanExilesUpdater"
2017-02-24 23:32:32.310 +01:00 [Information] "Topshelf" v"4.0.0.0", .NET Framework v"4.0.30319.42000"
2017-02-24 23:32:32.310 +01:00 [Debug] Running as a console application, creating the console host.
2017-02-24 23:32:32.357 +01:00 [Debug] Starting up as a console application
2017-02-24 23:32:32.357 +01:00 [Information] The "ConanExilesUpdater$ConanExilesUpdater" service is now running, press Control+C to exit.
2017-02-24 23:32:32.357 +01:00 [Information] ConanExilesUpdater Started Running 02/24/2017 22:32:32
2017-02-24 23:32:41.591 +01:00 [Information] Installed Version is the same or greater than the steam version. No Update Needed!
2017-02-24 23:33:15.153 +01:00 [Information] Starting To Monitor Server is Running
2017-02-24 23:33:16.435 +01:00 [Information] Discord Connected!
2017-02-24 23:33:45.185 +01:00 [Information] Conan Server Not Detected - Launching Now
2017-02-24 23:33:45.232 +01:00 [Fatal] The service threw an unhandled exception
System.NullReferenceException: Object reference not set to an instance of an object.
at ConanExilesUpdater.Services.DiscordService.d5.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.AsyncMethodBuilderCore.<>c.b 6_1(Object state)
at System.Threading.QueueUserWorkItemCallback.WaitCallback_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.QueueUserWorkItemCallback.System.Threading.IThreadPoolWorkItem.ExecuteWorkItem()
at System.Threading.ThreadPoolWorkQueue.Dispatch()
at System.Threading._ThreadPoolWaitCallback.PerformWaitCallback()
2017-02-24 23:33:45.372 +01:00 [Information] Stopping the "ConanExilesUpdater$ConanExilesUpdater" service
2017-02-24 23:33:45.919 +01:00 [Information] The "ConanExilesUpdater$ConanExilesUpdater" service has stopped.