Skip to main content

On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

gp_axis_orientation_w error on first run

A topic by Slyddar created Sep 02, 2021 Views: 348 Replies: 5
Viewing posts 1 to 6
(3 edits)

Heya,

Have had this for years, but hadn't been using it.  Just grabbed the new version and installed it and am getting this error on windows.  What I did was dragged the GMLiveForGMS2.3+.yymps file into an existing project, imported all, started gmlive-server.exe from Explorer, so it was listening on port 5100.  Set obj_gmlive to be loaded at startup, but running my project gives this error.  

Even disabling obj_gmlive so I can run without it is not possible as the error still occurs.

Any advice would be appreciated please?

ERROR!!! :: ############################################################################################
ERROR in
action number 1
of Create Event
for object <undefined>:
Variable <unknown_object>.gp_axis_orientation_w(106458, -2147483648) not set before reading it.
 at gml_Script_live_preinit_init_consts (line 68) - l_gmlConstValues=[undefined,pointer_invalid,pointer_null,path_action_stop,path_action_restart,path_action_continue,path_action_reverse,pi,NaN,infinity,GM_build_date,GM_version,GM_runtime_version,timezone_local,timezone_utc,gamespeed_fps,gamespeed_microse
############################################################################################
gml_Script_live_preinit_init_consts (line 68)
gml_Script_live_preinit_api (line 373) - live_preinit_init_consts();
gml_GlobalScript_GMLive (line 2061) - live_preinit_api();
Developer

gp_axis_orientation_w constant was introduced in 2.3.3.434

If you must use an older version, make some macros that cover the new constants (but don’t forget to remove them when you update!)

#macro gp_axis_acceleration_x undefined
#macro gp_axis_acceleration_y undefined
#macro gp_axis_acceleration_z undefined
#macro gp_axis_angular_velocity_x undefined
#macro gp_axis_angular_velocity_y undefined
#macro gp_axis_angular_velocity_z undefined
#macro gp_axis_orientation_x undefined
#macro gp_axis_orientation_y undefined
#macro gp_axis_orientation_z undefined
#macro gp_axis_orientation_w undefined

Thanks for replying.  I'm using 2.3.2.560 IDE, 2.3.2.426 Runtime, as the current version has some issues that affect my workflow.

I've added the macros, but this is the error now.

___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object <undefined>:
Function `gml_compile_program` is missing!
Check that script resource `GMLive_compiler` exists (Ctrl+T) and is not just a single empty function;
delete and re-import if necessary!
 at gml_Script_live_validate_scripts (line 1408) -                      if(-1==asset_get_index(l_ref))show_error(("Function `"+l_ref+"` is missing!"+("\nCheck that script resource `"+l_scr+"` exists (Ctrl+T) and is not just a single empty function;")+"\ndelete and re-import if necessary!"),false);
############################################################################################
gml_Script_live_validate_scripts (line 1408)
gml_GlobalScript_GMLive (line 2055) -        live_validate_scripts();

Actually I solved that by finding GMLive_compiler and it was an empty function, so deleted it and re-imported it.  Now I get this error :

___________________________________________
############################################################################################
ERROR in
action number 1
of Create Event
for object <undefined>:
Variable <unknown_object>.os_xboxseriesxs(104964, -2147483648) not set before reading it.
 at gml_Script_live_preinit_init_consts (line 68) -        l_gmlConstValues=[undefined,pointer_invalid,pointer_null,path_action_stop,path_action_restart,path_action_continue,path_action_reverse,pi,NaN,infinity,GM_build_date,GM_version,GM_runtime_version,timezone_local,timezone_utc,gamespeed_fps,gamespeed_microse
############################################################################################
gml_Script_live_preinit_init_consts (line 68)
gml_Script_live_preinit_api (line 373) -               live_preinit_init_consts();
gml_GlobalScript_GMLive (line 2061) -        live_preinit_api();

Are all these errors due to me not running the latest version?  If so, which version do I need to run, as I didn't notice the download for 2.3+ having a requirement.

(2 edits)

All good now, got it sorted by adding these macros too and it now works.

#macro os_xboxseriesxs undefined
#macro os_ps5 undefined
#macro mb_side2 undefined
#macro mb_side1 undefined

Thanks!  Also as above, which version should I be running?

Developer

I usually update GMLive to match the current stable GameMaker version since if I don’t, people trying to use the new constants/variables would get errors instead.

GameMaker offers no good way to reference a constant that may not exist (nor compare the runtime version compile-time), so macros are the way to go here.