Hmm... unique raw code?

geniuscb

New Member
Reaction score
1
JASS:
call UnitAddAbility(VYI,1093687350)

(picked from DotA Allstars)

The native for UnitAddAbility:
JASS:
takes unit whichUnit, integer abilityId returns boolean


VYI (a variable) is the unit which will be added the ability, while 1093687350 is the ability which will be added to the unit.

While 1093687350 is not a variable, it is a raw code. I thought that raw code is form with 4 characters only.

If 1093687350 is really a raw code, please tell me how to convert it to the 4 character formed raw code. If it is not a raw code, then tell me how it works. Thank you very much.

(delete this post if wrong section/illegal)
 
yes it is a raw code.
a raw code is just an integer
JASS:
'A000' // ascii
0x1000000000000 // Hexadecimal
145349557897098 // decimal


these are just integers from different systems.

ascii works like

ValueOfLetter1 * 256^n + ValueOfLetter2 * 256^(n-1) .... + ValueOfLetterN * 256^0

n = digit position

hexadecimal

same but 16^n....0

decimal

same but 10^n....0


Ascii table:

http://www.asciitable.com/

And maybe you should read this:

http://www.thehelper.net/forums/showthread.php?t=85771
 
So... how do I convert an decimal rawcode to an ASCII rawcode? (Sorry, but my math is out :p)
 
Now I have the Rawcode2String, when i put it in the map, it gives me errors when saving. :(

[LJASS]Undeclared variable StringHash[/LJASS]
 
You have Patch 1.24b, correct?
 
Is there anyway I can use NewGen without the Warcraft CD?i m not using the original warcraft

EDIT : Any other easier ways? Like a math formula?
 
Yes, you can. But, you need a fresh copy. Pirated wc works too.
DON'T use version changer, it is retarded. It does not patch your world editor.
Download the patches from ftp.blizzard.com then you can play with it!
 
An instance of WE seem to be running.

This message shows when i start newgen with 1.24b patch (from blizzard's ftp patcher).
(This is not the actual message, i forgot the actual one)
 
ascii works like

ValueOfLetter1 * 256^n + ValueOfLetter2 * 256^(n-1) .... + ValueOfLetterN * 256^0

n = digit position

hexadecimal

same but 16^n....0

decimal

same but 10^n....0

How does these work?
 
>Newgen never runs on 1.24b
Yes it does, it just uses the 1.21 world editor version which is perfectly compatible with 1.24b.
 
How does these work?

If you have for example

'A001'

the decimal number would be:

Ascii(A) * 256^3 + Ascii(0) * 256^2 + Ascii(0) * 256^1 + Ascii(1) * 256^0


Ascii(A) is 65
Ascii(0) is 48
Ascii(1) is 49
->

65 * 16777216 + 48 * 65536 + 48 * 256 + 49 * 1

= 1093677105
 
General chit-chat
Help Users
  • No one is chatting at the moment.
  • The Helper The Helper:
    News portal has been retired. Main page of site goes to Headline News forum now
  • The Helper The Helper:
    I am working on getting access to the old news portal under a different URL for those that would rather use that for news before we get a different news view.
  • Ghan Ghan:
    Easily done
    +1
  • The Helper The Helper:
    https://www.thehelper.net/pages/news/ is a link to the old news portal - i will integrate it into the interface somewhere when i figure it out
  • Ghan Ghan:
    Need to try something
  • Ghan Ghan:
    Hopefully this won't cause problems.
  • Ghan Ghan:
    Hmm
  • Ghan Ghan:
    I have converted the Headline News forum to an Article type forum. It will now show the top 20 threads with more detail of each thread.
  • Ghan Ghan:
    See how we like that.
  • The Helper The Helper:
    I do not see a way to go past the 1st page of posts on the forum though
  • The Helper The Helper:
    It is OK though for the main page to open up on the forum in the view it was before. As long as the portal has its own URL so it can be viewed that way I do want to try it as a regular forum view for a while
  • Ghan Ghan:
    Yeah I'm not sure what the deal is with the pagination.
  • Ghan Ghan:
    It SHOULD be there so I think it might just be an artifact of having an older style.
  • Ghan Ghan:
    I switched it to a "Standard" article forum. This will show the thread list like normal, but the threads themselves will have the first post set up above the rest of the "comments"
  • The Helper The Helper:
    I don't really get that article forum but I think it is because I have never really seen it used on a multi post thread
  • Ghan Ghan:
    RpNation makes more use of it right now as an example: https://www.rpnation.com/news/
  • The Helper The Helper:
  • The Helper The Helper:
    What do you think Tom?
  • tom_mai78101 tom_mai78101:
    I will have to get used to this.
  • tom_mai78101 tom_mai78101:
    The latest news feed looks good
  • The Helper The Helper:
    I would like to see it again like Ghan had it the first time with pagination though - without the pagination that view will not work but with pagination it just might...
  • The Helper The Helper:
    This drink recipe I have had more than a few times back in the day! Mind Eraser https://www.thehelper.net/threads/cocktail-mind-eraser.194720/

      The Helper Discord

      Members online

      No members online now.

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top