Results 1 to 7 of 7

Thread: game_save

  1. #1
    "Think Different" Masterz1337's Avatar
    Join Date
    Sep 2006
    Posts
    4,405

    game_save

    So in one of the new BSPs for SPV2, thers a part where you have to infiltrate a structure, and then escape. The problem is, when the player is ready to escape, the game can't save via script, regardless ifi use game_save game_save_unsafe, or wake another script. When I use console, I am able to save, and I have tried loading the script via trigger volumes and by making it sleep until a certain encounter is dead.

    Any ideas how to fix this or a good work around?
    Reply With Quote

  2. #2
    Conversation Terrorist Pyong Kawaguchi's Avatar
    Join Date
    May 2007
    Location
    East Usa
    Posts
    3,904

    Re: game_save

    Maybe try to change the spots a little bit? or it could be that your in the middle of loading a new bsp, which could mess it up a bit.
    Reply With Quote

  3. #3
    Bad hair day... Edward Elrich's Avatar
    Join Date
    Oct 2006
    Location
    in my own little world...
    Posts
    779

    Re: game_save

    Perhaps make it difficult and just not have a save point there. (or is it not able to save from that point and onward?)
    Reply With Quote

  4. #4
    --- itszutak's Avatar
    Join Date
    Sep 2006
    Location
    UC Davis, CA
    Posts
    2,547

    Re: game_save

    Quote Originally Posted by Masterz1337 View Post
    So in one of the new BSPs for SPV2, thers a part where you have to infiltrate a structure, and then escape. The problem is, when the player is ready to escape, the game can't save via script, regardless ifi use game_save game_save_unsafe, or wake another script. When I use console, I am able to save, and I have tried loading the script via trigger volumes and by making it sleep until a certain encounter is dead.

    Any ideas how to fix this or a good work around?
    It sounds kind of like you want the player to autosave in an exit that is the same as the entrance; have you looked at the Silent Cartographer? There's a certain area outside that always saves when you go near it (I think it's under a land arch)- you might want to look at how that was done.
    Reply With Quote

  5. #5
    Senior Member
    Join Date
    Oct 2007
    Posts
    102

    Re: game_save

    Heres a thought that may work.

    Have the trigger script be ready to save when the player is there at first, then have it turn the global to 0. Now have a new trigger inside the structure to make the global 1 again. That may work.

    Code:
    (global short entrance_exit_save 1)
    
    (script continuous entrance_exit_save
     (if (= entrance_exit_save 1)
      (sleep_until (volume_test_objects entrance_exit_save (players)) 15)
       (game_save)
       (set entrance_exit_save 0)
     )
     (if (= entrance_exit_save 0)
      (sleep_until (volume_test_objects entrance_exit_save_restart (players)) 15)
       (set entrance_exit_save 1)
     )
    )
    That may work. Not sure what you have already tried, scripting wise, but try this.

    PS. If you want the player to not be able to go back into the structure and reactivate the script, just make two scripts. Should be easy enough.
    Reply With Quote

  6. #6
    Untruely Bannable~ Inferno's Avatar
    Join Date
    Aug 2007
    Location
    In a Place
    Posts
    5,166

    Re: game_save

    One way to make the game save in area that it wont let you save is to teleport the player out of the map (into a separate cluster or something) and save there then teleport him back in. Although I'm not sure that's what your trying to do.
    Reply With Quote

  7. #7
    Senior Membe Syuusuke's Avatar
    Join Date
    Sep 2006
    Location
    Location
    Posts
    3,868

    Re: game_save

    Forget it, if they screw up, make that person do it all over again =/

    Yea, try different spots.
    Reply With Quote

Thread Information

Users Browsing this Thread

There are currently 2 users browsing this thread. (0 members and 2 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •