This site has been archived and made available for preservation purposes. No edits can be made.

Results 1 to 5 of 5

Thread: Serialization of the game world

  1. #1
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5

    Serialization of the game world

    gary 2.6 has two important new callbacks:

    OnServerInit
    OnServerExit

    They can be used to fill the game world with objects (items, containers, NPCs) and to save them upon server shutdown. OnServerInit gets called immediately after main / exec, and OnServerExit gets called if the server encounters an error or is being shutdown using the 'exit' command.

  2. #2
    That's nice, will OnServerExit be called if the server crashes and will it be called if a small error occurs?


    I just come here to view whether there has been any progress or not, and review the wonderful progress that Recycler and the development team has made.
    My sincere thanks goes to them and to others who value my contributions the community, not to mention the ones that solely contribute.

  3. #3
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    It will be called when the server exits or crashes.

  4. #4
    Quote Originally Posted by Recycler View Post
    It will be called when the server exits or crashes.
    OnServerExit not gets called when i close server console by clicking X

  5. #5
    Administrator
    Join Date
    Jun 2011
    Location
    Germany
    Posts
    1,057
    Blog Entries
    5
    Quote Originally Posted by Smoria View Post
    OnServerExit not gets called when i close server console by clicking X
    That is correct. I may change this, but you should always exit the server by typing 'exit' in the console.

Posting Permissions

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