Wednesday, July 15, 2009

Raising the Server

Server game file is loading just fine; server is starting to get back on its feet. I might have it done today!

1500
Server starts up. Crippled; has no ai/treasure or quests. The rest seems to be fine.


Phases of a Very Large Conversion
Principles:
  1. Maintain Buildability - Recompile after every change; don't make sweeping changes until you're sure you can rebuild afterward (don't run blindly down an alley hoping to come out the other side)
Process:
  1. One unit at a time, convert elements that have new equivalents and delete the old elements.
  2. If, during conversion, maintaining principle #1 requires fixing a class that is going to be erased, fix it now as long as the change is relatively minor (even though the fix will be deleted later).
  3. Remove elements that have no new equivalents as far up the call-chain as possible; assert(false) areas that are incomplete or for which extraction would incur a lot of unbuildable changes (don't violate principle #1)
  4. Use preprocessor guards and #include replacement files from within old ones. #if FALSE ... #endif the old content. This separates the step of finding all the places a given file is #included and updating the references.

No comments: