Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags

Papadoge

15
Posts
2
Topics
20
Following
A member registered Oct 13, 2019

Recent community posts

(1 edit)

Yeah that worked! I delare all my enums in the Room Creation Code for my first room r_Initialize. This is what's in there currently:

// Set anti aliasing to 0 for pixel art and turn on vertical sync so we don't get render lag
display_reset(0, true);
// Setup player states...
enum playerLoadout {
laser,
printer,
guns,
plows,
watering_cans,
seed_spreaders,
harvester,
logger,
miner,
construction_tools,
length
}
enum mods {
laser_beam,
force_field,
seed_spreader,
hammer,
length
}
enum droneTask {
unassigned,
ore,
organics,
crops,
defense,
length
}
enum menus {
pack = 0,
catalog = 1,
//equipment = 2,
length = 2
}
enum effect_type {
fire,
asteroid,
rain,
electro,
wormhole,
portal
}
enum key_indicator {
up,
right,
down,
left,
bumper,
trigger_l,
trigger_r,
stick,
key,
button
}
room_goto(r_Menu);
enum drone {
idle,
collect,
deposit
}
(1 edit)

I'm consistently getting an issue in the latest release where enums are being read as variables? It happens any time I make a change to an event that contains an enum reference.

[live][12/6/2022 3:21:34 PM] Runtime error: [error] `instance#ref 105090(obj_drone_silo)` (instance of obj_drone_silo) does not have a variable `drone`.

And checking the code, it's just a simple switch statement where I do this...

switch (state) {
    // IDLE
    case drone.idle:
    break;
}

Any idea why that's happening? Can I bypass it somehow?

Bingo! Thank you very much.

Just updated and have the same issue but I'm not sure how to implement this as a solution.  

From the documentation -> "Note that changing the API only affects newly compiled live code / snippets - you should perform such operations on game start."

Can you please tell me the exact code to use and where to place it?

Thanks for the feedback. I have some other bugs in my list as well I didn’t manage to get to before submitting for the jam. Thanks for giving it a go.

OK will do, thanks for digging into this for me. I'll let you know how it shakes out.

Did you get my email?

Sent you an email with the single object project just now.

Sure I can do that, but you would need the game to actually run, right? If I just copied over the single object then a lot of dependencies would have to come with it. Or are you just wanting to see the code for the event that is triggering the error and it doesn't matter if it can run or not?

(1 edit)

Hello. Love this plugin but I'm having trouble figuring out how to read the error messages to know what line of code I need to be troubleshooting. 

I thought maybe it would be this: ` called from obj_multi_tool:Draw_0[L148,c8]` meaning the mistake is on line 148, but when I comment that line out nothing changes and it says the mistake is on line 149, the next uncommented line, which is just setting a font variable.

I can include more of my code if needed but wondering if I'm maybe reading the error output wrong or there's something else this error message is saying that I'm not understanding.

`

Push :: Execution Error - Variable Index [32] out of range [16] - -7.l_st(104301,32)

 at gml_Script_vm_group_local_on_local_set (line 14449) - var l_r=l_st[l_i1];

", script : "gml_Script_vm_group_local_on_local_set", stacktrace : [ "gml_Script_vm_group_local_on_local_set (line 14449)","gml_Script_anon_gml_thread_gml_GlobalScript_GMLive_382568_gml_thread_gml_GlobalScript_GMLive (line 12021) - var l_ar1=l_handler(l__gthis,l_act);

","gml_Script_anon_gml_program_gml_GlobalScript_GMLive_107664_gml_program_gml_GlobalScript_GMLive (line 2779) - l_th.h_exec();

","gml_Script_live_call (line 10859) - var l_th=l_pg.h_call_v(l_scriptName,l_vals,false);

","gml_Object_obj_multi_tool_Draw_0 (line 5) - if (live_call()) return live_result;

" ], line : 14449 }

 called from game:gml_std_haxe_Exception_caught:9047

 called from game:anon_gml_thread_gml_GlobalScript_GMLive_382568_gml_thread_gml_GlobalScript_GMLive:12031

 called from game:anon_gml_program_gml_GlobalScript_GMLive_107664_gml_program_gml_GlobalScript_GMLive:2779

 called from game:live_call:10859

 called from game:obj_multi_tool_Draw_0:5

 called from 0

 called from obj_multi_tool:Draw_0[L148,c8]

`

Understood, thanks!

Seems to have resolved itself though I'm not sure why.

(1 edit)

I see this when I run the gmlive-server.exe file and no updates are being registered

Really fun concept! The humor is so great I definitely got some good chuckles in while playing. Good luck with the development!