« Previous - Version 6/26 (diff) - Next » - Current version
Lukan, 11/14/2010 03:29 am


Fixing Windows Batch

This document aims at configuring the Windows shard_start.bat file to work with the recent changes in the way that the Ryzom project is built. This page also assumes that cmake was used to prepare the project for building based upon:

Known Issues

There is a known issue with the current state of the shard_start.bat file that keeps servers built on Windows from starting properly. These issues are:

  1. The current build leaves the executable somewhere other than where the bat file expects them
  1. The current build renames some of the executables to something other than what the bat file expects them

To fix these problems there are a couple of ways to fix these errors.

How to Fix the Location

The current location that Visual Studio 2008 stores the compiled files is located at:

..\code\build\bin\

There will be either a Release or Debug folder located there depending upon your settings in Cmake.

*NOTE: the ..\ is the base of where the Ryzom source is located. For example mine is located at C:\ryzom\ryzom\code\build\bin

This can be fixed by one of two ways.

Leave the Files

The files can be moved from ..\code\build\bin and placed into ..\code\ryzom\server\release or ..\code\ryzom\server\debug. Then inside of the batch file, found at ..\code\ryzom\server\shard_start.bat, the following lines need to be changed from:

set MODE=Debug
REM set MODE=Release

To the following:

set MODE=c:\ryzom\ryzom\code\build\bin\Debug
REM set MODE=c:\ryzom\ryzom\code\build\bin\Release

Once that is done, the following needs to be changed in the bat file as well.

start %MODE%\admin_service.exe --fulladminname=admin_executor_service --shortadminname=AES

start %MODE%\backup_service --writepid -P49990

start %MODE%\entities_game_service --writepid

start %MODE%\gpm_service --writepid

start %MODE%\input_output_service --writepid

start %MODE%\naming_service --writepid

start %MODE%\welcome_service --writepid

start %MODE%\tick_service --writepid

start %MODE%\mirror_service --writepid

start %MODE%\ai_service --writepid -mCommon:Newbieland:Post

start %MODE%\mail_forum_service --writepid

start %MODE%\shard_unifier_service --writepid

start %MODE%\frontend_service --writepid

start %MODE%\session_browser_service --writepid

start %MODE%\logger_service --writepid

start %MODE%\admin_server --fulladminname=admin_service --shortadminname=AS --writepi
start %MODE%\ryzom_admin_service.exe --fulladminname=admin_executor_service --shortadminname=AES

start %MODE%\ryzom_backup_service --writepid -P49990

start %MODE%\ryzom_entities_game_service --writepid

start %MODE%\ryzom_gpm_service --writepid

start %MODE%\ryzom_ios_service --writepid

start %MODE%\ryzom_naming_service --writepid

start %MODE%\ryzom_welcome_service --writepid

start %MODE%\ryzom_tick_service --writepid

start %MODE%\ryzom_mirror_service --writepid

start %MODE%\ryzom_ai_service --writepid -mCommon:Newbieland:Post

start %MODE%\ryzom_mail_forum_service --writepid

start %MODE%\ryzom_shard_unifier_service --writepid

start %MODE%\ryzom_frontend_service --writepid

start %MODE%\ryzom_session_browser_service --writepid

start %MODE%\ryzom_logger_service --writepid

start %MODE%\ryzom_admin_service --fulladminname=admin_service --shortadminname=AS --writepi

Once these changes have been made, then you can proceed to run shard_start.bat and watch as your bar sprouts multiple windows. While this happens, you might be prompted by your firewall for permissions for internet access. For this guide, full access has been given to the applications for both private and public networks.

Move the Files

If you decide to move the files, the files will need to be moved from:

../code/build/bin/{Release or Debug}

and either copied, or moved into:

../code/ryzom/server/{Release or Debug}

Release or Debug will depend upon if the MODE line is REM*med out for *Release or Debug.

entities_restart.bat (442 Bytes) Lukan, 11/16/2010 04:20 pm