Blockout II v.2.4 for x86_64 Linux

Discuss about Blockout II from Jean-Luc, post your feature requests etc.
Post Reply
dkirienko
Posts: 5
Joined: Sat Jan 12, 2008 12:26 pm

Blockout II v.2.4 for x86_64 Linux

Post by dkirienko »

Hello,

I have sucessfully builded BlockOut II version 2.4 for x86_64 Linux. The patch I\'ve used is attached.

I assume that SDL and mesa include and lib files are located in the system include directory, i.e. /usr/include/SDL. [file name=blockout2_2.txt size=4940]http://www.blockout.net/components/com_ ... out2_2.txt[/file]<br><br>Post edited by: dkirienko, at: 2008/01/12 20:35
dkirienko
Posts: 5
Joined: Sat Jan 12, 2008 12:26 pm

Re:Blockout II v.2.4 for x86_64 Linux

Post by dkirienko »

But there is a problem with dates at hi-scores list when using x86_64. Look at the next screenshots.<br><br>Post edited by: dkirienko, at: 2008/01/12 20:40
dkirienko
Posts: 5
Joined: Sat Jan 12, 2008 12:26 pm

Re:Blockout II v.2.4 for x86_64 Linux

Post by dkirienko »

Screenshot 1:
Image
dkirienko
Posts: 5
Joined: Sat Jan 12, 2008 12:26 pm

Re:Blockout II v.2.4 for x86_64 Linux

Post by dkirienko »

Screenshot 2:

Image
jlp_38
Posts: 264
Joined: Tue Jun 26, 2007 9:09 am

Re:Blockout II v.2.4 for x86_64 Linux

Post by jlp_38 »

Hope human will still play Blockout in 582126458 :woohoo:

Thanks :) I will check that on Monday or Tuesday. I don\'t have a x86_64 Linux at home home.
jlp_38
Posts: 264
Joined: Tue Jun 26, 2007 9:09 am

Re:Blockout II v.2.4 for x86_64 Linux

Post by jlp_38 »

Hi,

I found the problem. It\'s coming from Utils.cpp
I made the follwoing patch. Note that you have also
to add -DLOCALTIME64 in the Blockout Makefile.
Could you test it and let me know it works ?

Thank again ;)

Code: Select all

//-----------------------------------------------------------------------------
// Name: FormatDate(int time)
// Desc: Format date as DD-MM-YYYY HH:MM:«»SS
//-----------------------------------------------------------------------------
char *FormatDate(int time) {

  static char ret[32];
  if( time>0 ) {
#ifdef LOCALTIME64
    time_t d = (time_t)time;
    struct tm *ts = localtime(&d);
#else
    struct tm *ts = localtime((time_t *)&time);
#endif
    sprintf(ret,\"%02d-%02d-%04d %02d:%02d:%02d\",ts->tm_mday,ts->tm_mon+1,ts->tm_year+1900,
                                                ts->tm_hour,ts->tm_min,ts->tm_sec);
  } else {
    strcpy(ret,\"\"«»);
  }

  return ret;

}

//-----------------------------------------------------------------------------
// Name: FormatDate(int time)
// Desc: Format date as DD-MM-YYYY
//-----------------------------------------------------------------------------
char *FormatDateShort(int time) {

  static char ret[32];
  if( time>0 ) {
#ifdef LOCALTIME64
    time_t d = (time_t)time;
    struct tm *ts = localtime(&d);
#else
    struct tm *ts = localtime((time_t *)&time);
#endif
    sprintf(ret,\"%02d-%02d-%04d\",ts->tm_mday,ts->tm_mon+1,ts->tm_year+1900);
  } else {
    strcpy(ret,\"..........\"«»);
  }

  return ret;

}
dkirienko
Posts: 5
Joined: Sat Jan 12, 2008 12:26 pm

Re:Blockout II v.2.4 for x86_64 Linux

Post by dkirienko »

Yes, I have tested this patch and it looks to be fine. Thank you.
User avatar
Herc
Posts: 174
Joined: Sun May 20, 2007 12:54 pm

Re:Blockout II v.2.4 for x86_64 Linux

Post by Herc »

this is currently not possible. the reason is a security measure - it is not possible to guarantee unique scores with open source. though blockoutII is opensource, the code part responsible for highscore uploads and replay stuff is secret / non-public.

so, unless the original author jean-luc supplies a x64 version, there will be no official online highscores.

you are of course free to set up your own highscore server and add program highscore upload yourself.

if you really need a 64bit version ASAP, you should email / contact jean luc pons. he can probably provide a 64bit version soon.
Post Reply