J
JBonesy
Guest
Hello Everyone,
I've been working on a huge Game Maker project for almost 4 years now. Because of reasons detailed below, I've on version 1.4.1757 (STEAM). I've been using the YYC Compiler as well, because it's essentially needed for the scope of the project. Throughout the years, I've stayed up to date with versions, and although I've experienced minor problems, I've never truly experienced something which has completely broken everything for me. I've come to a point which is...near impassable to say the least and I'm not sure what to do.
For the last few weeks, everything had been working fine for the most part, but recently (and without updating strangely enough) things seem to have just broke. I don't know if there's a memory limit to game maker regarding assets/scripts and I've broken that limit or what. The project is absolutely massive, and unfortunately due to its commercial nature I cannot share the entire source or executable at this time.
The main problem is the fact that I can no longer access global variables once I change rooms. At all.
So for example, if I'm in Room A and declare this
and then switch rooms and try to access say, "characterName = global.myArray[1]", the game instantly crashes with no error message. The arable names are arbitrary; it doesn't matter what I use when, where/how, or in what room. Whenever I test this three-five consecutive times, the error changes to the point where I can't even load the initial room once my player object spawns. Oddly enough, if I add a "show_message(1)" as a debug, it'll override this error and I'll be able to access the room, but then I still can't access the global variables. It's absolutely bizarre.
Every so often with oddly placed "show_message(1)" debugs I'll get a glimpse at an error message which says "error: index 0 out of bounds" or "error: index 33 out of bounds" despite none of these being called by any objects in the room.
Furthermore, I can't upgrade to the next beta/version (or early access) because I get a weird error saying "sound_add" and "sound_replace" don't exist...even though I don't have them used in any script (or extension) in the game. I can't downgrade too far because of reliance on the UGC workshop functions, alarm_set, and also socket create ext commands.
This project has taken up thousands of hours...and I'm incredibly said that this may be the issue that finally forces me to give up. I would appreciate any, ANY help.
Thank you so much in advance.
EDITS:
Okay, so upon closer inspection, the actual issue seems to be Game Maker is running out of memory. My project, upon running a diagnostic, is over 84K lines of code. After doing some debugs, I've determined (from the only error message I've ever recieved as well saying "out of memory"), that I'm genuinely running out of memory. It can't be my PC though, I have a very high end machine. Any further ideas?
Edit 2: Yep, pretty much confirmed. Adding even 5 lines of code to the game seems to break it once leaving from a menu to the actual game itself. I'm stuck and incredibly frustrated.However, adding these lines only seem to matter when the "player" object exists, regardless of what it actually is. This is absolutely bizarre.
I've been working on a huge Game Maker project for almost 4 years now. Because of reasons detailed below, I've on version 1.4.1757 (STEAM). I've been using the YYC Compiler as well, because it's essentially needed for the scope of the project. Throughout the years, I've stayed up to date with versions, and although I've experienced minor problems, I've never truly experienced something which has completely broken everything for me. I've come to a point which is...near impassable to say the least and I'm not sure what to do.
For the last few weeks, everything had been working fine for the most part, but recently (and without updating strangely enough) things seem to have just broke. I don't know if there's a memory limit to game maker regarding assets/scripts and I've broken that limit or what. The project is absolutely massive, and unfortunately due to its commercial nature I cannot share the entire source or executable at this time.
The main problem is the fact that I can no longer access global variables once I change rooms. At all.
So for example, if I'm in Room A and declare this
Code:
global.myArray[0] = "test"
global.myArray[1] = "test"
Every so often with oddly placed "show_message(1)" debugs I'll get a glimpse at an error message which says "error: index 0 out of bounds" or "error: index 33 out of bounds" despite none of these being called by any objects in the room.
Furthermore, I can't upgrade to the next beta/version (or early access) because I get a weird error saying "sound_add" and "sound_replace" don't exist...even though I don't have them used in any script (or extension) in the game. I can't downgrade too far because of reliance on the UGC workshop functions, alarm_set, and also socket create ext commands.
This project has taken up thousands of hours...and I'm incredibly said that this may be the issue that finally forces me to give up. I would appreciate any, ANY help.
Thank you so much in advance.
EDITS:
Okay, so upon closer inspection, the actual issue seems to be Game Maker is running out of memory. My project, upon running a diagnostic, is over 84K lines of code. After doing some debugs, I've determined (from the only error message I've ever recieved as well saying "out of memory"), that I'm genuinely running out of memory. It can't be my PC though, I have a very high end machine. Any further ideas?
Edit 2: Yep, pretty much confirmed. Adding even 5 lines of code to the game seems to break it once leaving from a menu to the actual game itself. I'm stuck and incredibly frustrated.However, adding these lines only seem to matter when the "player" object exists, regardless of what it actually is. This is absolutely bizarre.
Last edited by a moderator: