Staredit Network > Starcraft I Database > File: Detect F2P and language

Sunken Treasure
(Reload)
Detect F2P and language
Download
Filename: detect_f2p_n_lang.zip
Filesize: 125.78KB

Thumbnail

Rating
Not enough votes.
Log in to rate

File Information
General
Uploaded on:May 23 2019, 2:09 am
Uploaded by:Arta(M)
Author:Artanis[M]
Downloads:16

File Contents
basemap.scx
detect_f2p_and_language.scx
main.edd
main.eps
File Description
Source code and output map are uploaded.

The width of two or more whitespaces differs from language to language in SC:R, and whether user purchase SC: R or not.

The width of whitespaces in Unpurchased, English SC, has largest width. DisplayText will break line with at least 124 whitespaces.
In Purchased, Korean SC, DisplayText with 171 whitespaces will break line.
The width of whitespaces is same in Purchased, English and Unpurchased, Korean SC. DisplayText with 206 whitespaces will break line.

We can measure the number of lines in last DisplayText, by calculating difference of 0x640B58.
Although Purchased, English and F2P, Korean SC have same whitespace width, we can distinguish them by whether screen width exceeds 640 pixels or not.

All Images

Comments
No comments yet.
[05:57 am]
Suicidal Insanity -- Pretty sure if you look at the trigger struct definition in the EUD talk you will see the real count :P
[03:53 am]
jjf28 -- so at least 22 bytes are definitely owners**
[03:17 am]
jjf28 -- rest of trigger owners are essentially 3rd party inventions
[03:16 am]
jjf28 -- p1-8, force1-4, all players
[03:16 am]
jjf28 -- o u rite
[03:07 am]
O)FaRTy1billion[MM] -- triggers can be owned by more than just the first 8 though
[02:41 am]
jjf28 -- in the list of groups I just call it "Id27" https://puu.sh/DV0sl/9ffe6a8612.png
[02:39 am]
jjf28 -- Suicidal Insanity
Suicidal Insanity shouted: I think its 27 and padding
Wormer
Wormer shouted: or the guide (http://www.starcraftai.com/wiki/CHK_Format#.22UNIT.22_-_Placed_Units) is wrong there and it should be u8[27] ?
you may as well say it's 8bytes + padding
[02:38 am]
jjf28 -- these flags? https://puu.sh/DV0q6/2adbd2e63e.png
[09:32 pm]
O)FaRTy1billion[MM] -- iirc the last byte in the TRIG is for more flags or something
Please log in to shout.


Members Online: Rawflesh0615, Roy, Neiv