Open x87 opened 2 years ago
note:
if I have both CS script and JS script with 0A69 and let CS run first (by adding wait command before Widget.CreateShopMenu in a js script), both would work with no crash.
This can be a technical limitation for now. Creating widgets requires running in the main thread (it appears that they use thread local storage for queuing resources?) and JavaScript VM currently runs in a separate thread. If I run a JS script with Widget.CreateShopMenu('IE09')
on the main thread it works fine.
CS scripts run on the main thread and there is no issues with widgets.
I will look into possible workarounds, but can't promise anything
Calling
crashes the game with error
Same command works when in a CS script