• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.

[JASS] Raw Data

Status
Not open for further replies.
Level 4
Joined
Nov 21, 2004
Messages
47
Hey, im new to jass but i have been programing for about a year now so most of the stuff seems kinda easy. Ive been trying to figure this out, sorry if its a noob question but how would i set an int to the value of raw data.
i tried this, but it doesent seem to work, i got nothing left.
set udg_Int_sides = <E000:Edem,sides1>

thx so much in advance to anyone who helps me
 
Level 11
Joined
Feb 18, 2004
Messages
394
Rawcodes are base 256 integers. They can contain any ASCII charicter. Press CTRL+D in the object editor to see unit, destructable, etc. rawcodes.

All types in WC3 are 4 bytes big. (8 bits * 4 = 32 bits) (handles, reals, integers, all of em.) Thus, a base-256 number containing the 4 largest values (255) create the maximum an integer in WC3 can hold. thus why rawcodes are 4 letters long, and base 256.

Check an ASCII chart to see what letters / number / charicters actually are valued as in the numbering system.
 
Last edited by a moderator:

Dr Super Good

Spell Reviewer
Level 64
Joined
Jan 18, 2005
Messages
27,258
Im sorry for the mistakes in the culculation, I was tired when I last posted and made a mistake by not powering correctly.

By default text is stored in a number upto 256 (255 if you count 0) which is known as 8 bit. This means that we have 4*8 bit which makes 32 bit and as we all know the maximum 32 bit can store is 4,294,967,295 (2^32-1) if you count 0.

These are all the characters I found it uses, most of them I do not know and I do not know if WC3 allows them or even lets them be used.
..................................!.#$&'()*+,-./0123456789:;<=>.@ABCDEFGHIJKLMNOPQRSTUVWXYZ[.]^_`abcdefghijklmnopqrstuvwxyz{|}~.................................................................................................................................

I think that is the correct order and note that most of the "." are unknown and also note that I stole this from WEU's enhanced trigger from a map and I think this is correct.
 
Status
Not open for further replies.
Top