scale:2 and the pressure reading

  • Epsilon
    22nd Jul 2010 Member 0 Permalink
    I'm honestly not sure if "scale:2" is even a supported function, but if it is - the numerical pressure display doesn't work properly when the scale of the screen is doubled. Any simple fix, or would it be non-trivial? ;)
  • Catelite
    22nd Jul 2010 Former Staff 0 Permalink
    I was wondering when someone would mention this.
  • feki00
    22nd Jul 2010 Member 0 Permalink
    It is indeed broken, it is a programming error. You cant fix it unless you compile the correct source.

    Simon if you read this, you should fix the bug with this:
    its in main(), changes are bold:
    if(y>0 && y<sdl_scale*YRES && x>0 && x<sdl_scale*XRES){
    int cr;
    cr = pmap[y/sdl_scale][x/sdl_scale];
    if(!((cr>>8)>=NPART || !cr)){
    #ifdef BETA
    sprintf(heattext, "%s, Pressure: %3.2f, Temp: %4.2f C, Life: %d", ptypes[cr&0xFF].name, pv[y/CELL /sdl_scale][x/CELL /sdl_scale], parts[cr>>8].temp, parts[cr>>8].life);
    #else
    sprintf(heattext, "%s, Pressure: %3.2f, Temp: %4.2f C", ptypes[cr&0xFF].name, pv[y/CELL/sdl_scale][x/CELL/sdl_scale], parts[cr>>8].temp);
    #endif
    } else {
    sprintf(heattext, "Empty, Pressure: %3.2f", pv[y/CELL/sdl_scale][x/CELL/sdl_scale]);
    }
    }
  • ssc4k
    22nd Jul 2010 Member 0 Permalink
    Really you shouldn't need to use scale:2 to scale the program, either there should be a larger resolution of the simulation (which could cause some slowdowns on systems) or there should be an in-game option to have the particle grid be 1x1 or 2x2 (scale:2 size) pixels [I'm not sure how big the fluid simulation grid is but just double the values].
  • Catelite
    22nd Jul 2010 Former Staff 0 Permalink
    Scale:2 makes the window larger. It doesn't increase the size of the sandbox. Even though Empty is technically ignored.

    Scale:2 is awesome stuff. :O
  • ssc4k
    22nd Jul 2010 Member 0 Permalink
    I was saying ways that the program could avoid the use of scale:2 as it's not exactly a pretty fix.
  • Catelite
    22nd Jul 2010 Former Staff 0 Permalink
    Ahh right. And seeing as how most people have issue with command line switches, it might be a good idea to make an in-game option somehow.

    Sounds tricky though @_@
  • feki00
    22nd Jul 2010 Member 0 Permalink
    Looks like it has been fixed in 37.0