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

#5961
Hmmm I think ScreenTransition types won't affect background frame changing.
What colour depth was your game in?
If it's 256 colour, try to make the frames share the same palette when importing, if they use independent palettes I think that flash is hard to avoid.
#5962
Ah yeah. You don't really need to use dialogs if the speeches aren't interactive.
#5963
HAHA Goldmund!
Spoiler

I wonder how many people got my obvious joke, as I WASN'T really drawing Dart.
[close]
#5965
It's quite possibly you deleted some of the button graphics of the built-in inv. window (the hard-coded in engine one, not the one customizable in the GUI section).

You have 2 choices:
1. Use a customized GUI for inventory, as you originally did.
2. Add back several sprites, then:
    right-click --> Change sprite number
    and set them to the sprite numbers of the missing button sprites (I think they're 2041, 2042 and 2043).
#5966
So, following others, I drew dart... well... er... I mean...

...sorry Pesty! ;)
#5967
Hehe so you're officially Scummdead in Ezboard then. ;D
#5968
I don't think a CVS would help much, I think people can just ask CJ personally about helping and retrieve the relevant codes (if CJ permits) currently for development.

Moreover, it'll help porting the engine to OS only if the porter can get hold of the full source, I think anyone who is reliable, has enough knowledge of programming on the platform can just negotiate with CJ directly for codes (like the current *nix engines).
#5969
Try running the game directly from the Compiled folder, and see if this problem persists, if you don't have problems there, just test the game by executing it directly.
Don't use the test game feature of the editor anymore if you have problems with it.
#5970
I didn't try your .ags yet, but I did get a crash when I tried the posted script:
I just started a new game with default template, then copy the scripts to the header and global script, commenting some of the lines to make the script compile because of missing buttons, etc. And it didn't crash.
BUT, after that I added Display lines before all the returns to check the Year, etc. set, and then I tried to run it, since upon starting the game the script called for Now() twice, and as Now(1) itself was called recurrsively several times in the function itself, it came up displaying the year several times (which was strange to me, as I thought displaying something in game_start() should not work, as not even a room is loaded), but after the 4th or 5th time it crashed. So I blame that to some memory management problem, which was called by repeated recurrsive calls (plus displaying something uses memory I think), and after I changed the codes (like above) it won't crash for me anymore.

EDIT: Hmmm I just tried your compiled game, but it complains about line 186, SetLabelText: Invalid object number.
#5971
256 colour images use 1 byte to store a pixel, 16 bit images use 2 bytes.
So basically hicolour graphics use twice as much space for storage compared to 256 colour ones.
For sprite graphics they're not compressed so you can safely assume hicolour sprites consume twice as much space as 256 colour ones.
For room backgrounds, as they're compressed, so you can't in general compare the sizes well, how large they'll consume depends on how "complicate" the backgrounds are , according to the compression scheme. Though of course in general a photorealistic hicolour background would use more space compared to a cartoony 256 colour one.
#5972
Hmmmm Shadow areas... bring good old memory...

[Ignore this if you didn't understand it, I think not many people would understand it now := ]
#5973
I don't want AGS to become open-sourced either, plus I don't want to see zillions of mods different buggy versions with different "nice additions/fixes" floating around.
#5974
Alright, I think I had fixed it, I still don't know the real reason but I think it may be a stack overflow trying to do those multiple Now(1) (recurrsive) calls, I managed to trim the code down a bit (mainly eliminated multiple calls to functions and the like) and it seemed to work (I think I had fixed that year calculation, but I'm not sure, you need to spot errors when the date is close to the beginning/end of a year). Though after fixing the codes seemed to work, I don't like recurrsive function calling so I separated the year calculation into another function called GetYear() (Now(1) will still return the year):
function GetYear(){
Ã,  int Raw_Seconds = GetRawTime(); 
Ã,  int Raw_Minutes = Raw_Seconds / 60;
Ã,  int Raw_Hours = Raw_Minutes / 60;
Ã,  int Raw_Days = Raw_Hours / 24;
Ã,  int Raw_Years = ((Raw_Days-731) * 4) / 1461;
Ã,  int Year = Raw_Years + 1972;
Ã,  return Year;
}


function Now(int type){ // Returns the current time/day/date/year by the computer clock.
  if (type == 1) return GetYear(); //return GetYear(); // Current year
  else if (type == 2) { // Current time
    string TimeNow;
    int hour = GetTime(1);
    int minute = GetTime(2);
    string AMPM;
    if (hour >= 12) {
      hour-=12;
      StrCopy(AMPM, "pm");
    } else {
      if (hour == 0) hour=12;
      StrCopy(AMPM, "am");
    }
    StrFormat(TimeNow, "%d:%02d %s",hour,minute,AMPM);
    SetGlobalString(49,TimeNow);
  } else if (type == 3) { // Current date
    int month = GetTime(5);
    int day = GetTime(4);
    string date1;
    StrFormat(date1,"%d-%d-%d",GetTime(5),GetTime(4),GetYear());
    SetGlobalString(49,date1);
  } else if (type == 4) { // Current day (e.g., Monday, Tuesday)
    int Year = GetYear();
    int tmpYear=Year - 2000;
    tmpYear += (tmpYear / 4);
    int month=GetTime(5);
    int MonthNum;
    if (month == 1) MonthNum = 6;
    else if (month == 2) MonthNum = 2;
    else if (month == 3) MonthNum = 2;
    else if (month == 4) MonthNum = 5;
    else if (month == 5) MonthNum = 0;
    else if (month == 6) MonthNum = 3;
    else if (month == 7) MonthNum = 5;
    else if (month == 8) MonthNum = 1;
    else if (month == 9) MonthNum = 4;
    else if (month == 10) MonthNum = 6;
    else if (month == 11) MonthNum = 2;
    else if (month == 12) MonthNum = 4;
    int DayCode = tmpYear + MonthNum + GetTime(4);
    if (((Year%4)==0)&&(month == 1 || month == 2)) DayCode--;
    while (DayCode > 7) {
      DayCode -= 7;
    }
    while (DayCode < 1) {
   Ã,  DayCode += 7;
Ã,    }
    string Day;
    if (DayCode == 1) StrCopy(Day, "Monday");
    else if (DayCode == 2) StrCopy(Day, "Tuesday");
    else if (DayCode == 3) StrCopy(Day, "Wednesday");
    else if (DayCode == 4) StrCopy(Day, "Thursday");
    else if (DayCode == 5) StrCopy(Day, "Friday");
    else if (DayCode == 6) StrCopy(Day, "Saturday");
    else if (DayCode == 7) StrCopy(Day, "Sunday");
    else StrFormat(Day, "%d", DayCode);
    SetGlobalString(49,Day);
  }
}


Note that I simplified that (Now(1)==2004||Now(1)==2008...) part a lot by just checking if the year is divisible by 4, it's actually not a real accurate calculation as actually not all years # divisible by 4 have 366 days (same problem to the year calculation), but I think auch a year won't happen again in the near future (I think it's probably in 2100, I had forgotten the criteria).
#5975
Well since the olympic games ended, I think it's time for the closing ceremony here too (and it's 31st here already).
I'll say nice job for everyone who entered, though there weren't many entries, but all of them were brilliant and made me laugh. But there can be only one winner, having rolled a dice decided I'll say the gold medal goes to:
Gore-Mug!1!


He won because of the entry's faithfulness to history and skill. :=
#5976
Better use:
while (StrCaseComp("silver",password)) {

As it's not guaranteed to be always 1 if they do not match:
Quote
Returns 0 if the two strings match, non-zero otherwise.
#5977
General Discussion / Re: Going to the UK
Mon 30/08/2004 04:50:29
I feel lucky that "MY city" is not under control by YOUR world now, LGM.
#5978
The graphics of Larry Vales were superb, the game that had terrible graphics was called 6 Days an Assasin.
#5979
Yeah moved.
#5980
General Discussion / Re: Forum Font
Mon 30/08/2004 02:26:00
Font changed? I can't see the difference.

Giant font? Where?
SMF spam blocked by CleanTalk