.lua filesize limit

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

Moderators: Shine, Insert_witty_name

Post Reply
mallchin
Posts: 36
Joined: Thu Feb 16, 2006 2:03 am

.lua filesize limit

Post by mallchin »

My script has reached 32Kb or so, and LuaPlayer now throws an error when starting it (along the lines out of disk space, script could not be found).

Has anyone else had this?
fullerlee
Posts: 54
Joined: Thu Nov 03, 2005 9:46 am

Post by fullerlee »

I've got several scripts, ranging in size from 1kb to 68k and all are loading without any problems.

Example:
http://dl.qj.net/Wordingo-v0.3p.2-Gamin ... /catid/194

Lee
mallchin
Posts: 36
Joined: Thu Feb 16, 2006 2:03 am

Post by mallchin »

Okay, wonder why mine's failing then :-?

The only thing I can contribute it too is adding extra code. Removing arbituary blocks of code to bring the size down resolves it.

I'll look into it, good to know ;)
fullerlee
Posts: 54
Joined: Thu Nov 03, 2005 9:46 am

Post by fullerlee »

Try splitting the files and then including them with:

Code: Select all

dofile "filename.lua"
mallchin
Posts: 36
Joined: Thu Feb 16, 2006 2:03 am

Post by mallchin »

I'd considered that, or rather using require(), some easy workarounds, just curious if it was a limitation in LuaPlayer.
Post Reply