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 - Ryan Timothy B

#1681
General_knox as well.

The funny thing is, I didn't get this Authentication Required message until AFTER Ben created this thread.  I blame him for all of this. :P
#1682
It's been a few days since I've played this, but I finally managed to get a somewhat respectable time in the time mode.
I believe it's 43.5, but my best time (before the replay mode was added, unfortunately) was 42.7.

http://www.bryvis.com/entertainment/other/agsf/REPLAY.DAT
(right click to save as)

As you can see, some of my moves are pure luck, the rest are quick reaction and good positioning.
#1683
Does the spray can come with a hand, or is the hand missing a body?  ::)
#1684
A trivial and overall unimportant request, but definitely handy:

Notepad++ has a feature that where you double click something it highlights not only the word/variable/etc you clicked but it highlights all of them in the document that share the same spelling.  It makes it much easier to navigate and understand your scripts and such.

Every time I go back to AGS after writing some PHP scripts in Notepad++ I am always catching myself doing the double click without any results.  Then I immediately say "If only AGS had this feature". :P

It also highlights braces when you're near it, without the need of pressing CTRL+B.
#1685
Critics' Lounge / Re: First sprite
Wed 12/05/2010 18:09:32
I definitely like the darker colors that Pablo introduced.  The solid color shading by Mad looks much nicer too, especially without that pillow shading.
#1686
Quote from: Calin Leafshade on Wed 12/05/2010 15:56:51
All the RPG elements are really pretty trivial to implement if we're honest.

I totally agree.  Just requires forethought and an understanding of all important programming capabilities; you'd be surprised how many people don't know about, or even how to use, structs or arrays.
#1687
The Rumpus Room / Re: Happy Birthday Thread!
Wed 12/05/2010 03:49:48
Happy birthday Steve-o!
#1688
Oh dear...  :-\
There are lots of collision issues. lol  Good on you for getting it to at least somewhat work.

I want real-time physics with pixel detection for obstacles.  Something like the box2d working in AGS, which is why I was curious about how far you got with that old project.  Oh well, perhaps I'll learn to code my own.... more than likely not... but you never know.
#1689
Quote from: Radiant on Sat 08/05/2010 19:34:38
I tried writing The Incredible Machine in AGS. Wow, that's tricky.

How far did you get with that project?  I'm curious.
#1690
Advanced Technical Forum / Re: Idea
Sun 09/05/2010 22:43:38
Huh?

You'll have to be much more specific.
#1691
Freakin' Eh!  You're a bloody genius, it works perfectly!!
Once again... THANKS!!

Edit #312 (lol):
I ran into some issues with internet explorer adding the full path C:\fakepath\image.jpg, but I managed to find a forum that another person was asking for a solution to the same issue.  She's all fixed.  Yay!
#1692
Of course, it was originally from Khris in this post.  I had used this a while ago and had tweaked it to work for a GUI instead and also prevented it from leaving the edge of the screen.
#1693
When you click the GUI, assuming it's the top 28 pixels of the GUI like here, it should run this:
Code: ags

function gTheGUI_OnClick(GUI *theGui, MouseButton button)
{
  if (mouse.y<gTheGUI.Y+28) dragGUI(gTheGUI);
}



Then the function it calls is this, which works for all GUI's:
Code: ags

function noloopcheck dragGUI(GUI*g)
{
  int gX, gY;
  int xa = mouse.x - g.X;
  int ya = mouse.y - g.Y;
  while(mouse.IsButtonDown(eMouseLeft)){
    gX = mouse.x - xa;
    gY = mouse.y - ya;
    if (gX<0) gX=0;
      else
      if (gX>System.ViewportWidth-g.Width) gX=System.ViewportWidth-g.Width;
    if (gY<0) gY=0;
      else
      if (gY>System.ViewportHeight-g.Height) gY=System.ViewportHeight-g.Height;
    g.X=gX;
    g.Y=gY;
    Wait(1);
  }
}


It also stops when the edges of the GUI touch the edges of the screen.  You can always change this.

Edit: Sorry, forgot to mention that while you're holding the GUI and moving it around, it pauses the game.
#1694
Yeah I'm quite clueless myself. Doh.
#1695
Oh wow, looks like I have some playing around to do tonight once I'm done work.

QuoteIt checks the content of a php script, plain text.
Curious in case I'm understanding that wrong, the   if (text == 'something')   is that the plain text that has been echoed from the check.php file?

That's some pretty cool code, I was actually expecting to see Java do the MySQL check (i don't even know if it's possible) instead of referring to a php file that does it, in the background.  But either way is cool for me.

Also, if his browser doesn't support XMLHttpRequest, does that mean he'll be given an error each time after he clicks on the file input box?

Thanks, Wyz!
#1696
Completed Game Announcements / Re: Puzzle Bots
Fri 07/05/2010 15:51:06
Congrats on completing this.  I'm definitely looking forward to playing this one.

Ps: don't forget to add it to the database and your profile this time. :P
#1697
Thanks for the responses guys.

I already have the images renamed to colourfulphotosX.jpg, with X being the auto incremented number of the file.

Yes, I could easily do it without any issues by checking against the MySQL table to see if that file name has already been uploaded after he uploads them, then delete it from the temp location if it's a duplicate.  Obviously only after I upload it because PHP works server side.  But he doesn't want that.  He uploads LARGE images (eg: 4,288px × 2,848px) that are about 2MB's a piece and with his slow cellphone internet it can take up to 30 seconds or more per photo.  And he'll be uploading about 50-100 photos per night.

So yes, I'm definitely looking for a user side to server side Java script like Wyz mentioned, before the file is uploaded.  That way it can warn my friend that he's already uploaded that file.  So if he accidentally clicked on the same file or decided later that he actually wanted to crop the photo, so when he uploads the new photo with the same old name, it will ask him if he wants to replace, create a new entry, or cancel that photo upload.

If someone knows of a script or something that does what I'm asking, that they've used or know of on the internet, feel free to send it my way.  It wouldn't take me too long to understand how it works and how to tweak it.

Thanks.


Unrelated side note: The images are uploaded at the full resolution that he takes the photo at and then when it's viewed on certain areas of the website, the server resizes the image to the specified size and saves it in a Cache folder - if it hasn't already done it yet.  That way the server only has to resize them once, and I can easily change the website layout and sizes of images without any hassle at all.
#1698
Code: ags

if (Thing<=0) {
  Event2 happens;
} else if (Thing<=120) {
  Event1 happens;
}


Since it's in your repex, this should do the trick with the else.
#1699
I'm quite new to PHP and I don't know much about Java.  I'm asking here because you guys are all pretty talented in different areas.  I'm getting frustrated from searching Google and cannot seem to find what I'm looking for.

Does anyone know how to check for a duplicate file name before uploading it to the server with an html upload form?  At the moment I have the original file name stored in a MySQL database and I want to check against that  before it has to be uploaded.  My guess would be to use Java.

It's for my buddies site that I made for him recently: http://www.colourfulphotos.com
I had to completely learn PHP and MySQL just to make this for him.

Sometimes he uploads about 20-30 photos at a time and once in a while he accidentally uploads a file twice and doesn't know it.  Since it's a photography website, duplicate files should never exist on it.  He wants me to add a warning that tells him before he actually has to wait 30 seconds or so per file to upload.  Is this possible?

Thanks!

Edit: I forgot to mention that the images are being uploaded by an html upload form.
Can Java even check against a MySQL table?
#1700
42.7 is now the highest score I've gotten so far with a double 50.5 in second and third place.  If I didn't screw up on one ball I would have had less than 40 seconds, believe it or not.  :-\

You know what would be super nice?  To have F9 restart the level instead of ESC and then ENTER once the next room loads.  Also ESC doesn't work when you're in a tournament.
SMF spam blocked by CleanTalk