Mech Engineer

Mech Engineer

Simple Autocannon
llukkassi 5 Jul, 2024 @ 1:46am
Game crash with enlarged autocanon in production queue
Hi
Im not 100% sure if this mod is at fault or the game itself somehow has problem but when I enter production or callendar and hover over my enlarged autocanon shipment day my game crashes with this error.
I have no other mods installed.

Can i somehow salvage my run if this cannot be fixed?
Thanks for the help.
___________________________________________ ############################################################################################ ERROR in action number 1 of Draw Event for object obj_component_shop: sprite_get_xoffset argument 1 invalid reference to (sprite) - requested 1169 max is 782############################################################################################ gml_Object_obj_component_shop_Draw_0 (line 149)
Last edited by llukkassi; 5 Jul, 2024 @ 1:59am
< >
Showing 1-15 of 16 comments
llukkassi 5 Jul, 2024 @ 2:35am 
I think i managed to edit save file to get rid of the +size autocanon in queue.
After that i regained ability to enter production and callendar, but i still cannot enter day summary, as the game crashes there too (even before save edit) :sad_seagull:
llukkassi 5 Jul, 2024 @ 3:08am 
Ok after going to the next ingame day I am able to go into previous day summary (the one with the efficiency chart) ufff.
I still use normal autocanon but gonna avoid for now the +size ones.
Last edited by llukkassi; 5 Jul, 2024 @ 9:27am
Same problem here, dunno why
Originally posted by llukkassi:
I think i managed to edit save file to get rid of the +size autocanon in queue.
After that i regained ability to enter production and callendar, but i still cannot enter day summary, as the game crashes there too (even before save edit) :sad_seagull:
May i ask where to edit production line so i can remove the autocannon?
llukkassi 5 Jul, 2024 @ 9:26am 
Sure
in the save file
C:\Users\_YourUser_\AppData\Local\Mech_Engineer\data
There are 3 files named
f_save_slot_1
f_save_slot_2
f_save_slot_3
Chose the one that you have your problematic save on and edit that file in any text editor for example notepad.

Inside there will be entries "hangar_number_10_position" to "hangar_number_1_position"
You have to clear hangars that are occupied by autocanon production in my case it was hangars 6-10 (bottom production row). Upper production hangars are 1-5. To clear them all values have to be set to 0.

In my case it looked like this:
hangar_number_10_position_11="0.000000" hangar_number_10_position_10="0.000000" hangar_number_10_position_9="0.000000" hangar_number_10_position_8="0.000000" hangar_number_10_position_7="0.000000" hangar_number_10_position_6="0.000000" hangar_number_10_position_5="0.000000" hangar_number_10_position_4="0.000000" hangar_number_10_position_3="0.000000" hangar_number_10_position_2="0.000000" hangar_number_10_position_1="0.000000" hangar_number_10_position_0="0.000000" hangar_number_9_position_11="0.000000" hangar_number_9_position_10="0.000000" hangar_number_9_position_9="0.000000" hangar_number_9_position_8="0.000000" hangar_number_9_position_7="0.000000" hangar_number_9_position_6="0.000000" hangar_number_9_position_5="0.000000" hangar_number_9_position_4="0.000000" hangar_number_9_position_3="0.000000" hangar_number_9_position_2="0.000000" hangar_number_9_position_1="0.000000" hangar_number_9_position_0="0.000000" hangar_number_8_position_11="0.000000" hangar_number_8_position_10="0.000000" hangar_number_8_position_9="0.000000" hangar_number_8_position_8="0.000000" hangar_number_8_position_7="0.000000" hangar_number_8_position_6="0.000000" hangar_number_8_position_5="0.000000" hangar_number_8_position_4="0.000000" hangar_number_8_position_3="0.000000" hangar_number_8_position_2="0.000000" hangar_number_8_position_1="0.000000" hangar_number_8_position_0="0.000000" hangar_number_7_position_11="0.000000" hangar_number_7_position_10="0.000000" hangar_number_7_position_9="0.000000" hangar_number_7_position_8="0.000000" hangar_number_7_position_7="0.000000" hangar_number_7_position_6="0.000000" hangar_number_7_position_5="0.000000" hangar_number_7_position_4="0.000000" hangar_number_7_position_3="0.000000" hangar_number_7_position_2="0.000000" hangar_number_7_position_1="0.000000" hangar_number_7_position_0="0.000000" hangar_number_6_position_11="0.000000" hangar_number_6_position_10="0.000000" hangar_number_6_position_9="0.000000" hangar_number_6_position_8="0.000000" hangar_number_6_position_7="0.000000" hangar_number_6_position_6="0.000000" hangar_number_6_position_5="0.000000" hangar_number_6_position_4="0.000000" hangar_number_6_position_3="0.000000" hangar_number_6_position_2="0.000000" hangar_number_6_position_1="0.000000" hangar_number_6_position_0="0.000000"

After that i was able to play just fine.
Remember to do backup of Your save, as to not lose anything.
If Your autocanon finished production, unfortunetelly i have no idea how to get it out of Your save.

Hope this helps :lunar2020ratinablanket:
Last edited by llukkassi; 5 Jul, 2024 @ 11:20pm
Originally posted by llukkassi:
Sure
in the save file
C:\Users\_YourUser_\AppData\Local\Mech_Engineer\data
There is 3 files named
f_save_slot_1
f_save_slot_2
f_save_slot_3
Chose the one that you have your problematic save on and edit that file in any text editor for example notepad.

Inside there will be entries "hangar_number_10_position" to "hangar_number_1_position"
You have to clear hangars that are occupied by autocanon production in my case it was hangars 6-10 (bottom production row) So upper production hangars are 1-5. To clear them all values have to be set to 0.

In my case it looked like this:
hangar_number_10_position_11="0.000000" hangar_number_10_position_10="0.000000" hangar_number_10_position_9="0.000000" hangar_number_10_position_8="0.000000" hangar_number_10_position_7="0.000000" hangar_number_10_position_6="0.000000" hangar_number_10_position_5="0.000000" hangar_number_10_position_4="0.000000" hangar_number_10_position_3="0.000000" hangar_number_10_position_2="0.000000" hangar_number_10_position_1="0.000000" hangar_number_10_position_0="0.000000" hangar_number_9_position_11="0.000000" hangar_number_9_position_10="0.000000" hangar_number_9_position_9="0.000000" hangar_number_9_position_8="0.000000" hangar_number_9_position_7="0.000000" hangar_number_9_position_6="0.000000" hangar_number_9_position_5="0.000000" hangar_number_9_position_4="0.000000" hangar_number_9_position_3="0.000000" hangar_number_9_position_2="0.000000" hangar_number_9_position_1="0.000000" hangar_number_9_position_0="0.000000" hangar_number_8_position_11="0.000000" hangar_number_8_position_10="0.000000" hangar_number_8_position_9="0.000000" hangar_number_8_position_8="0.000000" hangar_number_8_position_7="0.000000" hangar_number_8_position_6="0.000000" hangar_number_8_position_5="0.000000" hangar_number_8_position_4="0.000000" hangar_number_8_position_3="0.000000" hangar_number_8_position_2="0.000000" hangar_number_8_position_1="0.000000" hangar_number_8_position_0="0.000000" hangar_number_7_position_11="0.000000" hangar_number_7_position_10="0.000000" hangar_number_7_position_9="0.000000" hangar_number_7_position_8="0.000000" hangar_number_7_position_7="0.000000" hangar_number_7_position_6="0.000000" hangar_number_7_position_5="0.000000" hangar_number_7_position_4="0.000000" hangar_number_7_position_3="0.000000" hangar_number_7_position_2="0.000000" hangar_number_7_position_1="0.000000" hangar_number_7_position_0="0.000000" hangar_number_6_position_11="0.000000" hangar_number_6_position_10="0.000000" hangar_number_6_position_9="0.000000" hangar_number_6_position_8="0.000000" hangar_number_6_position_7="0.000000" hangar_number_6_position_6="0.000000" hangar_number_6_position_5="0.000000" hangar_number_6_position_4="0.000000" hangar_number_6_position_3="0.000000" hangar_number_6_position_2="0.000000" hangar_number_6_position_1="0.000000" hangar_number_6_position_0="0.000000"

After that i was able to play just fine.
Remember to do backup of Your save, as to not lose anything.
If Your autocanon finished production, unfortunetelly i have no idea how to get it out of Your save.

Hope this helps :lunar2020ratinablanket:
Thx a lot!
WalrusJones  [developer] 9 Jul, 2024 @ 9:27am 
Why does steam not notify me when my forum is used.
WalrusJones  [developer] 9 Jul, 2024 @ 9:27am 
I'll investigate it.
llukkassi 9 Jul, 2024 @ 9:48am 
Yeah i thought so, that probably You did not recive any notification (or You went on holidays or something like that).
That is exactly why i posted in mod comment section to grab more attention, and kinda warn people so they wont have to go for save edit to salvage their playthroughs.

Thanks for looking into it :)
llukkassi 9 Jul, 2024 @ 9:54am 
Ah, and if You need any info, or want me to replicate it again and send You my savefile, I sure can.
I will backup my save and try to go for it again if I do not have the broken save anymore.
WalrusJones  [developer] 12 Jul, 2024 @ 1:55pm 
We had someone else who oddly wasn't able to reproduce the bug, which is really strange.

I can give it a look still, but given we have failed to reproduce whats up I am even more confused.

Are you using multiple weapon mods by any chance?
llukkassi 13 Jul, 2024 @ 1:22am 
No just this mod, as i stated in first post.
But yeah as i progressed further into the game i cannot replicate it now... strange.
I still have the broken save on me, and its still broken there, also somone else had the same problem, so it happens in... specific situation?

Maybe it brakes if you do only size+ mission? At that point i did not have any other mission complete, and did not have all research complete.
Screen of my mods
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3288139098
Screen of my map in broken save:
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3288146280

I hoped that i can just paste my save as text, well no luck its to big so here is the file (I changed file format to txt, so it will show its content without having to download)
Google drive [drive.google.com]
Last edited by llukkassi; 13 Jul, 2024 @ 1:30am
Nordak Balrem 16 Jul, 2024 @ 5:00pm 
Might be of interest, Dev fixed a bug with all modded weapons recently. Check out the example weapon mod.
AburntBridges 21 Aug, 2024 @ 5:14am 
Still bugged, or is the production tab crash another issue?
llukkassi 21 Aug, 2024 @ 9:11am 
no one could replicate soooo...
I guess it was somehow oneoff problem?
< >
Showing 1-15 of 16 comments
Per page: 1530 50