TMPE
TMPE copied to clipboard
Hotreload save
hot reloading saved data can fail because binary serializer tries to get data types from the wrong TMPE assembly. This PR applies a patch that forces all data types to use latest TMPE assembly. Also if LOM is active asset data is hotreloaded.
First commit: introduce Preload Patch phase Second commit: hot reload
This feature shouldn't be available on public/release version
This feature shouldn't be available on public/release version
@krzychu124 its only available when hot-reloading. otherwise the code is not executed.
This feature shouldn't be available on public/release version
@krzychu124 its only available when hot-reloading. otherwise the code is not executed.
I understand, but I don't think normal users should be able to use hot-reloading feature. We have features like ExtCitizen
data holding ParkingAI
state which will desync and cause flying citizens all over the map. It's very minor issue if you develop or test things but very annoying when you actually play normally.
One more thing, I see that asset data reload will work only if LOM is available, right?
I don't think normal users should be able to use hot-reloading
OK I make it DEBUG only. CS should probably turn off file observers too. but that can be done with LOM patch as well.
I see that asset data reload will work only if LOM is available, right?
Yes. LOM holds the data that needs to be transferred.
Q: What will happen if I hot-reload different mod after hot-reloading TM:PE (patch is still active)?