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.
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 »
406
General ENIGMA / Re: Help wanted - Please help me test a fix to ENIGMA's font problem
« on: June 03, 2014, 02:15:04 pm »
I've an Alienware X51 with an Geoforce GTX 660 OEM. I tested your application :
- On Linux Mint KDE 64 bits, with Nvidia drivers 319.32. No problem. Before and after the fix, everything is perfect.
- On Windows 7 64 bits, with Nvidia drivers 337.88. Before the fix, i've the same same error as you, and after the fix, everything is ok.
- On Linux Mint KDE 64 bits, with Nvidia drivers 319.32. No problem. Before and after the fix, everything is perfect.
- On Windows 7 64 bits, with Nvidia drivers 337.88. Before the fix, i've the same same error as you, and after the fix, everything is ok.
407
Issues Help Desk / Re: Can't rename a resource under linux
« on: June 03, 2014, 03:45:11 am »But also, this doesn't make sense, because renaming a resource in the tree does not do any sorting?
I did more tests. I think it's not directly related to tree editing, but to some change in the focus between Lateralgm and its plugin. If the plugin is not loaded, you don't have this error.
In the error message, you can see :
Quote
at sun.swing.SwingUtilities2.compositeRequestFocus(SwingUtilities2.java:1556)
And in order to have this focus Swing uses internally some arrays sorting. I've tested also Enigma with Kubuntu, and you have also this error ! It seems very likely that this error will happen with every distribution with KDE installed. I don't know how Swing works internally, but i guess depending on the OS and its graphics layer, some rendering and functionalities are not always working in the same way, even if in theory the result should be always the same.
The only possible fix i've found so far is adding in LateralGm:
Code: [Select]
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");
408
Issues Help Desk / Re: Fonts display glitch / Borders / Scrolling glitches
« on: June 02, 2014, 04:03:04 pm »Sprites, parts, shapes drawn all work fine, at least so far
Did you try 'sprite fonts' as i suggested in my last message ? I've used this method in my game, and i didn't have any problem.
409
Issues Help Desk / Re: Fonts display glitch / Borders / Scrolling glitches
« on: June 02, 2014, 02:52:42 pm »
What about using font_add_sprite ? :
http://enigma-dev.org/docs/Wiki/Font_add_sprite
Perhaps it could be a workaround for your problem ?
http://enigma-dev.org/docs/Wiki/Font_add_sprite
Quote
Adds a new font from the given sprite with the sub images mapped to the characters.
Perhaps it could be a workaround for your problem ?
410
Issues Help Desk / Re: Font rendering is broken again !
« on: June 02, 2014, 02:42:09 pm »My GPU has not changed, it is a GeForce GTX660 Ti SC 2GB
This is really strange, i've the GeForce GTX660 (OEM) 1.5GB, which is almost the same model, with the latest Nvidia drivers, and i don't have this problem.
I didn't read the whole thread, but just in case, did you try some OpenGl demos with text ? To see if the problem comes from OpenGl drivers or only with Enigma.
411
Issues Help Desk / Re: Fonts display glitch / Borders / Scrolling glitches
« on: June 02, 2014, 02:04:01 pm »412
General ENIGMA / Re: New Beginnings
« on: June 01, 2014, 02:01:13 pm »
I was talking about interesting game engines. For example Microsoft has dropped support of XNA, but a new open-source project has been made : Monogame. (c.f http://en.wikipedia.org/wiki/MonoGame). The repository is here : https://github.com/mono/MonoGame. I didn't test yet, but at first glance it seems very interesting. It is a modern framework based on a well know framework made by MS, it is cross platform (OS, Android, Mac OS X, Linux, Windows, and PS4 soon !) and for the programming language, you can use the .Net languages. As i understand, what is missing is an IDE similar to GM Studio.
Edit:
For the IDE, you have the following choices:
MonoGame for VisualStudio
MonoGame for MonoDevelop Windows
MonoGame for MonoDevelop Linux
MonoGame for MonoDevelop Mac
Edit:
For the IDE, you have the following choices:
MonoGame for VisualStudio
MonoGame for MonoDevelop Windows
MonoGame for MonoDevelop Linux
MonoGame for MonoDevelop Mac
413
General ENIGMA / Re: New Beginnings
« on: June 01, 2014, 01:28:24 pm »Ok, a couple of things.
1) XNA, BlitzBasic, DarkBasic are all proprietary.
2) BlitzBasic, DarkBasic, and XNA are not very modern.
3) XNA is C#......
Not very modern ? Do you know when C++ was created ? 1983 ! Very modern indeed !
(Hey, Robert i am just teasing you !
)More seriously, i was talking about these tools and languages not to say we should imitate them, but to see what type of tools are available and to understand why GM is so successful.
As you said you don't care about the compatibility of GM, i was wondering if it's really necessary to make a new games engine. It seems that there is already a lot of excellent games engines existing, but very often they don't come with an optimized IDE for games. What about making instead a new IDE for one/or several existing game engines. Just thinking...
414
General ENIGMA / Re: New Beginnings
« on: June 01, 2014, 07:25:08 am »
The 11th plague of Egypt:
Yes, but all these engines don't have an IDE which manages the resources of the games (like a maps editor for example). I guess some people don't care, but i care !
Edit :
As i said in a previous message, for 'beginners' you find a lot of excellent tools, but without an IDE dedicated specially for games, or you have tools like Stencyl, with all the tools needed to make sprites and maps, but which don't have programming languages. And in the middle you have ENIGMA, which does have an easy programming language and IDE which manages resources.
Yes, but all these engines don't have an IDE which manages the resources of the games (like a maps editor for example). I guess some people don't care, but i care !
Edit :
As i said in a previous message, for 'beginners' you find a lot of excellent tools, but without an IDE dedicated specially for games, or you have tools like Stencyl, with all the tools needed to make sprites and maps, but which don't have programming languages. And in the middle you have ENIGMA, which does have an easy programming language and IDE which manages resources.
415
Issues Help Desk / Re: Can't rename a resource under linux
« on: June 01, 2014, 07:13:34 am »
I did more tests. First i tried on a virtual machine Linux Mint 16 KDE 32 bits with the oracle version of Java 32 bits. Same error. Then i tried Linux Cinnamon 32 bits and it didn't have this problem. Is this related to KDE ? I don't know, but i searched for the error message, and i've found this:
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7075600
and also:
http://stackoverflow.com/questions/13575224/comparison-method-violates-its-general-contract-timsort-and-gridlayout
It seems this error happens only on some systems with Java >= 7. So in LGM.java i added in the main method the following line :
And i don't have anymore this error !

Robert, as i don't know yet git very well, could you do for me a pull request with this line ?
Thanks in advance !
Update:
It seems Sort algorithm has changed since Java 7 :
http://www.oracle.com/technetwork/java/javase/compatibility-417013.html
Sort algorithm changes in Java 7:
http://dertompson.com/2012/11/23/sort-algorithm-changes-in-java-7/
http://bugs.java.com/bugdatabase/view_bug.do?bug_id=7075600
and also:
Quote
It seems to me like you've hit a bug in the JDK since the error seems to come from Swing classes.
Options:
Define the property java.util.Arrays.useLegacyMergeSort as true. Either using in your code the line
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");
before any Swing code. As the first line in the main method should work.
Or adding
-Djava.util.Arrays.useLegacyMergeSort=true
to your starting options (in the console, or in the project properties in an IDE, Ant script, etc.)
Upgrade your JDK and see if the problem goes away
Downgrade to Java 6
http://stackoverflow.com/questions/13575224/comparison-method-violates-its-general-contract-timsort-and-gridlayout
It seems this error happens only on some systems with Java >= 7. So in LGM.java i added in the main method the following line :
Code: [Select]
public static void main(final String[] args)
{
....
System.setProperty("java.util.Arrays.useLegacyMergeSort", "true");And i don't have anymore this error !
Robert, as i don't know yet git very well, could you do for me a pull request with this line ?
Thanks in advance !Update:
It seems Sort algorithm has changed since Java 7 :
Quote
Area: API: Utilities
Synopsis: Updated sort behavior for Arrays and Collections may throw an IllegalArgumentException
Description: The sorting algorithm used by java.util.Arrays.sort and (indirectly) by java.util.Collections.sort has been replaced. The new sort implementation may throw an IllegalArgumentException if it detects a Comparable that violates the Comparable contract. The previous implementation silently ignored such a situation.
If the previous behavior is desired, you can use the new system property, java.util.Arrays.useLegacyMergeSort, to restore previous mergesort behavior.
Nature of Incompatibility: behavioral
RFE: 6804124
http://www.oracle.com/technetwork/java/javase/compatibility-417013.html
Sort algorithm changes in Java 7:
http://dertompson.com/2012/11/23/sort-algorithm-changes-in-java-7/
416
General ENIGMA / Re: New Beginnings
« on: June 01, 2014, 05:00:58 am »I wouldn't imagine competing with Unity or the likes.
GM:S, Construct, etc.. for sure
When Rob say 'advanced users' he is not referring to Blizzard or EA, he means not kids who rely on drag and drop.
Well it depends of the definition of 'advanced users' of course.
If you are talking about GMS users, i doubt they would like a language like C++ (sorry to repeat myself). If we are talking 'advanced users' of professional tools, as i said before, it seems to me useless to compete against these tools.
417
General ENIGMA / Re: New Beginnings
« on: June 01, 2014, 04:55:45 am »
Concerning new ideas for your project : i think the features which are missing the most are in the IDE. The rooms editor for instance sucks. It doesn't any advanced functions to modify a group of objects or an undo method. Concerning the code editor, there is no global search. All modern IDE should have a global search function.
418
General ENIGMA / Re: New Beginnings
« on: June 01, 2014, 04:47:40 am »You have answered your own question then
Yes, but i said also :
Quote
Making a game engine for simple games is already a huge and very difficult task, so imagine doing a competitor of UE or Unity ! I think only a company can make such a project. Do you know an open-source project similar to UE or Unity ? It is no accident you will not find such a project.
419
General ENIGMA / Re: New Beginnings
« on: June 01, 2014, 04:44:23 am »Same could be said about the ENIGMA project. Why use ENIGMA over GM:S?
Because it's open-source and free.
420
General ENIGMA / Re: New Beginnings
« on: June 01, 2014, 04:40:44 am »
Why i don't like C++ ? Here is an example : 
Of course in all languages you can find examples of codes difficult to read, but the most horrible examples i've found are in C/C++.

Code: [Select]
float InvSqrt (float x){
float xhalf = 0.5f*x;
int i = *(int*)&x;
i = 0x5f3759df - (i>>1);
x = *(float*)&i;
x = x*(1.5f - xhalf*x*x);
return x;
}Of course in all languages you can find examples of codes difficult to read, but the most horrible examples i've found are in C/C++.
