Joined: 07 Nov 2008 Posts: 4438 Location: W kraju nad Wisla. UTC+01:00
Posted: Tue Nov 22, 2016 5:47 pm Post subject:
Find those:
Code:
elseif self.type == vtCustom then
-- assumed that mgr.inz.Player's customTypesExt is loaded
local t = getCustomType(self.typeName)
ret = t.getValue(self.address)
if t.usesFloat then return tostring(ret) end
else
and change to:
Code:
elseif self.type == vtCustom then
-- assumed that mgr.inz.Player's customTypesExt is loaded
local t = getCustomType(self.typeName)
ret = t.getValue(self.address)
if t.usesFloat then
return tostring(ret)
elseif ret>0x7fffffff then ret=ret-0x100000000
end
else
elseif self.type == vtCustom then
-- assumed that mgr.inz.Player's customTypesExt is loaded
local t = getCustomType(self.typeName)
ret = t.getValue(self.address)
if t.usesFloat then return tostring(ret) end
else
and change to:
Code:
elseif self.type == vtCustom then
-- assumed that mgr.inz.Player's customTypesExt is loaded
local t = getCustomType(self.typeName)
ret = t.getValue(self.address)
if t.usesFloat then
return tostring(ret)
elseif ret>0x7fffffff then ret=ret-0x100000000
end
else
Alright this seems to make it work correctly. Thanks for the help!
That's because you're returning a 4-byte value for a value type whose size is 2 bytes. I dunno if that's required for CE to make it work, but it messes up the script.
I've updated the script with a fix for that as well as the update to the list view's context menu to make removing addresses easier. _________________
I don't know where I'm going, but I'll figure it out when I get there.
All times are GMT - 6 Hours Goto page Previous1, 2
Page 2 of 2
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum