You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Upon loading a map after the editor just started, or when a player pressed the New map button, loading a small map does not cache its settings properly into editor. This can be observed by the weather not changing, missing map info and the errors that come after testing it.
When the map opened properly, changing any settings, testing it then come back to editor, the map settings revert back to the old ones.
Possible culprit:
Additional context
After finishing the map test, it goes into black screen. But the map can be tested using F5 again, then the map will be loaded properly.
Weirdly enough, if you open a map for the second time it does load as usual, and can be played without issues.
Which resource(s) have this problem?
editor_main
Describe the bug
Upon loading a map after the editor just started, or when a player pressed the
New map
button, loading a small map does not cache its settings properly into editor. This can be observed by the weather not changing, missing map info and the errors that come after testing it.When the map opened properly, changing any settings, testing it then come back to editor, the map settings revert back to the old ones.
Possible culprit:
mtasa-resources/[editor]/editor_main/server/saveloadtest_server.lua
Line 866 in b64e5b4
To Reproduce
race
),mapmanager
failed to start the map (<info>
was not written into meta.xml)Screenshots
https://www.youtube.com/watch?v=FfJkeqOLL8I
Additional context
After finishing the map test, it goes into black screen. But the map can be tested using
F5
again, then the map will be loaded properly.Weirdly enough, if you open a map for the second time it does load as usual, and can be played without issues.
Possible fixes for map open
// 1
mtasa-resources/[editor]/editor_main/server/saveloadtest_server.lua
Line 135 in b64e5b4
Change this to a timer with delay 200:
setTimer(passNewMapSettings, 200, 1)
// 2 - by @q8X
mtasa-resources/[editor]/editor_main/server/saveloadtest_server.lua
Line 269 in b64e5b4
Increase the delay of this to 100 or even 200.
I will not do a PR because this is experimental and there are probably better alternatives, it's just the matter of finding them.
Awaiting feedback.
The text was updated successfully, but these errors were encountered: