Please login or register.

Login with username, password and session length
Advanced search  

News:

IRC channel - server: waelisch.de  channel: #wme (read more)

Author Topic: Pause Game, when Saving or Loading  (Read 11500 times)

0 Members and 1 Guest are viewing this topic.

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Pause Game, when Saving or Loading
« on: November 09, 2007, 02:17:52 PM »

I would very much lke to simply pause the game when a save is being made or a file loaded. I've tried using the exisiting Exclusive's but they stop the save or load themselves. Could the be a Pause which still allows save load features to continue, but freezes actors, particles, sounds and running scripts that arn't labeled not to pause?
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Pause Game, when Saving or Loading
« Reply #1 on: November 12, 2007, 09:18:00 AM »

I've tried using the exisiting Exclusive's but they stop the save or load themselves.
I don't know what you mean. WME Demo, for example, uses system exclusive menus which pause the game and allow you to save/load game.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Pause Game, when Saving or Loading
« Reply #2 on: November 14, 2007, 02:09:32 PM »

Ah, I must be doing something wrong... the game just freezes and doesn't save when I use Exclusive's as based on the demo menu.
Logged

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Pause Game, when Saving or Loading
« Reply #3 on: December 06, 2007, 02:18:39 PM »

My main issue is that I have a scene for my menu background. I dont want to pause sound or actors or particles when visiting the menu, only when the save button is clicked. tSuch a button is in an overlaid window. But if I use a go Exclusive on the button, the entire games freezes and there is no save game?

This is why I request a way to pause the game (sound, actors, scripts etc) when saving, but not stop the save itself.
Logged

Mnemonic

  • WME developer
  • Administrator
  • Addicted to WME forum
  • *
  • Karma: 41
  • Offline Offline
  • Gender: Male
  • Posts: 5683
    • View Profile
    • Dead:Code Site
Re: Pause Game, when Saving or Loading
« Reply #4 on: December 06, 2007, 03:58:34 PM »

Try this: Make an empty window and add something like this to its script:

this.GoSystemExclusive();
Game.SaveGame(...);
this.Close();

When you click the save button, just load the above window. It will go to sys-ex mode, save the game, and close itself (ending the exclusive mode).

Untested, but it should work.
Logged
Yes, I do have a twitter account
Please don't send me technical questions in private messages, use the forum. ::wave

redfox

  • Regular poster
  • ***
  • Karma: 1
  • Offline Offline
  • Posts: 122
    • View Profile
Re: Pause Game, when Saving or Loading
« Reply #5 on: December 13, 2007, 02:57:19 PM »

Thank you, I shall try it out, and let you know if there were any problems
Logged
 

Page created in 0.017 seconds with 24 queries.