Staredit Network > Forums > SC1 Terrain > Topic: Starcraft Tileset Ripping
Starcraft Tileset Ripping
Nov 6 2011, 9:46 am
By: Fortis  

Nov 6 2011, 9:46 am Fortis Post #1



Found the problem. My bitshifting operations were wrong. Edited the problem code in the post but haven't updated the source cause I'm lazy :bleh:

Hello. I bough a new phone recently, an android one, and have decided to port starcraft to it. It will be a nice little learning experience. So I want the port to use the original files. (Graphics, Tilesets, scripts, etc.) with some files removed to save space. I read up on internet about how the tiles are stored.

Quote
VX4: MegaTile Graphics
This file contains references to the MiniTile images and states if they are flipped.
Struct size: 32 bytes (16 shorts)
Max ref. ID: 65535

Offset Type Name Description
+0x00 16xSHORT Images The first bit (bit0) is the horizontal flip flag, the remaining 15 bits (bit1-15) are the VR4 index.

Like the above states I use the C++ code
Quote
index = megatile.images[mit]/2;
flip = !megatile.images[mit] >> 15;//FoUND problem this should be << 15!!!!!
minitile = miniTiles[index];
And it works, but the flip isn't always read correctly. Is it something I did wrong or is the information incorrect?
This is my source
Leaving the source. Feel free to use it :).


Post has been edited 5 time(s), last time on Nov 6 2011, 11:09 am by Fortis.



None.

Nov 11 2011, 8:24 am Sacrieur Post #2

Still Napping

Fascinating, it seems you're adept at this sort of work you're doing.

Anything else you've come across that is particularly note worthy?



None.

Nov 11 2011, 11:07 pm Tempz Post #3



Plenty of people have tried to port starcraft

(sc lite = Ds starcraft homebrew which i've tried and sucks)
(sc 64 = n64 port)

Trust me you can never really capture the spirit of starcraft on a phone since its too basic. Iphone/ipad maybe but thats it.



None.

Options
  Back to forum
Please log in to reply to this topic or to report it.
Members in this topic: None.
[04:37 am]
Ultraviolet -- 80% of statistics are made up on the spot
[08:05 pm]
Symmetry -- 50% of strings in starcraft are references
[2026-6-07. : 1:59 am]
RIVE -- Lots of fun little nods to different works of others in the cheats too.
[2026-6-06. : 5:17 pm]
Oh_Man -- so i was today years old wen i learned rebel yell starcraft mission is named after a billy idol song. makes me wonder wat other missions are named after songs
[2026-6-04. : 3:42 am]
RIVE -- Hellooooo, Nurse
[2026-6-03. : 4:19 pm]
NudeRaider -- Hello World!
[2026-6-01. : 4:03 pm]
IskatuMesk -- no Hello World? No Hello . jpeg? Not even ddosing some government website? smh my head
[2026-5-31. : 10:02 pm]
Symmetry -- I was really just figuring out how to compile
[2026-5-31. : 10:02 pm]
Symmetry -- I didn't make it do anything
[2026-5-31. : 9:17 pm]
Ultraviolet -- hell yeah. did you have trouble making the button functional, or just haven't gotten there yet?
Please log in to shout.


Members Online: AnthonyRichards