You can unzip the self-extracting executable. unzip ra3soundtrack.exe worked fine for me. Then I discovered that the mp3 player doesn't work with the linux version. Bummer.
[wiley@zig wiley]$./datetest2 1999 11 31 Date::Calc::Add_Delta_Days(): not a valid date at./datetest2 line 11.
I also tried it without the line
$y += 1900; #fix the years
but that still gives me
99 11 31 Date::Calc::Add_Delta_Days(): not a valid date at./datetest2 line 10.
I am almost positive that this code worked yesterday.
I fixed the problem script with a different approach, but I thought this was worth pointing out. I will admit that I could be doing something wrong here. Any ideas?
I play quake, quake2 and quake3test under linux all the time without any crashes. I agree that open source is the way to go, but I don't see it happening with mainstream games anytime soon.
A major problem with SunOS is the fact that you have to spend hours installing the GNU packages that we all know and love before you have a usuable box. With linux you just install a distribution, tweak a few settings and you are done.
You can unzip the self-extracting executable.
unzip ra3soundtrack.exe
worked fine for me. Then I discovered that the mp3 player doesn't work with the linux version. Bummer.
oops, looks like I am the one with issues.
Desert Raven pointed out that
Months are returned as zero-based array indexes. (january == 0, december == 11)
doh!
That seems to do the trick.
I guess localtime has issues.
Thanks
Wiley
I thought this was interesting.
./datetest2 ./datetest2 line 11.
./datetest2 line 10.
#!/usr/bin/perl
($y,$m,$d) = (localtime)[5,4,3]; #get todays date
$y += 1900; #fix the years
print "$y $m $d\n";
this gives me: 1999 11 31
date gives: Fri Dec 31 12:15:04 EST 1999
Hmm, I could be doing something wrong, but I have
never noticed this problem before.
I noticed the problem with the following:
#!/usr/bin/perl
# evil broken code follows
use Date::Calc qw(Add_Delta_Days);
($y,$m,$d) = (localtime)[5,4,3]; #get today's date
$y += 1900; #fix the years
print "$y $m $d\n";
($y2,$m2,$d2) = Add_Delta_Days($y,$m,$d,-1); #get yesterday's date
$y2 += 1900;
print "$y2 $m2 $d2\n";
# end evil code
This produces:
[wiley@zig wiley]$
1999 11 31
Date::Calc::Add_Delta_Days(): not a valid date at
I also tried it without the line
$y += 1900; #fix the years
but that still gives me
99 11 31
Date::Calc::Add_Delta_Days(): not a valid date at
I am almost positive that this code worked yesterday.
I fixed the problem script with a different approach, but I thought this was worth pointing out. I will admit that I could be doing something wrong here. Any ideas?
Wiley
I play quake, quake2 and quake3test under linux all the time without any crashes. I agree that open source is the way to go, but I don't see it happening with mainstream games anytime soon.
If the game must be open source whats stoping Joe Blow from downloading the source code and compiling it?
Why would the game have to be open source? I am perfectly willing to buy closed source games that run on linux.
A major problem with SunOS is the fact that you have to spend hours installing the GNU packages that we all know and love before you have a usuable box. With linux you just install a distribution, tweak a few settings and you are done.