PS Server Setup Guide

- Once you have the server running the first problem you may face, at time of writing, is that loadmap NPCroom may not work.

  You may be able to circumvent this problem by copying the file ./art/world/npcroom.zip from your game distibution to ./art/world/npcroom.zip in your server development directoy.

  At the same time you can copy all the other ./art/world files from the game's directory to your development directory.

- However, your game will still have problems loading maps until you populate the sectors table in the db with the sector names.

  You can find these names in the file ./data/zoneinfo.xml in your game directory.

  Empty your sectors table and then, reading through the above file, create a new entry in the table for each line in the file that is like <zone sector="magicshop">.

  Each entry in the table should have the name field set to the quoted word. The rest of the values can be set to 0.

  You should add entries to the table in the same order as they are listed in the file. Not certain about this but the order seemed like it might be important.

  See here for an example of SQL to populate the table planeshift.sectors.

- Once you have added all the sector names to the table, create an empty, new text file called loadmaps.scr in the top directory of your planeshift development area.

  Loadmap Loop

  1. Quit the PS server and restart it.
  2. For each file in the the ./art/world directory that you have not already managed to load type loadmap file eg loadmap npcroom.
  3. Every time one of the maps loads, add a line like loadmap file to loadmaps.scr.
  4. Save loadmaps.scr
  5. Work your way back through this list from the start and keep doing that until you find that you are trying to load the same set of maps as you did last time.

  I found that the following order worked for loading the maps at the time that I wrote this

  - loadmap npcroom
  - loadmap hydlaa_plaza
  - loadmap jayose
  - loadmap laanx
  - loadmap hydungeon
  - loadmap tavern_de_kadel
  - loadmap wtower
  - loadmap hyarena
  - loadmap hyojapath
  - loadmap hysewers
  - loadmap laanxdungeon
  - loadmap arena
  - loadmap magicshop
  - loadmap ojaroad01
  - loadmap korogan
  - loadmap akkaio
  - loadmap sewers
  - loadmap deathrealm

  See here for an example server startup script.

- Copy the file ./art/models.zip from you game installation to ./art/models.zip in your development folder.

- In your development area, inside directory ./art/things, create a folder called bakup and copy everything except CVS from ./art/things into it.

  Copy all the files from ./art/things in the game installation directory to the same folder in your development area.

- Once you have created a file with lines as in the list above (or similar) and copied the files, you can restart up you PS server and type exec /this/loadmaps.scr to load all the maps at once. Do that to make sure that it works.

Referred to HTML Files

- ./server_setup/sectors.sql.html
- ./server_setup/loadmaps.scr.html