Quote:
Originally Posted by knite19
- Marvin Air Hockey: Not Working. Title Screen Only.
|
The code is not LUA 5.1.1 compliant, that"s why it hangs at the title screen,
I changed the following lines to make it run :
line 190 :
for coord, borders in coords do
to
for coord, borders in ipairs(coords) do
line 552:
for i, value in possibleOption.values do
to
for i, value in ipairs(possibleOption.values) do
btw, the game is very funny
Quote:
Originally Posted by knite19
- PSP Golf: Not Working. Title Screen only.
|
same thing for this one :
index.lua, line 1043
for index, file in files do
to
for index, file in ipairs (files) do
Quote:
Originally Posted by knite19
- Vexed: Not Working.
|
same thing for this one :
common.lua, line 59
change
for idx,file in contents do
to
for idx,file in ipairs(contents) do
common.lua, remove line 64
as the PS2 player relies on Lua 5.1.1, some games won't run without some modifications (lua related)
Basically, the things you'll need to change for 5.1 :
- change table iteration code:
"for i, value in someTable do" to
"for i, value in ipairs(someTable) do"
(but use "pairs" for tables like "t={foo=bar, foobar=99}"
and "ipairs" for tables like "t={foo, bar}")
- it's pure Lua 5.1: no binary operators and double as number type
(e.g. now you can use one number for storing IP addresses)
Also, note that in case of script error, the player actually display it on the screen, if I take back the PSPGolf game, it gives (before modification)
Quote:
|
Error: index:1043: attempt to call a table value
|
so, it gives you the error position and the error type

easy then !
enjoy
