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

1756
Proposals / Re: GM Function Implementations
« on: August 30, 2010, 01:50:18 PM »
r9k: Indeed, I've been looking for the best way to provide unlimited arguments to the function. It seems my only choice is to parse it that way.

1757
Announcements / Re: Mini Progress Feed
« on: August 30, 2010, 12:21:03 AM »
Listen. To. Me.
I. Do. NOT. Call. ANYTHING. In. The. Program. Files.

Again,
I. Do. NOT. Call. ANYTHING. In. The. Program. Files.

I don't care if you know what happens when you type text into the black box Microsoft calls a terminal. I do not make calls to system(), because system() incorrectly parses quotes on Windows, ignoring them. Instead, I call CreateProcess, of which parameter0 is an unquoted path to the module to be loaded.

If you listened in the damn IRC, you would have heard that the error still persists when Make is called manually by the user. Meaning one of two things
1) The unescaped string is in the makefiles (unlikely)
2) The MinGW configuration being called is invalid (very likely in your case: using Code::Blocks' custom MinGW shipment)

I have no idea why Rusky is experiencing that problem, since his MinGW has no affiliation with the Program Files, either, but you two are the only Windows users experiencing this issue.

1758
Announcements / Re: Mini Progress Feed
« on: August 29, 2010, 02:18:41 PM »
Ah, yes. That was just me being tired at two in the morning. I didn't feel like intercepting parse output between the part where self. is added and OBJ.varname is replaced. :P

1759
Announcements / Re: Mini Progress Feed
« on: August 29, 2010, 01:12:57 AM »
Retro: I asked you ages ago to test file_find_first on your system. The only explanation I have is that ENIGMA cannot read the YAML files defining those locals on your platform. I have a hunch it has to do with access() rather than opendir().

Progress:
Haven't seen Ism all bloody day. Worked with TGMG and resolved a few more Mac issues, but there seems to be a problem with one of the compatibility macros on that platform. We'll look into it tomorrow.

Fixed the parsing of `OBJECT.variable`. Its functionality, however, is not yet finished. I may finish it before I fall asleep, but I can't promise that. It will be finished sometime today, though.

Annoyed at a problem retep and Rusky are experiencing. For some reason, their MinGW configurations are trying to access something from the Program Files, but only manage to call C:Program. Talk about annoying.

Further update:

Code: (C) [Select]
int cfp;
cfp.x = 0;
cfp.y = 0;
cfp.randomness = 0;
cfp.bliss = 0;
cfp.speed = 0;
cfp.health = 0;
string xfp;
xfp.length = 0;

instance_nearest(x,y,0).r = 0

er.ar.bar = car;

string *xstr;
xstr.length = 0;


//=======================================\\
// P a r s e s   t o
//=======================================//

int cfp;
int cfp;
enigma::glaccess(cfp)-> x = 0;
enigma::glaccess(cfp)-> y = 0;
enigma::varaccess_randomness(int(cfp))= 0;
enigma::varaccess_bliss(int(cfp))= 0;
enigma::glaccess(cfp)-> speed = 0;
enigma::glaccess(cfp)-> health = 0;
string<> xfp;
xfp.length = 0;
with(enigma::varaccess_nigr(int(anus)))
  enigma::varaccess_arse(int(self))= enigma::varaccess_tits(int(self));
enigma::varaccess_r(int(instance_nearest(x, y, 0)))= 0;
enigma::varaccess_bar(int(enigma::varaccess_ar(int(er))))= car;
string<> * xstr;
xstr -> length = 0;

What that means is as follows:
1) string is incorrect until I remove the template flag when typedef'd with zero unfilled parameters
2) OBJ.x will operate more efficiently than OBJ.randomness, because x is guaranteed to exist.
3) Operator <dot> is now universal. Pointer.Member === Pointer->Member.  StructInst.Member is left alone. Instance.Member is parsed correctly to allow lookup.

With() has one remaining bug, being that this code:
Code: (GML) [Select]
with (a) b.c = d;Intermediately parses to
Code: (GML) [Select]
with (a) self.b.self.c = d;Instead of just self.b.c, as it should.

The reason self is added at all is because the system recognizes self (-3 or whatever it is) as [the currently active object], which with() modifies.

1760
Announcements / Re: Mini Progress Feed
« on: August 28, 2010, 02:33:38 PM »
Well, when it sees the comma at present, it does what C++ would do: use the latter term.

1761
Announcements / Mini Progress Feed
« on: August 28, 2010, 06:26:16 AM »
They say coordinating programmers is like herding cats.

Well, if herding cats is this disinteresting, I believe them.

Anyway, I have truly no idea where everybody is. I swear LGM still isn't rebuilding ENIGMA for me on Linux. I think Retro's done with his packages, and I think they only contain the essentials now, but I'm not certain. Last I heard he was uploading them at 80kbps, with an ETA of 18 hours or something? It wasn't exactly encouraging.

Anyway, I wanted Ism to get our new C++ resource working (as in, saving) before the release, as it is the method by which users can create and share C++ functions. With it, you can take part in ENIGMA's development, whether by implementing your own C++ functions or by including other users' to test or for personal use. The resource has many applications outside of the beta program; I know it'll become a crowd pleaser over time. Especially when I finish what I'm working on right now.

Basically, I have three things in my scope at the moment:
1) var[x,y]
2) room order: base off resource tree, not ID
3) OBJ.varname

Presently, I am working on the third. It worked in R3, but was so inefficient I decided to replace it early on, but didn't finish it.
When that is done, with() should start working also.

I added backgrounds to the executable, but I don't do much with them at the moment. I didn't want to add tiles until I worked out a depth system that agreed with the way I read events from a YAML configuration file. As it stands, the compiler doesn't ship knowing the name of a single event: How am I supposed to give draw event order special behavior?

Actually, the answer just came to me (Which is odd considering the hour; I think I had the idea before). In essence, the special variable I'll need to instantiate for depth will insert its call into the correct depth layer on construct. On assign, it unlinks and re-inserts. On destruct, it unlinks finally.

Okay, that solved, I'm going to sleep, then finish OBJ.varname so with and such works. To-do to finish that:
1) Keep list of `member` instances parsed as "access_%1"
2) Add that function to the usable function list so as to avoid a.b.c mis-parse.
3) Check variable data from all objects for type conflicts
4) Generate the access functions based off data from all objects

Next I'll do var[x,y] (needs replaced with var(x,y)), then rooms (needs double-buffered: one array by room ID, one non-sparse array for quick traversal.

Mac progress... Good on my end, waiting for update from TGMG. Must have fixed ten problems. Looking promising.

For now, good night.

1762
Announcements / Re: Where do we stand?
« on: August 28, 2010, 03:16:59 AM »
             /
            |    |
             \    \
      |       |    |
       \     /    /     \
    \   |   |    |      |
     | /     /\   \    /
    / |     /# \   |  |
   |   \   *    `      \
    \    /   =  # `     |
     |  | #     ___/   /
    /   _`---^^^   `. |
   |  .*     #  =    | \
     |  =   #      __/
    .\____-------^^  `.
   /      #         #  \
  |   =          =     |
  \___    #     #___--^
      ^^^^^^^^^^^


Not much else to explain.
Fixed that and ten other things. Adding something I know everyone will be happy about.

1763
Proposals / Re: Optimize it
« on: August 27, 2010, 05:06:49 PM »
So, then. What's it like to program with C++?

1764
Proposals / Re: Optimize it
« on: August 27, 2010, 01:27:14 PM »
The latter problem you describe is exactly what the latest revision fixes... I'll investigate.
I'll remove the dependency on endian.h; it figures it was too useful to be available on Windows.

1765
Proposals / Re: GM Function Implementations
« on: August 26, 2010, 11:23:00 PM »
That much isn't actually my responsibility. Someone would have to be gravely stupid to type action_if(); instead of if(). DND caters to novices. Real programmers learn when to semicolon.

However, what does action_if(false); show_message("weee"); do in GM?

1766
Proposals / Re: Optimize it
« on: August 26, 2010, 11:18:57 PM »
My biggest suggestions are to reduce your draw_set_color() calls (by calling one up front of the loop instead of letting the graphics system call the equivalent literally 80,000 times) and to use C++ types more often.

I noticed your implementation has a few workarounds in it. I will do my best to remove the need for such. I have already made one improvement to allow further optimization of your game. Please check out the latest revision.
I have implemented my suggestions here:

http://dl.dropbox.com/u/1052740/watersimulation.gmk

Cheers.

1767
Proposals / Re: GM Function Implementations
« on: August 25, 2010, 03:21:41 PM »
RetroX:

In whitespace:
#define action_if(x) if (x)
#define action_draw_arrow draw_arrow
#define create_object instance_create
int action_draw_life(int x, int y, int spr) {
  for (int i = 0; i < life; i++)
    draw_sprite(spr,0,x + i*sprite_get_width(spr), y);
}
etc.

Note: that draw_life one won't work as-is; it's just a demonstration. Let me set up an API to make that easy for typical users, and I'll update this with it.

1768
General ENIGMA / Re: Help File?
« on: August 23, 2010, 06:39:59 PM »
HaRRiKiRi:
The function list page (however outdated) will allow you to submit a description.

1769
General ENIGMA / Re: Help File?
« on: August 23, 2010, 04:15:35 PM »
ENIGMA Will do no such thing. A warning is thrown if the variable is not an ENIGMA type, and the value is truncated.

1770
Announcements / Re: Where do we stand?
« on: August 23, 2010, 11:33:38 AM »
IsmAvatar:
As on Unix, a beginning \ denotes root of the drive on Windows. So when you see \, just replace with the current drive letter if Java can't.

We'll discuss the updating on the IRC, if both of you are on.