Pages: 1
  Print  
Author Topic: error: ‘asteroidParent’ was not declared in this scope  (Read 2047 times)
Offline (Male) edsquare
Posted on: July 25, 2014, 03:22:49 PM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
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...  :D
Logged
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
Offline (Male) Josh @ Dreamland
Reply #1 Posted on: July 25, 2014, 09:54:55 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2949

View Profile Email
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
Offline (Male) edsquare
Reply #2 Posted on: July 25, 2014, 10:03:19 PM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
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
Offline (Male) edsquare
Reply #3 Posted on: July 26, 2014, 08:33:13 AM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
Here's the full error output:

Code: [Select]

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.html

Why 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  :D
Logged
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
Offline (Male) Josh @ Dreamland
Reply #4 Posted on: July 26, 2014, 10:11:03 AM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2949

View Profile Email
Okay, that's strange. Could you separate var iID = to var iID; iID = 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
Offline (Male) edsquare
Reply #5 Posted on: July 26, 2014, 01:56:54 PM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
Okay, that's strange. Could you separate var iID = to var iID; iID = 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!  (Y)
Logged
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
Offline (Male) edsquare
Reply #6 Posted on: July 29, 2014, 05:00:02 PM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
I'm back!

Okey as advised I upgraded to the latest LGM/ENIGMA, made the changes Josh suggested but still no luck  :(

Code: [Select]

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
Offline (Male) Josh @ Dreamland
Reply #7 Posted on: July 29, 2014, 08:18:36 PM

Prince of all Goldfish
Developer
Location: Pittsburgh, PA, USA
Joined: Feb 2008
Posts: 2949

View Profile Email
Okay, the parser's being pretty stupid. But you left the original var iID = 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
Offline (Male) edsquare
Reply #8 Posted on: July 29, 2014, 08:22:55 PM

Member
Location: The throne of ringworld
Joined: Apr 2014
Posts: 402

View Profile
Okay, the parser's being pretty stupid. But you left the original var iID = in there; all you did was add another declaration above it. Remove var from that second line entirely.

Fuck!  >:(  You're right! :o  What a moron! :-\ How could I make such a stupid mistake?  ???

Fixing it right away.  (Y)

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
Offline (Unknown gender) Darkstar2
Reply #9 Posted on: July 29, 2014, 10:31:17 PM
Member
Joined: Jan 2014
Posts: 1244

View Profile Email

Fuck!  >:(  You're right! :o  What a moron! :-\ How could I make such a stupid mistake?  ???

lol - don't worry, you didn't break any records yet....Some have done far worse. :P
Logged
Pages: 1
  Print