I've put it on Clickteam server : www.clickteam.com/francois/ScreenCapture.zip
Printable View
I've put it on Clickteam server : www.clickteam.com/francois/ScreenCapture.zip
Thanks Francois! You're a STAR!!!
With the iOS SDK being quite old, is it OK to export a new project as RuntimeIPhone.zip using latest Beta to work on for my extension or is there something special about the RuntimeIPhone.zip that comes with the iOS SDK? I need access to updated versions, eg Active Picture loading files from the bundle.
The reason I ask is that I've tried this and made a new extension using the extension maker, but when I export an iOS project that uses my new extension, I get a linking error in XCode (something to do with duplicate symbols), yet my RuntimeIPhone project from which the extension is derived compiled fine.
Also, why are my .EXT files around 5-8k compared to the ones in the runtime/iPhone folder of MMF, which are all 1k? Am I doing something wrong?
If you read my blog, you'd know that Data\Runtime\ files do not contain the action/condition/expression menus and so will not use as much space.
Phi - thanks for the reply, but perhaps I didn't make myself clear as the .EXT files are in the Data\Runtime\ folder too (made with ExtMaker.exe) so shouldn't have any of the Menus. I've noticed that even the Angle.EXT extension I downloaded from these forums is 2k, so I guess I'm not alone. Just wondered how the existing ones manage to be so small. Excellent blog BTW!
This is normal : default extensions (the ones created by us, like hte active picture object) are treated differently than user-created extensions. I am the only one who can publish this extension. This is not a bug.
Thanks for you help btw.
Francois - ah, I see, thanks for clarifying - I had thought I must be doing something wrong!
Does the iOS exporter use something like Double or Triple Buffering? Trying to improve my Screen Capture extension and it seems like what I'm grabbing from the OPpenGL layer is about 3 frames old. Using slightly tweaked version of Apple's suggestion for capturing OpenGL here: http://developer.apple.com/library/i...04/_index.html
I've tried flushing the buffer using: [rh->rhApp->runView->renderer flush];
And pointing to colorRenderBuffer using: rh->rhApp->runView->renderer->colorRenderbuffer
Want to get it so it captures same frame as on PC (I realise normally have to wait a frame on PC for images to update before capture, but this is more like capturing stuff from 3 frames ago!)
Any help with this is much appreciated and when it works properly I'll post a new version.
Is it possible to do this with more than one .h and .m file? My extension will be a lot easier to make if I can include more than one of these...
If anybody has trouble with the extension maker, zip the file on your PC, not your Mac. For some reason ext maker didn't like the file I zipped up on the Mac.
Francois/Andos, I'm looking at the CFile object to get the EDITDATA (Properties etc.), it appears to access the memory directly - as in readAInt for example will grab the integer in the current memory slot, and you appear to use skipBytes to move to the right position in the memory. So, I don't see anything on how to use this in the documentation - how do I tell where exactly my EDITDATA is in the memory to read it? I'm guessing they're just in order but some of the classes in the runtime skip bytes at the start.
Hey I'm not sure if this exists or not but is there an iOSExtMaker.exe where you can just include just the .m and .h file and not the entire RuntimeIPhone.zip?
-Tim
I had to merge all the .h files into one and all the .m files into one in the end. I separated them with //comments to make it clearer.
Hi ! I'm having some problems with the iOS exporter when getting actions argument, it always throws EXC_BAD_ACCESS
There is only one argument (of type Filename)
The extension is made with EDIF and here the JSON sections:PHP Code:-(void)action:(int)num withActExtension:(CActExtension*)act {
switch (num) {
case LOAD_MAP: {
[act getParamExpString:rh withNum:0]; // Always throws EXC_BAD_ACCESS
// [act getParamFilename:rh withNum:0]; // Always throws EXC_BAD_ACCESS too
// [act getParamFilename2:rh withNum:0]; // Always throws EXC_BAD_ACCESS too
}
}
}
Any idea of what's going on?PHP Code:"ActionMenu": [
"Separator",
[0, "Load map"],
.....
{"Title": "Load map %0", "Parameters": [ ["Filename", "Load map file (with extension)"] ]}
Thanks!