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 - Goombert

Programming Help / Re: How do I use DLL inside ENIGMA?
« on: April 29, 2014, 07:31:25 PM »
You actually, don't even have to do that, you can just place a folder inside the extensions folder in enigma-dev/ENIGMAsystem/SHELL/Universal_System/Extensions. Then you just add the source files and an about.ey descriptor, place all of your extension functions in namespace enigma_user

For instance, take a look at the date and time extension.
It's pretty simple to understand really, easier than GM too because you don't actually have to create a million scripts for each function. It will also work cross platform because it does not rely on a DLL, but just a lib as if you were programming in anything else.

General ENIGMA / Re: Inheritance Fixes
« on: April 29, 2014, 05:18:04 PM »
Inheritance is very important if you try to make a very big game, it's not quite as important in GM because of the pretty much unified type system (all objects inherit the same default locals).

Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 03:42:51 AM »
I do not know the answer to that egofree, I'm sorry, try globalvar instead of global var, no space. Josh can answer these questions, I've sent him a PM to explain it.

Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 03:16:22 AM »
var and globalvar are being removed from Studio anyway, all variables used will be declared, that doesn't mean initialized though.

Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 01:55:11 AM »
Oh wow, now that I am not sure, you'd have to ask Josh. It would probably be global int not vice versa.

Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 01:39:23 AM »
Ok, but I'm still pretty sure 4.5 integer would not make sense in any BASIC compiler that I know of, I think you're just remembering wrong.

But yeah, I also tested exactly what you had without me adding a colon, and it still worked fine and showed me the number 4.
Code: (EDL) [Select]
int a

Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 01:17:39 AM »
Actually no, that call would show you 4, because int is not floating point, you want a float for fractional numbers, integers for whole numbers.

In fact, I just put the following in the create event of an object and it built fine, it was most likely erroring because you were implicitly casting a floating point to integer causing loss of precision.
Code: (EDL) [Select]
int ass = 5;Works fine in ENIGMA.

In fact, I just ran your code, and it built fine and showed me the number 4.
Code: (EDL) [Select]
int a=4.50;

This shows me 4.5, so you're doing something wrong.
Code: (EDL) [Select]
float a=4.50;

At any rate, it's a good thing for you to learn using these real data types and use them instead of var, because in GM or ENIGMA, it really is horrible, you have no idea how much is going on behind the scenes.

Programming Help / Re: How to declare variables in ENIGMA?
« on: April 29, 2014, 01:00:52 AM »
Yeah, lol, you don't do int var, you just do int, var means variant meaning it overloads all the other types, a var is technically an int, so what you wrote was int int, which is gibberish.

Off-Topic / Re:
« on: April 28, 2014, 09:29:26 PM »
Sure, of course, I just like game development in general.

Off-Topic / Re:
« on: April 28, 2014, 09:11:31 PM »
Yes if you guys only posted about ENIGMA or GM I myself would probably find it pretty boring, Josh may differ, but I personally like discussion about all game development in general here.

Proposals / Re: Script starting values
« on: April 28, 2014, 03:58:47 PM »
You shouldn't at all be afraid, Java is one of the easiest programming languages to learn, and one of the most powerful, it is a great solution for making software that works on different operating systems. You can also feel free to ask us questions in the subforum "Programming Help" and we will surely answer your questions.

Issues Help Desk / Re: A few things (mostly variables)
« on: April 28, 2014, 03:10:53 PM »
Pretty sure arrays don't work currently, and also not sure why you want to duplicate an array of all the keyboard input, especially when you can just modify the one in Platforms, all you're doing is unnecessarily duplicating the data which already exists. Also, it would be helpful if you would upload the project that encountered the issue, just waiting until after you've gone and fixed everything, does not help me, I have no way of even remotely figuring out what went wrong, why do you people always do this? As soon as something goes wrong, immediately stop, close LGM, back up your project, and report it to me immediately.

Issues Help Desk / Re: Some issues from a new member
« on: April 28, 2014, 03:08:18 PM »
I'll have to look into it when I have time.

Proposals / Re: Script starting values
« on: April 28, 2014, 03:07:36 PM »
Well on the bright side, LateralGM is open source, you can easily change anything in it if you are experienced with Java.

Issues Help Desk / Re: IDE tranparency flag issue
« on: April 28, 2014, 03:05:45 PM »
Well for one, when you save a GMX, which is 1200, make sure you create it it's own folder, that format requires you to create a folder to save in, or else you'll get your resources strung all over the place.