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

Function Peer Review / Re: Brainstorming
« on: March 24, 2010, 08:00:57 am »
It's a single script that you can use to implement some C++ functions for use throughout the game. You can define your own global variables, your own structures, your own types, your own functions... Whatever you could need, really. Just like with any other library in ENIGMA.

Announcements / Re: Another quickie
« on: March 24, 2010, 07:27:38 am »
Eh, XP never lost everything from a save form except the size. I can go to save things sometimes and get an empty window border. Have to restart to fix it sometimes, too. That's Vista.

Win7 I hate almost as bad. They fixed the window issues, and they even stole some really nice ideas from Linux. They also stole Mac's dock, which I HATE. Talk about unnavigable. And to make things worse, they have 10x the number of ../ loops as XP. If you click "My Documents," you're taken to a libraries folder that includes "My Documents." It's almost impossible to get to "~/Downloads" because it's not on the start menu, it can't be added to the start menu sidebar where it should have been from square one, and trying to move to ../ from their linked "My Documents" will loop "Libraries/Documents" "Libraries" "Libraries/Documents" "Libraries," just like when "My Documents/.." led to "Desktop" on XP.

I hate their new operating systems so much. Frankly, I kind of like Vista better than 7.

Announcements / Re: Another quickie
« on: March 23, 2010, 09:31:51 pm »
Code::Blocks warns Vista users to install their own copy of MinGW because the one that comes with the release breaks on Vista at times.

Function Peer Review / Re: Brainstorming
« on: March 23, 2010, 09:30:50 pm »
Half-ass name for a C++ script resource.
Cuz I stick it between C++ whitespace, besically.

Function Peer Review / Re: Collisions
« on: March 23, 2010, 07:53:31 pm »
Your assumptions are for the most part correct. I have not yet implemented a type for instances. I'm thinking it'll be of form typedef something instance_t, but have not yet decided.

Also, doesn't support rotation and scaling, yes? The math for that is out of my league due to current sleep levels. Perhaps I'll add it tomorrow...

Announcements / Re: Another quickie
« on: March 23, 2010, 07:15:42 pm »
This ^

Announcements / Re: Another quickie
« on: March 23, 2010, 04:09:08 pm »
Heh, logical structure in Enigma.

What was wrong with getting a C dll to call java functions? I found JNI quite pleasant to use for this.
I figured that I'd acknowledge that this sounded nice. I don't know much Java though, so all of this is news to me, really. Maybe that will help Ism? :P

Plus I got my macbook so would love to start on mac port whenever your ready :) Wouldn't mind looking into adding gml functions aswell if that would be ok :)
Sounds great. I'm probably not going to be happy with the documentation until I've got the entire system actually working like I say it should (meaning I want LGM-ENIGMA communication done first), but integrating it should be so simple that really you could just start by creating an empty window and GL context in a separate project, then copy over the code when you're done. There are a few function names the rest of the engine relies on; the beauty is that most of them are the GML ones, so as long as you have a header that defines those, it should integrate simply by copying over some files and possibly moving the important parts of main to an initialize function for which I have not yet settled on a name.

My current two systems, XLib and WinAPI, just leave a header to include. I haven't yet decided if that's an idea worth keeping, but will make that decision once it compiles for a system and I can start making sure my changes don't break anything.

As for input, I just keep an array of keys, but really it's up to you if you intend to implement keyboard_check and the like.

So yeah, if you like, just get a Mac copy of the OpenGL rotating-triangle example and do your best to get input functions working, and any window_ functions you can.

Thanks again.

Announcements / Re: Another quickie
« on: March 23, 2010, 07:50:28 am »
> I didn't know that he was this engaged in the project. Good to hear
This was only a recent thing, after this was posted on the GMC:

He didn't post it, but it was inspired by him. Try not to laugh at the GMC nubblets.
"Yes, it's legitimate. Zach (the developer), has been working on it for a few days now."
"been working on it for a few days now."
"a few days now."

Anyway, the truth behind it is, (and I feel confident posting it here since none of the GMC nubblets will find this post and have their hearts broken) he just wrote something that loads GM resources. He did the programming of his test game himself. Since converting GML to C++ is a decent undertaking, I figured he may as well team up with us rather than put in his own individual attempt at converting the code. I'd have done the same with G-Java, except I prefer C++. He doesn't have a choice in his language. XD

> Can't you email them and ask for the source or some other kind of help?
These people are GNUs. They believe in Google and Doxygen, not in helping people.

Announcements / Another quickie
« on: March 23, 2010, 07:27:24 am »
Boy metaphase is taking a long time (For those who are expecting it, hehe).

Anyway, another tidbit worth noting: "Local" typing, as in, "local struct a;" will be possible only if users ensure that said typing is done in the first event parsed. The create event is a safe bet.

Types are remarkable in that they cannot be assumed; that's why I needed a C parser in the first place.

So, I can do "local struct," which wasn't part of the original plan, but it's not going to be as convenient as "local int" or the like, simply because I can't treat something as a type before I know for sure that it is.

I've started documenting the systems that those implementing new libraries will need an understanding of. Aragon has been working on Wii things and has agreed to get started on some draw functions for ENIGMA. What's interesting is that he wanted to get started right away, so he checked out the SVN and started looking through it without docs. ;_;

What's even more interesting is that he commented on how well-organized it was, which is indeed what I was going for, but I didn't think anyone would just figure the whole thing out without bitching about documentation. Makes me wonder why I'm writing it sometimes.

Also, retep998 has volunteered to help with the collisions. I hope the undertaking will go a little more smoothly with more people on them than just me. He'll be starting that when R4 enters a stable test phase.

Ism and I talked for a bit, and now she is working on a set of classes in C and in Java that will allow the two to share resources. Getting a C DLL to call Java functions isn't going to happen, but I can probably communicate some simple instructions by returning an array of them.

Also, we used to use std-out to communicate from ENIGMA to LGM, such as info about what was taking place in the compiler. Well, now we can't, so hopefully we can create a reliable new mechanism for this. (It's a shame, too; she spent a fair deal of time threading that damn output window, and now it's useless...)

On the bright side, though we were originally afraid we'd have to add something to the path folder, we've found workarounds for that, too.

My current difficulty is figuring out a way to simplify installing a compiler for users. Problem is, Vista is incompatible with a release of MinGW for XP and the like, and I hate to think about Win7. The MinGW team has their own automated installer that downloads the correct version; maybe we can use that. The only problem that creates is locating the compiler after it installs it.... It doesn't add anything to the path variable, and the typical GM user doesn't even know what that means. ;_;

Suggestions/comments welcome. Criticism will be bashed thoroughly and considered later.

Function Peer Review / Re: Brainstorming
« on: March 23, 2010, 07:00:55 am »
Nice to see so many people taking interest in coding things.
... :P

They probably want to wait for a new working version before they start coding. Those who will do any coding for the project at all, I mean. I don't blame them, really.

Besides, 'Whitespace' will make it so they can implement their functions in C++ just as it will look if included in the release, and will let them test their new functions themselves.

Announcements / Re: Another choice.
« on: March 21, 2010, 06:41:30 pm »
Yeah. I believe with() is Delphi, but I'm not certain. It'd make sense if it was. You can see it in JavaScript as well.

Off-Topic / Re: Essay
« on: March 19, 2010, 09:19:02 am »
Heh, it's just where you pretend to know what you're talking about by writing a paper on a topic you may or may not have any interest in.
Anyway, I'm done now, but am currently dealing with other personal issues and should be back to work in a few hours following school today.

Announcements / Re: Another choice.
« on: March 18, 2010, 09:28:47 am »
Posted about having to write an essay elsewhere. I'm nearly done.
Ism's getting Java to pass resources to DLLs and the like.

Off-Topic / Re: Essay
« on: March 17, 2010, 10:53:46 pm »
Yes, I did mean libraries in general, but I will use DLL because most users can relate to that name better, and I'll probably use EXE because Unix doesn't have an extension and "exe" is short for "executable" anyway.

Off-Topic / Essay
« on: March 17, 2010, 06:11:31 pm »
I'll be essaying for the next day and a half or so.

Didn't think it was worth a news post.

Ism got DLL's working in Java. She's now looking in to how resources can be passed via function calls. Shouldn't be hard to get ENIGMA DLL-ized from there.