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.
31
Issues Help Desk / Editing tiles
« on: June 23, 2014, 02:19:48 pm »
In the rooms editor, there is an edit tab for tiles, where you can change the values of fields X and Y for the tileset. I don't see the use of these fields, as i don't see any visible effect. Does anybody what's the use of these fields ?
32
Proposals / Make the views visible in the rooms editor
« on: June 22, 2014, 02:01:17 am »
I want to finish first the undo feature, but after that i would like to add a simple but useful feature : make the views visible in the rooms editor. White rectangles for visible views, as in GM studio, seem relevant to me. But i would like also to write the view number inside the rectangle (e.g 'view 0', 'view 1', etc). If a view is selected in the list, the viewport of the room should be changed in order to display it, so we don't have to go everywhere in the room to see where the view is. Finally, it would be cool to create the views with the mouse : with a drag and drop, let's create a view !
33
Off-Topic / A complex maze with one line of code !
« on: June 20, 2014, 02:22:10 am »Code: [Select]
10 PRINT CHR$(205.5+RND(1)); : GOTO 10
A simple line of code in Basic to make a 2D 'complex' maze on the commodore 64 !

There is a complete book written on this line of code ! : http://10print.org/
You can download on the web site the electronic version of the book for free !
For all the kids who were not born in the early eighties, and don't know what we are talking about

http://en.wikipedia.org/wiki/Commodore_64
Commodore 64 was one of the most successful computer in the early eighties. It had astounding graphical and musical skills for his time, and it was much cheaper than Apple !

34
General ENIGMA / Rooms editor 'hidden' secrets
« on: June 16, 2014, 02:08:22 pm »
As i am adding new features to the rooms editor (for the moment i am adding the Undo/Redo function for objects), i am analyzing the code, and i found some features that i didn't know before ! For example, did you know that when you want to add a lot of the same object into a room, you can 'paint' objects ? I don't think that every user knows this feature.
Here is some tips when managing objects in a room:
- For adding a new object, you select the object type, in the object tab, and you click anywhere in the room. You can also move the object, by dragging it. If you want to 'paint' an object, press the shift key and with left button pressed, 'paint' the objects on the map.
- If you want to move an object, select an object with the mouse, press the ctrl key and drag it.
- If you want to delete objects, press the right key and erase all the objects under the cursor.
Edit:
- if you move an object and press alt, the snapping is disabled.
Soon i want to explain these features in the empty wiki page : http://enigma-dev.org/docs/Wiki/Room_Editor. But as this page is almost never visited, i think it would useful to add a new button in the toolbar of the rooms editor which opens a new window and explains all the features i just explained.
Here is some tips when managing objects in a room:
- For adding a new object, you select the object type, in the object tab, and you click anywhere in the room. You can also move the object, by dragging it. If you want to 'paint' an object, press the shift key and with left button pressed, 'paint' the objects on the map.
- If you want to move an object, select an object with the mouse, press the ctrl key and drag it.
- If you want to delete objects, press the right key and erase all the objects under the cursor.
Edit:
- if you move an object and press alt, the snapping is disabled.
Soon i want to explain these features in the empty wiki page : http://enigma-dev.org/docs/Wiki/Room_Editor. But as this page is almost never visited, i think it would useful to add a new button in the toolbar of the rooms editor which opens a new window and explains all the features i just explained.
35
Proposals / Undo in the rooms editor
« on: June 08, 2014, 04:54:15 am »
Hello,
I would like to implement an undo /redo function in the rooms editor. I think this is an important feature missing. I know Java and Swing so i can do it myself. What do you think ? Are you interested ?
P.S: An interesting article about how to implement correctly undo function with Swing : http://www.javaworld.com/article/2076698/core-java/add-an-undo-redo-function-to-your-java-apps-with-swing.html
I would like to implement an undo /redo function in the rooms editor. I think this is an important feature missing. I know Java and Swing so i can do it myself. What do you think ? Are you interested ?
P.S: An interesting article about how to implement correctly undo function with Swing : http://www.javaworld.com/article/2076698/core-java/add-an-undo-redo-function-to-your-java-apps-with-swing.html
36
General ENIGMA / Importing lateralgm plugin into eclipse
« on: June 07, 2014, 03:03:33 am »
Hello,
I've downloaded source code of Lateralgm plugin from Github and imported into Eclipse workspace. I don't know how eclipse creates the project name (from the namespace ?), but currently it's ENIGMA. If you want to create the jar, you have the description.jardesc, but it needs the folder to be named lgmplugin. So you have to rename the folder. Is this normal ? I know it's not serious, but i am just wondering.
I've downloaded source code of Lateralgm plugin from Github and imported into Eclipse workspace. I don't know how eclipse creates the project name (from the namespace ?), but currently it's ENIGMA. If you want to create the jar, you have the description.jardesc, but it needs the folder to be named lgmplugin. So you have to rename the folder. Is this normal ? I know it's not serious, but i am just wondering.
37
Issues Help Desk / show_message doesn't work on linux
« on: June 06, 2014, 06:32:58 am »
I tested this function on Linux Mint 16 KDE and Ubuntu 14.04, and nothing happens. No problem on Windows.
38
General ENIGMA / Modifying the wiki page on EDL specification
« on: June 05, 2014, 04:10:24 pm »
Hello,
I would like to modify the wiki page about EDL specification. Instead of:
What about :
It seems better for me, as i think users of ENIGMA/GM are often beginners in programming and don't know much about others languages. I would like to modify the wiki, but i am afraid i am not fluent in english. What do you think of my proposal ?
I would like to modify the wiki page about EDL specification. Instead of:
Quote
Arrays
EDL inherits JavaScript-like arrays rather than C++-like arrays. This is so an array can serve as an lvalue, as in the following code:
[x,y] = get_coordinates();
var fruits = ["apples", "oranges", "cherries"];
In the above case, x and y are set to the first and second elements in the array returned by get_coordinates(), respectively. The second line then declares a var and assigns the given array values to it.
How this is accomplished after compile is outside the scope of this specification. Consult the appropriate export language plug-in page for details on implementation.
What about :
Code: [Select]
Arrays
An array is always declared as a variant data type with the keyword var, followed by its name. Variant variables are not restricted to a specific data type and can hold any value you want. In order to access the element of an array, you add after its name the element index rounded by square brackets.
Example :
var myarray;
myarray[1] = 10;
It seems better for me, as i think users of ENIGMA/GM are often beginners in programming and don't know much about others languages. I would like to modify the wiki, but i am afraid i am not fluent in english. What do you think of my proposal ?
39
Issues Help Desk / Can't rename a resource under linux KDE
« on: May 30, 2014, 11:05:08 am »
Here is the error message :
It happens only under linux. With Windows, it's fine.
Quote
java.lang.IllegalArgumentException: Comparison method violates its general contract!
at java.util.TimSort.mergeHi(TimSort.java:868)
at java.util.TimSort.mergeAt(TimSort.java:485)
at java.util.TimSort.mergeForceCollapse(TimSort.java:426)
at java.util.TimSort.sort(TimSort.java:223)
at java.util.TimSort.sort(TimSort.java:173)
at java.util.Arrays.sort(Arrays.java:659)
at java.util.Collections.sort(Collections.java:217)
at javax.swing.SortingFocusTraversalPolicy.enumerateAndSortCycle(SortingFocusTraversalPolicy.java:136)
at javax.swing.SortingFocusTraversalPolicy.getFocusTraversalCycle(SortingFocusTraversalPolicy.java:110)
at javax.swing.SortingFocusTraversalPolicy.getComponentAfter(SortingFocusTraversalPolicy.java:280)
at javax.swing.LayoutFocusTraversalPolicy.getComponentAfter(LayoutFocusTraversalPolicy.java:106)
at sun.swing.SwingUtilities2.compositeRequestFocus(SwingUtilities2.java:1556)
at javax.swing.plaf.basic.BasicTreeUI.startEditing(BasicTreeUI.java:2179)
at javax.swing.plaf.basic.BasicTreeUI.startEditingAtPath(BasicTreeUI.java:618)
at javax.swing.JTree.startEditingAtPath(JTree.java:2390)
at org.lateralgm.main.Listener.actionPerformed(Listener.java:390)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)
at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
at javax.swing.AbstractButton.doClick(AbstractButton.java:376)
at javax.swing.AbstractButton.doClick(AbstractButton.java:356)
at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:802)
at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1662)
at javax.swing.JComponent.processKeyBinding(JComponent.java:2869)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:689)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:697)
at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:697)
at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:668)
at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:307)
at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:293)
at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2961)
at javax.swing.JComponent.processKeyBindings(JComponent.java:2953)
at javax.swing.JComponent.processKeyEvent(JComponent.java:2832)
at java.awt.Component.processEvent(Component.java:6282)
at java.awt.Container.processEvent(Container.java:2229)
at java.awt.Component.dispatchEventImpl(Component.java:4861)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1895)
at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:762)
at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1027)
at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:899)
at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:727)
at java.awt.Component.dispatchEventImpl(Component.java:4731)
at java.awt.Container.dispatchEventImpl(Container.java:2287)
at java.awt.Window.dispatchEventImpl(Window.java:2719)
at java.awt.Component.dispatchEvent(Component.java:4687)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:735)
at java.awt.EventQueue.access$200(EventQueue.java:103)
at java.awt.EventQueue$3.run(EventQueue.java:694)
at java.awt.EventQueue$3.run(EventQueue.java:692)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)
at java.awt.EventQueue$4.run(EventQueue.java:708)
at java.awt.EventQueue$4.run(EventQueue.java:706)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:705)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
It happens only under linux. With Windows, it's fine.
40
Issues Help Desk / Opening an EGM windows project under linux is not possible
« on: May 30, 2014, 04:37:14 am »
Hello,
If you make an empty enigma project under windows, save it with an egm file, and you try to open it again on linux, it crashes ENIGMA. I think i've found why : on Windows, in the Enigma Settings, the 'Make Directory' is '%PROGRAMDATA%/ENIGMA/'. On linux if you replace this setting with '%HOME%/.enigma/', it's ok !
Update:
What about having a value for each OS within the project file for the 'Make directory' setting ? It seems it would solve this problem.
Update2:
The gmk file doesn't have this problem. I guess we should implement the egm files as the gmk files concerning this setting.
If you make an empty enigma project under windows, save it with an egm file, and you try to open it again on linux, it crashes ENIGMA. I think i've found why : on Windows, in the Enigma Settings, the 'Make Directory' is '%PROGRAMDATA%/ENIGMA/'. On linux if you replace this setting with '%HOME%/.enigma/', it's ok !
Update:
What about having a value for each OS within the project file for the 'Make directory' setting ? It seems it would solve this problem.
Update2:
The gmk file doesn't have this problem. I guess we should implement the egm files as the gmk files concerning this setting.
41
Issues Help Desk / Restore window size doesn't work with DirectX9
« on: May 28, 2014, 05:22:21 am »
Hello,
Under DirectX9, if you minimize a windows and restore it to the default size, all objects disappears.
Under DirectX9, if you minimize a windows and restore it to the default size, all objects disappears.
42
Issues Help Desk / instance_deactivate_region crashes the application
« on: May 26, 2014, 02:39:25 am »
Hello,
If you try to use instance_deactivate_region inside the creation code of a room :
or instance_deactivate_all :
The application crashes. In these examples, the option is set to preserve the calling instance.
If you try to use instance_deactivate_region inside the creation code of a room :
Code: [Select]
instance_deactivate_region(0,0,100,100,true,true);
or instance_deactivate_all :
Code: [Select]
instance_deactivate_all(true);
The application crashes. In these examples, the option is set to preserve the calling instance.
43
Issues Help Desk / draw_sprite doesn't take in account the visible property
« on: May 20, 2014, 03:00:15 am »
Hello,
I've an object with a draw event, where i've the following code :
Now if i try to set the object property to false :
The object is still visible. This is not the case in GM. If i remove the draw event, then the object is now invisible.
Here is a sample test project:
https://dl.dropboxusercontent.com/u/29802501/test_draw_sprite.egm
In the creation code of the room, i try to hide the objects, but as you can see it doesn't work.
I've an object with a draw event, where i've the following code :
Code: [Select]
draw_sprite(sprite_index, -1, x, y);
Now if i try to set the object property to false :
Code: [Select]
with (obj_0)
{
visible = false;
}
The object is still visible. This is not the case in GM. If i remove the draw event, then the object is now invisible.
Here is a sample test project:
https://dl.dropboxusercontent.com/u/29802501/test_draw_sprite.egm
In the creation code of the room, i try to hide the objects, but as you can see it doesn't work.
44
Issues Help Desk / draw_rectangle_color is not working correctly
« on: May 19, 2014, 06:10:00 am »
I want to display a health bar with the draw_rectangle_color method. The health bar should be red on the left and blue on the right. I've used the following method:
Here is the result on GM :

and with ENIGMA:

The specs of this method are the same on ENIGMA and GM:
http://docs.yoyogames.com/source/dadiospice/002_reference/drawing/drawing%20basic%20forms/draw_rectangle_color.html
http://enigma-dev.org/docs/Wiki/Draw_rectangle_color
As you can see, colors are not correct. Of course i can change easily my method, but i wanted just to report the bug.
Code: [Select]
draw_rectangle_color(char_width * 6, view_yview[1] + char_width * 2, char_width * 38, view_yview[1] + char_width * 3, c_red, blue, blue, c_red, false);
Here is the result on GM :

and with ENIGMA:

The specs of this method are the same on ENIGMA and GM:
http://docs.yoyogames.com/source/dadiospice/002_reference/drawing/drawing%20basic%20forms/draw_rectangle_color.html
http://enigma-dev.org/docs/Wiki/Draw_rectangle_color
As you can see, colors are not correct. Of course i can change easily my method, but i wanted just to report the bug.
45
Issues Help Desk / Problems with multiple views
« on: May 19, 2014, 04:19:04 am »
Hello,
It is not possible to have multiple views visible at the same time : i've a room and i want to display two different views of this room. So far i didn't succeed to implement this in ENIGMA. In GM i've no problems. Any help is welcome.
Here is a simple test project :
https://dl.dropboxusercontent.com/u/29802501/test_view.egm
There is a room (640*960), with two views : view0 displays the upper part of the room and view1 the bottom, but we see only view1.
Update: i did more tests and i've found that this problem occurs only with OpenGL (1.1 and 3), with DirectX 9.0 it's ok !
It is not possible to have multiple views visible at the same time : i've a room and i want to display two different views of this room. So far i didn't succeed to implement this in ENIGMA. In GM i've no problems. Any help is welcome.
Here is a simple test project :
https://dl.dropboxusercontent.com/u/29802501/test_view.egm
There is a room (640*960), with two views : view0 displays the upper part of the room and view1 the bottom, but we see only view1.
Update: i did more tests and i've found that this problem occurs only with OpenGL (1.1 and 3), with DirectX 9.0 it's ok !