Update: merged

This commit is contained in:
Matt Raykowski 2010-05-10 12:18:13 -05:00
commit a927597747
41 changed files with 266 additions and 77 deletions

View file

@ -39,6 +39,7 @@ default_c
*.Po *.Po
*.Plo *.Plo
*.o *.o
*.so
*.so.* *.so.*
*_debug *_debug
@ -93,6 +94,12 @@ ipch
*.idb *.idb
*.sdf *.sdf
# Ryzom server garbage
aes_nagios_report.txt
aes_state.txt
*.launch_ctrl
*.state
# Vim and kwrite cache # Vim and kwrite cache
*~ *~
@ -112,7 +119,9 @@ moc_*.cpp
*.orig *.orig
*.cachefile *.cachefile
*.cache *.cache
*.patch
*.7z *.7z
external
# Linux nel compile # Linux nel compile
code/nel/build/nel-config code/nel/build/nel-config

View file

@ -611,13 +611,13 @@ public:
CAccessor(CUnfairSynchronized<T> *cs) CAccessor(CUnfairSynchronized<T> *cs)
{ {
Synchronized = cs; Synchronized = cs;
const_cast<CMutex&>(Synchronized->_Mutex).enter(); const_cast<CUnfairMutex&>(Synchronized->_Mutex).enter();
} }
/// release the mutex /// release the mutex
~CAccessor() ~CAccessor()
{ {
const_cast<CMutex&>(Synchronized->_Mutex).leave(); const_cast<CUnfairMutex&>(Synchronized->_Mutex).leave();
} }
/// access to the Value /// access to the Value

View file

@ -140,7 +140,7 @@ protected:
/// queue of tasks, using list container instead of queue for DeleteTask methode /// queue of tasks, using list container instead of queue for DeleteTask methode
CSynchronized<std::string> _RunningTask; CSynchronized<std::string> _RunningTask;
CSynchronized<std::list<CWaitingTask> > _TaskQueue; CUnfairSynchronized<std::list<CWaitingTask> > _TaskQueue;
CSynchronized<std::deque<std::string> > _DoneTaskQueue; CSynchronized<std::deque<std::string> > _DoneTaskQueue;
/// thread pointer /// thread pointer

View file

@ -67,7 +67,7 @@ void CAsyncFileManager::addLoadTask(IRunnable *ploadTask)
bool CAsyncFileManager::cancelLoadTask(const CAsyncFileManager::ICancelCallback &callback) bool CAsyncFileManager::cancelLoadTask(const CAsyncFileManager::ICancelCallback &callback)
{ {
CSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
list<CWaitingTask> &rTaskQueue = acces.value (); list<CWaitingTask> &rTaskQueue = acces.value ();
list<CWaitingTask>::iterator it = rTaskQueue.begin(); list<CWaitingTask>::iterator it = rTaskQueue.begin();
@ -87,7 +87,7 @@ bool CAsyncFileManager::cancelLoadTask(const CAsyncFileManager::ICancelCallback
} }
// If not found, the current running task may be the one we want to cancel. Must wait it. // If not found, the current running task may be the one we want to cancel. Must wait it.
// Beware that this code works because of the CSynchronized access we made above (ensure that the // Beware that this code works because of the CUnfairSynchronized access we made above (ensure that the
// taskmanager will end just the current task async (if any) and won't start an other one. // taskmanager will end just the current task async (if any) and won't start an other one.
waitCurrentTaskToComplete (); waitCurrentTaskToComplete ();
@ -105,7 +105,7 @@ void CAsyncFileManager::loadMesh(const std::string& meshName, IShape **ppShp, ID
/* /*
bool CAsyncFileManager::cancelLoadMesh(const std::string& sMeshName) bool CAsyncFileManager::cancelLoadMesh(const std::string& sMeshName)
{ {
CSynchronized<list<IRunnable *> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<list<IRunnable *> >::CAccessor acces(&_TaskQueue);
list<IRunnable*> &rTaskQueue = acces.value (); list<IRunnable*> &rTaskQueue = acces.value ();
list<IRunnable*>::iterator it = rTaskQueue.begin(); list<IRunnable*>::iterator it = rTaskQueue.begin();
@ -167,7 +167,7 @@ void CAsyncFileManager::signal (bool *pSgn)
void CAsyncFileManager::cancelSignal (bool *pSgn) void CAsyncFileManager::cancelSignal (bool *pSgn)
{ {
CSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
list<CWaitingTask> &rTaskQueue = acces.value (); list<CWaitingTask> &rTaskQueue = acces.value ();
list<CWaitingTask>::iterator it = rTaskQueue.begin(); list<CWaitingTask>::iterator it = rTaskQueue.begin();

View file

@ -101,7 +101,7 @@ void CIXml::release ()
// Free it // Free it
xmlClearParserCtxt (_Parser); xmlClearParserCtxt (_Parser);
xmlFreeParserCtxt (_Parser); xmlFreeParserCtxt (_Parser);
xmlCleanupParser (); // commented due to the bug #857 xmlCleanupParser ();
_Parser = NULL; _Parser = NULL;
} }

View file

@ -49,7 +49,7 @@ CTaskManager::~CTaskManager()
nlSleep(10); nlSleep(10);
// There should be no remaining Tasks // There should be no remaining Tasks
CSynchronized<std::list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<std::list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
nlassert(acces.value().empty()); nlassert(acces.value().empty());
_Thread->wait(); _Thread->wait();
delete _Thread; delete _Thread;
@ -65,7 +65,7 @@ void CTaskManager::run(void)
while(_ThreadRunning) while(_ThreadRunning)
{ {
{ {
CSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
if(acces.value().empty()) if(acces.value().empty())
{ {
runnableTask = NULL; runnableTask = NULL;
@ -126,14 +126,14 @@ void CTaskManager::run(void)
// Add a task to TaskManager // Add a task to TaskManager
void CTaskManager::addTask(IRunnable *r, float priority) void CTaskManager::addTask(IRunnable *r, float priority)
{ {
CSynchronized<std::list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<std::list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
acces.value().push_back(CWaitingTask(r, priority)); acces.value().push_back(CWaitingTask(r, priority));
} }
/// Delete a task, only if task is not running, return true if found and deleted /// Delete a task, only if task is not running, return true if found and deleted
bool CTaskManager::deleteTask(IRunnable *r) bool CTaskManager::deleteTask(IRunnable *r)
{ {
CSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
for(list<CWaitingTask>::iterator it = acces.value().begin(); it != acces.value().end(); it++) for(list<CWaitingTask>::iterator it = acces.value().begin(); it != acces.value().end(); it++)
{ {
if(it->Task == r) if(it->Task == r)
@ -148,7 +148,7 @@ bool CTaskManager::deleteTask(IRunnable *r)
/// Task list size /// Task list size
uint CTaskManager::taskListSize(void) uint CTaskManager::taskListSize(void)
{ {
CSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
return acces.value().size(); return acces.value().size();
} }
@ -164,7 +164,7 @@ void CTaskManager::waitCurrentTaskToComplete ()
void CTaskManager::dump (std::vector<std::string> &result) void CTaskManager::dump (std::vector<std::string> &result)
{ {
CSynchronized<string>::CAccessor accesCurrent(&_RunningTask); CSynchronized<string>::CAccessor accesCurrent(&_RunningTask);
CSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
CSynchronized<deque<string> >::CAccessor accesDone(&_DoneTaskQueue); CSynchronized<deque<string> >::CAccessor accesDone(&_DoneTaskQueue);
const list<CWaitingTask> &taskList = acces.value(); const list<CWaitingTask> &taskList = acces.value();
@ -215,7 +215,7 @@ void CTaskManager::clearDump()
uint CTaskManager::getNumWaitingTasks() uint CTaskManager::getNumWaitingTasks()
{ {
CSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
return acces.value().size(); return acces.value().size();
} }
@ -225,7 +225,7 @@ void CTaskManager::changeTaskPriority ()
{ {
if (_ChangePriorityCallback) if (_ChangePriorityCallback)
{ {
CSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue); CUnfairSynchronized<list<CWaitingTask> >::CAccessor acces(&_TaskQueue);
list<CWaitingTask> &taskList = acces.value(); list<CWaitingTask> &taskList = acces.value();
list<CWaitingTask>::iterator ite = taskList.begin(); list<CWaitingTask>::iterator ite = taskList.begin();

View file

@ -64,7 +64,7 @@
/> />
<Tool <Tool
Name="VCLinkerTool" Name="VCLinkerTool"
AdditionalDependencies="winmm.lib odbc32.lib odbccp32.lib ws2_32.lib libxml2.lib zlib.lib freetype.lib mysqlclientd.lib" AdditionalDependencies="winmm.lib odbc32.lib odbccp32.lib ws2_32.lib libxml2.lib zlib.lib freetype.lib mysqlclient.lib"
OutputFile="$(RootNamespace)_d.exe" OutputFile="$(RootNamespace)_d.exe"
SuppressStartupBanner="true" SuppressStartupBanner="true"
IgnoreDefaultLibraryNames="libc;libcmt;libcmtd;msvcrt" IgnoreDefaultLibraryNames="libc;libcmt;libcmtd;msvcrt"

View file

@ -39,15 +39,16 @@ Gamma_max = 1.0;
// NETWORK // // NETWORK //
///////////// /////////////
Application = { "ryzom_live", "./client_ryzom_r.exe", "./" }; Application = { "ryzom_open", "./client_ryzom_r.exe", "./" };
BackgroundDownloader = 0; BackgroundDownloader = 0;
PatchServer = "http://dl.ryzom.com/patch_live"; PatchServer = "";
SignUpURL = "http://www.ryzom.com/subscribe"; PatchWanted = 0;
StartupHost = "su1.ryzom.com:40916"; SignUpURL = "";
StartupHost = "open.ryzom.com:40916";
StartupPage = "/login/r2_login.php"; StartupPage = "/login/r2_login.php";
InstallStatsUrl = "http://su1.ryzom.com:50000/stats/stats.php"; InstallStatsUrl = "http://open.ryzom.com:50000/stats/stats.php";
CreateAccountURL = "https://secure.ryzom.com/signup/from_client.php"; CreateAccountURL = "";
InstallWebPage = "http://dl.ryzom.com/installer/"; InstallWebPage = "";
//////////////// ////////////////

View file

@ -294,7 +294,12 @@ CClientConfig::CClientConfig()
ForceDeltaTime = 0; // Default ForceDeltaTime, disabled by default ForceDeltaTime = 0; // Default ForceDeltaTime, disabled by default
#ifdef NL_OS_WINDOWS
DisableDirectInput = false; // Default DisableDirectInput DisableDirectInput = false; // Default DisableDirectInput
#else
DisableDirectInput = true; // no direct input on linux
#endif
DisableDirectInputKeyboard = true; // Default DisableDirectInput fort he keyboard only DisableDirectInputKeyboard = true; // Default DisableDirectInput fort he keyboard only
HardwareCursor = true; // Default HardwareCursor HardwareCursor = true; // Default HardwareCursor
HardwareCursorScale = 0.85f; HardwareCursorScale = 0.85f;

View file

@ -493,7 +493,7 @@ void CAnimationStateSheet::serial(class NLMISC::IStream &f) throw(NLMISC::EStrea
// update statics maps // update statics maps
if (f.isReading()) if (f.isReading())
{ {
_StringToAnimStateId.insert(pair<string, TAnimStateSheetId>::pair(sStateName, (TAnimStateSheetId)State)); _StringToAnimStateId.insert(pair<string, TAnimStateSheetId>(sStateName, (TAnimStateSheetId)State));
if (_AnimStateIdToString.size() <= State) if (_AnimStateIdToString.size() <= State)
_AnimStateIdToString.resize(State+1); _AnimStateIdToString.resize(State+1);
_AnimStateIdToString[State] = sStateName; _AnimStateIdToString[State] = sStateName;

View file

@ -2118,9 +2118,9 @@ public:
{ {
vector< pair < string, string > > params; vector< pair < string, string > > params;
params.clear(); params.clear();
params.push_back(pair<string,string>::pair("id", toString(Mainlands[i].Id))); params.push_back(pair<string,string>("id", toString(Mainlands[i].Id)));
if (i>0) if (i>0)
params.push_back(pair<string,string>::pair("posref", "BL TL")); params.push_back(pair<string,string>("posref", "BL TL"));
CInterfaceGroup *pNewLine =pIM->createGroupInstance("t_mainland", GROUP_LIST_MAINLAND, params); CInterfaceGroup *pNewLine =pIM->createGroupInstance("t_mainland", GROUP_LIST_MAINLAND, params);
if (pNewLine != NULL) if (pNewLine != NULL)
@ -2240,10 +2240,10 @@ public:
{ {
vector< pair < string, string > > params; vector< pair < string, string > > params;
params.clear(); params.clear();
params.push_back(pair<string,string>::pair("id", id)); params.push_back(pair<string,string>("id", id));
if (!First) if (!First)
{ {
params.push_back(pair<string,string>::pair("posref", "BL TL")); params.push_back(pair<string,string>("posref", "BL TL"));
} }
First = false; First = false;
CInterfaceManager *pIM = CInterfaceManager::getInstance(); CInterfaceManager *pIM = CInterfaceManager::getInstance();
@ -2712,9 +2712,9 @@ class CAHScenarioControl : public IActionHandler
{ {
vector< pair < string, string > > params; vector< pair < string, string > > params;
params.clear(); params.clear();
params.push_back(pair<string,string>::pair("id", toString(Mainlands[i].Id))); params.push_back(pair<string,string>("id", toString(Mainlands[i].Id)));
params.push_back(pair<string,string>::pair("w", "1024")); params.push_back(pair<string,string>("w", "1024"));
params.push_back(pair<string,string>::pair("tooltip", "uiRingFilterShard")); params.push_back(pair<string,string>("tooltip", "uiRingFilterShard"));
CInterfaceGroup *toggleGr =pIM->createGroupInstance("label_toggle_button", shardList->getId(), params); CInterfaceGroup *toggleGr =pIM->createGroupInstance("label_toggle_button", shardList->getId(), params);
shardList->addChild(toggleGr); shardList->addChild(toggleGr);
// set unicode name // set unicode name

View file

@ -207,7 +207,7 @@ void CEntityAnimationManager::load(NLMISC::IProgressCallback &/* progress */, bo
string sTmp = strlwr(pASLS->AnimSetList[i].Name); string sTmp = strlwr(pASLS->AnimSetList[i].Name);
sTmp = sTmp.substr(0,sTmp.rfind('.')); sTmp = sTmp.substr(0,sTmp.rfind('.'));
pair<map<string,CAnimationSet>::iterator, bool> it; pair<map<string,CAnimationSet>::iterator, bool> it;
it = _AnimSet.insert(pair<string,CAnimationSet>::pair(sTmp,as)); it = _AnimSet.insert(pair<string,CAnimationSet>(sTmp,as));
it.first->second.init (&pASLS->AnimSetList[i], _AnimationSet); it.first->second.init (&pASLS->AnimSetList[i], _AnimationSet);
} }

View file

@ -193,7 +193,7 @@ void CHttpClient::disconnect()
// *************************************************************************** // ***************************************************************************
bool CStartupHttpClient::connectToLogin() bool CStartupHttpClient::connectToLogin()
{ {
return connect("open.ryzom.com:40916"); return connect(ClientCfg.ConfigFile.getVar("StartupHost").asString(0));
} }
CStartupHttpClient HttpClient; CStartupHttpClient HttpClient;

View file

@ -961,7 +961,7 @@ void CDDXManager::release()
// *************************************************************************** // ***************************************************************************
void CDDXManager::add(CInterfaceDDX *pDDX) void CDDXManager::add(CInterfaceDDX *pDDX)
{ {
_DDXes.insert(pair<string,CInterfaceDDX*>::pair(pDDX->getId(),pDDX)); _DDXes.insert(pair<string,CInterfaceDDX*>(pDDX->getId(),pDDX));
} }
// *************************************************************************** // ***************************************************************************

View file

@ -248,7 +248,7 @@ public:
{ {
string sTmp = child->getId(); string sTmp = child->getId();
sTmp = sTmp.substr(_Id.size()+1,sTmp.size()); sTmp = sTmp.substr(_Id.size()+1,sTmp.size());
_Accel.insert(pair<string,CInterfaceGroup*>::pair(sTmp, child)); _Accel.insert(pair<string,CInterfaceGroup*>(sTmp, child));
CInterfaceGroup::addGroup(child,eltOrder); CInterfaceGroup::addGroup(child,eltOrder);
} }

View file

@ -2795,17 +2795,17 @@ class CHandlerInvTempAll : public IActionHandler
// Try to put all items in the DB order in all the bags of the player : (bag, pa0-3, steed) // Try to put all items in the DB order in all the bags of the player : (bag, pa0-3, steed)
vector <pair <double, double> > BagsBulk; vector <pair <double, double> > BagsBulk;
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(0), pInv->getMaxBagBulk(0))); BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(0), pInv->getMaxBagBulk(0)));
nlctassert(MAX_INVENTORY_ANIMAL==4); nlctassert(MAX_INVENTORY_ANIMAL==4);
if (pInv->isInventoryAvailable(INVENTORIES::pet_animal1)) if (pInv->isInventoryAvailable(INVENTORIES::pet_animal1))
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(2), pInv->getMaxBagBulk(2))); BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(2), pInv->getMaxBagBulk(2)));
if (pInv->isInventoryAvailable(INVENTORIES::pet_animal2)) if (pInv->isInventoryAvailable(INVENTORIES::pet_animal2))
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(3), pInv->getMaxBagBulk(3))); BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(3), pInv->getMaxBagBulk(3)));
if (pInv->isInventoryAvailable(INVENTORIES::pet_animal3)) if (pInv->isInventoryAvailable(INVENTORIES::pet_animal3))
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(4), pInv->getMaxBagBulk(4))); BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(4), pInv->getMaxBagBulk(4)));
if (pInv->isInventoryAvailable(INVENTORIES::pet_animal4)) if (pInv->isInventoryAvailable(INVENTORIES::pet_animal4))
BagsBulk.push_back(pair <double, double>::pair(pInv->getBagBulk(4), pInv->getMaxBagBulk(4))); BagsBulk.push_back(pair <double, double>(pInv->getBagBulk(4), pInv->getMaxBagBulk(4)));
bool bPlaceFound = true; bool bPlaceFound = true;

View file

@ -417,13 +417,13 @@ void CModalContainerEditCmd::create(const std::string &name, bool bDefKey, bool
pIM->getDbProp(DbComboDisp2P); pIM->getDbProp(DbComboDisp2P);
vector< pair<string,string> > vArgs; vector< pair<string,string> > vArgs;
vArgs.push_back(pair<string,string>::pair("id",name)); vArgs.push_back(pair<string,string>("id",name));
vArgs.push_back(pair<string,string>::pair("db_sel_cat",DbComboSelCat)); vArgs.push_back(pair<string,string>("db_sel_cat",DbComboSelCat));
vArgs.push_back(pair<string,string>::pair("db_sel_act",DbComboSelAct)); vArgs.push_back(pair<string,string>("db_sel_act",DbComboSelAct));
vArgs.push_back(pair<string,string>::pair("db_sel_1p",DbComboSel1P)); vArgs.push_back(pair<string,string>("db_sel_1p",DbComboSel1P));
vArgs.push_back(pair<string,string>::pair("db_sel_2p",DbComboSel2P)); vArgs.push_back(pair<string,string>("db_sel_2p",DbComboSel2P));
vArgs.push_back(pair<string,string>::pair("db_disp_1p",DbComboDisp1P)); vArgs.push_back(pair<string,string>("db_disp_1p",DbComboDisp1P));
vArgs.push_back(pair<string,string>::pair("db_disp_2p",DbComboDisp2P)); vArgs.push_back(pair<string,string>("db_disp_2p",DbComboDisp2P));
Win = dynamic_cast<CGroupContainer*>(pIM->createGroupInstance(TEMPLATE_EDITCMD, "ui:interface", vArgs)); Win = dynamic_cast<CGroupContainer*>(pIM->createGroupInstance(TEMPLATE_EDITCMD, "ui:interface", vArgs));
if (Win == NULL) if (Win == NULL)

View file

@ -73,13 +73,13 @@ bool CPeopleList::create(const CPeopleListDesc &desc, const CChatWindowDesc *cha
// create the base container // create the base container
vector< pair<string, string> > baseContainerParams; vector< pair<string, string> > baseContainerParams;
baseContainerParams.push_back(pair<string, string>::pair("id", desc.Id)); baseContainerParams.push_back(pair<string, string>("id", desc.Id));
std::string baseId; std::string baseId;
if (fatherContainer == NULL) if (fatherContainer == NULL)
{ {
baseContainerParams.push_back(pair<string, string>::pair("movable","true")); baseContainerParams.push_back(pair<string, string>("movable","true"));
baseContainerParams.push_back(pair<string, string>::pair("active","false")); baseContainerParams.push_back(pair<string, string>("active","false"));
baseContainerParams.push_back(pair<string, string>::pair("opened","true")); baseContainerParams.push_back(pair<string, string>("opened","true"));
baseId = "ui:interface"; baseId = "ui:interface";
} }
else else

View file

@ -177,9 +177,9 @@ void createOptionalCatUI()
{ {
vector< pair < string, string > > params; vector< pair < string, string > > params;
params.clear(); params.clear();
params.push_back(pair<string,string>::pair("id", "c"+toString(i))); params.push_back(pair<string,string>("id", "c"+toString(i)));
if (i>0) if (i>0)
params.push_back(pair<string,string>::pair("posref", "BL TL")); params.push_back(pair<string,string>("posref", "BL TL"));
CInterfaceGroup *pNewLine = pIM->createGroupInstance("t_cat", GROUP_LIST_CAT, params); CInterfaceGroup *pNewLine = pIM->createGroupInstance("t_cat", GROUP_LIST_CAT, params);
if (pNewLine != NULL) if (pNewLine != NULL)
@ -1103,9 +1103,9 @@ void initShardDisplay()
{ {
vector< pair < string, string > > params; vector< pair < string, string > > params;
params.clear(); params.clear();
params.push_back(pair<string,string>::pair("id", "s"+toString(i))); params.push_back(pair<string,string>("id", "s"+toString(i)));
if (i>0) if (i>0)
params.push_back(pair<string,string>::pair("posref", "BL TL")); params.push_back(pair<string,string>("posref", "BL TL"));
CInterfaceGroup *pNewLine =pIM->createGroupInstance("t_shard", GROUP_LIST_SHARD, params); CInterfaceGroup *pNewLine =pIM->createGroupInstance("t_shard", GROUP_LIST_SHARD, params);
if (pNewLine != NULL) if (pNewLine != NULL)
@ -1229,9 +1229,9 @@ void onlogin(bool vanishScreen = true)
// { // {
// vector< pair < string, string > > params; // vector< pair < string, string > > params;
// params.clear(); // params.clear();
// params.push_back(pair<string,string>::pair("id", "s"+toString(i))); // params.push_back(pair<string,string>("id", "s"+toString(i)));
// if (i>0) // if (i>0)
// params.push_back(pair<string,string>::pair("posref", "BL TL")); // params.push_back(pair<string,string>("posref", "BL TL"));
// //
// CInterfaceGroup *pNewLine =pIM->createGroupInstance("t_shard", GROUP_LIST_SHARD, params); // CInterfaceGroup *pNewLine =pIM->createGroupInstance("t_shard", GROUP_LIST_SHARD, params);
// if (pNewLine != NULL) // if (pNewLine != NULL)
@ -2033,23 +2033,23 @@ class CAHInitResLod : public IActionHandler
// first indicates the preset-able cfg-variable // first indicates the preset-able cfg-variable
// second indicates if its a double variable (else it's an int) // second indicates if its a double variable (else it's an int)
CfgPresetList.clear(); CfgPresetList.clear();
CfgPresetList.push_back(pair<string,bool>::pair("LandscapeTileNear", true)); CfgPresetList.push_back(pair<string,bool>("LandscapeTileNear", true));
CfgPresetList.push_back(pair<string,bool>::pair("LandscapeThreshold", true)); CfgPresetList.push_back(pair<string,bool>("LandscapeThreshold", true));
CfgPresetList.push_back(pair<string,bool>::pair("Vision", true)); CfgPresetList.push_back(pair<string,bool>("Vision", true));
CfgPresetList.push_back(pair<string,bool>::pair("MicroVeget", false)); CfgPresetList.push_back(pair<string,bool>("MicroVeget", false));
CfgPresetList.push_back(pair<string,bool>::pair("MicroVegetDensity", true)); CfgPresetList.push_back(pair<string,bool>("MicroVegetDensity", true));
CfgPresetList.push_back(pair<string,bool>::pair("FxNbMaxPoly", false)); CfgPresetList.push_back(pair<string,bool>("FxNbMaxPoly", false));
CfgPresetList.push_back(pair<string,bool>::pair("Cloud", false)); CfgPresetList.push_back(pair<string,bool>("Cloud", false));
CfgPresetList.push_back(pair<string,bool>::pair("CloudQuality", true)); CfgPresetList.push_back(pair<string,bool>("CloudQuality", true));
CfgPresetList.push_back(pair<string,bool>::pair("CloudUpdate", false)); CfgPresetList.push_back(pair<string,bool>("CloudUpdate", false));
CfgPresetList.push_back(pair<string,bool>::pair("Shadows", false)); CfgPresetList.push_back(pair<string,bool>("Shadows", false));
CfgPresetList.push_back(pair<string,bool>::pair("SkinNbMaxPoly", false)); CfgPresetList.push_back(pair<string,bool>("SkinNbMaxPoly", false));
CfgPresetList.push_back(pair<string,bool>::pair("NbMaxSkeletonNotCLod", false)); CfgPresetList.push_back(pair<string,bool>("NbMaxSkeletonNotCLod", false));
CfgPresetList.push_back(pair<string,bool>::pair("CharacterFarClip", true)); CfgPresetList.push_back(pair<string,bool>("CharacterFarClip", true));
CfgPresetList.push_back(pair<string,bool>::pair("Bloom", false)); CfgPresetList.push_back(pair<string,bool>("Bloom", false));
CfgPresetList.push_back(pair<string,bool>::pair("SquareBloom", false)); CfgPresetList.push_back(pair<string,bool>("SquareBloom", false));
CfgPresetList.push_back(pair<string,bool>::pair("DensityBloom", true)); CfgPresetList.push_back(pair<string,bool>("DensityBloom", true));
// Check if all the preset-able cfg-variable are in a preset mode // Check if all the preset-able cfg-variable are in a preset mode
sint nPreset = -1; sint nPreset = -1;

View file

@ -116,7 +116,7 @@ static char rz_sccsid[] = "@(#)crypt.c 8.1 (Berkeley) 6/4/93";
* define "LONG_IS_32_BITS" only if sizeof(long)==4. * define "LONG_IS_32_BITS" only if sizeof(long)==4.
* This avoids use of bit fields (your compiler may be sloppy with them). * This avoids use of bit fields (your compiler may be sloppy with them).
*/ */
#if !defined(cray) #if !defined(cray) && !defined(__LP64__) && !defined(_LP64)
#define LONG_IS_32_BITS #define LONG_IS_32_BITS
#endif #endif
@ -124,7 +124,7 @@ static char rz_sccsid[] = "@(#)crypt.c 8.1 (Berkeley) 6/4/93";
* define "B64" to be the declaration for a 64 bit integer. * define "B64" to be the declaration for a 64 bit integer.
* XXX this feature is currently unused, see "endian" comment below. * XXX this feature is currently unused, see "endian" comment below.
*/ */
#if defined(cray) #if defined(cray) || defined(__LP64__) || defined(_LP64)
#define B64 long #define B64 long
#endif #endif
#if defined(convex) #if defined(convex)

View file

@ -1,3 +1,5 @@
#include "admin_executor_service_default.cfg"
// I'm the AES, I'll not connect to myself! // I'm the AES, I'll not connect to myself!
DontUseAES = 1; DontUseAES = 1;
// I don't need a connection to a naming service // I don't need a connection to a naming service

View file

@ -0,0 +1 @@
#include "common.cfg"

View file

@ -1,3 +1,5 @@
#include "common.cfg"
DontUseNS = 1; DontUseNS = 1;
RRDToolPath = "rrdtool"; RRDToolPath = "rrdtool";

View file

@ -1,3 +1,4 @@
#include "common.cfg"
// a list of system command that run at server startup. // a list of system command that run at server startup.
SystemCmd = {}; SystemCmd = {};

View file

@ -1,3 +1,4 @@
#include "common.cfg"
DontUseNS = BSDontUseNS; DontUseNS = BSDontUseNS;
NSHost = BSNSHost; NSHost = BSNSHost;

View file

@ -0,0 +1,2 @@
WindowStyle = "WIN";

View file

@ -1,3 +1,4 @@
#include "common.cfg"
#ifndef DONT_USE_LGS_SLAVE #ifndef DONT_USE_LGS_SLAVE

View file

@ -1,3 +1,5 @@
#include "common.cfg"
// Configure module gateway for front end operation // Configure module gateway for front end operation
StartCommands += StartCommands +=
{ {

View file

@ -1,3 +1,4 @@
#include "common.cfg"
CheckPlayerSpeed = 0; CheckPlayerSpeed = 0;
SecuritySpeedFactor = 1.5; SecuritySpeedFactor = 1.5;

View file

@ -1,3 +1,4 @@
#include "common.cfg"
#ifndef DONT_USE_LGS_SLAVE #ifndef DONT_USE_LGS_SLAVE

View file

@ -1,4 +1,6 @@
// Use with commandline: logger_service -C. -L. --nobreak --writepid // Use with commandline: logger_service -C. -L. --nobreak --writepid
#include "logger_service_default.cfg"
AESAliasName= "lgs"; AESAliasName= "lgs";
ASWebPort="46700"; ASWebPort="46700";

View file

@ -0,0 +1 @@
#include "common.cfg"

View file

@ -1,3 +1,4 @@
#include "common.cfg"
WebRootDirectory = "save_shard/www"; WebRootDirectory = "save_shard/www";
DontUseNS = 1; DontUseNS = 1;

View file

@ -1,3 +1,4 @@
#include "common.cfg"
// Linux only // Linux only
DestroyGhostSegments = 1; DestroyGhostSegments = 1;

View file

@ -1,3 +1,4 @@
#include "common.cfg"
SId = 1; SId = 1;
DontUseNS = 1; DontUseNS = 1;

View file

@ -0,0 +1,99 @@
@echo off
REM This script will start all the services with good parameters
REM set MODE=Debug
set MODE=Release
rem AS
start %MODE%\ryzom_admin_service.exe --fulladminname=admin_executor_service --shortadminname=AES
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem bms_master
start %MODE%\backup_service --writepid -P49990
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem egs
start %MODE%\entities_game_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem gpms
start %MODE%\gpm_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem ios
start %MODE%\input_output_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem rns
start %MODE%\ryzom_naming_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem rws
start %MODE%\ryzom_welcome_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem ts
start %MODE%\tick_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem ms
start %MODE%\mirror_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem ais_newbyland
start %MODE%\ai_service --writepid -mCommon:Newbieland:Post
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem mfs
start %MODE%\mail_forum_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem su
start %MODE%\shard_unifier_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem fes
start %MODE%\frontend_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem sbs
start %MODE%\session_browser_server --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem lgs
start %MODE%\logger_service --writepid
rem wait 2s (yes, i didn't find a better way to wait N seconds)
ping -n 2 127.0.0.1 > NUL 2>&1
rem ras
start %MODE%\ryzom_admin_service --fulladminname=admin_service --shortadminname=AS --writepid

View file

@ -0,0 +1,51 @@
@echo off
REM This script will kill all the services launched by shard_start.bat
rem AS
taskkill /IM ryzom_admin_service.exe
rem bms_master
taskkill /IM backup_service.exe
rem egs
taskkill /IM entities_game_service.exe
rem gpms
taskkill /IM gpm_service.exe
rem ios
taskkill /IM input_output_service.exe
rem rns
taskkill /IM ryzom_naming_service.exe
rem rws
taskkill /IM ryzom_welcome_service.exe
rem ts
taskkill /IM tick_service.exe
rem ms
taskkill /IM mirror_service.exe
rem ais_newbyland
taskkill /IM ai_service.exe
rem mfs
taskkill /IM mail_forum_service.exe
rem su
taskkill /IM shard_unifier_service.exe
rem fes
taskkill /IM frontend_service.exe
rem sbs
taskkill /IM session_browser_server.exe
rem lgs
taskkill /IM logger_service.exe
rem ras
taskkill /IM ryzom_admin_service.exe

View file

@ -1,3 +1,5 @@
#include "common.cfg"
NSHost = SUNSHost; NSHost = SUNSHost;
DontUseNS = SUDontUseNS; DontUseNS = SUDontUseNS;

View file

@ -1272,7 +1272,7 @@ NLMISC_COMMAND(setFactionWar, "Start/stop current wars between faction", "<Facti
return false; return false;
} }
if( faction1 < PVP_CLAN::BeginClans || faction1 > PVP_CLAN::EndClans ) if( faction2 < PVP_CLAN::BeginClans || faction2 > PVP_CLAN::EndClans )
{ {
log.displayNL("Invalid Faction2 name: '%s'", args[1].c_str()); log.displayNL("Invalid Faction2 name: '%s'", args[1].c_str());
return false; return false;

View file

@ -1,3 +1,4 @@
#include "common.cfg"
/// A list of vars to graph for TS /// A list of vars to graph for TS
GraphVars += GraphVars +=

View file

@ -1,3 +1,4 @@
#include "common.cfg"
// short name of the frontend service // short name of the frontend service
FrontendServiceName = "FS"; FrontendServiceName = "FS";