Lonewarrior
Sergeant
Over the last few days I have been getting weird crashes on 1.5.7
This happens when using a custom campaign map and the crashes started on the campaign map, but once they start it affects the unmodded game as well.
Using Dnspy I was able to get a reference to sandbox.dll as the cause and the error was "attempting to read protected memory or it may be corrupt".
The first crashes were random crashes on the main map and the second was everytime I went to the troop menu and clicked on a troop that I had added to my mod's xml.
I decided to test this and created a blank troop xml and that single troop (even though it was a copy of a base game troop) would keep crashing when I clicked on it.
Meaning any troops I added would crash.
After this was the second time sandbox.dll was flagged up on DNspy as "attempt to read or write protected memory or may be corrupt".
I deleted both the dll folders for sandbox for the bannerlord and mod tools, and verified steam which fixed the issue.
I dont know why it keeps getting corrupt, but there may be an issue with 1.5.7 sandbox.dll but I have not edited it in any way at any point.
I was able to reproduce this bug like I said but creating a single troop entry which was a copy of an basic troop and after deleting the sandbox.dll s and verifying steam the issue was fixed for a second time
EDIT: I am getting this error again on a custom campaign map. Verifying on steam has fixed the issue again but this is at least the third time since the last hotfix I’ve had to do this
First picture is first crash, followed by putting a break point in and loading the game again which flags sandbox.dll in the second image
I have deleted all the files in Sandbox/bin and deleted all the win64_shippingclient and editor files and then verified on steam again after testing this error appears consistently over and over.
After doing this the crashes ceased happening on the first play through indicating that some of these files were causing the crashes.
Edit 2: To reproduce this I had to be using a custom map.
After testing it with vanilla map there were no errors but after creating a new campaign map and testing it, after a few hours the same message appeared again so it appears it’s related to custom campaign maps in some way which is triggering the crashes which then start happening even if you start a new game on the vanilla game campaign map:
Verifying the sandbox dlls again temporarily fixed the issue
This happens when using a custom campaign map and the crashes started on the campaign map, but once they start it affects the unmodded game as well.
Using Dnspy I was able to get a reference to sandbox.dll as the cause and the error was "attempting to read protected memory or it may be corrupt".
The first crashes were random crashes on the main map and the second was everytime I went to the troop menu and clicked on a troop that I had added to my mod's xml.
I decided to test this and created a blank troop xml and that single troop (even though it was a copy of a base game troop) would keep crashing when I clicked on it.
Meaning any troops I added would crash.
After this was the second time sandbox.dll was flagged up on DNspy as "attempt to read or write protected memory or may be corrupt".
I deleted both the dll folders for sandbox for the bannerlord and mod tools, and verified steam which fixed the issue.
I dont know why it keeps getting corrupt, but there may be an issue with 1.5.7 sandbox.dll but I have not edited it in any way at any point.
I was able to reproduce this bug like I said but creating a single troop entry which was a copy of an basic troop and after deleting the sandbox.dll s and verifying steam the issue was fixed for a second time
EDIT: I am getting this error again on a custom campaign map. Verifying on steam has fixed the issue again but this is at least the third time since the last hotfix I’ve had to do this
First picture is first crash, followed by putting a break point in and loading the game again which flags sandbox.dll in the second image
I have deleted all the files in Sandbox/bin and deleted all the win64_shippingclient and editor files and then verified on steam again after testing this error appears consistently over and over.
After doing this the crashes ceased happening on the first play through indicating that some of these files were causing the crashes.
Edit 2: To reproduce this I had to be using a custom map.
After testing it with vanilla map there were no errors but after creating a new campaign map and testing it, after a few hours the same message appeared again so it appears it’s related to custom campaign maps in some way which is triggering the crashes which then start happening even if you start a new game on the vanilla game campaign map:
Verifying the sandbox dlls again temporarily fixed the issue
Last edited: