android
Prev Previous Post   Next Post Next
  #22  
Old 08-19-2011, 10:01 AM
jbob182's Avatar
jbob182 jbob182 is offline
X-Fi2 Development Moderator
 
Join Date: Feb 2010
Location: The U.S.A.
Posts: 554
Default

Without seeing the code i am not sure why it would crash, but i suggest trying my player debug function:

Code:
function debug.player(functionname) -- a nice debugger for the player which outputs any errors of functions to a text file called "ErrorLog.txt"
    f,vrf=pcall(functionname)
    if not f then
        savevariable("ErrorLog.txt",variabletype(vrf))
    end
end

function savevariable(file,variable) -- this will save variables to a file
    CodeOutput = io.open(file,"w");
    CodeOutput:write(variabletype(variable));
    io.close(CodeOutput);
end

function variabletype (o)
    if type(o) == "number" then
        return tostring(o)
    elseif type(o) == "string" then
        return string.format("%q", o)
    else
        return tostring(o)
    end
end
If that doesn't help, how big this the file you want to load, because I know how to load files in chunks and then put it together once all loaded.


Quote:
- could that be problem with reading speed of player?
- or file size of loaded file?
- or path is too deep?
- or folders should be only written only CAPSIZED?
It is not that the path is deep ( I have used much deeper)
It is not that folders should be written in CAPIZED ( I use lower case folders, look at Pingus)
I doubt its the reading speed of the player, after seeing how far i can push pingus on the player, I highly doubt you could reach that limit.

Last edited by jbob182; 08-22-2011 at 09:36 AM.
Reply With Quote

 

Tags
3d, dungeon, engine, might and magic, rpg

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 12:17 PM.