Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMEdit

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

Can't open a few objects

A topic by okovg created Sep 20, 2022 Views: 333 Replies: 15
Viewing posts 1 to 7

Just decided to try out GMEdit and loaded up my main project. Looks great, but when I performed a global search I noticed this error on 3 objects: 

Failed to modify parBilliard: TypeError: Cannot read property 'name' of undefined

I am also unable to open these 3 objects in the editor, clicking them simply does nothing.  They work perfectly fine in Gamemaker, and analyzing their .yy files I am unable to see anything jumping out at me that could possible cause this error.  Any help would be appreciated.

Developer

I’ll need a sample project with an object that throws this error (but also try the beta version of GMEdit)

I tried the beta version but no difference. I created a sample project and it still throws the error. How should I send it to you?

Developer

Email works (listed here)

Just sent it over. Thanks for looking into this!

I know this is two weeks old, but I'm experiencing the same issue. Note that I hadn't updated GMS since 2022.3 and it was working fine then. After installing the most recent 2022.9 update (released on Oct 7), I noticed some objects no longer open. Hopefully it can be fixed.

Thanks.

Developer(+2)

Please await eagerly - there’s a bit of a build-up of work that needs to be done thanks to changes in 2022.8/2022.9

As a workaround for now, don't let GM touch the yy files. I'm reverting them whenever they are touched by GM.

Not sure if the latest update should have fixed the issue, but just in case, I'm still getting errors when searching files touch by GM, e.g.

/* Errors:
Failed to modify obj_Player:
TypeError: Cannot read properties of undefined (reading 'name')
Failed to modify obj_Throwable:
TypeError: Cannot read properties of undefined (reading 'name')
*/

If you need me to send you the touched files, let me know.

Developer

I’ll need a new sample project

Since I cleared the touched changes from git, I will need to wait for GM to touch the objects. Didn't manage to reproduce yet. Will ping you here when it happens again.

Hi YAL, sent you a repro project to your email. Hope it helps.

Developer

I have put up a new hotfix for this.

(1 edit)

That fixed it thanks

Greets YAL!

Many thanx for thy assets, thus possibly will try GMLive, too!
Now, for 1st time in the recent few years GMedit cannot open a few Parent objects. 
Only info is available on them, where the buggy objects parents and events are also not recognized (only its children objs are listed).

A piece of output on info displaying :
"event eventundefined:undefined (22)

// @[oPar_Enemies(eventundefined:undefined)]
// @[oPar_Enemies(eventundefined:undefined)]"

GMedit ver: Version Dec 24, 2022
GM ver.: latest (not LTS)

If the sample project is needed, I'd not send it, as it is too big (30 k lines), etc., but if any universal solution arises, would be happy to hear that.
Possibly GM LTS should be used?

Developer(+1)

Copying these several objects to a new projects while removing the code from their events (but not the events themselves) should probably work for reproducing the issue.