mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-12-27 02:50:53 +00:00
Merge
This commit is contained in:
commit
c6d7da9d61
11 changed files with 41 additions and 8 deletions
11
code/nel/tools/build_gamedata/sky_dev.bat
Normal file
11
code/nel/tools/build_gamedata/sky_dev.bat
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
title Ryzom Core: 1_export.py (LEVELDESIGN)
|
||||||
|
1_export.py -ipj common/sky common/sfx common/gamedev common/data_common common/data_shard common/leveldesign common/exedll common/cfg shard/data_shard shard/data_language shard/data_leveldesign shard/data_game_share
|
||||||
|
title Ryzom Core: 2_build.py (LEVELDESIGN)
|
||||||
|
2_build.py -ipj common/sky common/sfx common/gamedev common/data_common common/data_shard common/leveldesign common/exedll common/cfg shard/data_shard shard/data_language shard/data_leveldesign shard/data_game_share
|
||||||
|
title Ryzom Core: 3_install.py (LEVELDESIGN)
|
||||||
|
3_install.py -ipj common/sky common/sfx common/gamedev common/data_common common/data_shard common/leveldesign common/exedll common/cfg shard/data_shard shard/data_language shard/data_leveldesign shard/data_game_share
|
||||||
|
title Ryzom Core: b1_client_dev.py (LEVELDESIGN)
|
||||||
|
b1_client_dev.py
|
||||||
|
title Ryzom Core: b2_shard_data.py (LEVELDESIGN)
|
||||||
|
b2_shard_data.py
|
||||||
|
title Ryzom Core: Ready
|
|
@ -300,6 +300,9 @@ void CContinentParameters::build(const NLGEORGES::UFormElm &item)
|
||||||
if(readSeason<EGSPD::CSeason::Invalid)
|
if(readSeason<EGSPD::CSeason::Invalid)
|
||||||
ForceDisplayedSeason[season]= readSeason;
|
ForceDisplayedSeason[season]= readSeason;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Read light cycle
|
||||||
|
item.getValueByName(LightCycle, "LightCycle");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -393,6 +396,8 @@ void CContinentParameters::serial(class NLMISC::IStream &f) throw(NLMISC::EStrea
|
||||||
f.serial(SkySheet[i]);
|
f.serial(SkySheet[i]);
|
||||||
f.serialEnum(ForceDisplayedSeason[i]);
|
f.serialEnum(ForceDisplayedSeason[i]);
|
||||||
}
|
}
|
||||||
|
//
|
||||||
|
f.serial(LightCycle);
|
||||||
}
|
}
|
||||||
|
|
||||||
//=========================================================================
|
//=========================================================================
|
||||||
|
|
|
@ -62,9 +62,12 @@ public:
|
||||||
/// LandscapeIG filename.
|
/// LandscapeIG filename.
|
||||||
std::string LandscapeIG;
|
std::string LandscapeIG;
|
||||||
|
|
||||||
// New Sky system : gives name of the sky sheet per season. If present, this bypass the SkyDay & SkyNight fields
|
/// New Sky system : gives name of the sky sheet per season. If present, this bypass the SkyDay & SkyNight fields
|
||||||
std::string SkySheet[EGSPD::CSeason::Invalid];
|
std::string SkySheet[EGSPD::CSeason::Invalid];
|
||||||
|
|
||||||
|
/// Light Cycle sheet
|
||||||
|
std::string LightCycle;
|
||||||
|
|
||||||
/// SkyDay filename.
|
/// SkyDay filename.
|
||||||
std::string SkyDay;
|
std::string SkyDay;
|
||||||
|
|
||||||
|
|
|
@ -420,6 +420,11 @@ void CContinent::select(const CVectorD &pos, NLMISC::IProgressCallback &progress
|
||||||
progress.progress (0);
|
progress.progress (0);
|
||||||
progress.pushCropedValues (0, 1.f/3.f);
|
progress.pushCropedValues (0, 1.f/3.f);
|
||||||
|
|
||||||
|
{
|
||||||
|
H_AUTO(InitRZWorldLightCycle)
|
||||||
|
loadWorldLightCycle(CSheetId(LightCycle));
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
H_AUTO(InitRZWorldIndoor)
|
H_AUTO(InitRZWorldIndoor)
|
||||||
if (!ClientCfg.Light)
|
if (!ClientCfg.Light)
|
||||||
|
|
|
@ -587,7 +587,7 @@ void CContinentManager::reloadWeather()
|
||||||
|
|
||||||
WeatherManager.init();
|
WeatherManager.init();
|
||||||
// Load description of light cycles for each season.
|
// Load description of light cycles for each season.
|
||||||
loadWorldLightCycle();
|
loadWorldLightCycle(CSheetId::Unknown); //FIXME
|
||||||
// Load global weather function parameters
|
// Load global weather function parameters
|
||||||
loadWeatherFunctionParams();
|
loadWeatherFunctionParams();
|
||||||
|
|
||||||
|
|
|
@ -411,7 +411,7 @@ static void initWeather()
|
||||||
{
|
{
|
||||||
WeatherManager.init();
|
WeatherManager.init();
|
||||||
// Load description of light cycles for each season.
|
// Load description of light cycles for each season.
|
||||||
loadWorldLightCycle();
|
loadWorldLightCycle(CSheetId::Unknown); // FIXME
|
||||||
// Load global weather function parameters
|
// Load global weather function parameters
|
||||||
loadWeatherFunctionParams();
|
loadWeatherFunctionParams();
|
||||||
//
|
//
|
||||||
|
|
|
@ -442,7 +442,7 @@ class CAHReloadSeason: public IActionHandler
|
||||||
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
|
virtual void execute (CCtrlBase * /* pCaller */, const string &/* Params */)
|
||||||
{
|
{
|
||||||
// reload all parameters for weather
|
// reload all parameters for weather
|
||||||
loadWorldLightCycle();
|
loadWorldLightCycle(CSheetId::Unknown); // FIXME
|
||||||
loadWeatherFunctionParams();
|
loadWeatherFunctionParams();
|
||||||
WeatherManager.init();
|
WeatherManager.init();
|
||||||
ContinentMngr.reloadWeather();
|
ContinentMngr.reloadWeather();
|
||||||
|
|
|
@ -371,6 +371,9 @@ void displayDebug()
|
||||||
// Current GameCycle
|
// Current GameCycle
|
||||||
TextContext->printfAt(1.f, line, "Ms per Cycle : %d", NetMngr.getMsPerTick());
|
TextContext->printfAt(1.f, line, "Ms per Cycle : %d", NetMngr.getMsPerTick());
|
||||||
line += lineStep;
|
line += lineStep;
|
||||||
|
// Smoothed Client Date
|
||||||
|
TextContext->printfAt(1.f, line, "Smoothed Client Date : %u %f", SmoothedClientDate.Day, SmoothedClientDate.Hour);
|
||||||
|
line += lineStep;
|
||||||
// Packet Loss
|
// Packet Loss
|
||||||
TextContext->printfAt(1.f, line, "Packet Loss : %.1f %%", NetMngr.getMeanPacketLoss()*100.0f);
|
TextContext->printfAt(1.f, line, "Packet Loss : %.1f %%", NetMngr.getMeanPacketLoss()*100.0f);
|
||||||
line += lineStep;
|
line += lineStep;
|
||||||
|
|
|
@ -235,7 +235,7 @@ uint CSky::setup(const CClientDate &date, const CClientDate &animationDate, floa
|
||||||
// animate objects
|
// animate objects
|
||||||
if (_PlayListManager)
|
if (_PlayListManager)
|
||||||
{
|
{
|
||||||
double globalDate = ((double) _NumHourInDay * date.Day + (double) date.Hour) / _NumHourInDay;
|
double globalDate = (double)date.Hour / (double)_NumHourInDay;
|
||||||
//nlinfo("global date = %f", (float) globalDate);
|
//nlinfo("global date = %f", (float) globalDate);
|
||||||
_PlayListManager->animate(_AnimLengthInSeconds * globalDate);
|
_PlayListManager->animate(_AnimLengthInSeconds * globalDate);
|
||||||
}
|
}
|
||||||
|
|
|
@ -87,9 +87,14 @@ void buildLightCycleDesc(CLightCycleDesc &dest,EGSPD::CSeason::TSeason season)
|
||||||
else dest.DuskRatio = 0.5f;
|
else dest.DuskRatio = 0.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void loadWorldLightCycle()
|
void loadWorldLightCycle(CSheetId lightCycle)
|
||||||
{
|
{
|
||||||
CEntitySheet *sheet = SheetMngr.get(CSheetId("ryzom.light_cycle"));
|
nldebug("Load light cycle '%s'", lightCycle.toString().c_str());
|
||||||
|
|
||||||
|
if (lightCycle == CSheetId::Unknown)
|
||||||
|
lightCycle = CSheetId("ryzom.light_cycle");
|
||||||
|
|
||||||
|
CEntitySheet *sheet = SheetMngr.get(lightCycle);
|
||||||
nlassert(sheet);
|
nlassert(sheet);
|
||||||
if (sheet->type() != CEntitySheet::LIGHT_CYCLE)
|
if (sheet->type() != CEntitySheet::LIGHT_CYCLE)
|
||||||
{
|
{
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
#define CL_WORLD_LIGHT_CYCLE_H
|
#define CL_WORLD_LIGHT_CYCLE_H
|
||||||
|
|
||||||
|
|
||||||
|
#include <nel/misc/sheet_id.h>
|
||||||
#include "game_share/season.h"
|
#include "game_share/season.h"
|
||||||
|
|
||||||
struct CLightCycleDesc;
|
struct CLightCycleDesc;
|
||||||
|
@ -47,7 +48,7 @@ extern EGSPD::CSeason::TSeason StartupSeason;
|
||||||
extern CWeatherFunctionParamsSheet *WeatherFunctionParams;
|
extern CWeatherFunctionParamsSheet *WeatherFunctionParams;
|
||||||
|
|
||||||
// load the world light cycle from a sheet
|
// load the world light cycle from a sheet
|
||||||
void loadWorldLightCycle();
|
void loadWorldLightCycle(NLMISC::CSheetId lightCycleSheet);
|
||||||
|
|
||||||
// load the weather function params
|
// load the weather function params
|
||||||
void loadWeatherFunctionParams();
|
void loadWeatherFunctionParams();
|
||||||
|
|
Loading…
Reference in a new issue