GetObjectName String References?

General talk about editing, cheating, and deprotecting maps.

Moderator: Cheaters

User avatar
GoD-Tony
Newcomer
Posts: 8
Joined: January 31st, 2009, 3:44 pm

GetObjectName String References?

Post by GoD-Tony »

Sometimes when editing a map in JASS I'll run across something like this:

Code: Select all

DisplayTimedTextToPlayer(GetTriggerPlayer(),0,0,10,(GetObjectName((1848657712))))
Instead of using a string directly, it's making reference to a string in another file using GetObjectName...

CampaignUnitStrings.txt

Code: Select all

[n0G0]
Name="string being referenced here"
Hotkey=
Tip=""
Ubertip=""
My question is, how does GetObjectName(1848657712) lead to the string in CampaignUnitStrings.txt?
User avatar
Ozzapoo
The Flying Cow!
Posts: 2196
Joined: November 2nd, 2007, 10:34 pm
Location: Melbourne

Re: GetObjectName String References?

Post by Ozzapoo »

the [n0G0] thing is just the shortening of the number. Convert it back to the normal rawcode using this:

http://files.wc3edit.net/download/index ... anager.exe

(Just put the long number in the "Integer -> Char" box and hit the button)
Visit Ozzapoo.net, my blog and the home of AutoCP and Cheatpack Detector!
AutoCP3 now available for free!
User avatar
GoD-Tony
Newcomer
Posts: 8
Joined: January 31st, 2009, 3:44 pm

Re: GetObjectName String References?

Post by GoD-Tony »

Exactly what I needed to know, thanks.