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 - Gilbert

#6701
I think it's not really that important to remind people of walkthroughs being added, people who are stuck in games and want assistant should just search those 2 pages first before asking anyways.
#6702
Heh why, mp3 files are well compressed so you won't gain much by ZIPping them anyways.

But yes, freewebs limits the downloading speed of files (to 1-2 kb/s I think) so it's awfully slow (I managed to get it, not heard it yet though), someone should have mirrored it in a faster space.
#6703
Actually 640x480 works for most pcs, so you can make 320x240 games, just when the player fould that his pc can't display 320x240, he can always set up the game to play at 640x480 .
#6704
Hehe I'm just curious why you put 01 in you rcode instead of 1, that should make no difference.
#6705
Advanced Technical Forum / Re:Display GUIs
Wed 17/03/2004 02:40:38
Hmmm did you check the "text box" checkbox in that gui? Check it first. Text boxes are handled specially, unlike the "common" GUIs.
#6706
General Discussion / Re:Music File
Wed 17/03/2004 01:24:37
I am not quite sure about it as I'm never fond of those wma/wmv, etc formats.
But as there're a Winamp plugin for WMA format, I think you can possible setup Winamp to decode the wma file as a wave file instead of playing it to the soundcard.

Anyway, this thread is not AGS technical related, so I'll mov eit to the Gen Gen forum.
#6707
Heh I just feel I'm missing something having played tw1 and tw3 but not tw2.
#6708
Hints & Tips / Re:Songo Help Please
Wed 17/03/2004 00:56:51
Spoiler

Did you get the *form* yet?
[close]
#6709
Quote from: DragonRose on Tue 16/03/2004 15:11:01
Waitaminute- Oranges is Plum Green?

No, he's Plum Monitor.
#6710
Well, I'm not experienced in this field, but I think it should be:

function character4_a() {
  // script for character4: Use inventory on character
if ((character[PZY].activeinv==6)&&(GetGlobalInt(6)==1)){
   DisplaySpeech (PZY, "here we go");
   FadeOut (30);
   NewRoomEx (7, 39, 228);
   }
}


Remember also when  doing comparisons you need == other than =. Notice the cases of letters in function names also.
#6711
Yes, if you're using 16bit (or above) colour modes, look up
Tutorial --> Advanced room features --> Lighting effects
from the manual.
#6712
Advanced Technical Forum / Re:Custom Quit GUI
Tue 16/03/2004 10:20:09
Well that makes no difference, darth, if you only need one line of code after the if condition, you don't really need the {}'s

actually the problem is:

if (interface == ICONBAR) {
    if (button == 4) {  // show inventory
      show_inventory_window();
    }
    else if (button == 5) {   // use selected inventory
      if (character[ GetPlayerCharacter() ].activeinv >= 0)
        SetCursorMode(4);
    } 
    else if (button == 6)    // save game
      SaveGameDialog();
    else if (button == 7)   // load game
      RestoreGameDialog();
    else if (button == 8 )   // quit
      GUIOn(QUITGUI);
    else if (button == 9)    // about
      Display("Just Another Day[[Copyright (c) 2001-2005 Jonathan Hayes");
  }  // end if interface ICONBAR

  if (interface == INVENTORY) {
    // They clicked a button on the Inventory GUI
    
    if (button == 1) {
      // They pressed SELECT, so switch to the Get cursor
      SetCursorMode (MODE_USE);
      // But, override the appearance to look like the arrow
      SetMouseCursor (6);
        }
    
    if (button == 2) {
      // They pressed LOOK, so switch to that mode
      SetActiveInventory(-1);
      SetCursorMode(MODE_LOOK);  
        }
    if (button == 3) {
      // They pressed the OK button, close the GUI
      GUIOff (INVENTORY);
      SetDefaultCursor();
        }

    if ((button == 4) && (game.top_inv_item < game.num_inv_items - game.num_inv_displayed)) {
      // scroll down
      game.top_inv_item = game.top_inv_item + game.items_per_line;
        }
    if ((button == 5) && (game.top_inv_item > 0)){
      // scroll up
      game.top_inv_item = game.top_inv_item - game.items_per_line;
    }
  } // <-- ADD THIS ONE


    if (interface == QUITGUI) { 
Ã, Ã, Ã,   if (button == 0) {
Ã, Ã, Ã,     QuitGame (0);
Ã, Ã, Ã,   }
Ã, Ã, Ã,   if (button == 2) {
Ã, Ã, Ã,     GUIOff (QUITGUI);
Ã, Ã, Ã,   }
Ã, Ã, Ã,   if (button == 1) {
Ã, Ã, Ã,     Display("WHAT!? ARE YOU TRYING TO CHEAT!!! Save often");
Ã, Ã, Ã,     GUIOff (QUITGUI);
Ã, Ã, Ã,   }
      }    
//  } <-- Delete this } 



See the red and blue texts specifically. The main reason is that you didn't place the brackets correctly, so the "if (interface == QUITGUI) ..." part was inside of the " if (interface == INVENTORY)... " part.
#6713
Hehe actually I gave Dave a Chinese name (sorta) already, read the thingies written on the plate before me in that Photoshop *whatever* pic I did from the competition forum.
#6714
Heh actually I just want to know if anyone got hold of a copy of tw2 before it's taken down (because it's too buggy according to Andail), I want to see how it looks (even if it's buggy and probably cant be completed) and I don't want to wait forever for Andail to release it. ;D
#6715
Can you post the line of code here?
#6716
Heh yea, oranges wrote "He is American, I'm not American, I am an Alien" ;D
#6717

Well, basically I captured him into my computer when he arrived last week and used him for presentation last month.
#6718
I'll say just keep it to the single sprite jam, there're enough freedom granted to it already, the one who thinks of the rule can put in a rule like "must be animated" if he/she wants. So most things are well covered up there.

So I suggest keeping it to one contest (but with varying rules each time), rather than creating some other new contests.

But of course, wait for the others and see what they prefer.
#6719
No, Mandarin is definately easier to learn.

Learning Cantonese from scratch is nearly impossible unless you're born with it (like me).

I just don't like Mandarin myself, and dare not to learn it (well I did have Mandarin classes some 20 years ago when I was studying primary school, but then I forgot everything, I wasn't good at it at that time anyways).
#6720
Ah I know what happens now, I did a little test and I'll say it's quite possibly a bug.

The scenario is like this, that's because the string ends with \", the troublesome thing is that the "compiler" wrongly interpret that \" as you want to display a " character in the string, instead of correctly recognize the \\ first, so that " is not considered as double quotes to close the string, thus the error.

Currently I can think of 3 workarounds:
1. Add a space before ", so: "%s\\%s\\%s\\ ". I don't know what do you want for this string, but if you just want to change path or display content of the path I think adding a space to the end won't hurt.

2. Do as point 1 (add a space to the end), BUT then strip off that space character by truncating the string to one character shorter:
StrSetCharAt(output_path,StrLen(output_path)-1,0);
(See Manual entry of StrSetCharAt() for more details.
HEHE, @CJ, there's an obvious typo in this entry, you wrote StrGetCharAt() instead)

3. If you need to append a file name to the end of it anyway, just don't put the \ to the end of out_path, but put it in front of the file name and append.


SMF spam blocked by CleanTalk