From 25a7caf34164d1e51d2ab87312fe5ec1e7b2bc86 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 2 Jan 2016 17:02:07 +0100 Subject: [PATCH 1/5] Fixed: Use SaveShardRoot from game_share --HG-- branch : develop --- code/ryzom/server/src/frontend_service/fe_receive_sub.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/server/src/frontend_service/fe_receive_sub.cpp b/code/ryzom/server/src/frontend_service/fe_receive_sub.cpp index e2098d7b8..45734b609 100644 --- a/code/ryzom/server/src/frontend_service/fe_receive_sub.cpp +++ b/code/ryzom/server/src/frontend_service/fe_receive_sub.cpp @@ -75,7 +75,7 @@ extern void flushMessagesToSend(); void cbGwTrDisconnection ( TClientId clientId ); -extern CVariable SaveShardRoot; +extern CVariable SaveShardRootGameShare; extern CVariable VerboseFEStatsTime; From 20711e24e3587ac3045d0582deadd1a1032ba1f7 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 2 Jan 2016 17:04:45 +0100 Subject: [PATCH 2/5] Fixed: Typos --HG-- branch : develop --- code/nel/src/gui/group_editbox.cpp | 1 - code/nel/tools/3d/tga_2_dds/tga2dds.cpp | 2 +- .../src/entities_game_service/guild_manager/fame_manager.h | 2 +- .../guild_manager/guild_member_module.cpp | 4 ++-- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/code/nel/src/gui/group_editbox.cpp b/code/nel/src/gui/group_editbox.cpp index c96c27b46..48347aed1 100644 --- a/code/nel/src/gui/group_editbox.cpp +++ b/code/nel/src/gui/group_editbox.cpp @@ -953,7 +953,6 @@ namespace NLGUI maxPos = _CursorPos; } - nlinfo("%d, %d", minPos, maxPos); if (replace) { _InputString = _InputString.substr(0, minPos) + toAdd + _InputString.substr(maxPos); diff --git a/code/nel/tools/3d/tga_2_dds/tga2dds.cpp b/code/nel/tools/3d/tga_2_dds/tga2dds.cpp index 34b47735f..6e235a3f1 100644 --- a/code/nel/tools/3d/tga_2_dds/tga2dds.cpp +++ b/code/nel/tools/3d/tga_2_dds/tga2dds.cpp @@ -513,7 +513,7 @@ int main(int argc, char **argv) std::string::size_type pos = inputFileName.rfind("."); if (pos == std::string::npos) { - // name whithout extension + // name without extension userColorFileName = inputFileName + "_usercolor"; } else diff --git a/code/ryzom/server/src/entities_game_service/guild_manager/fame_manager.h b/code/ryzom/server/src/entities_game_service/guild_manager/fame_manager.h index cdaf8d92f..c42b82adc 100644 --- a/code/ryzom/server/src/entities_game_service/guild_manager/fame_manager.h +++ b/code/ryzom/server/src/entities_game_service/guild_manager/fame_manager.h @@ -143,7 +143,7 @@ public: // Fame system // These take clans as parameters, restricted by call. // These return the proper fame values, or NO_FAME if there's an error. - // - GgtStartFame: playerClan must be a Civilization, targetClan must be any non-neutral clan + // - getStartFame: playerClan must be a Civilization, targetClan must be any non-neutral clan sint32 getStartFame(PVP_CLAN::TPVPClan playerClan, PVP_CLAN::TPVPClan targetClan); // - getMaxFameByClan: playerClan must be Neutral or the same type (Cult or Clan) as targetClan, // targetClan must be any non-neutral clan. diff --git a/code/ryzom/server/src/entities_game_service/guild_manager/guild_member_module.cpp b/code/ryzom/server/src/entities_game_service/guild_manager/guild_member_module.cpp index f38f9d170..3e2ab2f6c 100644 --- a/code/ryzom/server/src/entities_game_service/guild_manager/guild_member_module.cpp +++ b/code/ryzom/server/src/entities_game_service/guild_manager/guild_member_module.cpp @@ -339,7 +339,7 @@ void CGuildMemberModule::_inviteCharacterInGuild(CGuildCharProxy& invitor, CGuil SM_STATIC_PARAMS_2( params, STRING_MANAGER::player, STRING_MANAGER::faction ); params[0].setEIdAIAlias( target.getId(), CAIAliasTranslator::getInstance()->getAIAlias( target.getId()) ); params[1].Enum = PVP_CLAN::getFactionIndex(invitedAllegiance.first); - invitor.sendSystemMessage("GUILD_ICOMPATIBLE_ALLEGIANCE",params); + invitor.sendSystemMessage("GUILD_INCOMPATIBLE_ALLEGIANCE",params); return; } @@ -348,7 +348,7 @@ void CGuildMemberModule::_inviteCharacterInGuild(CGuildCharProxy& invitor, CGuil SM_STATIC_PARAMS_2( params, STRING_MANAGER::player, STRING_MANAGER::faction ); params[0].setEIdAIAlias( target.getId(), CAIAliasTranslator::getInstance()->getAIAlias( target.getId()) ); params[1].Enum = PVP_CLAN::getFactionIndex(invitedAllegiance.second); - invitor.sendSystemMessage("GUILD_ICOMPATIBLE_ALLEGIANCE",params); + invitor.sendSystemMessage("GUILD_INCOMPATIBLE_ALLEGIANCE",params); return; } From 958ccb9b5827b442d9447c6fac3df8c425a99c9d Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 2 Jan 2016 17:08:25 +0100 Subject: [PATCH 3/5] Changed: Add CPUMask variable --HG-- branch : develop --- code/ryzom/client/src/client_cfg.cpp | 3 +++ code/ryzom/client/src/client_cfg.h | 2 ++ 2 files changed, 5 insertions(+) diff --git a/code/ryzom/client/src/client_cfg.cpp b/code/ryzom/client/src/client_cfg.cpp index cce8ca058..3510db428 100644 --- a/code/ryzom/client/src/client_cfg.cpp +++ b/code/ryzom/client/src/client_cfg.cpp @@ -506,6 +506,7 @@ CClientConfig::CClientConfig() Sleep = -1; // Default : client does not sleep. ProcessPriority = 0; // Default : NORMAL + CPUMask = 0; // Default : auto detection ShowPath = false; // Default : do not display the path. DrawBoxes = false; // Default : Do not draw the selection. @@ -1486,6 +1487,8 @@ void CClientConfig::setValues() READ_INT_FV(Sleep) // ProcessPriority READ_INT_FV(ProcessPriority) + // CPUMask + READ_INT_FV(CPUMask) // ShowPath : Get the ShowPath value. READ_BOOL_DEV(ShowPath) // UserSheet : Get the sheet to used for the use rin Local mode. diff --git a/code/ryzom/client/src/client_cfg.h b/code/ryzom/client/src/client_cfg.h index 5b9c9099e..bbf9e4562 100644 --- a/code/ryzom/client/src/client_cfg.h +++ b/code/ryzom/client/src/client_cfg.h @@ -421,6 +421,8 @@ struct CClientConfig sint Sleep; /// Force process priority sint ProcessPriority; + /// CPU Mask + sint CPUMask; // To show/hide the entities path bool ShowPath; /// Draw the Boxes used for the selection. From 0c98a86e4bc02d4703c64153a2c9fe42fc9b77db Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 2 Jan 2016 17:10:23 +0100 Subject: [PATCH 4/5] Fixed: Display alpha as an integer --HG-- branch : develop --- code/nel/tools/3d/textures_optimizer/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/nel/tools/3d/textures_optimizer/main.cpp b/code/nel/tools/3d/textures_optimizer/main.cpp index df0039b0b..8ecffedab 100644 --- a/code/nel/tools/3d/textures_optimizer/main.cpp +++ b/code/nel/tools/3d/textures_optimizer/main.cpp @@ -186,7 +186,7 @@ int main(int argc, char **argv) if (hasAlpha && bitmap.isAlphaUniform(&alpha)) { - std::cout << InputFilenames[i] << " (image with uniform alpha channel " << alpha << ")" << std::endl; + std::cout << InputFilenames[i] << " (image with uniform alpha channel " << (sint)alpha << ")" << std::endl; if (FixAlpha && (alpha == 0 || alpha == 255)) { From de77bb634da4ee538e112ac4c110e0692d73ede7 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 2 Jan 2016 17:10:50 +0100 Subject: [PATCH 5/5] Changed: Don't need to cast since it's already a sint32 --HG-- branch : develop --- code/ryzom/common/src/game_share/fame.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/ryzom/common/src/game_share/fame.cpp b/code/ryzom/common/src/game_share/fame.cpp index 51f80114e..919ee3c93 100644 --- a/code/ryzom/common/src/game_share/fame.cpp +++ b/code/ryzom/common/src/game_share/fame.cpp @@ -705,7 +705,7 @@ sint32 CFameInterface::getFameIndexed(const CEntityId &entityId, uint32 factionI if (!returnUnknownValue && fame == NO_FAME) fame = 0; - return sint32(fame); + return fame; } }