Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

GMRoomPack

Package GameMaker rooms and load them as you please · By YellowAfterlife

Update broke something... Invalid field access : name

A topic by JesterOC created Apr 11, 2021 Views: 289 Replies: 6
Viewing posts 1 to 2

It's broken with 2.3 update, was working great, then i noticed sometimes my objects would only partially load....
2.3 mini-fix didn't solve.

here's the output from the .exe:

Error occurred while processing C:/Users/JesterOC/Documents/GameMakerStudio2/BOUNCY - VER 064 GOLDEN_Figuritive/rooms/rm_HOUSE01EXT/rm_HOUSE01EXT.yy: Invalid field access : name

Called from live/server/LiveRoom.hx line 312

Called from live/server/LiveRoom.hx line 426

Called from live/server/LiveRoom.hx line 486

Called from live/server/LiveRoom.hx line 542

Called from RoomPacker.hx line 62

Called from RoomPacker.hx line 252

Called from RoomPacker.hx line 270

Press any key to exit!
(END OF ERROR MESSAGE)

Can you please fix this?

Developer

Ah gee, I’ll need to look into this - must be something having switched from {"name":"<name>","path":"<relative path>"} to just "name", which is not something I can future-proof against. Do you know if it’s a specific feature that causes this? From the error it looks like variable definitions, but this part is shared between GMRoomPack and GMLive’s room reloader, so I’m not sure if I had modified it since the last release.

(2 edits)

TLDR SOLVED: delete the problem instance from the room and replace it from the resource tree.

the error happens upon choosing to pack the room from your cmd line exe.

Maybe my room is bugged? (was actually an obj.)

I exported my rm_Init fine... It only has a few simple objects no tiles. The other has roof tiles.
EDIT: UPON FURTHER INSPECTION IT APPEARS THE ERROR ONLY HAPPENING WITH A SINGLE OBJECT CAUSING IT! :O
However idk why... 

The object causing the crash when exporting to included file is called obj_teleportV_GO_INSIDE.
It has a parent called obj_teleport...

Invalid field access:  name    error persists.

Gonna have a look at my object's event's and see if removing parent helps...

- made a new room and copied instances from old room into it...

-deleted each instance type and ran the GMRoomPack.exe again until no error... (determining the object that causes the error).obj_teleportV_GO_INSIDE.

- changing object's parent didn't work, nor name... but after it was named obj_fred, i deleted the instance from the room and replaced it from the resource tree, THIS WORKED!

TLDR SOLVED: delete the problem instance from the room and replaced it from the resource tree.

So... I guess I've made a workaround for the time being. :)

BTW: Thanks for making such an awesome asset collection.  ( I have yet to purchase all the ones I want. XD )

Developer

If you can replicate this in an empty project (or trim down a copy of your project to just the needed parts), please email me a sample - I figure that someone else might run into this as well.

I will send you the email with a link shorty.

EMAIL SENT :)

ALSO...
Still having the problem I mentioned in my first post...
I noticed sometimes my objects would only partially load (that or they load invisible).... 

it appears to be cus of invisible wall objects I placed at the same position as some visible ones...

the odd thing is, when I unselect the objects in room editor, (so they won't be included)  and run the GMRoomPack.exe on that room again the error still arises...
BUT DELETE THE INVISIBLE WALLS FULLY (and run the GMRoomPack.exe on that room again)
AND THERE'S NO GLITCH!!!

Can you verify this?