allow walls and palisades to be built over trees, destorying trees upon completion. #4
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "real_tabasco_sauce/0ad-community-mod-a26:walls_destroy_woods"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
this PR allows walls and palisades to be placed over wood and destroys the wood resources upon completion. This should make wall placement easier when players want to fully wall. It is unlikely to be abused to destory wood since the walls have to be fully built to destroy the wood.
@ -273,10 +272,10 @@ Foundation.prototype.Commit = function()
// animation to indicate they're waiting for people to get
// out the way
return false;
"
I haven't looked at the code. But the crash is due to something not being serializable (the serialization error from above). Could be a NaN value for instance from the error it seems total builder is NaN
"
@Stan we should continue the conversation here i guess.
I saw that this value was NaN but also that several other values in the error message were uninitialized.
I added return false; back, which messed up wall building in forests but didn't result in any crashes.
The game cannot reliably serialize NaN values as it actually represents a range of values. So any attempts to serialize them will crash.
In SP you can use the rejoin test button in the Alt+D menu to look for serialization issues.
Discussion should probably be in #31 actually.
the region test button is greyed out