urbanyoung / Phasor

Phasor is a server extension for Halo PC which focuses on giving the end-user the ability to deeply customize gameplay. Phasor does this via its scripting system, which uses the Lua language. Scripters are able to react to and change many different aspects of the game.
MIT License
19 stars 9 forks source link

Readstring only returns first character of string #55

Closed twhitcomb closed 11 years ago

twhitcomb commented 11 years ago

Taken from the addresses page,

local gametype_name = readstring(0x671340, 0x0, 0x2C)

The above gives a syntax error since readstring only takes two arguments now instead of three, but when I do this:

local gametype_name = readstring(0x671340, 0x2C)

It only returns the first character of the gametype name.

urbanyoung commented 11 years ago

Try readwidestring

twhitcomb commented 11 years ago

Derp. What's the character limit for something to be considered a wide string?

urbanyoung commented 11 years ago

I think it's 80 wide characters, which is 160 bytes.