Descriptive Problem Summary:
winset() seems to not work if called too early during client init.
tested in local with ss13 while "hosting" directly with dream seeker so it might be impacted by long load times.
Numbered Steps to Reproduce Problem:
1. Call winset to change map.zoom in client/new
2. Winget is called to verify what it is
3. Instead of the value set by winset, it's the skin's default.
4. Notably, this happens when said code runs before dreamseeker window is actually open, verified by the auxtools debugger.
Code Snippet (if applicable) to Reproduce Problem:
Can provide if necessary.
Expected Results:
winset zoom to be there
Actual Results:
zoom = 0, which is the skin's default.
Does the problem occur: Seems to be very time
When does the problem NOT occur? Waiting a few seconds to do said winset calls
Did the problem NOT occur in any earlier versions? If so, what was the last version that worked? (Visit http://www.byond.com/download/build to download old versions for testing.)
Unknown
Workarounds:
Spawn() for a small while.
ID:2834375
Nov 11 2022, 5:39 pm
|
|||||||||||||
Not a bug
| |||||||||||||
Nov 11 2022, 5:50 pm
|
|
Oh, notably, I'm winsetting with winset(client, null, "command=\".winset \"").
|
disregard, winset with list2params(list("command" = str)) instead and it worked, going to assume I typo'd the \ and "'s or something.
|
client/New() is too early to call winset() anyway; that should be handled in mob/Login().
|