Menu

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.

Show posts Menu

Messages - RickJ

#161
Tab vs Spaces ... must be a couple of decades since I head that debate.  It's hardly relevant any more since most code editors (including Scite/Scintilla) effortlessly convert back and forth.  I suppose it would be a requirement for any Scintilla replacement lest we end up in "holy war!".  Just saying ...
#162
Maintainability is another very good reason to make plugins open source. People tend to come and go, and when they go their plugins are stuck in time and eventually become unusable. 
#163
QuoteThat's why you never see most of the crew -- they're terrified that they'll be chosen to transport somewhere.
Hehe .. especially the ones wearing red shirts (laugh)
#164
Wow!  What a blast from the past grin:

I wrote the old version of the module and and think it was probably the very first bit of code to use the AGS module system.  I'm glad there is a newer version ... it's something that need to be done for a long time.  Btw, I don't have a problem if anyone wants unify both versions.  The module guidelines describe a method of keeping module versions and dependencies straight (I'm sure Wyz is already knows this).  Anyway Wyz, nice work... 
#165
General Discussion / Re: I'm back, baby!
Tue 31/12/2013 13:45:37
"almost got married" - Your'e still young ... if you were a little older you would have instead said "almost got divorced".  (laugh)

Welcome back Mills...
#166
Code: ags

//at top of room script
int posX;
int posY;
 
function Drag(Object *Piece)
{
  posX = mouse.x - Piece.X;
  posY = mouse.y - Piece.Y;
    
     if  Mouse.IsButtonDown(eMouseLeft)
     {
        Piece.X = mouse.x - posX;
        Piece.Y = mouse.y - posY;
      }
}

repeatedly_execute() {

    Drag(SomeObject);

}
#167
The keyword "function" specifies that an int will be returned and you are attempting to return an int array.
#168
The mistake was in not hiring the Obamacare folks to handle the web traffic.  Had the precaution been taken losses would have been limited to about 6 or so. Just sayin ;)

In all seriousness though it is a sad day for the internet.  Sorry this happened to you Dave but I am glad you were able to limit the damage.
#169
Quote
It's easy to say "she should have gone to the police instead".
Whoever thinks that, did you ever hear/read why victims don't do that, especially not right after? I'm not going to go into it, because if you haven't, why are you participating in this discussion...?
It doesn't really matter why they do or don't.  If they don't there will be no public record of the accusation, there will be no investigation, the perp won't be prosecuted, and there will be no further recourse.  Anonymous do-overs long after the fact are not an option in a civilized and just society.
#170
I think this is the first time Calin and I have ever agreed on anything. ;)   

Quote from: http://legal-dictionary.thefreedictionary.com/libel+per+se
libel per se n. broadcast or written publication of a false statement about another which accuses him/her of a crime, immoral acts, inability to perform his/her profession, having a loathsome disease (like syphilis), or dishonesty in business. Such claims are considered so obviously harmful that malice need not be proved to obtain a judgment for "general damages," and not just specific losses. (See: defamation, libel, slander)
#171
In addition to KNOX's specific needs and the comments so far, I would like to mention how inexpensive all-in-one-touch-screen 1920x1080 PCs are these days (<$900).  People may find creative and interesting (not necessarily classic adventure game) ways of using AGS on such systems.  In such situations issues such as performance may not be problematic.  Just sayin ...
#172
Wyz,

Bless you sir!  I shall take this us next week.

Thanks
#173
http://www.accellion.com/pricing

I just came across this and noticed that it's free for individual accounts.  I haven't used them so perhaps someone can give it a try and let us know how it works out.

#174
Quote
This makes it impossible to have module A call functions from module B when module B also calls functions from module A.
One could argue that this is a good thing in that it keeps undisciplined programmers on the straight and narrow.  Having said that, I must admit, to having had a legitimate need for this on several occasions.

Quote
Another problem that I encounter very often when developing modules is the lack of a way to have a module call user defined functions ...
I absolutely agree.  I think "pointer to function" would be a better solution.  It would make things such as callback functions, which you describe, event systems, jump/vector tables, and more possible.  The solutions you suggest seem to be much more limited IMHO.

I like the idea of looking up objects by a name specified at runtime.  However, if pointers were supported then I would suggest having a function that returns a pointer to the specified object, where the object could be any function, struct, or variable defined within the current scope/execution context. 

Code: AGS

    PointerToObject = GetPointer("SomeObject");


Bottom line is that there is a serious need for proper pointer support.  It would make a lot of issues go away.  Many moons ago CJ mentioned that one of the obstacles was doing the garbage collection.  Poping things in and out of existence (ala C++) is cool to be sure but I would be willing to live without it if that made pointers possible.
#175
Nice work monkey.

;) Ironically the lack of pointers, the subject of the this post, is one of the things that makes AGS easy for beginners. 

Of course one could argue, and I certainly would, that pointer support would make "easier to use modules" with "beginner features" possible.  All these years I have been pining for function pointers. 

Here is an interesting article related to this discussion.  It's mostly the author's (I'm not the author) opinions but he makes some interesting points.
http://www.tcl.tk/doc/scripting.html

Enjoy
#176
Engine Development / Re: Other Resolutions.
Sun 14/07/2013 14:45:27
I also like CWs ideas, it is much simpler and much more sane. I think Monsieur OUXX and Snarky are correct in that "you can't please everyone so you have to let them please themselves";)

So instead of junking up CW's clean design why not have a button labeled "Other Options" that opens a little window containing the irrational options.  Just a thought!
#177
I don't see it either.  Just put in a couple of Display commands like this ...

Code: ags

if (keycode == eKeyF5) {
File *output = File.Open("tiles.dat",eFileWrite);
if (output == null) Display("Error opening file.");
else {
  int tx = 0; int ty = 0;
  while (ty < 15) {
    while (tx < 20) {
      output.WriteInt(tiles[ty].x[tx]);
      tx++;
      // Try this to see what your code is actually doing 
      Display("tiles[%d].x[%d]=%d",ty,tx,tiles[ty].x[tx]);
    }
  ty++;
  }
output.Close();
}
}


#179
General Discussion / Re: Egyptian Revolution
Sun 07/07/2013 01:23:41
You don't read very carefully do you? 

I said "Everybody, ..., yearns for freedom."  In the context of whether or not being "smart and knowledgeable" is a prerequisite.

[edit]
Btw, thanks for making my point ;)


#180
General Discussion / Re: Egyptian Revolution
Sun 07/07/2013 00:50:47
Quote
And yet you are trying to tell me what Egyptians believe, what they are trying to do, and if they are going about this well.
I haven't made any statements about what Egyptian people believe have I.  Don't you understand that the text you quote is an expression of my beliefs.

SMF spam blocked by CleanTalk