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

You probably didn't reset the currently bound texture index. enigma::cur_bou_tha_noo_sho_eve_cha_eve or something. Serp shortened it for me. Originally it was massively huge to prevent stupidity.

I will see that these are integrated properly when I merge my current branch and the trunk.

Function Peer Review / Re: Instance Interface How-to
« on: September 28, 2010, 12:00:45 PM »
I see. Yeah, syntax checker doesn't like macros at the moment, but when I have that fixed, #define action_set_sprite(X) sprite_index = (X); is really the way to go.

Function Peer Review / Re: Instance Interface How-to
« on: September 27, 2010, 08:04:12 PM »
*slightly scared about new system he has no knowledge of*
TGMG: In the events of the object, sprite_index = spritep will suffice. If called from the create event, I understand the problem. I'll fix that ASAP.

Proposals / Re: new Build mode
« on: September 27, 2010, 07:59:13 PM »
I gave this some thought, and I'd like to go through with it. It will need to be set up such that it is -not- mandatory.
I was unaware that VStudio could recompile while the executable runs. I will be looking into that; I was originally planning to do some work with DLLs to load new objects and whatnot, but we'll see what I can't do if I find such a module. Recommendations welcome.
So yes, I have more planning to do for it, and more research to do on it. We'll see what I come up with.

Function Peer Review / Re: Function Peer Review Board
« on: September 26, 2010, 02:19:54 PM »
Once upon a time, there was. It used wgl to generate lists from font glyphs, then it drew them as primitives. However, the triangle count sometimes damaged it more than a like-sized bitmap draw would have, and there was no anti-aliasing... It was nasty. Not to mention it wasn't even remotely cross-platform, as most resources should be. All that being the case, it ended up getting buried. We'll be re-implementing them after Ism finds a way to get Java to render the glyphs white-on-black in an image.

I will add backgrounds to my list, but I have no ETA on them.

Maybe it was cons_show_message(). But it's just a string wrapper to puts(), so...

Function Peer Review / Re: Function Peer Review Board
« on: September 25, 2010, 09:09:17 PM »
Also, console_show_message().

I'm not sure about where to get a really good script for that. The typical strategy for working with rectangles is storing a center point and some lengthdir params.

I don't think the Wild Magic people were trying to act smart. Though it makes me wonder what compiler they were using, since it clearly wasn't VStudio or GCC. (GCC -does- offer an export template extension, but it's explicit).

Anyway, the sources you linked to only have a fraction of the code. They inherit the rest. It's like Rusky's dream system. So if you want to see everything that's going on in the code... well, have fun tracking down all the classes you inherit from.

A quick Google search will find thousands of capable geometric collision examples. Here's one. But collisions are one place I don't even trust my own math skills to generate the most efficient test function, let alone some stranger's from Or that of some group using Compiler from Hell.

I also don't understand why you needed it converted to GML; are you trying to get it to work in Game Maker as well? G++ compatible C++ can just be copied into WhiteSpace in ENIGMA and used like any other function. Including the code on that link I gave above. Right now, the syntax checker has problems with variable.function(), but I will have that working sometime this week.

When the fix is in the stable repo, I will let you know how to use his code.

No, Josh went to college and abandoned everyone. Twice.

Don't worry Ism, that's not even what I'd consider "good" C++. I'm sure someone out there appreciates it. Rusky probably does. But I'm not a fan of making a template to do a regular class's job. Especially when it makes that many assumptions about what class Real contains.

They seem to have, however, circumvented my biggest beef with templates, being the lack of extern-ability. How did they do this? wellfuckifiknowillbetitwontevencompileinenigma

Furthermore, I can't retrieve the first .cpp file, or I'd tell you what it did. As for the second source, the first thing I notice is that it won't compile with -pedantic. Not that I make ENIGMA do so, but I've found that serious collaborations compile with -Wall -Werror -pedantic, meaning if the compiler even glances at anything funny, compile fails.

My synopsis is that they whore everything new unceremoniously. I doubt it'll compile in GCC or VStudio due to the lack of extern template in either of them. Not that they explicitly denoted that, anyway. "Wild Magic" is about the size of it.

As far as distance calculations go, the math is like all others. Except encased in uncompilable filth. I would sooner get GLibC to compile in G++ than this project.

Proposals / Re: new Build mode
« on: September 22, 2010, 09:46:35 PM »
First, for those who don't know, the original Build mode was designed for live-action development. For one thing, it was made to be largely hot-key based. Imagine you are one of the brave ones developing Sonic clones in Game Maker. Sonic is running through the course at 50 miles an hour, then he hits a springboard and goes flying. He's about to fall off the screen, but right before he does, the user presses Ctrl-Space and places a new springboard. Or a new piece of earth. Or a new anything.

Design mode, the new, less-ambiguously named Build mode, was meant to incorporate features that the IDE component simply couldn't offer; the simplest example of that is non-orthographic design. And I chose to say non-orthographic instead of 3D to imply that even in 2D games (which are, yes, technically orthographic), some trait of the game could make it exceedingly difficult to accurately place objects, such as rapidly changing levels or simulated 3D layers. In perspective 3D, this problem becomes even more apparent.

Now, TGMG's proposal appears to be to keep the outputted game in communication with LGM via JNI. We run into a number of problems if we want to try that, particularly;
  • As Ism hinted, JNI is a little bitch. So she's using JNA. I'm not a Java person, so this is out of my scope and falls entirely on Ism. However, the same principle applies in the end for the callback functions TGMG mentioned; ENIGMA has such callbacks as JNI offers provided via JNA. So we could work around this, for the most part. Rendering inside the LGM window, however, wouldn't work.
  • Even if rendering in the LGM window were possible via JNA (or if we got JNI working), we're also assuming that all VMs by which ENIGMA can be emulated (Android and iPhone included) would be capable of accessing thread information from the running operating system, which I think is highly unlikely. Not to mention, an emulator will not always be available, where writing the data to a file is -always- an option as the game will -never- be on ROM (Honestly, how would the typical user put it there? [Okay, yes, discs, but those are totally unnecessary]). I have a very special plan in store for build mode that would not be able to work alongside LGM.
  • If the user doesn't like the changes (s)he made, there will be a lot of backtracking involved to revert them. A file makes it easy to say "Accept Changes?": if they say no, the file is ignored and deleted.
  • I would like build mode to offer a tile and instance creation API. For example, instead of dynamic rendering of "tiles" for auto-generated levels, the user could make calls to an API to remove them all, then re-create them according to their surroundings instead of drawing them as they do in Game Maker. I am unsure of the implications of allowing users to make calls to JNA willy-nilly; perhaps there are no further implications than having them do so with the file interface.

Basically, to get the most out of cross-compilation with this mode, the game needs to be dependent on the smallest number of items possible. Including the IDE. The two should shake hands after the fact, and not rely on each other in the mean time.

Function Peer Review / Re: Function Peer Review Board
« on: September 20, 2010, 09:11:38 AM »
If they work when added as a function in Whitespace, or are really worth porting, I don't see why not.

Proposals / Re: LGM themes
« on: September 18, 2010, 09:50:47 AM »
I figure LGM may as well adopt its own style, and swing default will suffice. I do have a sort of affinity for the folder icons in your first one, though. It reminds me of a simpler time...

Off-Topic / Re: Some guy working since 1987 SPEAKS OUT!!!!!!
« on: September 17, 2010, 06:16:15 PM »
Aware. The compilation speed issues definitely fall on GCC. And such is indeed out of my power to fix. It doesn't help that I don't ship ENIGMA with precompiled object files. That much needs to be improved on, and will need to be very shortly as people start compiling for more platforms. I need to keep a folder of objects for each device, at very least.

Eventually I will need to invest in precompiled headers, as well.

For now, though, I've tried to use few GNU extensions that would inhibit faster compilers from being incorporated. Right now, the only function that comes to mind is lrint(), but compiler support for that seems to be good. Serp used some GNU #defines in his #ifs in various functions, which should only fail to optimize correctly on faster compilers.

Ultimately, though, GCC must do the final compilation of all projects. Despite its slower compile times, it has the widest support by those who work towards cross-compilation, and is quite consistent between platforms with its #defines and its type sizes. It is by that saving grace that I managed to compile all the audio codecs natively without huge recode.

Anyway, something about tacos.

Off-Topic / Re: What licence for my open source project?
« on: September 13, 2010, 09:22:44 PM »
Sometimes I swear those people are writing in another language.
</OffTopic> , though I'm not a proponent of CC for code.
Really, I'd just write my own license, in your position.

Proposals / Re: Add a place for extra returns.
« on: September 13, 2010, 09:15:38 PM »
Var has a overload for cast to double&, so that would be the more accommodating choice.

Announcements / Re: What's happening now
« on: September 13, 2010, 05:40:13 PM »
I'd rather wait for Ism to finish her work now, on which there is no ETA (She describes this as 'new territory,' as I was sure it would be). She hopes to have something ready this week, though. For now, I the previous file seems to be holding up.