ScummVM logo Forum Index - ScummVM website - Contact us - Buy Supported Games: GOG.comDotEmu  Rules - Search - Register - Login curved edge
Folder Forum Index > iPhone Port > iPod Touch/iPhone Port? Goto page Previous  1, 2, 3, 4 ... 14, 15, 16  Next
iPod Touch/iPhone Port?
  Author    Thread Reply to topic
ruudboy



Joined: 23 Oct 2007
Posts: 6
Location: London, UK
 

Psyco: I was struggling more because I was trying to balance my video camera on my shoulder whilst taking the video Smile It's decidedly easier to play when you've not got a video camera on your shoulder.

Sadly, I do admit that using your finger to press buttons is sometimes prone to error. It might be worth investigating adding a virtual mouse, a bit like the Keyboard-Mouse support in the SDL backend. Perhaps a virtual mouse that could be turned off/on, so if you had a fiddly bit to do in a game, you could use the virtual mouse to do it, then turn it off afterwards.

Got audio running now too. It even manages to run Full Throttle.

sev- Yes, I'd love to join the development team and contribute my changes. I'll need to sync up to the latest SVN code and get it running again there and then I'll post my patches.

Regarding load & save, I realise ScummVM handles that already. I was more talking about hooking up the application suspend & resume messages to tell ScummVM to save & load your game.

I don't know much about adding save game loading to the launcher. Haven't looked at that yet.

I'm debating whether it would be worth adding a native Cocoa-based launcher to the iPhone version. Anything thoughts? Would that be frowned upon? It looks like the Windows CE version does it.

 Reply with quote  
Post Wed Oct 24, 2007 11:30 am 
 View user's profile Send private message Visit poster's website
PsYcO
Got 2 warnings


Joined: 24 Dec 2006
Posts: 513
Location: UK, Enfield
 

excellent, can't wait for the release candidate(hopefully ill be able to get my hands on one shortly there after)

so what game requires the most processing power, out of the current library of games? would rock if you could get that working.

how would the virtual mouse be useful though(maybe more for tracking?)? and how would one go about turning it on and off, i assume there would/will be a side bar of some kind. containing multiple functions? keyboard, mouse, options and/or save functionality.

any eta on when a beta will be available?

 Reply with quote  
Post Wed Oct 24, 2007 11:54 am 
 View user's profile Send private message Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
md5
ScummVM Developer


Joined: 03 Nov 2005
Posts: 2066
Location: Athens, Greece
 

@ruudboy: Excellent work! Smile I suggest you come to the #scummvm channel in IRC Smile

I'm not sure what will be the benefits of creating a native Cocoa-based launcher... What do you think are the advantages of creating such a launcher? I believe the Windows CE version uses the "default" launcher (with low res graphics, of course), but I could be wrong

 Reply with quote  
Post Wed Oct 24, 2007 1:09 pm 
 View user's profile Send private message
eriktorbjorn
ScummVM Developer


Joined: 31 Oct 2005
Posts: 3136
 

quote:
Originally posted by ruudboy

Regarding load & save, I realise ScummVM handles that already. I was more talking about hooking up the application suspend & resume messages to tell ScummVM to save & load your game.



Hmm... That may be tricky. Game engines don't always allow saving at arbitrary points during gameplay. It's possible that a "forced" savegame like that won't work properly.

I don't know for sure, though.
 Reply with quote  
Post Wed Oct 24, 2007 1:29 pm 
 View user's profile Send private message
DrMcCoy
ScummVM Developer


Joined: 17 Dec 2005
Posts: 529
Location: Braunschweig, Germany
 

At least in Gob games, there are places where the game doesn't allow saving and doing so anyway will corrupt the save (i.e. the game will be unplayable after loading such a save).

 Reply with quote  
Post Wed Oct 24, 2007 1:36 pm 
 View user's profile Send private message Visit poster's website ICQ Number
aubin



Joined: 12 Mar 2006
Posts: 14
 

quote:
Originally posted by eriktorbjorn

Hmm... That may be tricky. Game engines don't always allow saving at arbitrary points during gameplay. It's possible that a "forced" savegame like that won't work properly.



Rather than saving, is it possible to suspend the game engine and resume it? I could have sworn that such a thing was possible in the DS port.

I suppose the most brute force way to do this would be to dump the memory onto the disc and check for the "memory dump" when the user clicks on the ScummVM application on the phone.

That said, it's very likely that the iPhone already has a method of doing so, seeing as many of the other applications seem to retain state though I haven't seen it in any third-party stuff yet.
 Reply with quote  
Post Wed Oct 24, 2007 3:46 pm 
 View user's profile Send private message Visit poster's website
TomFrost



Joined: 23 Apr 2007
Posts: 177
 

quote:
Originally posted by aubin
I suppose the most brute force way to do this would be to dump the memory onto the disc and check for the "memory dump" when the user clicks on the ScummVM application on the phone.


This is a method commonly employed in console emulators -- brute, but very fast and effective. Even if this weren't necessary to making a quicksave when a call comes in, it'd still be a darn nice feature Wink
 Reply with quote  
Post Wed Oct 24, 2007 4:34 pm 
 View user's profile Send private message
Vinterstum
ScummVM Developer


Joined: 16 Oct 2005
Posts: 585
 

quote:
Originally posted by TomFrost
quote:
Originally posted by aubin
I suppose the most brute force way to do this would be to dump the memory onto the disc and check for the "memory dump" when the user clicks on the ScummVM application on the phone.


This is a method commonly employed in console emulators -- brute, but very fast and effective. Even if this weren't necessary to making a quicksave when a call comes in, it'd still be a darn nice feature Wink


That would be... tricky Smile. Emulators can do it since the games basically run in a virtual machine with its own seperate memory space. In ScummVM everything is native, all you could do is do a full memory dump of the whole application and somehow restore that afterwards. Which won't work Razz

Letting the engines provide hooks for saving and loading save state is all you can do. And since as mentioned already they may not always be in a state where a save is possible (Kyra also has this problem, I believe), there won't be any guarantee that you'd end up with a save (the engines have to be able to veto the operation, so to speak). But, even with those caveats I think it'd still be a nice feature, and probably handy for other ports as well (Symbian and Windows CE especially, where phonecalls can interrupt things).



But for the port: Looks like this is progressing very nicely (and is saving me some work Razz ). Looking forward to getting it into the repository, and I'd be glad to help with anything that's needed (since I already have the toolchain etc set up).
 Reply with quote  
Post Wed Oct 24, 2007 4:45 pm 
 View user's profile Send private message
aubin



Joined: 12 Mar 2006
Posts: 14
 

quote:
Originally posted by Vinterstum

That would be... tricky Smile. Emulators can do it since the games basically run in a virtual machine with its own seperate memory space. In ScummVM everything is native, all you could do is do a full memory dump of the whole application and somehow restore that afterwards. Which won't work Razz



Ouch, I didn't realize that. The real question is to whether it is possible to do this with the UIKit functions. There is UISuspendInfo.h which may be the Apple-supplied stuff to accomplish this.

setRestoreOnResume() sounds like it might help but I can't claim to have ever used it.
 Reply with quote  
Post Wed Oct 24, 2007 5:12 pm 
 View user's profile Send private message Visit poster's website
Vinterstum
ScummVM Developer


Joined: 16 Oct 2005
Posts: 585
 

quote:
Originally posted by aubin

The real question is to whether it is possible to do this with the UIKit functions. There is UISuspendInfo.h which may be the Apple-supplied stuff to accomplish this.

setRestoreOnResume() sounds like it might help but I can't claim to have ever used it.


Yeah I'd expect some events that will get sent when the application should pause/resume itself to handle phonecalls, etc.

Which may also be something not all our engines can handle (pausing in general) but worth looking into. Just switching off screen updates may be enough.
 Reply with quote  
Post Wed Oct 24, 2007 5:28 pm 
 View user's profile Send private message
sev
ScummVM Lead


Joined: 21 Sep 2005
Posts: 1791
 

quote:
Originally posted by ruudboy
Regarding load & save, I realise ScummVM handles that already. I was more talking about hooking up the application suspend & resume messages to tell ScummVM to save & load your game.

Yes, I had that in mind too, just engines have to tell your backend which functions are for save and load so you could call them.

quote:
Originally posted by ruudboy
I'm debating whether it would be worth adding a native Cocoa-based launcher to the iPhone version. Anything thoughts? Would that be frowned upon? It looks like the Windows CE version does it.

I don't recommend this. Better write a theme for our GUI. It's fully customizable, just there happened no more efforts besides simple color changing to add some other look and feels.


Eugene
 Reply with quote  
Post Wed Oct 24, 2007 7:08 pm 
 View user's profile Send private message Visit poster's website
bramvandijk



Joined: 30 May 2006
Posts: 25
 

If the whole saving and loading gives problems, why not tell a game to pause? I'm not sure whether each engine has a pause option, but it should be valid:

Get a call
->pause game
after the call
->unpause game

 Reply with quote  
Post Thu Oct 25, 2007 10:55 am 
 View user's profile Send private message
aubin



Joined: 12 Mar 2006
Posts: 14
 

quote:
Originally posted by bramvandijk
If the whole saving and loading gives problems, why not tell a game to pause? I'm not sure whether each engine has a pause option, but it should be valid:

Get a call
->pause game
after the call
->unpause game


The problem is that I don't think the iPhone backgrounds the application when you click the home button, it seems to close the process outright so any maintenance of state has to be done in software.

As far as I can tell (by watching the processes) other than a few programs (Mail, iPod) most programs do not run simultaneously.

Pausing is probably a good idea, but only if there is a way to suspend and resume the program where it is, as opposed to restarting it.
 Reply with quote  
Post Thu Oct 25, 2007 5:16 pm 
 View user's profile Send private message Visit poster's website
TomFrost



Joined: 23 Apr 2007
Posts: 177
 

Looking at the code for Apollo IM, Chat, IRCm, or Colloquy (iPhone edition) may help. They all seem to have found a way to continue processing while not active.

 Reply with quote  
Post Thu Oct 25, 2007 5:37 pm 
 View user's profile Send private message
lowjob



Joined: 05 Sep 2007
Posts: 3
Location: Queensland, Australia
 

The Pedometer program is a perfect example of this. Once started, you can press the Home button and it continues counting steps in the background. You can also run any other program and when you go back into the Pedometer, its still counting your steps.

Great work by the way guys!

 Reply with quote  
Post Thu Oct 25, 2007 10:22 pm 
 View user's profile Send private message
  Display posts from previous:      
Reply to topic

Forum Jump:
 
Goto page Previous  1, 2, 3, 4 ... 14, 15, 16  Next


Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Powered by phpBB © 2001, 2006 phpBB Group
Forum design by ScummVM team, icons by raina
curved edge   curved edge