? G​R​P F​ile​ Fo​rma​t (Page 1) ● SmileBASIC Source Forums

Sign In

Register
*Usernames are case-sensitive
Forgot my password

🔒 G​R​P F​ile​ Fo​rma​t

  • #1 ✎ 1755 12Me21 Syntax Highlighter Received for creating the code syntax highlighter on SBS Night Person I like the quiet night and sleep late. Express Yourself
    So, this is just a simple question. A GRP file is saved as a DAT file (correct?). So, if we could load it as a DAT file, and view the contents, shouldn't it be possible to find a format in which a GRP is saved? I'm asking this because if it WAS possible it would allow for compression of data in the DAT file, which would allow for more GRPs to be stored in one program. This would allow for overall better games.
    you can load a GRP as a 2D 512x512 DAT file. Note that it will use 16 bit (RRRRRGGGGGBBBBBA) colors rather than 32 bit (AAAAAAAARRRRRRRRGGGGGGGGBBBBBBBB) and uses the correct [Y,X] order.
    Posted Edited by 12Me21
  • #2 ✎ 131 raimondz First Week Joined in the very first week of SmileBASIC Source Website Expert Programmer Programming no longer gives me any trouble. Come to me for help, if you like! Programming Strength Night Person I like the quiet night and sleep late. Express Yourself
    So, this is just a simple question. I'm asking this because if it WAS possible it would allow for compression of data in the DAT file, which would allow for more GRPs to be stored in one program. This would allow for overall better games.
    I tried to do that before on my megaman battle network clone (I stored the image and the pallete of it in 2 arrays, the first store 2 colors and the second the pallete colors). It works but... what you gain in space is lost in performance (Loading time wasn't terrible but it's noticable). Also, the project explorer became slower if there are too much files (I had more than 300 at that time because I stored the mugshot of the chips on separated files).
    Posted