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 - Josh @ Dreamland

2746
General ENIGMA / Re: Writting Enigma's IDE in C#
« on: November 16, 2008, 08:46:02 AM »
What they said. Srsly.

2747
General ENIGMA / Re: Alternate to cpp {}
« on: November 16, 2008, 08:44:39 AM »
Nah, that's again, silly.

cpp {} is for people who are well-versed with C++. I assumed people would mostly leave it alone, as it's totally unnecessary at this point. It's for raw power when you need it, as is asm{}, but no one's touched that. (Go figure)

Think for a second, though. ENIGMA converts your games to C++, right? But you're asking what about running GM functions in cpp {}? They're run in C++ all the time. The only differences you'll encounter are with functions like min() and max(), as they only take two parameters in C++; along with instance_destroy() as it has to be passed the ID. (instance_destroy(id))

This doesn't go for with(), though, which is only in EDL. switch() and things are also different.
This is why I don't see the point in using cpp {} at all, especially not like you just did. EDL is more versatile with if() statements and the sort, anyway. Why would you  want to use cpp{} in there? So when you say
Code: [Select]
if a=b {} You get a compile error?
So when you say
Code: [Select]
if (a=b) {} It sets a to b, then checks if b > 0?
Those don't sound like very fun problems to encounter.


2748
General ENIGMA / Re: Enigma/GM, different code?
« on: November 16, 2008, 08:16:17 AM »
cpp {} isn't mandatory, you great sillies. It just gives you C++. (Go figure)

EDL is backwards compatible with GML. This means you can drag your nastiest GML into ENIGMA, and it will compile it.

I can't say they are totally compatible, however, because when you start taking advantage of features of compiled code, there's no going back to GML.

2749
General ENIGMA / Re: Enigma games uniquely identifiable?
« on: November 16, 2008, 08:12:05 AM »
hach-que:
Due to the fact that ENIGMA games are compiled, nothing's ever in the same place twice, really.
However, I use a system to let me know where sprites are in the exe. It is a magic number, located eight bytes from the end of the exe, that reads 'sprn' as text. That should help you identify them for now.

I haven't actually given myself any other way to tell if a game's ENIGMA made, though.
I suppose you would want the window class name, too.  TMain is the one you'll want to hide, TSub is the one you'll want to embed.

I know those are very vague ways of identifying an ENIGMA game, but I didn't actually make them for the purpose. I'll see what I can do, starting with adding ENIGMA's name to the window class.

Also, I have no idea how this is going to work on Linux, or if it is at all. I don't recall anything like a window class from good ol' X. I suppose you'll just be supporting Windows?

Anyway. Good luck to you.
Feel free to contact me by email if you have any more questions.

-Josh

2750
Proposals / Re: Linux testing
« on: October 17, 2008, 07:16:18 PM »
It's ENIGMA's booboo now. :(

But yeah, I'll implement one of those in the Linux version

2751
Tips, Tutorials, Examples / Re: choose(), mean(), median()
« on: October 17, 2008, 06:43:30 PM »
I didn't look far into stdarg, but my main concerns were that it doesn't give a method of determining the number of arguments in the list.

I corrected that by parsing in the number of arguments as the first argument in the function. I just never got around to the coded part of that.

2752
Tips, Tutorials, Examples / Re: A Few Alternate Functions
« on: October 17, 2008, 06:40:24 PM »
double frac(double x) { return x-(int)x; }

2753
General ENIGMA / Re: This.
« on: October 17, 2008, 06:37:46 PM »
The real reason I don't want an SVN is because I've never used one, and no one understands my code. So that'd be learning on my part for no help coming out of that in return.

Though, now that you said that, I suppose watching commits as they are... committed... would be a nice way to visually track progress. So I'll consider it after everything is working on Linux and R3b is out.

2754
General ENIGMA / Re: R3.5
« on: October 17, 2008, 06:35:19 PM »
I'll manage to crank out a 3.5 here at some point.

It'll have an installer and Linux compatibility, along with bug fixes and some functions people personally requested.

2755
General ENIGMA / Re: Unimplemented Functions
« on: October 17, 2008, 06:32:59 PM »
This is kinda nice, actually.

I like programming, not tending lists.

2756
Announcements / Re: The lack of development updates and progress
« on: September 27, 2008, 04:14:52 PM »
I'm doing a lot better, and am back at work once more. Everything's taken care of, except I think I have an ear infection. =P

2757
General ENIGMA / Re: Source Generator?
« on: September 27, 2008, 04:13:40 PM »
It actually leaves all the source code alone when it finishes compiling. It's under ENIGMAsystem\SHELL\.

2758
General ENIGMA / Re: How is development going?
« on: September 27, 2008, 04:12:52 PM »
:{

2759
Off-Topic / Re: Where do I find the floor Function...
« on: September 27, 2008, 04:11:40 PM »
:S

I guess I've come a long way.

At any rate, floor() is (int) or int( )...

2760
Function Peer Review / Re: The formula for finding point_distance.
« on: September 04, 2008, 06:45:33 PM »
The former has existed since R1, but the latter doesn't exist in 'other programs,' and I prolly won't add it until I actually do some 3D.