Unhandled exception has occurred in your application.

JTKeGaming

New member
May 16, 2024
4
0
1
I am not even close to sure what this means, I am able to connect to my remote hosted server but after a few second this error comes up with the option to continue or exit. If you click continue it comes up about ever 4-5 seconds. If you click exit it comes up 1 more time and then closes the program. Not sure if there is anything I missed in setting up maybe. I have the latest version of Allocs and TFP stuff. Sorry in advance if this was answered elsewhere, I looked but did not see this in the forum. There is a lot more in between teh Exception and JIT debugging but the forum limits to 1000 words.

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
Newtonsoft.Json.JsonReaderException: Unexpected character encountered while parsing value: <. Path '', line 0, position 0.
at Newtonsoft.Json.JsonTextReader.ParseValue()
at Newtonsoft.Json.JsonReader.ReadForType(JsonContract contract, Boolean hasConverter)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at RAT4.timers.VB$StateMachine_17_SetGameTime.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
 
This kind of error wouldn't be anything you've done wrong, etc. This would be on my coding side for sure. =)

That being said... It looks like a problem reading the data when getting back the game time information from the server. Its possible they have changed something in the latest updates that is causing this, I don't know as I haven't used the latest installs. I haven't had anyone else report this issue, so... not sure though. Also what version of the game are you using? Rat 4 is only for A21, also make sure you have the correct Allocs for your game server version as well.
 
I am running A21.2 game version. As far as I can tell I have the correct allocs, as my hot provider install it and keeps it up to date. If it matters I am running the wasteland scenario? Could that possibly interfere?
 
I am running A21.2 game version. As far as I can tell I have the correct allocs, as my hot provider install it and keeps it up to date. If it matters I am running the wasteland scenario? Could that possibly interfere?

That shouldn't be an issue. I can see from the error message as its a problem getting the response from Allocs. If I have time this weekend, I'll update everything I have and see if I can replicate the issue.
 
I just took a quick run at this.

I updated my game server to the latest version, and installed the latest Allocs. Everything worked as expected.

So, I'd recommend going to the Local server settings in RAT, like below:

1715977781289.png


Make sure you click the Install/Update/Validate button to make sure you have the latest game version.

Then below that, click the Install / Update Allocs Mod button to automatically download and install the latest Allocs mod.
 
I did as directed above and uploaded the allocs files it downloaded to my hosted server, overwriting existing files, and still get the error popping up. I am all ears for advice from here. Is there any RAT stuff I need to have on the server side?
 
I did as directed above and uploaded the allocs files it downloaded to my hosted server, overwriting existing files, and still get the error popping up. I am all ears for advice from here. Is there any RAT stuff I need to have on the server side?
Nope, the only thing you really need are Allocs and the TFP Mods (that come with the server install). @BadPlayer Might have some ideas?
 
I just took a quick run at this.

I updated my game server to the latest version, and installed the latest Allocs. Everything worked as expected.

So, I'd recommend going to the Local server settings in RAT, like below:

View attachment 1707


Make sure you click the Install/Update/Validate button to make sure you have the latest game version.

Then below that, click the Install / Update Allocs Mod button to automatically download and install the latest Allocs mod.
This wouldn't matter as it is a rented instance?

I would need more information.
I did as directed above and uploaded the allocs files it downloaded to my hosted server, overwriting existing files, and still get the error popping up. I am all ears for advice from here. Is there any RAT stuff I need to have on the server side?
Can you give me your web dashboard URL?