edsquare
|
|
Posted on: July 25, 2014, 03:22:49 pm |
|
|
Location: The throne of ringworld Joined: Apr 2014
Posts: 402
|
What can I do? Been searching but can't seem to find how to do it, a similar game developed in GayMaker doesn't have the objects parents declared and it's supossed to be a tutorial Any help welcome, even if it's just to point me to where I should've seen the solution and didn't because I'm that dumb sometimes...
|
|
|
Logged
|
A child of five would understand this. Send someone to fetch a child of five. Groucho Marx
|
|
|
Josh @ Dreamland
|
|
Reply #1 Posted on: July 25, 2014, 09:54:55 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Going to need more context here. Where is asteroidParent being used that it isn't declared?
|
|
|
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
|
|
|
edsquare
|
|
Reply #2 Posted on: July 25, 2014, 10:03:19 pm |
|
|
Location: The throne of ringworld Joined: Apr 2014
Posts: 402
|
Going to need more context here. Where is asteroidParent being used that it isn't declared?
It's a GM tutorial for gml, thanks for the interest, tomorrow will upload the code, too tired and have to get up early.
|
|
|
Logged
|
A child of five would understand this. Send someone to fetch a child of five. Groucho Marx
|
|
|
edsquare
|
|
Reply #3 Posted on: July 26, 2014, 08:33:13 am |
|
|
Location: The throne of ringworld Joined: Apr 2014
Posts: 402
|
Here's the full error output: make[1]: se ingresa al directorio «/home/eduardo/enigma/ENIGMAsystem/SHELL» g++ -Wall -s -O3 -fno-rtti -fno-exceptions -DPATH_EXT_SET -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I/home/eduardo/.enigma/ -Wall -s -O3 -fno-exceptions -MMD -MP -c -o /home/eduardo/.enigma/.eobjs/Linux/Linux/Run/SHELLmain.o SHELLmain.cpp In file included from SHELLmain.cpp:106:0: /home/eduardo/.enigma/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function ‘variant _SCR_master_bullet(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)’: /home/eduardo/.enigma/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:235:67: error: ‘y’ was not declared in this scope var iID = instance_place(enigma::glaccess(int(self))-> x, y, asteroidParent); ^ /home/eduardo/.enigma/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:235:70: error: ‘asteroidParent’ was not declared in this scope var iID = instance_place(enigma::glaccess(int(self))-> x, y, asteroidParent); ^ make[1]: *** [/home/eduardo/.enigma/.eobjs/Linux/Linux/Run/SHELLmain.o] Error 1 make[1]: se sale del directorio «/home/eduardo/enigma/ENIGMAsystem/SHELL» make: *** [Game] Error 2
The gmx enigma report's it as corrupted and that it managed to extract only part of it, could that be the source of the problem? Here's the egm I'm workin in: http://www51.zippyshare.com/v/32245687/file.htmlWhy is it, that, if an attached file is too big; the forum erases my whole post instead of just reporting the issue and not attaching it? Thanks again in advance
|
|
|
Logged
|
A child of five would understand this. Send someone to fetch a child of five. Groucho Marx
|
|
|
Josh @ Dreamland
|
|
Reply #4 Posted on: July 26, 2014, 10:11:03 am |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Okay, that's strange. Could you separate [snip]var iID =[/snip] to [snip]var iID; iID =[/snip] and see if that fixes it? The current parser seems to only check the first parameter of functions for variables.
|
|
|
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
|
|
|
edsquare
|
|
Reply #5 Posted on: July 26, 2014, 01:56:54 pm |
|
|
Location: The throne of ringworld Joined: Apr 2014
Posts: 402
|
Okay, that's strange. Could you separate [snip]var iID =[/snip] to [snip]var iID; iID =[/snip] and see if that fixes it? The current parser seems to only check the first parameter of functions for variables.
Will do and keep you posted, thanks!
|
|
|
Logged
|
A child of five would understand this. Send someone to fetch a child of five. Groucho Marx
|
|
|
edsquare
|
|
Reply #6 Posted on: July 29, 2014, 05:00:02 pm |
|
|
Location: The throne of ringworld Joined: Apr 2014
Posts: 402
|
I'm back! Okey as advised I upgraded to the latest LGM/ENIGMA, made the changes Josh suggested but still no luck make[1]: se ingresa al directorio «/home/eduardo/enigma/ENIGMAsystem/SHELL» g++ -Wall -s -O3 -fno-rtti -fno-exceptions -DPATH_EXT_SET -IPlatforms/xlib/Info -IGraphics_Systems/OpenGL1/Info -IAudio_Systems/OpenAL/Info -ICollision_Systems/Precise/Info -IWidget_Systems/None/Info -INetworking_Systems/None/Info -IUniversal_System/Info -I. -I/home/eduardo/.enigma/ -Wall -s -O3 -fno-exceptions -MMD -MP -c -o /home/eduardo/.enigma/.eobjs/Linux/Linux/Run/SHELLmain.o SHELLmain.cpp In file included from SHELLmain.cpp:106:0: /home/eduardo/.enigma/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function ‘variant _SCR_master_bullet(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)’: /home/eduardo/.enigma/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:236:13: error: redeclaration of ‘var iID’ var iID = instance_place(enigma::glaccess(int(self))-> x, y, asteroidParent); ^ /home/eduardo/.enigma/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:235:13: error: ‘var iID’ previously declared here var iID; ^ /home/eduardo/.enigma/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:236:67: error: ‘y’ was not declared in this scope var iID = instance_place(enigma::glaccess(int(self))-> x, y, asteroidParent); ^ /home/eduardo/.enigma/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:236:70: error: ‘asteroidParent’ was not declared in this scope var iID = instance_place(enigma::glaccess(int(self))-> x, y, asteroidParent); ^ make[1]: *** [/home/eduardo/.enigma/.eobjs/Linux/Linux/Run/SHELLmain.o] Error 1 make[1]: se sale del directorio «/home/eduardo/enigma/ENIGMAsystem/SHELL» make: *** [Game] Error 2
What am I doing wrong?
|
|
|
Logged
|
A child of five would understand this. Send someone to fetch a child of five. Groucho Marx
|
|
|
Josh @ Dreamland
|
|
Reply #7 Posted on: July 29, 2014, 08:18:36 pm |
|
|
Prince of all Goldfish
Location: Pittsburgh, PA, USA Joined: Feb 2008
Posts: 2950
|
Okay, the parser's being pretty stupid. But you left the original [snip]var iID =[/snip] in there; all you did was add another declaration above it. Remove var from that second line entirely.
|
|
|
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
|
|
|
edsquare
|
|
Reply #8 Posted on: July 29, 2014, 08:22:55 pm |
|
|
Location: The throne of ringworld Joined: Apr 2014
Posts: 402
|
Okay, the parser's being pretty stupid. But you left the original [snip]var iID =[/snip] in there; all you did was add another declaration above it. Remove var from that second line entirely.
Fuck! You're right! What a moron! How could I make such a stupid mistake? Fixing it right away. EDIT: Fixed it, it worked, thanks a lot Josh!
|
|
« Last Edit: July 29, 2014, 09:03:31 pm by edsquare »
|
Logged
|
A child of five would understand this. Send someone to fetch a child of five. Groucho Marx
|
|
|
|
|