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 »
571
Issues Help Desk / Re: Problem with instance_deactivate_region
« on: June 22, 2013, 03:31:31 am »
How big is your game?

Are you talking about the room size ? The room width is 3200 and the height is 1136. I am using only objects (16x16 pixels), not tiles. There is thousands of objects, and i don't know exactly how much.

I might ask you to attach ENIGMAsystem/SHELL/Preprocessor_Environment_Editable/IDE_EDIT_objectdeclarations.h. Also, maybe ENIGMAsystem/SHELL/Preprocessor_Environment_Editable/IDE_EDIT_objectfunctionality.h. I fear it might have declared those two variables locally, or is using them locally.

I don't understand, what do you mean by attaching these files ? Modifying an 'include' file or something similar ?

By the way i did some more tests, and i tried instead :

Code: [Select]
instance_deactivate_all(true);
instance_activate_region(view_xview[0], view_yview[0], view_wview[0], view_hview[0], true);

I've the same problem, but with 'instance_deactivate_all' there is also a huge memory leak, as the memory use of the game is exploding and after a moment the java runtime crashs.

I am sure also that it's the deactivate function which resets the view and not the activate.

572
Issues Help Desk / Re: Enigma fails to start on Ubuntu 12.04
« on: June 22, 2013, 03:14:15 am »
I forget to tell that i used the 'bundle' installer which should includes everything, and that in the installation process the 'gcc' option was chosen.

573
Issues Help Desk / Re: Enigma fails to start on Ubuntu 12.04
« on: June 22, 2013, 03:10:00 am »
The PATH variable for MinWG is C:\MinGW\bin, but as i said there is no make.exe anyway.

574
Issues Help Desk / Re: Enigma fails to start on Ubuntu 12.04
« on: June 22, 2013, 03:05:03 am »
Josh, how do you even know he installed GCC? He might not have followed all the download steps.

@Jakro, have you installed GCC?

I have a similar problem, but i am running Windows 7 64 bits. I've installed MinGW. By default the installation directory is c:\MinGW32. Here is my error message :

Quote
org.lateralgm.file.GmFormatException: java.io.IOException: Cannot run program "C:\MinGW\msys\1.0\bin\make.exe" (in directory "C:\Users\xxxxxx\Downloads\game maker\enigma-dev-master"): CreateProcess error=2, Le fichier spécifié est introuvable
   at org.enigma.EnigmaRunner.make(EnigmaRunner.java:257)
   at org.enigma.EnigmaRunner$3.run(EnigmaRunner.java:151)

So i did a new install in C:\MinGW, but there is no msys sub directory and anyway there is no make.exe in any sub directories ! (i did a search). FYI : 'Le fichier spécifié est introuvable'  means 'no such file or directory.

575
Issues Help Desk / Problem with instance_deactivate_region
« on: June 21, 2013, 07:36:39 am »
I'm a developing a platform game with a big room. When the game starts, the view is located according to the player position. In the beginning, the player position is in the middle of the room. Everything is fine. But then I created an object obj_game_controller in order to deactivate objects outside the view. I added this object in the top-left corner of the room.

In the step event of obj_game_controller, i've the following code :

Code: [Select]
instance_deactivate_region(view_xview[0], view_yview[0], view_wview[0], view_hview[0], false, true);
instance_activate_region(view_xview[0], view_yview[0], view_wview[0], view_hview[0], true

The problem now is that the view now is always located to the top left corner of the room.  The view_xview[0] and view_yview[0] return zero. I tried my code with GM 8.1 and i don't have this problem. In GM view_xview[0] and view_yview[0] return the correct values according to the player position. Does anybody know what is the problem ?

576
General ENIGMA / Deactivating objects outside the view ?
« on: June 20, 2013, 01:06:21 pm »
I read that in GM it's a good practice to deactivate objects (with 'instance_deactivate_region' for example) which are outside the view, as they are consuming CPU resources. Is it the same with the ENIGMA engine ?

577
The functions are the same, as me and ExDeus said.

Well, this morning i tried my code on GM 8.1 and ENIGMA and the result was different. I don't pretend to be an expert, but at least in some cases the result is not the same.

578
I was looking for information about how testing collisions in a given region and i found the collision_rectangle function, which was perfect for me. But the info i found was for GM not ENIGMA. In my mind the GM functions are identical in ENIGMA. I feel the ENIGMA function collision_rectangle is fine, but it's dangerous right now for two reasons : 1) unfortunately, as GM is more famous right now than ENIGMA, people will very often find information on GM programming websites. This means they will probably try what they found on these websites with ENIGMA, and if the functions are not identical, they will be puzzled. This will be not be a good impression for new users. At first, i was sure it was a bug in ENIGMA. I was thinking : what a disappointment, the function doesn't work at all ! 2) If the functions are not identical, this means it will be break compatibility and it will be harder to import GM projects.
My feeling is that we should give collision_rectangle another name and keep the GML functions compatible with ENIGMA. If it is not the case, we should do it for very good reasons, and most of all document this. Somebody has corrected the wiki page for collision_rectangle today, but the page was wrong before. If some GM functions are not identical it should be displayed in the wiki and be visible to everybody.

579
Announcements / Re: LateralGM Update
« on: June 19, 2013, 08:17:34 am »
....and you also have an out of date version, please download the new LGM Ego...

Are you talking about the 'Repository' version  ? I tried but i had several error messages when i try to run it. For the moment i don't want to spend too much time trying to fix this, so i will wait. 

580
I think the wiki page should be changed : http://enigma-dev.org/docs/Wiki/Collision_line, because it says the function returns a boolean. This is not the case.

581
Thanks polygone, it's ok now !  (Y)

582
I would like to know if functions collision_line and collision_rectangle are implemented as they seem to return always true. I tested my code with GM8.1 and it works fine.

583
Works in Progress / Re: Mark the Penguin
« on: June 18, 2013, 04:19:22 pm »
Thanks for the game, but unfortunately the link is dead. Does anybody can post a new link ?

584
Here is a very interesting site for developers of indie games : http://www.pixelprospector.com/

The most interesting part is the resources section : http://www.pixelprospector.com/indie-resources/, with tons of resources for everything related to games development (tools, games design, graphics, music, etc..)

585
Proposals / Zooming in the sprite editor
« on: June 16, 2013, 05:05:02 am »
What about adding two buttons in the sprite editor ? One for zooming in and another for zooming out. With the current zoom level, it's not always easy in the mask properties to set precisely the bounding box if the sprite looks small. I think it would be useful.

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 »