fyi -- Lua Player Poss. Issues/Suggestions

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
AkumaATR
Posts: 11
Joined: Sun Oct 30, 2005 1:07 am

fyi -- Lua Player Poss. Issues/Suggestions

Post by AkumaATR »

These are some notes I took while doing my first project (Penny Arcade Viewer -- should be released Tuesday -- just have to finish a README and build it stand-alone). #2 is more of a suggestion (for PSP Lua Player), and sorry for the confusion regarding #3 (I never got to the bottom of figuring out what was going on with that one).

1. isConnected() appears to return true (forever) even
after the remote connection has closed the connection
(HTTP 1.0 without persistent connections for ex.).

2. is there no quick and dirty exit() equivalent in Lua?
It would be really useful when inside of nested loops,
or outside of all loops, when an exit is needed (after
a fatal error for ex.).

3. Is there some reason why I had to call
screen.waitVblankStart() in loops that deal with timers?
Perhaps all timers internally are based on the vert.
retrace period or something. All I know is that this
function was in the example application I started with,
and when I removed it, the timers seemed to work
incorrectly (they seemed to go way too fast or
something).
Art
Posts: 642
Joined: Wed Nov 09, 2005 8:01 am

Post by Art »

>>>1. isConnected() appears to return true (forever) even
after the remote connection has closed the connection
(HTTP 1.0 without persistent connections for ex.).

I noticed that while trying to control a loop to try and maintain a connection.
It didn't work :D

If we are suggesting new ideas here, it would be good to see a restart
(allong the lines of the 'exit')to start script from line 1 command.
Also, I imagine it would be possible to have LUAplayer try to restart itself
in case of a serious crash that happened within the users index.lua script file.
Art.
Post Reply