Anuncios Google

LuaDev Bug

Hi, 

Firstly, please accept my apologies as i do not speak spanish but i was told i could find the developer for LuaDev here.  Just for starters, i am using the most recent version of LuaDev, the one that is in the "unkown functions thread";

http://psp.scenebeta.com/node/79445

But also just to say there is another unknown function;

<Code>
wlan.term() --Not sure if there is any args or not, unlikely, does seem to terminate any active wifi connection
</Code> 

But back to my issue at hand, the following test code produces the issue;

 

<Code>

local result = os.message("Would you like to check for any updates?", 1);

local YES = 1;

local NO = 0;

local CANCEL = -1;

local didNotCheckForUpdates = false;

 

--Have We Selected To Check For Updates?

if result == NO or result == CANCEL then

didNotCheckForUpdates = true;

elseif result == YES then 

--Init WLAN

wlan.init(0);

--Download File - hopefully!

http.get("http://369studio.files.wordpress.com/2012/08/master-version-info3.doc", "ms0:/PSP/GAME/Build/masterVersion.txt");

end

--The Call underneath to OS.message doesn't work, The Screen freezes on the downloader, it says at 100%

os.message("Test", 0); 

</Code>

But its even worse than that i'm afraid, calling os.message() anyway here after will also lead to a freeze.
For example, say i wanted to have the user press X and then have a message pop up, after initating the wifi, the game/app will freeze. The initial "Would you like to check for updates" message works perfectly fine. 

 

*p.s - the formatting doesn't seem to be working for me :S. Unsure what im doing wrong with it. 


Anuncios Google

Opciones de visualización de comentarios

Seleccione la forma que prefiera para mostrar los comentarios y haga clic en «Guardar las opciones» para activar los cambios.
Imagen de DeViaNTe

hi there!

Greetings dan, I appreciate your comments and contributions.

You can solve the problem with the download dialog (it seems like a bug, for sure), using an alternative method (until new version).

Using sockets, you can control directly the download. It is a simple GET request, and surely there is some example for this forum.

I have to tell you that LuaDEV R0 will not continue its development. But this is not bad news, since we are developing UXcode, an open source library that will allow us to compile a multi-platform LuaDEV R1.

Although we are still building our website and we are currently translating it into multiple languages, including tutorials, and other things... you can follow its development in http://www.gcrew.es.

New code will be open-source and publicly improvable via GitHub / our web.

I take this opportunity to communicate to all developers of this community, who have free access to the development of uxcode (the internal engine of future LuaDEV and / or jsDEV or other interpreted languages​​). For further information see our official website.

- DeViaNTe

 


Actualmente desarrollando nuestra web y UXCode : http://www.gcrew.es

Better Solution

Hi DeViaNTe,

Thanks for your reply :). An even better solution which i only just realized is to ask the user to input their preferred connection. To print out all available connections and then to use that info to determine the connection to use. via;
wlan.init(int)

That solves the issue at hand and is a nice work-around :D.

 

*should have thought of it sooner :P  

Imagen de m.rr

Has visto el mp?

Has visto el mp?

Imagen de DeViaNTe

si, pero procuro tardar más

si, pero procuro tardar más en responder mp's para que la gente se acostumbre a usar los foros, por que seguramente las preguntas / comentarios sirvan mejor para todos que no en privado.

El error que me comentas es extraño si, pero no creo que relanze ninguna version del R0 por el momento y menos dedicada y con fecha, lo siento, pero puedes seguir el desarrollo como he explicado en mi site. Un saludo! 


Actualmente desarrollando nuestra web y UXCode : http://www.gcrew.es

Imagen de m.rr

Ok, gracias.

Ok, gracias.

Imagen de m.rr

Yeah, that's a bug that's

Yeah, that's a bug that's going to be solved in Luadev R1. Until then, just use another method.

Response

Indeed i am already using a different method, however nothing can replace using the offical messagin system :/. 
SO it indeed looks rather poor.

However, i was not aware of there actually is a revision 1 in development? Any information (ETA, list of possible new features etc.) available? 
Overall however in comparsion with other lua interepreters i must say its as good if not better than PGE and is very, very stable in everything else i've tried.  

Opciones de visualización de comentarios

Seleccione la forma que prefiera para mostrar los comentarios y haga clic en «Guardar las opciones» para activar los cambios.