Prev Previous Post   Next Post Next
Old 01-02-2012, 10:44 AM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554

local new_value = tostring(x) .. "00" .. tostring(y)
new_value = tonumber(new_value)
and if I get it right, x and y has max of 32, and new_value gets a max of 320032.
memoize_collision_right_dat[320032] ?!

maybe you wanted:
local new_value = string.format("%2d%02d", x,y)

We did manage to fix it by using sub tables, ie: tablefoo[1019][1019]

As for your suggestion, we have tried basically every format possible for the indicies, ie: numbers, strings like 33_xpos44_ypos.

x and y does not have a max of 32 either, they are the penguins position on the map, so x and y can be any number.
Reply With Quote


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -5. The time now is 03:43 PM.