Skip to main content

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

[Solved] Getting a "live_request_guid" error when using live_call in a script in 2.3

A topic by Jeffdev created Aug 23, 2020 Views: 417 Replies: 4
Viewing posts 1 to 4
(1 edit)
ERROR!!! :: ############################################################################################
ERROR in
action number 1
of Create Event
for object <undefined>: global variable name 'live_request_guid' index (102430) not set before reading it.
 at gml_Script_live_call (line 10376) - if (live_request_guid == undefined) {
############################################################################################
gml_Script_live_call (line 10376)
gml_GlobalScript_ALL_ITEM_DATA (line 1) - if (live_call()) return live_result;

This is the error. 

Developer

That would mean that you inserted a live_call outside of any function

if (live_call()) return live_result; // don't
function some() {
  if (live_call()) return live_result; // good
}

and it's being called before GMLive initializes.

Anyone start to recieveng this error, after the update?


After the update I'm recieving this error, and the solution is not working.

I also have the backups of my game, so tried it on the backup... The backups, with the old GMlive, are working perfect. 

I'm, Putting the new updated obj_gmlive to the start of the game. it is the first loaded object to game. but stil:


global variable name 'live_request_guid' index (100837) not set before reading it.

 at gml_Script_live_call (line 56) - if (live_request_guid == undefined) {



I also, searched the old and the new version of the script, and  found that there are some additions at the new update. So is it possible a, somehow, a bug? 


NEW UPDATE SEARCH RESULTS: (12 result)

Searching for 'live_request_guid'...

  • GMLive_tools at line 327: if (live_request_guid == undefined) {
  • GMLive_tools at line 330: l_url = live_request_url + "/update?guid=" + ((live_request_guid == undefined ? "null" : live_request_guid));
  • GMLive_tools at line 330: l_url = live_request_url + "/update?guid=" + ((live_request_guid == undefined ? "null" : live_request_guid));
  • GMLive_call at line 56: if (live_request_guid == undefined) {
  • GMLive_call at line 101: if (live_request_guid == undefined) {
  • GMLive_call at line 142: if (live_request_guid == undefined) {
  • GMLive_call at line 175: if (live_request_guid == undefined) {
  • GMLive_call at line 209: if (live_request_guid == undefined) {
  • GMLive at line 5441: globalvar live_request_guid; /// @is {live_yy_YyGUID}
  • GMLive at line 5442: if (live_enabled) live_request_guid = undefined;
  • GMLive_http at line 13: live_request_guid = ds_map_find_value(l_map, "guid");
  • GMLive_http at line 245: if (live_request_guid == undefined) live_async_http_0(l_map);

Search Complete (12 results)

***

OLDER and perfectly running version, search result: (11 Result)

Searching for 'live_request_guid'...

  • GMLive_tools at line 327: if (live_request_guid == undefined) {
  • GMLive_tools at line 330: l_url = live_request_url + "/update?guid=" + ((live_request_guid == undefined ? "null" : live_request_guid));
  • GMLive_tools at line 330: l_url = live_request_url + "/update?guid=" + ((live_request_guid == undefined ? "null" : live_request_guid));
  • GMLive_http at line 13: live_request_guid = ds_map_find_value(l_map, "guid");
  • GMLive_http at line 245: if (live_request_guid == undefined) live_async_http_0(l_map);
  • GMLive_call at line 55: if (live_request_guid == undefined) {
  • GMLive_call at line 96: if (live_request_guid == undefined) {
  • GMLive_call at line 133: if (live_request_guid == undefined) {
  • GMLive_call at line 162: if (live_request_guid == undefined) {
  • GMLive at line 5439: globalvar live_request_guid; /// @is {live_yy_YyGUID}
  • GMLive at line 5440: if (live_enabled) live_request_guid = undefined;

Search Complete (11 results)

Developer (1 edit) (+1)

Is that the whole callstack? Sounds like you’re putting live_call straight into a global script (outside of a function/event), which causes it to be ran before GMLive initializes (and the old version likely works only because GMLive script was listed before the script using the function in your YYP file)

Thank you,

I bulk deleted all old live_call codes from the codes, and replaced new ones, to where I need it... It works now.