Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - egofree

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »
466
General ENIGMA / Re: LateralGM 1.8.5
« on: April 30, 2014, 03:47:02 am »
I don't remember if i reported already this error, but in the ENIGMA settings, if you put some codes in 'Definitions', and start a new project, the code is still here ! It happens also if you start again ENIGMA.

467
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 04:17:46 am »
By the way sorry Darkstar2 for 'polluting' your topic  :D

468
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 04:17:14 am »
Very strange, i tried to modify my variable declaration to do some tests. In the end, i tested again my code :

Code: [Select]
global var myvar = 10;
show_message(string(myvar));

But now i've the following error message :

Quote
In file included from SHELLmain.cpp:101:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectaccess.h: In function 'var& enigma::varaccess_myvar(int)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectaccess.h:57:46: error: 'struct enigma::OBJ_child' has no member named 'myvar'
       case child: return ((OBJ_child*)inst)->myvar;

Here is my project :
https://dl.dropboxusercontent.com/u/29802501/test%20inheritance.egm

The code is in the 'child' object. By the way i had a lot of similar error messages in my main project.

469
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 03:53:52 am »
try globalvar instead of global var, no space.


Same result. I am using Windows 8.1. I will try at home with Windows 7 to see if i've the same result.

470
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 03:35:02 am »
I've an object and in the click event, i've written the following code:

Code: [Select]
global var myvar = 10;
show_message(string(myvar));

Still, i've an empty message box. Do you know why ?

Here is an screenshot:


471
Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 02:29:11 am »
I think there is problems with global variables right now. In an empty project, just try to create a script with this line inside :

Code: [Select]
global myvar = 10;
I took this simple example from http://enigma-dev.org/docs/Wiki/Global

You will have the following error message:

Quote
In file included from SHELLmain.cpp:102:0:
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h: In function 'variant _SCR_scr_0(variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant, variant)':
C:/ProgramData/ENIGMA/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h:35:32: error: 'globalmself' was not declared in this scope
     enigma::varaccess_yvar(int(globalmself))= 10;

If you declare instead

Code: [Select]
global var myvar = 10;
You don't have anymore the error message. But if i try to display the value in an object :

Code: [Select]
show_message(string(myvar));
It displays nothing.

472
General ENIGMA / Re: Inheritance Fixes
« on: April 28, 2014, 06:08:49 am »
As objects inheritance should work without any problems right now, i think we should remove this option, and have objects inheritance always activated. Otherwise new comers (usually they are already GM users), will try to load their projects and think objects inheritance is not working.

473
General ENIGMA / Re: Inheritance Fixes
« on: April 28, 2014, 04:44:01 am »
Ok, so couple of questions. The inheritance did work correctly in your game though right? And was your game saved as an EGM? It probably never had the setting because it was a new setting, if you set it true and save again it should be set to true every time you load after that.

For the moment i can't say if the inheritance is really working, as a lot of things are still not working.  :)
Yes, i guess it's a new setting, and it's ok if i save the project and load it again. But my point is this : for old projects which doesn't have this setting, would it be possible to set the option as selected by default ? I spent several hours to figure out why the inheritance was not working and to find this option. By the way, why we need this option ? Shouldn't inheritance always works ?

474
General ENIGMA / Re: Inheritance Fixes
« on: April 28, 2014, 04:29:06 am »
Ok, i tried again my old project ('Son of blagger') with the latest version of ENIGMA. I spent two hours to figure out why inheritance was not working at all with my project ! : in the enigma settings, the 'Object inheritance' option is not selected by default. I think it should be always selected when you load an old project. This is the case if you create a new project.

475
General ENIGMA / Re: LateralGM 1.8.5
« on: April 28, 2014, 03:59:12 am »
In my Objects folder, i've sub a sub folder with an object. If i move  this object into the parent folder by using drag and drop, and then i save the project, i've the following error message :

http://pastebin.com/Yz6e2cg1

I am using the latest version of Enigma on Windows 8.1.

Update : it happens every time i try to move an object (In the same folder also).

476
General ENIGMA / Re: Inheritance Fixes
« on: April 27, 2014, 04:15:24 am »
That's great. Inheritance is very important. Robert, you are my hero !  :D

477
General ENIGMA / Re: LateralGM 1.8.5
« on: April 25, 2014, 05:00:23 am »
Thanks a lot for your work Robert. What about adding these features in the code editor ? :

- Adding the find/replace command in a menu. I didn't see this command anywhere in the menus. As i understand, it's only available by pressing ctrl + f.
- Adding the possibility to do a global find in all files. For example, i would like to look for a variable in all my files. I don't think it's possible right now. I miss this feature a lot. I see two possibilities : with a dialog window where you enter keywords, or in the code editor, right clicking on a word and choosing 'Find all references'. The results would be displayed as a listview on the bottom of the screen. This is how it's made in Visual Studio.

478
General ENIGMA / Re: LateralGM 1.8.5
« on: April 22, 2014, 02:20:11 am »
Right don't get your hopes up there :P

What i am afraid is that important contributors of ENIGMA said they are leaving the project (Robert, Josh, IsmAvatar). Most of them are still here, but for how long ?

479
General ENIGMA / Re: LateralGM 1.8.5
« on: April 20, 2014, 03:11:43 pm »
Wow I am curious as to whether people made full games with ENIGMA, it is giving me a big headache and is a pain in the ass :( 

Well, you understand now why in the 'win enigma competiton' topic i said this competition is useless now, and the main priority should be bugs fixing. No wonder no full games have been made with enigma so far. I know some people who say the contrary but we have not seen so far any games from these people !  ;) Still i come here because i like this community and i really hope one day enigma will get successful, but i hope it will happen before i die !  ;)

480
Off-Topic / Windows XP's demise will help linux ?
« on: April 12, 2014, 01:48:33 am »
http://www.fool.com/investing/general/2014/04/09/exit-of-windows-xp-will-help-linux-leapfrog-mac-os.aspx

Let's hope this forecast will be true. In my office, we are using windows 8, and i think the Metro interface is nonsense on desktop and laptop pcs.

Pages: « 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 »