Sorry, we don't support your browser.  Install a modern browser

Atom Editor causes scripts to not work#489

Atom seems to be causing my scripted objects to no longer use their scripts. I’m the author of the mod “Scripted Tarot Cards and Table”, and in the mod I use a scripted object that displays buttons using the classic UI.

Upon initially loading the mod in a new save, the script runs and you can see the buttons appear on the object as they should; but, after saving and loading a few times with Atom, the script no longer loads and I get nothing, no error messages and no buttons on the tool.

If I check the in game editor, I can see the script saved alright from atom with the changes, but it just doesn’t want to load. When I click save&load again either in game or from Atom, the game window flashes like its updating, but the script doesn’t run. After this happens, I can’t get my save to load the script as it should as fresh restarts result in the script not firing like it did before using Atom. Only loading the mod from the workshop and overwriting the save allows for it to work again until I play around with Atom.

To weed out whether this was a problem caused by my scripting work because Atom does work 4-5 times before this problem occurs, I commented out everything and placed a print function at the top of onLoad, and even that doesn’t fire.

Has the Atom plugin been updated for use with the latest version of TTS?

3 years ago

Update: I believe the issue described in bug #437 is the same problem I’m experiencing.

Today after reloading my save, I can see and use 1/3 of my buttons while rest of them I can click but they are invisible. I can confirm that as described in the other bug submission, this problem only seems to occur after the save has been open for a while.

Other people mentioned that onLoad works and their buttons return by restarting TTS, but that doesn’t seem to be the case for me. When I restart the game and reload my save, my buttons are still missing.

onLoad is now firing because my print function and the rest of onLoad runs, but the classic UI buttons within onLoad aren’t fully rendering.

If I load the mod from the workshop, the buttons appear, if I go back to my save, the buttons disappear again.

3 years ago