home *** CD-ROM | disk | FTP | other *** search
/ Game Programming in C++ - Start to Finish / GameProgrammingS.iso / developer_install / ReplicaNetFreewareV5_4.exe / data1.cab / Program_Executable_Files / Example1 / ReadMe.txt < prev    next >
Encoding:
Text File  |  2005-10-30  |  2.2 KB  |  45 lines

  1. Example 1
  2.  
  3. Original Microsoft DX8 shadow volume demonstration expanded to use ReplicaNet libraries and make a
  4. multiplayer game example.
  5. Each plane is now a C++ object that can be used with the ReplicaNet library.
  6. Each Plane object is also fault tolerant so if a session is quit then that object is transfered
  7. to another session.
  8. When each plane is rendered if the plane object is owned by the session, i.e. if it is a master
  9. ReplicaObject, then the object is rendered double size.
  10.  
  11.  
  12. Look in MainGame.cpp for the main block of code that used ReplicaNet. The other folders in this project are:
  13.  
  14.  
  15. Resource Files:            The resource files used for the windows and dialogs
  16. Common:                    A common DX8 interface from the MS DX8 SDK
  17. Media:                    The plane object and texture files
  18. ROLFiles:                The ROL files for each object used in the game
  19. GameObjects:            The classes for each type of game object used in the example
  20. CompiledGameObjects:    The compiled files produced by the ROL compiler
  21. GameClass:                The code that deals with the DX8 common interface
  22.  
  23.  
  24. The files in the ROLFiles directory are automatically compiled with custom build rules setup for this folder.
  25. The compiler takes an input file and two output files. For example RNROLCompiler.exe <input.rol> <output.cpp> <output.h>
  26. The output cpp and h files can then be included in a project.
  27. To use the compiler with MS VC++ you can use custom build rules per file or folder.
  28. Example:
  29. To build _RO_Object.rol and include this in the project use the custom build rule:
  30. ..\ReplicaNetPublic\RNROLCompiler\bin\rnrolcompiler.exe $(InputName).rol $(InputName).cpp $(InputName).h
  31. And for the file output box use:
  32. $(InputName).cpp
  33. $(InputName).h
  34. For MS VC++ 6.0 The carriage return between the cpp and h file is important otherwise MSVC will get confused with
  35. build dependency and may rebuild the output files unnecessarily.
  36. Note: This assumes the RNROLCompiler directory is one directory 'below' your project build directory and for this
  37. example this is correct.
  38.  
  39. A graceful shutdown of the ReplicaNet library is shown in the CMyD3DApplication::FinalCleanup()
  40. function found in the GameClass.cpp file.
  41.  
  42. Available project build configurations:
  43. ReleaseMT
  44. DebugMT
  45.