Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

Not Quite Understanding Live Rooms

A topic by Will Bowerman created Dec 20, 2019 Views: 287 Replies: 3
Viewing posts 1 to 3

I'm really enjoying this extension so far but I'm not quite understanding the live room functionality. I think I've got everything set up correct since the server is informing me when I make changes to the relevant room, but I'm just not understanding how to actually execute the last bit that gets me playing the live updated room. 
So far, I have:

  • Created a blank room
  • create a blank object
  • assigned them both to the live_blank object and live_blank_room variables in the create event of obj_gmlive
  • applied room_set_live() to the room I want to have update

Where do I go from here? I'm struggling to follow the documentation at this point.

Developer

You need to assign a script to live_room_updated, usually with a room_goto_live(argument0) inside.

Since you are not the first person to ask, I made a little video:

Well, I did get a different result this time, but it was a crash, which occurred as soon as the server connected with the game:

___________________________________________
############################################################################################
FATAL FATAL ERROR in Room Creation Code for room rm_blank

ds_map_find_value argument 1 incorrect type (string) expecting a Number (YYGI32)
 at gml_Script_live_room_loader_add_layer (line 93) -                                    var l_rnext=instance_create_layer((l_rx+l_qinst[?"x"]),(l_ry+l_qinst[?"y"]),l_rl,l_base);
############################################################################################
--------------------------------------------------------------------------------------------
stack frame is
gml_Script_live_room_loader_add_layer (line 93)
called from - gml_Script_live_room_loader_run_impl2 (line 15) -               live_room_loader_add_layer(l_lrs[|l_lrk]);
called from - gml_Script_live_room_start (line 11) -        live_room_loader_run_impl2(l_rm2);
called from - gml_Room_rm_blank_Create (line 1) - live_room_start();

Developer

Can you email me a project where this happens (making a copy and stripping everything except offending room/objects should work)? Can't think of a way this would happen unless the room data is straight up corrupted.