Is it possible to run corona through a fileserver to take the media (audio, videos, etc.) to be used in an application?
I ask this cause I was thinking of how developers put out a wide spread amount of content with out updating the entirety of games and just provide downloadable content.
Any advice fellow coronees?
Hi there,
There was actually a recent blog post about this very topic which you may find helpful: http://www.coronalabs.com/blog/2013/03/19/updating-mobile-game-content-in-runtime-guest-post/.
- Andrew
Hi Andrew,
I had a look at this link of yours and it seems to be on the right path of being able to add assets and uploadable content. Upon following the guide and testing it out for myself through Runtime I encounter an error that goes along the line of the xml.lua files not existing… Is there a workaround to this? As it most probably seems like it has the capabilities I’m imagining my apps will do
Hi there,
Yeah, the tutorial uses an XML library that doesn’t ship with Corona, which I think is why you see that error, but the tutorial mentions you can download the library here: http://lua-users.org/wiki/LuaXml. (However, when I go to that page myself, I don’t actually see which one to download).
Instead of XML, I’d recommend using the JSON format to store your data. The JSON library is built into Corona, and there’s a lot of useful documentation on it already. Using JSON, you’ll still be able to follow the tutorial, except the parseXML function (which you might now call parseJSON) will use json.decode() and simply parse through the data as a Lua table.
- Andrew
Is there a more sophisticated tutorial I can follow using JSON instead of XML? Just like this tutorial… Would really help
Thanks,
Here are a couple of JSON tutorials -
http://www.coronalabs.com/blog/2012/11/20/how-to-download-json-data-from-mysql-using-corona-sdk/
http://www.coronalabs.com/blog/2011/08/03/tutorial-exploring-json-usage-in-corona/
If your new here, it’s defo worth subscribing to the blog as a lot of tutorials get posted.
Dave
Hi there,
There was actually a recent blog post about this very topic which you may find helpful: http://www.coronalabs.com/blog/2013/03/19/updating-mobile-game-content-in-runtime-guest-post/.
- Andrew
Hi Andrew,
I had a look at this link of yours and it seems to be on the right path of being able to add assets and uploadable content. Upon following the guide and testing it out for myself through Runtime I encounter an error that goes along the line of the xml.lua files not existing… Is there a workaround to this? As it most probably seems like it has the capabilities I’m imagining my apps will do
Hi there,
Yeah, the tutorial uses an XML library that doesn’t ship with Corona, which I think is why you see that error, but the tutorial mentions you can download the library here: http://lua-users.org/wiki/LuaXml. (However, when I go to that page myself, I don’t actually see which one to download).
Instead of XML, I’d recommend using the JSON format to store your data. The JSON library is built into Corona, and there’s a lot of useful documentation on it already. Using JSON, you’ll still be able to follow the tutorial, except the parseXML function (which you might now call parseJSON) will use json.decode() and simply parse through the data as a Lua table.
- Andrew
Is there a more sophisticated tutorial I can follow using JSON instead of XML? Just like this tutorial… Would really help
Thanks,
Here are a couple of JSON tutorials -
http://www.coronalabs.com/blog/2012/11/20/how-to-download-json-data-from-mysql-using-corona-sdk/
http://www.coronalabs.com/blog/2011/08/03/tutorial-exploring-json-usage-in-corona/
If your new here, it’s defo worth subscribing to the blog as a lot of tutorials get posted.
Dave