I see that it is now possible to jailbreak IOS 6
So I have some questions if I use the runtime library to finish up my Codea script to a Standalone App.
Is it possible to use the iPad directly instead of the simulator and without paying the developer fee ?
Lua on a Mac is capable of using UDP sockets if I understand correctly.
Can this be added to a script using X-code directly or does some extra library from outside need to be installed ?
Maybe add some C# code to the script, but I have no idea on how ( X-code is defenately not a friend of mine)
Final step would be to build and install to the jailbroken iPad.
And this is done how ?
I realize some of these, or maybe all, questions may be found in some Google searches, but I ask here trying to find a good path and because I think others may be asking the same.
Re Peter
EDIT. After sending this I came to think that it may be not OK to talk about the subject in the forum. So if that is the case please tell me and I will edit (remove) my post.
I think there is a possible solution. You may install your unsigned ipa packed by xcode using Codea Runtime from your computer. Thatās the first step. Then everytime you want to āinstallā your new programs,just use something like ifiles to copy your resources from Codeaās documents folder. Replace those in your preinstalled Codea Runtime based-app. Then respring your device.(I havenāt test it so itās just a thought, and I donāt intend to jailbreak my device too^_^)
Weāve spoken about jailbroken devices here before. Itās perfectly legal. (you canāt jailbreak the baseband on a cell, but thatās a different issue). So long as people donāt devolve into piracy/warez, I donāt expect issues.
Iāve been jailbroken forever - I only just upgraded to 6.1 yesterday because I was unwilling to lose my jailbreak. I use it for rsync wireless backup, and for poking the internals of things to understand how they work, and for terminal access, and for a while I was playing with self-hosting apps (ie. running apache locally).
You can, with a jailbroken device, make your own software, and install and run it. The process is NOT EASY. In a nutshell, you make it as you would for submission to the app store, then copy it over and then either tell your ipad to run unsigned code, or sign the app with a new key thatās been wedged in for the jailbreak - the process has varied, and Iām not sure what the ārightā way is now.
Back a while ago, we had the full sockets API in a beta to see how it might work - the traditional, desktop version. It was ugly, mainly because listening at a socket is a blocking activity in the regular lua library. In the end, TLL added the current API, because callbacks make it much more usable in the Codea event loop. You might be better off with UDP, at least sending, because itās fire and forget, but writing something to listen and update the screen would be a trick with the original libraries. Iād be bugging TLL to add UDP (really - just a listener callback would do the trick), but 95% of all of what Iāve tried to do is http, so the need has gone way down (for me, at least).
Hello @Bortels not excatly the some subject, but since i can see you here, i have a plugin question for you: i am trying to rip big jpeg images into small parts to open them in codea on my ipad1. I can now read the binary with io.* . I have got some source code (in C) to decode the jpeg: it is going to be a lot of work to port it into Lua, so i hesitateā¦ Iāve seen imageMagik has some version for ios but it is xcode to be compiled, and i cant do that yet. Iāve seen image magik has 3 php versions (and one for perl too) so using http request and server side processing could be a solution. Although it is a bit overkillā¦ Do you have any simpler solution to do this?
.@Jmv38 is there any reason you canāt pre-process the large files on your PC to break them into ātilesā to use within Codea? If you came up with a structured naming system, you could easily render massive, seamless looking images in Codea just by making sure you only keep the visible tiles in memory.
Think of it like Google maps ā it is really a huge image broken into lots of tiles.
Hi @Simeon. Well if i really needed to, i could do it from a PC, you are right. But since this is all just a game, and i love the ipad, and i hate being on a PC, i like the challenge ādo it all from your ipadā and this is what i am trying to complete. My pleasure is to push the ipad as far as possible, with my limited competences. Before discovering Codea, i was thinking āthis ipad is completely useless, unless i want to be a milking cow for Appleā. But now i am really having fun! So the anwer to your question (is there any reason forā¦) is: āyes, the challenge!ā.
PS: and i am sure that you, the worshipped father of Codea, a tool that makes possible the impossible, understand what i mean!
are the big images too big for codea to load? If not, just loading it once, then using sprite() to composite and save sub-images would be easy enough.
Otherwise, it will be hugely difficult inside of Codea; youād have to read and decode the jpeg āby handā, and jpg isnāt super friendly (and we still donāt have bit operations, so itād be slowwwww). And then figure out how to only grab sub-regions. I wonāt say impossible - but it would be hugely difficult. I agree with @Simeon - this is a processing task you do elsewhere, and grab the smaller tiles.
And - given this is a jailbreak thread, and itās most a stunt - Elsewhere could be āon the ipad, outside of codeaā. You mentioned Imagemagick - itās available in Cydia. So - Jailbreak, go into Cydia, install Imagemagic, go to the command line (I bought iSSH long ago), and run the proper commands to segment the jpegs there.
I canāt find imagemagick on Cydia, but iāve seen a packet where they enable php:gd. My webhost supports gd, so ithink iāll try to cut the images with php:gd on my server side. Then i donāt even need the jaibreak, and i should be able to do it from codea with http request.
The packages Cydia offers depend on how you answered the question at the beginning - āuserā, āhackerā, or ādeveloperā. Iām guessing you said āuserā, but if youāre monkeying with codea, youāre at least a āhackerā - wear it proudly.
You can change that by hitting the āsourcesā tab at the bottom, hitting āsettingsā, and choosing āhackerā (or ādeveloperā if youāre saucy). if that doesnāt do it, you stumped me.
Iāve eventually found this package. But i hesitate: 1/ theRe are many posts on the web about people having problems with this package conflicting with some cydia ressource. 2/ it is a āconsoleā tool i have to run via āsshāā¦ I never did that, i dont want to mess with my ipad. I think iāll try php:gd first. Thanks for your help.
the risk is low, but I understand. ssh/console is the same as the OS X Terminal program, or the windows command prompt, fwiw. Itās just a different interface to the software. I donāt see anything in a quick google about incompatibilities - but if there are, it would certainly be with other Cydia packages, not the ios itself. Iād love to see a link if you have one, because Iām curious - Iāve used ImageMagik for years, and itās fairly standalone; I canāt imagine how it would conflict with other things.
Tap imagemagick cydia in safari google.
You get:
tut-how-to-fix-imagemagick-issues-with-bootlogo.
imagemagick animate-wont-install.
I cant uninstall imagemagick.
I donāt know if i am concerned by those problems, but i donāt want to take a chance if i can avoid itā¦ But maybe if eventually i learn how to use the command line i will end up saying āpeace of cakeā, but it is too much learning for the moment, iāve saturated my free neuronā¦
So - from reading the above, the conflict occurs between imagemagick and some animated boot logo thing, which installs a partial copy of imagemagick on itās own (rather than doing whatās proper, and declaring imagemagick as a prerequisite). The failure is either imagemagick failing to install, or the logo not animating.
In any event - not installing one or the other means you donāt run into issues, and the failure mode is minor. Installing stuff in cydia is as safe as (indeed - probably safer than) installing software on your desktop computer, so long as you donāt do dumb things (the dumbest being going to random āwarezā sites - unless you want a trojan or two).
But - if you really wanted to learn about unix, the ipad isnāt a great place for it, frankly. OS X is different, and ios even moreso. Iād suggest when you have free brainspace grabbing a regular linux install (ubuntu is popular, Iām playing with centos right now as well) and trying it out on a desktop box.