Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMEdit

A high-end code editor for all things GameMaker · By YellowAfterlife

Timelines not saving properly

A topic by Ryemanni created Aug 09, 2021 Views: 170 Replies: 1
Viewing posts 1 to 2

Hello. I've been using GMEdit for the better part of 3 years now, and it's a great tool. Recently, however, I've encountered my first issue with it which might be a bug (or just something simple I've overlooked).

So, for some reason, if I add new moments to a timeline in GMEdit and run the game, I get a "Variable not set before reading it." error about the timeline. The output window also tells me there was an exception loading the json of the timeline.
I checked the timeline's .yy file with notepad++ and for some reason all the moments created and saved with GMEdit are events instead, which causes things to break.

Here's what the "momentList" part looks like for the .yy after saving in GMEdit. There should be 4 moments in total, but only the first one, which was there by default when the timeline was first created, appears correctly. The contents of the moment_X.gml files are saved properly, the .yy file is the only one that acts weird it looks like.

  "momentList": [

    {"moment":0,"evnt":{"isDnD":false,"eventNum":0,"eventType":0,"collisionObjectId":null,"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMEvent",},"resourceVersion":"1.0","name":"","tags":[],"resourceType":"GMMoment",},

    {"evnt":{"collisionObjectId":"00000000-0000-0000-0000-000000000000","enumb":102,"eventtype":0,"m_owner":null,"id":"24d25a0b-2893-4acd-9e40-be63c920e595","modelName":"GMEvent","mvc":"1.0","IsDnD":false,},"id":"94d4e742-e459-49ea-99e6-ec0aadb5d11a","modelName":"GMMoment","moment":102,"mvc":"1.0","name":"",},

    {"evnt":{"collisionObjectId":"00000000-0000-0000-0000-000000000000","enumb":200,"eventtype":0,"m_owner":null,"id":"e2ed857a-7cd9-4df5-8ddf-3770dadb9ee8","modelName":"GMEvent","mvc":"1.0","IsDnD":false,},"id":"0d5343e3-27f8-4972-b932-b872296534ce","modelName":"GMMoment","moment":200,"mvc":"1.0","name":"",},

    {"evnt":{"collisionObjectId":"00000000-0000-0000-0000-000000000000","enumb":300,"eventtype":0,"m_owner":null,"id":"3f85345d-55d2-4d02-b980-066c4def0fb1","modelName":"GMEvent","mvc":"1.0","IsDnD":false,},"id":"da6b1f84-bb4a-4842-a2c4-125f35cbeb85","modelName":"GMMoment","moment":300,"mvc":"1.0","name":"",},

  ],

This does not happen if I create and edit a timeline only using GMS2's built in editor.

I'm using the latest windows beta build of GMEdit. This happened to me in an older version too, which caused me to update to see if this would still happen in the latest version. Any help would be appreciated. Thank you.

Developer

Fixed in the new beta - oddly enough, this “moment” thing is how GMS2 handles these - the only difference was that GMEdit was emitting 2.2-like JSON.