SuperRiderTH
|
|
Posted on: June 01, 2013, 04:30:16 pm |
|
|
Joined: May 2013
Posts: 26
|
So after making the changes in the compiler, the game will now compile and start up (After making the same changes in Ubuntu it works as well). However, I did find a few things that are not working the way they should (as in Game Maker). There is some random crashing of the game (and LateralGM) because of rooms. Certain rooms will crash the game by entering them, but will work fine in Game Maker. (Also, the hub world crashes the game, but I recreated it with objects in the same locations, and it works fine :V) And when I move one certain room in LateralGM, it becomes non responsive for a short time, or crashes it. There is also a problem with draw_sprite_tiled In Game Maker when you move the x and y locations of an object it will move the sprite. It does this in Enigma, but not the same way GM does it. I am using: x+=2 y+=1 and in GM the sprite draws and moves down and to the right. In Enigma however, the sprite goes up and to the left and goes right off the screen :V Video of it happening: http://www.youtube.com/watch?v=m8jzlM8nVxI
|
|
« Last Edit: June 01, 2013, 05:02:06 pm by SuperRiderTH »
|
Logged
|
|
|
|
Josh @ Dreamland
|
|
Reply #1 Posted on: June 01, 2013, 08:38:33 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Hiya;
See if the behavior changes in debug mode. Debug mode is designed to catch problems that ENIGMA does not waste checks on during regular engine runs.
The problem you are having is very generic. If debug mode does not catch it, that's terrible. I'll need you to file a bug report on the matter, complete with the game file or steps to reproduce.
If debug mode does catch it, you will receive an error message either in your console or in a popup window.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
SuperRiderTH
|
|
Reply #2 Posted on: June 01, 2013, 09:07:27 pm |
|
|
Joined: May 2013
Posts: 26
|
So I ran the game in debug mode. I could go in the room and everything works. However, in the terminal I got:
ERROR in some action of some event for object -5, instance id -5: Attempting to draw non-existing background -1 ERROR in some action of some event for object -5, instance id -5: Attempting to draw non-existing background -1 ERROR in some action of some event for object -5, instance id -5: Attempting to draw non-existing background -1 ERROR in some action of some event for object -5, instance id -5: Attempting to draw non-existing background -1 ERROR in some action of some event for object -5, instance id -5: Attempting to draw non-existing background -1 ERROR in some action of some event for object -5, instance id -5: Attempting to draw non-existing background -1 ERROR in some action of some event for object -5, instance id -5: Attempting to draw non-existing background -1
Call me crazy, but I don't think that there are supposed to be negative objects. Or instances. Or backgrounds.
Edit: Actually, some of the rooms still crash when going into it, and does not say anything in the terminal.
|
|
« Last Edit: June 01, 2013, 09:41:36 pm by SuperRiderTH »
|
Logged
|
|
|
|
Goombert
|
|
Reply #3 Posted on: June 01, 2013, 11:20:18 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
Oh my goodness I think you just stumbled across the LGM bug me and cheeseboy had encountered, this might be a GMK bug or just a bug in LGM's room editor And yes those should not be negative.
|
|
« Last Edit: June 01, 2013, 11:21:53 pm by Robert B Colton »
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
polygone
|
|
Reply #4 Posted on: June 02, 2013, 07:22:54 am |
|
|
Location: England Joined: Mar 2009
Posts: 794
|
Wow that's great debug code Josh
|
|
|
Logged
|
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
|
|
|
Josh @ Dreamland
|
|
Reply #5 Posted on: June 02, 2013, 01:06:31 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
It's your fault, polyfuck. You're drawing a background in screen_redraw without making sure it exists--ie, is not -1.
That debug code tells me all I fucking need to know to figure that out. -5 is global.
|
|
« Last Edit: June 02, 2013, 01:08:24 pm by Josh @ Dreamland »
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
Goombert
|
|
Reply #6 Posted on: June 02, 2013, 02:02:00 pm |
|
|
Location: Cappuccino, CA Joined: Jan 2013
Posts: 2993
|
;_; polygonzzzzzzzz
|
|
|
Logged
|
I think it was Leonardo da Vinci who once said something along the lines of "If you build the robots, they will make games." or something to that effect.
|
|
|
polygone
|
|
Reply #7 Posted on: June 02, 2013, 02:38:01 pm |
|
|
Location: England Joined: Mar 2009
Posts: 794
|
It's your fault, polyfuck. You're drawing a background in screen_redraw without making sure it exists--ie, is not -1.
That debug code tells me all I fucking need to know to figure that out. -5 is global.
The background draw code has been there forever.. I presume before I even came to ENIGMA. This is your worst 'blame me' wrongness yet.
|
|
|
Logged
|
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
|
|
|
Josh @ Dreamland
|
|
Reply #8 Posted on: June 02, 2013, 10:16:54 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
SuperRiderTH:
Make sure that in the room in question, all backgrounds are either not marked visible, or are assigned a valid background ID (one that exists). Then make sure that all tiles have valid IDs (switch to the tile list, and remove any whose backgrounds are missing).
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
Josh @ Dreamland
|
|
Reply #10 Posted on: June 03, 2013, 10:10:37 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
The point of debug mode is to provide useful error messages for diagnosing and fixing an issue. As polydip pointed out, leaving a tile problem for the background subsystem to sort produces non-useful error messages that only I know how to read. What if someone deletes a background without deleting tiles/layers that use it? There should be better error handling in the engine during debug mode.
The macro is DEBUG_MODE. When that's set, check *everything* and report errors. If needed, open a discussion here about debug mode levels, so highly expensive, ultra-frequent checks can be enabled apart from usual debug checking.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
polygone
|
|
Reply #11 Posted on: June 03, 2013, 11:19:39 am |
|
|
Location: England Joined: Mar 2009
Posts: 794
|
That's because nobody bothers with debug code, that's a job anybody could do at any time.
|
|
|
Logged
|
I honestly don't know wtf I'm talking about but hopefully I can muddle my way through.
|
|
|
SuperRiderTH
|
|
Reply #12 Posted on: June 03, 2013, 12:54:06 pm |
|
|
Joined: May 2013
Posts: 26
|
I got this in the room after I got rid of every tile, and setting every background to not visible. Game still crashes. If I mash ignore, it appears to go to the next room, and back every time I click it.
|
|
|
Logged
|
|
|
|
Josh @ Dreamland
|
|
Reply #13 Posted on: June 03, 2013, 01:55:06 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Do some of your objects have sprites set which do not exist? Or maybe they're drawing a sprite that doesn't exist? I'll have to fix that error message to give the appropriate IDs so we'll know for sure.
|
|
|
Logged
|
"That is the single most cryptic piece of code I have ever seen." -Master PobbleWobble "I disapprove of what you say, but I will defend to the death your right to say it." -Evelyn Beatrice Hall, Friends of Voltaire
|
|
|
|
|