NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Developers v
« Previous 1 … 61 62 63 64 65 … 93 Next »
Turn off MVP - Deactivate() not called

 
  • 0 Vote(s) - 0 Average
Turn off MVP - Deactivate() not called
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#1
2006-01-15, 05:30 AM
I want to put an auto-save option into my SuDoku plugin so it seems sensible to call a SaveGame() method from Deactivate(). Trouble is, it looks like if I have the plugin active when I turn the MVP off (using green button on remote), the Deactivate method isn't called.

Is there some way that I can make sure the current game position is automatically saved in such a situation? In other words, if I turn the MVP off, something somewhere calls SaveGame()?

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#2
2006-01-15, 03:37 PM
OK, I've fixed this for the next release.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#3
2006-01-15, 04:53 PM
Thanks - I'm sure someone else along the way might find it useful.

On a related note (sort of) is there anyway that a plugin can tell when GBPVR is exiting (regardless of whether it's being used on PC or MVP)? For example, if a player leaves the SuDoku plugin to go to another plugin, then comes back to resume the game, all I need to do is perform an 'in-memory' save. If they terminate GBPVR totally, if there is a way of recognising this, I would perform a save to disk. Sorry if it's a FAQ - still finding my feet with plugin writing.

Cheers,
Brian
sub
Offline

Administrator

NextPVR HQ, New Zealand
Posts: 106,671
Threads: 767
Joined: Nov 2003
#4
2006-01-15, 05:01 PM
Quote:On a related note (sort of) is there anyway that a plugin can tell when GBPVR is exiting (regardless of whether it's being used on PC or MVP)? For example, if a player leaves the SuDoku plugin to go to another plugin, then comes back to resume the game, all I need to do is perform an 'in-memory' save. If they terminate GBPVR totally, if there is a way of recognising this, I would perform a save to disk. Sorry if it's a FAQ - still finding my feet with plugin writing.
No, I dont there is anyway you can tell.
bgowland
Offline

Posting Freak

West Yorkshire, UK
Posts: 4,583
Threads: 384
Joined: Dec 2004
#5
2006-01-15, 05:20 PM
OK. I'll try a save to disk every time - it's a fairly trivial amount of data so I don't think it'll cause much of a delay.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)



Possibly Related Threads…
Thread Author Replies Views Last Post
  GetRenderList() always called with "block-extras..." element in renderlist alibert 1 1,609 2012-06-18, 10:24 AM
Last Post: sub
  IScreenPlugin.Activate() being called twice ACTCMS 0 1,325 2011-06-03, 03:16 PM
Last Post: ACTCMS
  onKeyDown called on main plugin from Popup whurlston 1 1,352 2008-04-01, 07:59 AM
Last Post: whurlston
  Activate seems to be called twice Jeff 4 1,699 2007-10-05, 08:10 PM
Last Post: stustunz
  render only called for mouse and keyboard event rshaw 24 6,345 2006-09-20, 10:45 AM
Last Post: 23skidoo
  deactive() not getting called when leaving plugin via "Videos" "Guide" etc hotkeys reven 2 1,747 2006-08-06, 12:36 AM
Last Post: reven
  IVideoPlugin.Deactivate() not called when video stops Snarky 5 2,346 2006-03-21, 06:48 PM
Last Post: McBainUK
  When is a plugin constructor called? bgowland 5 1,994 2005-11-24, 12:58 AM
Last Post: sub
  turn off transparent backgrounds? Torque 2 1,407 2005-03-02, 05:03 AM
Last Post: Torque
  needsRendering() not called? brturn 1 1,935 2004-05-07, 10:57 PM
Last Post: sub

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode