mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-17 13:01:41 +00:00
merge
This commit is contained in:
commit
f551366785
124 changed files with 276 additions and 267 deletions
|
@ -690,13 +690,13 @@ public:
|
|||
virtual uint32 getImplementationVersion () const = 0;
|
||||
|
||||
/**
|
||||
* Get driver informations.
|
||||
* Get driver information.
|
||||
* get the nel name of the driver (ex: "Opengl 1.2 NeL Driver")
|
||||
*/
|
||||
virtual const char* getDriverInformation () = 0;
|
||||
|
||||
/**
|
||||
* Get videocard informations.
|
||||
* Get videocard information.
|
||||
* get the official name of the driver
|
||||
*/
|
||||
virtual const char* getVideocardInformation () = 0;
|
||||
|
|
|
@ -477,7 +477,7 @@ private:
|
|||
};
|
||||
|
||||
/**
|
||||
* Index buffer driver informations.
|
||||
* Index buffer driver information.
|
||||
*/
|
||||
// *** IMPORTANT ********************
|
||||
// *** IF YOU MODIFY THE STRUCTURE OF THIS CLASS, PLEASE INCREMENT IDriver::InterfaceVersion TO INVALIDATE OLD DRIVER DLL
|
||||
|
|
|
@ -420,7 +420,7 @@ public:
|
|||
void setPointLightFactor(const CScene &scene);
|
||||
|
||||
|
||||
// To init lightmap informations
|
||||
// To init lightmap information
|
||||
void initAnimatedLightIndex(const CScene &scene);
|
||||
|
||||
|
||||
|
|
|
@ -305,7 +305,7 @@ protected:
|
|||
CRayMesh _SystemGeometry;
|
||||
|
||||
protected:
|
||||
/// Just copy informations from a CMeshBaseBuild.
|
||||
/// Just copy information from a CMeshBaseBuild.
|
||||
void buildMeshBase(CMeshBaseBuild &m);
|
||||
|
||||
/// instanciate MeshBase part to an instance (a CMeshBaseInstance).
|
||||
|
|
|
@ -106,7 +106,7 @@ public:
|
|||
void getLightMapName( uint32 nLightMapNb, std::string &LightMapName );
|
||||
// @}
|
||||
|
||||
// To init lightmap informations
|
||||
// To init lightmap information
|
||||
void initAnimatedLightIndex (const CScene &scene);
|
||||
|
||||
/// \name BlendShape properties
|
||||
|
|
|
@ -87,7 +87,7 @@ public:
|
|||
CScene *scene,
|
||||
CVertexBuffer *vb) = 0;
|
||||
|
||||
// Test whether this vertex program need tangent space informations (stored in the last texture coordinate of the mesh)
|
||||
// Test whether this vertex program need tangent space information (stored in the last texture coordinate of the mesh)
|
||||
virtual bool needTangentSpace() const { return false; }
|
||||
|
||||
|
||||
|
|
|
@ -63,7 +63,7 @@ const uint MaxPSUserParam = 4;
|
|||
* It can be used directly to create a shape.
|
||||
* If you plan to use this without a particle system model, make sure :
|
||||
* - you've setup the driver before calls to step()
|
||||
* - you've setup the font manager if you want to display font informations
|
||||
* - you've setup the font manager if you want to display font information
|
||||
* \author Nicolas Vizerie
|
||||
* \author Nevrax France
|
||||
* \date 2001
|
||||
|
|
|
@ -114,7 +114,7 @@ public:
|
|||
void setDistMax(float distMax);
|
||||
|
||||
/** Profiling. Called in RenderPass if Current Frame profiled. No-Op by default
|
||||
* Informations must be added in rdrTrav->Scene
|
||||
* Information must be added in rdrTrav->Scene
|
||||
*/
|
||||
virtual void profileSceneRender(CRenderTrav * /* rdrTrav */, CTransformShape * /* trans */, bool /* opaquePass */) { }
|
||||
|
||||
|
|
|
@ -477,13 +477,13 @@ public:
|
|||
virtual uint32 getImplementationVersion () const = 0;
|
||||
|
||||
/**
|
||||
* Get driver informations.
|
||||
* Get driver information.
|
||||
* get the nel name of the driver (ex: "Opengl 1.2 NeL Driver")
|
||||
*/
|
||||
virtual const char* getDriverInformation () = 0;
|
||||
|
||||
/**
|
||||
* Get videocard informations.
|
||||
* Get videocard information.
|
||||
* get the official name of the driver
|
||||
*/
|
||||
virtual const char* getVideocardInformation () = 0;
|
||||
|
|
|
@ -99,12 +99,12 @@ public:
|
|||
virtual void setSnapToRenderedTesselation(bool snapMode) =0;
|
||||
virtual bool getSnapToRenderedTesselation() const =0;
|
||||
|
||||
/// \name Surface Informations
|
||||
/// \name Surface Information
|
||||
|
||||
/** Get surface informations.
|
||||
/** Get surface information.
|
||||
* pos is checked with polygons that are at least (cache dependent) at +- 10m in altitude.
|
||||
* \param info will be filled with surface informations if the method returns true.
|
||||
* \return true if the surface has been found and informations has been filled.
|
||||
* \param info will be filled with surface information if the method returns true.
|
||||
* \return true if the surface has been found and information has been filled.
|
||||
*/
|
||||
virtual bool getSurfaceInfo(const CVector &pos, CSurfaceInfo &info) =0;
|
||||
|
||||
|
|
|
@ -98,7 +98,7 @@ private:
|
|||
std::string _Program;
|
||||
|
||||
public:
|
||||
/// The driver informations. For the driver implementation only.
|
||||
/// The driver information. For the driver implementation only.
|
||||
NLMISC::CRefPtr<IVertexProgramDrvInfos> _DrvInfo;
|
||||
};
|
||||
|
||||
|
|
|
@ -89,10 +89,10 @@ public:
|
|||
bool getSnapToRenderedTesselation() const {return _SnapToRenderedTesselation;}
|
||||
|
||||
|
||||
/** Get surface informations.
|
||||
/** Get surface information.
|
||||
* pos is checked with polygons that are at least (cache dependent) at +- 10m in altitude.
|
||||
* \param info will be filled with surface informations if the method returns true.
|
||||
* \return true if the surface has been found and informations has been filled.
|
||||
* \param info will be filled with surface information if the method returns true.
|
||||
* \return true if the surface has been found and information has been filled.
|
||||
*/
|
||||
bool getSurfaceInfo(const CVector &pos, CSurfaceInfo &info);
|
||||
|
||||
|
|
|
@ -218,7 +218,7 @@ public:
|
|||
* Transform an array of patchInfo by a symmetry on OY axis followed by a 90deg CCW rotation (0, 1, 2, 3).
|
||||
*
|
||||
* The method doesn't transform vertices.
|
||||
* If symmetry, the method invert 0-3 and 1-2 vertices indexes to get CCW oriented patches. It will fix bind informations.
|
||||
* If symmetry, the method invert 0-3 and 1-2 vertices indexes to get CCW oriented patches. It will fix bind information.
|
||||
* The method fixes tile and color vertex arrays.
|
||||
* The method fixes tile rotation, 256 cases and tile transistions.
|
||||
*
|
||||
|
|
|
@ -31,7 +31,7 @@ class CTileBank;
|
|||
/**
|
||||
* Environnement used to symmetrise zones
|
||||
*
|
||||
* This class build symmetry specific informations needed to know how
|
||||
* This class build symmetry specific information needed to know how
|
||||
* transform tiles when a zone is symmetrise.
|
||||
*
|
||||
* There is two states for a tile : Regular or Goofy.
|
||||
|
@ -88,9 +88,9 @@ public:
|
|||
bool getOrientedTileCorner (uint patch, uint tile);
|
||||
|
||||
/**
|
||||
* Build symmetry informations
|
||||
* Build symmetry information
|
||||
*
|
||||
* \param zone is the zone to build symmetry informations
|
||||
* \param zone is the zone to build symmetry information
|
||||
* \param snapCell is the unit size of the zones
|
||||
* \param weldThreshold is the threshold used to check vertex over snaped positions
|
||||
* \param errorDesc is a structure used to return errors
|
||||
|
|
|
@ -1027,7 +1027,7 @@ void loadForm (const std::vector<std::string> &sheetFilters, const std::string &
|
|||
{
|
||||
if (dependencyDates[depends[i]] > packedFiledate)
|
||||
{
|
||||
nldebug("Dependancy on %s for %s not up to date !",
|
||||
nldebug("Dependency on %s for %s not up to date !",
|
||||
dictionnary[depends[i]].c_str(), sheetNames[k].c_str());
|
||||
NeededToRecompute.push_back(k);
|
||||
break;
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace NLLIGO
|
|||
|
||||
|
||||
/**
|
||||
* Ligo primitives are used to add logical geometrical gameplay informations.
|
||||
* Ligo primitives are used to add logical geometrical gameplay information.
|
||||
* Ligo primitives are NODES, POINTS, PATHES or ZONES.
|
||||
* Ligo primitives have a CLASS.
|
||||
*
|
||||
|
|
|
@ -33,12 +33,12 @@ public:
|
|||
enum TReturnState
|
||||
{
|
||||
NoError, // No error
|
||||
UnkownValue, // Unkown value has been parsed
|
||||
UnknownValue, // Unknown value has been parsed
|
||||
ValueError, // Error during user defined value evaluation
|
||||
UnkownFunction, // Unkown function has been parsed
|
||||
UnknownFunction, // Unknown function has been parsed
|
||||
FunctionError, // Error during user defined function evaluation
|
||||
NumberSyntaxError, // Syntax error in a number expression
|
||||
UnkownOperator, // Unkown operator
|
||||
UnknownOperator, // Unknown operator
|
||||
MustBeOpen, // Should be a open parenthesis
|
||||
MustBeClose, // Should be a close parenthesis
|
||||
MustBeComa, // Should be a coma character
|
||||
|
@ -166,21 +166,21 @@ protected:
|
|||
/// Overridable functions
|
||||
|
||||
/**
|
||||
* Eval a user defined value. Default implementation returns UnkownValue.
|
||||
* The user can parse the value and fill the result double and return NoError, UnkownValue or
|
||||
* Eval a user defined value. Default implementation returns UnknownValue.
|
||||
* The user can parse the value and fill the result double and return NoError, UnknownValue or
|
||||
* ValueError.
|
||||
*
|
||||
* \param value is the value to parse.
|
||||
* \param result is the result to fill if the value has been succesfully parsed.
|
||||
* \param result is the result to fill if the value has been successfully parsed.
|
||||
* \param userData is a user data used by user eval function.
|
||||
* \return UnkownValue if the value is not known, ValueError is the value evaluation failed or NoError
|
||||
* \return UnknownValue if the value is not known, ValueError is the value evaluation failed or NoError
|
||||
* if it has been parsed.
|
||||
*/
|
||||
virtual TReturnState evalValue (const char *value, double &result, uint32 userData);
|
||||
|
||||
/**
|
||||
* Eval a user defined function. Default implementation returns UnkownFunction.
|
||||
* The user can parse the function name and fill the result double and return NoError, UnkownFunction
|
||||
* Eval a user defined function. Default implementation returns UnknownFunction.
|
||||
* The user can parse the function name and fill the result double and return NoError, UnknownFunction
|
||||
* or FunctionError.
|
||||
*
|
||||
* To convert double argu in boolean argu, use (round (value) != 0.0) ? true : false
|
||||
|
@ -188,8 +188,8 @@ protected:
|
|||
* \param funcName is the name of the function to evaluate.
|
||||
* \param arg0 is the first parameter passed to the function.
|
||||
* \param arg1 is the second parameter passed to the function.
|
||||
* \param result is the result to fill if the value has been succesfully parsed.
|
||||
* \return UnkownFunction if the function doesn't exist, FunctionError if the function evaluation
|
||||
* \param result is the result to fill if the value has been successfully parsed.
|
||||
* \return UnknownFunction if the function doesn't exist, FunctionError if the function evaluation
|
||||
* failed, NoError if it has been parsed.
|
||||
*/
|
||||
virtual TReturnState evalFunction (const char *funcName, double arg0, double &result);
|
||||
|
|
|
@ -24,7 +24,7 @@
|
|||
namespace NLMISC
|
||||
{
|
||||
|
||||
/** Class that gives informations about a type. Useful to do some optimization in templates functions / class
|
||||
/** Class that gives information about a type. Useful to do some optimization in templates functions / class
|
||||
* This class is intended to be specialized and taylored for each type of interest
|
||||
*
|
||||
* \author Nicolas Vizerie
|
||||
|
|
|
@ -90,7 +90,7 @@ void initAdmin (bool dontUseAES);
|
|||
|
||||
void updateAdmin ();
|
||||
|
||||
void setInformations (const std::vector<std::string> &alarms, const std::vector<std::string> &graphupdate);
|
||||
void setInformation (const std::vector<std::string> &alarms, const std::vector<std::string> &graphupdate);
|
||||
|
||||
void serviceGetView (uint32 rid, const std::string &rawvarpath, TAdminViewResult& answer, bool async=false);
|
||||
|
||||
|
|
|
@ -793,7 +793,7 @@ namespace NLNET
|
|||
|
||||
/// base module command table
|
||||
NLMISC_COMMAND_HANDLER_TABLE_BEGIN(CModuleBase)
|
||||
NLMISC_COMMAND_HANDLER_ADD(CModuleBase, dump, "display informations about module instance status", "no args")
|
||||
NLMISC_COMMAND_HANDLER_ADD(CModuleBase, dump, "display information about module instance status", "no args")
|
||||
NLMISC_COMMAND_HANDLER_ADD(CModuleBase, plug, "plug the module in a module socket", "<socket_name>")
|
||||
NLMISC_COMMAND_HANDLER_ADD(CModuleBase, unplug, "unplug the module out of a module socket", "<socket_name>")
|
||||
NLMISC_COMMAND_HANDLER_ADD(CModuleBase, sendPing, "send a ping message to another module using the first available route", "<addresseeModuleName>")
|
||||
|
@ -812,7 +812,7 @@ namespace NLNET
|
|||
friend class CModuleManager;
|
||||
friend class CStandardGateway;
|
||||
|
||||
/// The gateway that received the module informations
|
||||
/// The gateway that received the module information
|
||||
IModuleGateway *_Gateway;
|
||||
/// The route to use for reaching the module
|
||||
CGatewayRoute *_Route;
|
||||
|
|
|
@ -420,7 +420,7 @@ namespace NLNET
|
|||
std::set<TModuleId> FirewallDisclosed;
|
||||
|
||||
//@{
|
||||
/// @name Informations on the next module message to dispatch
|
||||
/// @name Information on the next module message to dispatch
|
||||
|
||||
/// next message type, set to CModuleMessageHeaderCodec::mt_invalid when no module message are awaited
|
||||
CModuleMessageHeaderCodec::TMessageType NextMessageType;
|
||||
|
|
|
@ -208,10 +208,10 @@ public:
|
|||
|
||||
/// \name Triggers info.
|
||||
|
||||
/// Get number of trigger informations
|
||||
/// Get number of trigger information
|
||||
virtual uint getNumTriggerInfo() const=0;
|
||||
|
||||
/// Get the n-th trigger informations
|
||||
/// Get the n-th trigger information
|
||||
virtual const UTriggerInfo &getTriggerInfo (uint id) const=0;
|
||||
|
||||
/// \name Create methods.
|
||||
|
|
|
@ -69,7 +69,7 @@ public:
|
|||
|
||||
/// Set the sample format. (channels = 1, 2, ...; bitsPerSample = 8, 16; frequency = samples per second, 44100, ...)
|
||||
virtual void setFormat(TBufferFormat format, uint8 channels, uint8 bitsPerSample, uint32 frequency) = 0;
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
virtual void getFormat(TBufferFormat &format, uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const = 0;
|
||||
/// Set the storage mode of this buffer, call before filling this buffer. Storage mode is always software if OptionSoftwareBuffer is enabled. Default is auto.
|
||||
virtual void setStorageMode(TStorageMode storageMode = IBuffer::StorageAuto) = 0;
|
||||
|
|
|
@ -100,7 +100,7 @@ public:
|
|||
//@{
|
||||
/// Set the sample format. (channels = 1, 2, ...; bitsPerSample = 8, 16; frequency = samples per second, 44100, ...)
|
||||
virtual void setFormat(uint8 channels, uint8 bitsPerSample, uint32 frequency) { nlassert(false); }
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
virtual void getFormat(uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const { nlassert(false); }
|
||||
/// Get a writable pointer to the buffer of specified size. Use capacity to specify the required bytes. Returns NULL when all the buffer space is already filled. Call setFormat() first.
|
||||
virtual uint8 *lock(uint capacity) { nlassert(false); return NULL; }
|
||||
|
|
|
@ -104,7 +104,7 @@ public:
|
|||
//@{
|
||||
/// Set the sample format. (channels = 1, 2, ...; bitsPerSample = 8, 16; frequency = samples per second, 44100, ...)
|
||||
virtual void setFormat(uint8 channels, uint8 bitsPerSample, uint32 frequency);
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
virtual void getFormat(uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const;
|
||||
/// Get a writable pointer to the buffer of specified size. Use capacity to specify the required bytes. Returns NULL when all the buffer space is already filled. Call setFormat() first.
|
||||
virtual uint8 *lock(uint capacity);
|
||||
|
|
|
@ -45,7 +45,7 @@ public:
|
|||
//@{
|
||||
/// Set the sample format. (channels = 1, 2, ...; bitsPerSample = 8, 16; frequency = samples per second, 44100, ...)
|
||||
virtual void setFormat(uint8 channels, uint8 bitsPerSample, uint32 frequency) = 0;
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
virtual void getFormat(uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const = 0;
|
||||
/// Get a writable pointer to the buffer of specified size. Use capacity to specify the required bytes. Returns NULL when all the buffer space is already filled. Call setFormat() first.
|
||||
virtual uint8 *lock(uint capacity) = 0;
|
||||
|
|
|
@ -956,8 +956,10 @@ bool CDriverGL::release()
|
|||
_AGPVertexArrayRange= NULL;
|
||||
_VRAMVertexArrayRange= NULL;
|
||||
|
||||
// destroy window and associated ressources
|
||||
destroyWindow();
|
||||
|
||||
// other uninitializations
|
||||
unInit();
|
||||
|
||||
// released
|
||||
|
@ -1324,7 +1326,7 @@ void CDriverGL::setupFog(float start, float end, CRGBA color)
|
|||
{
|
||||
if (!_ATIFogRangeFixed)
|
||||
{
|
||||
// last constant is used to store fog informations (fog must be rescaled to [0, 1], because of a driver bug)
|
||||
// last constant is used to store fog information (fog must be rescaled to [0, 1], because of a driver bug)
|
||||
if (start != end)
|
||||
{
|
||||
setConstant(_EVSNumConstant, 1.f / (start - end), - end / (start - end), 0, 0);
|
||||
|
|
|
@ -800,7 +800,7 @@ static bool setupEXTVertexShader(const char *glext)
|
|||
glGetIntegerv(GL_MAX_VERTEX_SHADER_LOCALS_EXT, &numVSLocals);
|
||||
if (numVSLocals < 4 * (12 + 4) + 1 + 3)
|
||||
{
|
||||
nlwarning("EXT_vertex_shader extension has not much register. Some vertex programm may fail loading");
|
||||
nlwarning("EXT_vertex_shader extension has not much register. Some vertex program may fail loading");
|
||||
return false;
|
||||
}
|
||||
//
|
||||
|
|
|
@ -2274,7 +2274,7 @@ void CDriverGL::endWaterMultiPass()
|
|||
{
|
||||
H_AUTO_OGL(CDriverGL_endWaterMultiPass)
|
||||
nlassert(_CurrentMaterial->getShader() == CMaterial::Water);
|
||||
// NB : as fragment shaders / programms bypass the texture envs, no special env enum is added (c.f CTexEnvSpecial)
|
||||
// NB : as fragment shaders / programs bypass the texture envs, no special env enum is added (c.f CTexEnvSpecial)
|
||||
if (_Extensions.NVTextureShader) return;
|
||||
if (ARBWaterShader[0])
|
||||
{
|
||||
|
|
|
@ -356,7 +356,7 @@ static void doSwizzle(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum ou
|
|||
|
||||
}
|
||||
|
||||
// Perform write mask and output de bug informations
|
||||
// Perform write mask and output de bug information
|
||||
static void doWriteMask(GLuint res, GLuint in, GLenum outX, GLenum outY, GLenum outZ, GLenum outW)
|
||||
{
|
||||
H_AUTO_OGL(doWriteMask)
|
||||
|
|
|
@ -224,8 +224,10 @@ bool CDriverGL::unInit()
|
|||
_PBuffer = NULL;
|
||||
}
|
||||
|
||||
if (!UnregisterClassW(L"NLClass", GetModuleHandle(NULL)))
|
||||
if (_Registered && !UnregisterClassW(L"NLClass", GetModuleHandle(NULL)))
|
||||
{
|
||||
nlwarning("Can't unregister NLClass");
|
||||
}
|
||||
|
||||
// Restaure monitor color parameters
|
||||
if (_NeedToRestaureGammaRamp)
|
||||
|
@ -563,6 +565,10 @@ bool CDriverGL::setDisplay(nlWindow wnd, const GfxMode &mode, bool show, bool re
|
|||
_win = wnd;
|
||||
}
|
||||
|
||||
// associate OpenGL driver to window
|
||||
SetWindowLongPtr(_win, GWLP_USERDATA, (LONG_PTR)this);
|
||||
|
||||
|
||||
_hDC=GetDC(_win);
|
||||
wglMakeCurrent(_hDC,NULL);
|
||||
|
||||
|
@ -668,14 +674,14 @@ bool CDriverGL::setDisplay(nlWindow wnd, const GfxMode &mode, bool show, bool re
|
|||
nlerror("glXChooseVisual() failed");
|
||||
}
|
||||
|
||||
_visual_info = visual_info;
|
||||
|
||||
_ctx = glXCreateContext (_dpy, visual_info, None, GL_TRUE);
|
||||
if (_ctx == NULL)
|
||||
{
|
||||
nlerror("glXCreateContext() failed");
|
||||
}
|
||||
|
||||
_visual_info = visual_info;
|
||||
|
||||
if (wnd == EmptyWindow)
|
||||
{
|
||||
if (!createWindow(mode))
|
||||
|
@ -922,9 +928,6 @@ bool CDriverGL::createWindow(const GfxMode &mode)
|
|||
return false;
|
||||
}
|
||||
|
||||
// associate OpenGL driver to window
|
||||
SetWindowLongPtr(window, GWLP_USERDATA, (LONG_PTR)this);
|
||||
|
||||
#elif defined(NL_OS_MAC) && defined(NL_MAC_NATIVE)
|
||||
|
||||
// TODO
|
||||
|
@ -934,8 +937,11 @@ bool CDriverGL::createWindow(const GfxMode &mode)
|
|||
if (_visual_info == NULL)
|
||||
return false;
|
||||
|
||||
nlWindow root = RootWindow(_dpy, DefaultScreen(_dpy));
|
||||
|
||||
XSetWindowAttributes attr;
|
||||
attr.background_pixel = BlackPixel(_dpy, DefaultScreen(_dpy));
|
||||
attr.colormap = XCreateColormap(_dpy, root, _visual_info->visual, AllocNone);
|
||||
|
||||
#ifdef XF86VIDMODE
|
||||
// If we're going to attempt fullscreen, we need to set redirect to True,
|
||||
|
@ -953,12 +959,7 @@ bool CDriverGL::createWindow(const GfxMode &mode)
|
|||
attr.override_redirect = False;
|
||||
#endif
|
||||
|
||||
int attr_flags = CWOverrideRedirect | CWBackPixel;
|
||||
|
||||
nlWindow root = RootWindow(_dpy, DefaultScreen(_dpy));
|
||||
|
||||
attr.colormap = XCreateColormap(_dpy, root, _visual_info->visual, AllocNone);
|
||||
attr_flags |= CWColormap;
|
||||
int attr_flags = CWOverrideRedirect | CWBackPixel | CWColormap;
|
||||
|
||||
window = XCreateWindow (_dpy, root, 0, 0, mode.Width, mode.Height, 0, _visual_info->depth, InputOutput, _visual_info->visual, attr_flags, &attr);
|
||||
|
||||
|
@ -1537,8 +1538,8 @@ void CDriverGL::getWindowSize(uint32 &width, uint32 &height)
|
|||
{
|
||||
if (_win)
|
||||
{
|
||||
width = (uint32)(_WindowWidth);
|
||||
height = (uint32)(_WindowHeight);
|
||||
width = (uint32)_WindowWidth;
|
||||
height = (uint32)_WindowHeight;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -861,7 +861,7 @@ void CParticleSystem::serial(NLMISC::IStream &f) throw(NLMISC::EStream)
|
|||
}
|
||||
}
|
||||
|
||||
if (version > 4) // lifetime informations
|
||||
if (version > 4) // lifetime information
|
||||
{
|
||||
bool destroyModelWhenOutOfRange = _DestroyModelWhenOutOfRange; // read from bitfield
|
||||
f.serial(destroyModelWhenOutOfRange);
|
||||
|
|
|
@ -501,7 +501,7 @@ void RenderTriangle (const CZoneLighter::CTriangle &triangle, const CZoneLighter
|
|||
gradientTriangle.computeGradient (triangle.V[0], triangle.V[1], triangle.V[2], vGradient);
|
||||
}
|
||||
|
||||
// Texture informations
|
||||
// Texture information
|
||||
uint width=0;
|
||||
uint height=0;
|
||||
const CObjectVector<uint8> *pixels = 0;
|
||||
|
@ -1142,7 +1142,7 @@ void CZoneLighter::light (CLandscape &landscape, CZone& output, uint zoneToLight
|
|||
vector<vector<CLumelDescriptor> > lumels;
|
||||
lumels.resize (patchCount);
|
||||
|
||||
// Build zone informations
|
||||
// Build zone information
|
||||
buildZoneInformation (landscape,
|
||||
listZone,
|
||||
description);
|
||||
|
@ -1717,7 +1717,7 @@ void CZoneLighter::addTriangles (const CMeshBase &meshBase, const CMeshGeom &mes
|
|||
|
||||
// ** Get the bitmap
|
||||
|
||||
// Texture informations, not NULL only if texture is used for alpha test
|
||||
// Texture information, not NULL only if texture is used for alpha test
|
||||
CBitmap *texture;
|
||||
bool clampU;
|
||||
bool clampV;
|
||||
|
@ -1801,7 +1801,7 @@ void CZoneLighter::addTriangles (const CMeshBase &meshBase, const CMeshGeom &mes
|
|||
|
||||
bool CZoneLighter::getTexture (const CMaterial &material, CBitmap *&result, bool &clampU, bool &clampV, uint8 &alphaTestThreshold, bool &doubleSided)
|
||||
{
|
||||
// Texture informations, not NULL only if texture is used for alpha test
|
||||
// Texture information, not NULL only if texture is used for alpha test
|
||||
result = NULL;
|
||||
clampU = false;
|
||||
clampV = false;
|
||||
|
@ -1885,7 +1885,7 @@ void CZoneLighter::addTriangles (const CMeshBase &meshBase, const CMeshMRMGeom &
|
|||
|
||||
// ** Get the bitmap
|
||||
|
||||
// Texture informations, not NULL only if texture is used for alpha test
|
||||
// Texture information, not NULL only if texture is used for alpha test
|
||||
CBitmap *texture;
|
||||
bool clampU;
|
||||
bool clampV;
|
||||
|
@ -2361,7 +2361,7 @@ void CZoneLighter::buildZoneInformation (CLandscape &landscape, const vector<uin
|
|||
}
|
||||
}
|
||||
|
||||
// *** Now, finalise patch informations for shadow source positions
|
||||
// *** Now, finalise patch information for shadow source positions
|
||||
|
||||
// For each patches
|
||||
uint patchCount=landscape.getZone(_ZoneToLight)->getNumPatchs();
|
||||
|
@ -2478,7 +2478,7 @@ void CZoneLighter::buildZoneInformation (CLandscape &landscape, const vector<uin
|
|||
}
|
||||
}
|
||||
|
||||
// *** Now, finalise patch informations
|
||||
// *** Now, finalise patch information
|
||||
|
||||
// For each patches
|
||||
patchCount=landscape.getZone(_ZoneToLight)->getNumPatchs();
|
||||
|
|
|
@ -94,7 +94,7 @@ const char* CLigoError::_StringError[CLigoError::ErrorCount]=
|
|||
"A edge has two times the same corner", // TwoCornerVertices
|
||||
"A corner is missing in this edge", // CornerIsMissing
|
||||
"A boundary vertex is used by multiple edges", // VertexAlreadyUsed
|
||||
"Unkown error", // UnknownError
|
||||
"Unknown error", // UnknownError
|
||||
};
|
||||
|
||||
// ***************************************************************************
|
||||
|
|
|
@ -84,7 +84,7 @@ public:
|
|||
/// Boundary vertex used by multiple edge
|
||||
VertexAlreadyUsed,
|
||||
|
||||
/// Unkown error
|
||||
/// Unknown error
|
||||
UnknownError,
|
||||
|
||||
/// Error count
|
||||
|
|
|
@ -1273,7 +1273,7 @@ std::string CInstanceCounterManager::displayCounters() const
|
|||
map<string, TInstanceCounterData> counters;
|
||||
|
||||
{
|
||||
// gather counter informations
|
||||
// gather counter information
|
||||
std::set<CInstanceCounterLocalManager*>::const_iterator first2(_InstanceCounterMgrs.begin()), last2(_InstanceCounterMgrs.end());
|
||||
for (; first2 != last2; ++first2)
|
||||
{
|
||||
|
|
|
@ -803,12 +803,12 @@ NLMISC_CATEGORISED_COMMAND(nel,entityNameValid,"Tell if an entity name is valid
|
|||
return true;
|
||||
}
|
||||
|
||||
NLMISC_CATEGORISED_COMMAND(nel,playerInfo,"Get informations about a player or all players in CEntityIdTranslator","[<entityname>|<eid>|<username>|<uid>]")
|
||||
NLMISC_CATEGORISED_COMMAND(nel,playerInfo,"Get information about a player or all players in CEntityIdTranslator","[<entityname>|<eid>|<username>|<uid>]")
|
||||
{
|
||||
if (args.size () == 0)
|
||||
{
|
||||
const map<CEntityId, CEntityIdTranslator::CEntity> &res = CEntityIdTranslator::getInstance()->getRegisteredEntities ();
|
||||
log.displayNL("%d result(s) for 'all players informations'", res.size());
|
||||
log.displayNL("%d result(s) for 'all players information'", res.size());
|
||||
for (map<CEntityId, CEntityIdTranslator::CEntity>::const_iterator it = res.begin(); it != res.end(); it++)
|
||||
{
|
||||
const CEntityIdTranslator::CEntity &entity = it->second;
|
||||
|
|
|
@ -242,7 +242,7 @@ CEvalNumExpr::TReturnState CEvalNumExpr::getNextToken (TToken &token)
|
|||
}
|
||||
|
||||
// Can't found the operator
|
||||
return UnkownOperator;
|
||||
return UnknownOperator;
|
||||
}
|
||||
}
|
||||
// Is End, '(', ')', '.' ?
|
||||
|
@ -1173,21 +1173,21 @@ const bool CEvalNumExpr::_StringChar[128] =
|
|||
|
||||
CEvalNumExpr::TReturnState CEvalNumExpr::evalValue (const char *value, double &result, uint32 userData)
|
||||
{
|
||||
return UnkownValue;
|
||||
return UnknownValue;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
|
||||
CEvalNumExpr::TReturnState CEvalNumExpr::evalFunction (const char *funcName, double arg0, double &result)
|
||||
{
|
||||
return UnkownFunction;
|
||||
return UnknownFunction;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
|
||||
CEvalNumExpr::TReturnState CEvalNumExpr::evalFunction (const char *funcName, double arg0, double arg1, double &result)
|
||||
{
|
||||
return UnkownFunction;
|
||||
return UnknownFunction;
|
||||
}
|
||||
|
||||
// ***************************************************************************
|
||||
|
@ -1259,12 +1259,12 @@ const CEvalNumExpr::TToken CEvalNumExpr::_ReservedWordToken[ReservedWordCount] =
|
|||
const char *CEvalNumExpr::_ErrorString[ReturnValueCount]=
|
||||
{
|
||||
"No error",
|
||||
"Unkown value",
|
||||
"Unknown value",
|
||||
"Error during user defined value evaluation",
|
||||
"Unkown function",
|
||||
"Unknown function",
|
||||
"Error during user defined function evaluation",
|
||||
"Syntax error in a number expression",
|
||||
"Unkown operator",
|
||||
"Unknown operator",
|
||||
"Should be a open parentesis",
|
||||
"Should be a close parentesis",
|
||||
"Should be a coma character",
|
||||
|
|
|
@ -1169,7 +1169,7 @@ uint64 CSystemInfo::getAllocatedSystemMemory ()
|
|||
{
|
||||
uint64 systemMemory = 0;
|
||||
#ifdef NL_OS_WINDOWS
|
||||
// Get system memory informations
|
||||
// Get system memory information
|
||||
HANDLE hHeap[100];
|
||||
DWORD heapCount = GetProcessHeaps (100, hHeap);
|
||||
|
||||
|
|
|
@ -91,14 +91,14 @@ uint32 RequestTimeout = 4; // in second
|
|||
|
||||
static void cbInfo (CMessage &msgin, const std::string &/* serviceName */, TServiceId /* sid */)
|
||||
{
|
||||
nlinfo ("ADMIN: Updating admin informations");
|
||||
nlinfo ("ADMIN: Updating admin information");
|
||||
|
||||
vector<string> alarms;
|
||||
msgin.serialCont (alarms);
|
||||
vector<string> graphupdate;
|
||||
msgin.serialCont (graphupdate);
|
||||
|
||||
setInformations (alarms, graphupdate);
|
||||
setInformation (alarms, graphupdate);
|
||||
}
|
||||
|
||||
static void cbServGetView (CMessage &msgin, const std::string &/* serviceName */, TServiceId sid)
|
||||
|
@ -779,7 +779,7 @@ void updateAdmin()
|
|||
}
|
||||
}
|
||||
|
||||
void setInformations (const vector<string> &alarms, const vector<string> &graphupdate)
|
||||
void setInformation (const vector<string> &alarms, const vector<string> &graphupdate)
|
||||
{
|
||||
uint i;
|
||||
sint tmp;
|
||||
|
@ -860,7 +860,7 @@ void setInformations (const vector<string> &alarms, const vector<string> &graphu
|
|||
// Commands
|
||||
//
|
||||
|
||||
NLMISC_CATEGORISED_COMMAND(nel, displayInformations, "displays all admin informations", "")
|
||||
NLMISC_CATEGORISED_COMMAND(nel, displayInformation, "displays all admin information", "")
|
||||
{
|
||||
nlunreferenced(rawCommandString);
|
||||
nlunreferenced(args);
|
||||
|
|
|
@ -914,7 +914,7 @@ namespace NLNET
|
|||
}
|
||||
}
|
||||
|
||||
/** A gateway send new modules informations */
|
||||
/** A gateway send new modules information */
|
||||
void onReceiveModuleAdd(CGatewayRoute *from, const CMessage &msgin)
|
||||
{
|
||||
H_AUTO(CModuleGetaway_onReceiveModuleAdd);
|
||||
|
@ -1765,7 +1765,7 @@ namespace NLNET
|
|||
}
|
||||
CModuleProxy *modProx = static_cast<CModuleProxy *>(it2->second.getPtr());
|
||||
|
||||
// remove module informations
|
||||
// remove module information
|
||||
pair<TKnownModuleInfos::iterator, TKnownModuleInfos::iterator> range;
|
||||
range = _KnownModules.equal_range(modProx->_FullyQualifiedModuleName);
|
||||
nlassert(range.first != range.second);
|
||||
|
@ -2327,7 +2327,7 @@ namespace NLNET
|
|||
NLMISC_CLASS_COMMAND_CALL_BASE(CModuleBase, dump);
|
||||
|
||||
log.displayNL("------------------------------");
|
||||
log.displayNL("Dumping gateway informations :");
|
||||
log.displayNL("Dumping gateway information :");
|
||||
log.displayNL("------------------------------");
|
||||
|
||||
log.displayNL("The gateway has %u locally plugged module :", _PluggedModules.getAToBMap().size());
|
||||
|
|
|
@ -1566,7 +1566,7 @@ sint IService::main (const char *serviceShortName, const char *serviceLongName,
|
|||
WindowDisplayer = NULL;
|
||||
}
|
||||
|
||||
nlinfo ("SERVICE: Service released succesfully");
|
||||
nlinfo ("SERVICE: Service released successfully");
|
||||
}
|
||||
catch (EFatalError &)
|
||||
{
|
||||
|
|
|
@ -117,13 +117,13 @@ public:
|
|||
return _Retriever;
|
||||
}
|
||||
|
||||
/// Get number of trigger informations
|
||||
/// Get number of trigger information
|
||||
uint getNumTriggerInfo() const
|
||||
{
|
||||
return (uint)_Triggers.size();
|
||||
}
|
||||
|
||||
/// Get the n-th trigger informations
|
||||
/// Get the n-th trigger information
|
||||
const UTriggerInfo &getTriggerInfo (uint id) const
|
||||
{
|
||||
// check
|
||||
|
|
|
@ -192,7 +192,7 @@ bool CBufferDSound::fill(const uint8 *src, uint size)
|
|||
return unlock(size);
|
||||
}
|
||||
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
void CBufferDSound::getFormat(TBufferFormat &format, uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const
|
||||
{
|
||||
sampleFormatToBufferFormat(_Format, format, channels, bitsPerSample);
|
||||
|
|
|
@ -53,7 +53,7 @@ public:
|
|||
|
||||
/// Set the sample format. (channels = 1, 2, ...; bitsPerSample = 8, 16; frequency = samples per second, 44100, ...)
|
||||
virtual void setFormat(TBufferFormat format, uint8 channels, uint8 bitsPerSample, uint32 frequency);
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
virtual void getFormat(TBufferFormat &format, uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const;
|
||||
/// Set the storage mode of this buffer, call before filling this buffer. Storage mode is always software if OptionSoftwareBuffer is enabled. Default is auto.
|
||||
virtual void setStorageMode(TStorageMode storageMode = IBuffer::StorageAuto);
|
||||
|
|
|
@ -96,7 +96,7 @@ bool CBufferFMod::fill(const uint8 *src, uint size)
|
|||
return _FModSample != NULL;
|
||||
}
|
||||
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
void CBufferFMod::getFormat(TBufferFormat &format, uint8 &channels, uint8 &bitsPerSample, uint &frequency) const
|
||||
{
|
||||
sampleFormatToBufferFormat(_Format, format, channels, bitsPerSample);
|
||||
|
|
|
@ -81,7 +81,7 @@ public:
|
|||
|
||||
/// Set the sample format. (channels = 1, 2, ...; bitsPerSample = 8, 16; frequency = samples per second, 44100, ...)
|
||||
virtual void setFormat(TBufferFormat format, uint8 channels, uint8 bitsPerSample, uint32 frequency);
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
virtual void getFormat(TBufferFormat &format, uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const;
|
||||
/// Set the storage mode of this buffer, call before filling this buffer. Storage mode is always software if OptionSoftwareBuffer is enabled. Default is auto.
|
||||
virtual void setStorageMode(TStorageMode storageMode = IBuffer::StorageAuto);
|
||||
|
|
|
@ -166,7 +166,7 @@ bool CBufferAL::fill(const uint8 *src, uint size)
|
|||
return _IsLoaded;
|
||||
}
|
||||
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
void CBufferAL::getFormat(TBufferFormat &format, uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const
|
||||
{
|
||||
TSampleFormat sampleFormat;
|
||||
|
|
|
@ -54,7 +54,7 @@ public:
|
|||
|
||||
/// Set the sample format. (channels = 1, 2, ...; bitsPerSample = 8, 16; frequency = samples per second, 44100, ...)
|
||||
virtual void setFormat(TBufferFormat format, uint8 channels, uint8 bitsPerSample, uint32 frequency);
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
virtual void getFormat(TBufferFormat &format, uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const;
|
||||
/// Set the storage mode of this buffer, call before filling this buffer. Storage mode is always software if OptionSoftwareBuffer is enabled. Default is auto.
|
||||
virtual void setStorageMode(TStorageMode storageMode = IBuffer::StorageAuto);
|
||||
|
|
|
@ -129,7 +129,7 @@ void CBufferXAudio2::setFormat(TBufferFormat format, uint8 channels, uint8 bitsP
|
|||
_BitsPerSample = bitsPerSample;
|
||||
}
|
||||
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
void CBufferXAudio2::getFormat(TBufferFormat &format, uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const
|
||||
{
|
||||
format = _Format;
|
||||
|
|
|
@ -86,7 +86,7 @@ public:
|
|||
|
||||
/// Set the sample format. (channels = 1, 2, ...; bitsPerSample = 8, 16; frequency = samples per second, 44100, ...)
|
||||
virtual void setFormat(TBufferFormat format, uint8 channels, uint8 bitsPerSample, uint32 frequency);
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
virtual void getFormat(TBufferFormat &format, uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const;
|
||||
/// Set the storage mode of this buffer, call before filling this buffer. Storage mode is always software if OptionSoftwareBuffer is enabled. Default is auto.
|
||||
virtual void setStorageMode(TStorageMode storageMode = IBuffer::StorageAuto);
|
||||
|
|
|
@ -348,7 +348,7 @@ void CStreamSource::setFormat(uint8 channels, uint8 bitsPerSample, uint32 freque
|
|||
m_BytesPerSecond = ((uint)bitsPerSample * (uint)frequency * (uint)channels) / 8;
|
||||
}
|
||||
|
||||
/// Return the sample format informations.
|
||||
/// Return the sample format information.
|
||||
void CStreamSource::getFormat(uint8 &channels, uint8 &bitsPerSample, uint32 &frequency) const
|
||||
{
|
||||
IBuffer::TBufferFormat bufferFormat;
|
||||
|
|
|
@ -563,7 +563,7 @@ Each automatic data process must have the following batch command files:
|
|||
|
||||
* All sucessful export should be log in the log file prefixed bt the word "OK ".
|
||||
|
||||
* All others warning and error informations are welcome in the log file.
|
||||
* All others warning and error information are welcome in the log file.
|
||||
|
||||
* The export process must use "build_gamedata/the config.cfg" file to get the database or 3dsmax directories.
|
||||
|
||||
|
@ -587,7 +587,7 @@ Each automatic data process must have the following batch command files:
|
|||
|
||||
* All sucessful build should be log in the log file prefixed bt the word "OK "
|
||||
|
||||
* All others warning and error informations are welcome in the log file.
|
||||
* All others warning and error information are welcome in the log file.
|
||||
|
||||
|
||||
- build_gamedata/processes/my_process/4_install.bat: This command will install exported / builded files in the client directory.
|
||||
|
@ -610,6 +610,6 @@ Each automatic data process must have the following batch command files:
|
|||
|
||||
* All sucessful install should be log in the log file prefixed bt the word "OK "
|
||||
|
||||
* All others warning and error informations are welcome in the log file.
|
||||
* All others warning and error information are welcome in the log file.
|
||||
|
||||
-----------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -253,7 +253,7 @@ void displayInfoFileInStream(FILE *logStream, const char *fileName, const set<st
|
|||
CZoneInfo zoneInfo;
|
||||
zone.retrieve (zoneInfo);
|
||||
|
||||
// Patch informations
|
||||
// Patch information
|
||||
uint k;
|
||||
for(k = 0; k < zoneInfo.Patchs.size(); ++k)
|
||||
{
|
||||
|
@ -644,9 +644,9 @@ int main(int argc, const char *argv[])
|
|||
puts(" Results are displayed too in \"c:/temp/file_info.log\" ");
|
||||
puts(" [opt] can get: ");
|
||||
puts(" -ms display only a Warning if file is a .shape and is a Mesh, skinned, but without MRM");
|
||||
puts(" -vi verbose instance informations");
|
||||
puts(" -vl verbose light informations");
|
||||
puts(" -vp verbose patche informations");
|
||||
puts(" -vi verbose instance information");
|
||||
puts(" -vl verbose light information");
|
||||
puts(" -vp verbose patche information");
|
||||
puts(" -veil verbose instances bound to light extra information");
|
||||
puts("Press any key");
|
||||
_getch();
|
||||
|
|
|
@ -63,7 +63,7 @@ public:
|
|||
};
|
||||
|
||||
|
||||
/** light an Ig with all PACS / 3D informations:
|
||||
/** light an Ig with all PACS / 3D information:
|
||||
* \param instanceLighter used to light the ig. Should not be reused for successive lightIg()
|
||||
* \param igIn is the ig which contains all light/object information.
|
||||
* \param igOut is the ig resulting of lighting
|
||||
|
|
|
@ -1806,7 +1806,7 @@ void CObjectViewer::serial (NLMISC::IStream& f)
|
|||
// Set the playlist
|
||||
_ListInstance[instance]->Saved.PlayList = readed[i].PlayList;
|
||||
|
||||
// Set the slot informations
|
||||
// Set the slot information
|
||||
for (uint slot=0; slot<NL3D::CChannelMixer::NumAnimationSlot; slot++)
|
||||
_ListInstance[instance]->Saved.SlotInfo[slot] = readed[i].SlotInfo[slot];
|
||||
}
|
||||
|
@ -1840,11 +1840,11 @@ void CObjectViewer::serial (NLMISC::IStream& f)
|
|||
}
|
||||
else
|
||||
{
|
||||
// Build informations
|
||||
// Build information
|
||||
std::vector<CInstanceSave> readed (_ListInstance.size());
|
||||
for (uint instance=0; instance<_ListInstance.size(); instance++)
|
||||
{
|
||||
// Copy the save insformation
|
||||
// Copy the save information
|
||||
readed[instance] = _ListInstance[instance]->Saved;
|
||||
}
|
||||
|
||||
|
@ -3485,7 +3485,7 @@ void CInstanceSave::serial (NLMISC::IStream &f)
|
|||
// Slot info for this object
|
||||
nlassert (NL3D::CChannelMixer::NumAnimationSlot == 8);
|
||||
for (uint slot=0; slot<8; slot++)
|
||||
// Serial the slot informations
|
||||
// Serial the slot information
|
||||
f.serial (SlotInfo[slot]);
|
||||
|
||||
// Input file
|
||||
|
|
|
@ -197,7 +197,7 @@ public:
|
|||
// True, must delete this shape
|
||||
bool MustDelete;
|
||||
|
||||
// Save informations
|
||||
// Save information
|
||||
CInstanceSave Saved;
|
||||
|
||||
// The current playlist
|
||||
|
|
|
@ -57,7 +57,7 @@ public:
|
|||
const std::string &getRelativePath() const { return _RelativePath; }
|
||||
std::string getFullPath() const;
|
||||
std::string getFilename() const { return NLMISC::CFile::getFilename(_RelativePath); }
|
||||
// Serial node informations into workspace stream. This does not save the particle system shape, only a reference to its file
|
||||
// Serial node information into workspace stream. This does not save the particle system shape, only a reference to its file
|
||||
void serial(NLMISC::IStream &f);
|
||||
// Save the particle system target file
|
||||
void savePS() throw(NLMISC::EStream);
|
||||
|
|
|
@ -209,7 +209,7 @@ int main(int argc, char* argv[])
|
|||
infoMaskGen.init();
|
||||
infoMaskGen.process();
|
||||
}
|
||||
else if( !strcmp(argv[2], "cgi")) /// colorized informations
|
||||
else if( !strcmp(argv[2], "cgi")) /// colorized information
|
||||
{
|
||||
CInfoColorGeneration infoColor(_Path_Input_TexBases,
|
||||
_Path_Input_Masks,
|
||||
|
|
|
@ -24,9 +24,9 @@ public:
|
|||
SelectionTerritoire(CWnd* pParent = NULL); // standard constructor
|
||||
|
||||
//owner data
|
||||
CString DefautPath; //repertoire qui contient toutes les informations
|
||||
CString MainFileName; //nom du fichier txt principale (contient la liste des territoires)
|
||||
CString CurrentTerritory; //nom du territoire en cours d'edition
|
||||
CString DefautPath; // folder which contains all data
|
||||
CString MainFileName; // txt main filename (contains territories list)
|
||||
CString CurrentTerritory; // territory name currently being editing
|
||||
int MainFileOk;
|
||||
|
||||
// Dialog Data
|
||||
|
|
|
@ -1188,7 +1188,7 @@ static void cbAESInfo(CMessage &msgin, const std::string &serviceName, TServiceI
|
|||
msgin.serialCont(AllGraphUpdates);
|
||||
|
||||
// set our own alarms for this service
|
||||
setInformations(AllAdminAlarms, AllGraphUpdates);
|
||||
setInformation(AllAdminAlarms, AllGraphUpdates);
|
||||
|
||||
// now send alarms to all services
|
||||
for (uint j = 0; j < Services.size(); j++)
|
||||
|
|
|
@ -665,49 +665,49 @@ void sqlInit ()
|
|||
////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
void sendAESInformations (TServiceId sid)
|
||||
void sendAESInformation (TServiceId sid)
|
||||
{
|
||||
AESIT aesit = findAES (sid);
|
||||
|
||||
vector<string> informations;
|
||||
vector<string> information;
|
||||
|
||||
CMessage msgout("AES_INFO");
|
||||
|
||||
//
|
||||
// send services that should be running on this AES
|
||||
//
|
||||
informations.clear ();
|
||||
information.clear ();
|
||||
MYSQL_ROW row = sqlQuery ("select name from service where server='%s'", (*aesit).Name.c_str());
|
||||
while (row != NULL)
|
||||
{
|
||||
string service = row[0];
|
||||
nlinfo ("Adding '%s' in registered services to AES-%hu", row[0], sid.get());
|
||||
informations.push_back (service);
|
||||
information.push_back (service);
|
||||
row = sqlNextRow ();
|
||||
}
|
||||
sqlFlushResult();
|
||||
msgout.serialCont (informations);
|
||||
msgout.serialCont (information);
|
||||
|
||||
//
|
||||
// send variable alarms for services that should running on this AES
|
||||
//
|
||||
informations.clear ();
|
||||
information.clear ();
|
||||
row = sqlQuery ("select path, error_bound, alarm_order from variable where error_bound!=-1");
|
||||
while (row != NULL)
|
||||
{
|
||||
nlinfo ("Adding '%s' '%s' '%s' in alarm to AES-%hu", row[0], row[1], row[2], sid.get());
|
||||
informations.push_back (row[0]);
|
||||
informations.push_back (row[1]);
|
||||
informations.push_back (row[2]);
|
||||
information.push_back (row[0]);
|
||||
information.push_back (row[1]);
|
||||
information.push_back (row[2]);
|
||||
row = sqlNextRow ();
|
||||
}
|
||||
sqlFlushResult();
|
||||
msgout.serialCont (informations);
|
||||
msgout.serialCont (information);
|
||||
|
||||
//
|
||||
// send graph update for services that should running on this AES
|
||||
//
|
||||
informations.clear ();
|
||||
information.clear ();
|
||||
row = sqlQuery ("select path, graph_update from variable where graph_update!=0");
|
||||
while (row != NULL)
|
||||
{
|
||||
|
@ -726,8 +726,8 @@ void sendAESInformations (TServiceId sid)
|
|||
if(varpath2.Destination[j].first == "*" || varpath2.Destination[j].first == (*aesit).Name)
|
||||
{
|
||||
nlinfo ("Adding '%s' '%s' in graph to AES-%hu", row[0], row[1], sid.get());
|
||||
informations.push_back (row[0]);
|
||||
informations.push_back (row[1]);
|
||||
information.push_back (row[0]);
|
||||
information.push_back (row[1]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -735,9 +735,9 @@ void sendAESInformations (TServiceId sid)
|
|||
row = sqlNextRow ();
|
||||
}
|
||||
sqlFlushResult();
|
||||
msgout.serialCont (informations);
|
||||
msgout.serialCont (information);
|
||||
|
||||
nlinfo ("Sending all informations about %s AES-%hu (hostedservices, alarms,grapupdate)", (*aesit).Name.c_str(), (*aesit).SId.get());
|
||||
nlinfo ("Sending all information about %s AES-%hu (hostedservices, alarms,grapupdate)", (*aesit).Name.c_str(), (*aesit).SId.get());
|
||||
CUnifiedNetwork::getInstance ()->send (sid, msgout);
|
||||
}
|
||||
|
||||
|
@ -798,7 +798,7 @@ static void cbNewAESConnection (const std::string &serviceName, TServiceId sid,
|
|||
nlinfo ("%s-%hu, server name %s, for shard %s connected and added in the list", serviceName.c_str(), sid.get(), server.c_str(), shard.c_str());
|
||||
|
||||
// send him services that should run on this server
|
||||
sendAESInformations (sid);
|
||||
sendAESInformation (sid);
|
||||
}
|
||||
|
||||
// i'm disconnected from an admin executor service
|
||||
|
@ -855,7 +855,7 @@ void cbRegisterAES(CMessage &msgin, const std::string &serviceName, TServiceId s
|
|||
nlinfo ("%s-%hu, server name %s, for shard %s connected and added in the list", serviceName.c_str(), sid.get(), server.c_str(), shard.c_str());
|
||||
|
||||
// send him services that should run on this server
|
||||
sendAESInformations (sid);
|
||||
sendAESInformation (sid);
|
||||
}
|
||||
|
||||
static void cbView (CMessage &msgin, const std::string &serviceName, TServiceId sid)
|
||||
|
@ -965,7 +965,7 @@ void addRequest (const string &rawvarpath, TSockId from)
|
|||
// it means the we have to resend the list of services managed by AES from the mysql tables
|
||||
for (AESIT aesit = AdminExecutorServices.begin(); aesit != AdminExecutorServices.end(); aesit++)
|
||||
{
|
||||
sendAESInformations ((*aesit).SId);
|
||||
sendAESInformation ((*aesit).SId);
|
||||
}
|
||||
|
||||
// send an empty string to say to php that there's nothing
|
||||
|
|
|
@ -4675,7 +4675,7 @@ void CCharacterCL::applyBehaviour(const CBehaviourContext &bc) // virtual
|
|||
performCurrentAttackEnd(bc, selfSpell && isOffensif, targetHitDates, combatAnimState);
|
||||
}
|
||||
|
||||
// INFO : display some debug informations.
|
||||
// INFO : display some debug information.
|
||||
if((VerboseAnimUser && _Slot==0) || (VerboseAnimSelection && _Slot == UserEntity->selection()))
|
||||
nlinfo("CH:applyBeh:%d: '%d(%s)'", _Slot, behaviour.Behaviour, behaviourToString((EBehaviour)behaviour.Behaviour).c_str());
|
||||
|
||||
|
@ -5302,7 +5302,7 @@ bool CCharacterCL::applyCurrentStage()
|
|||
else
|
||||
nlwarning("CCharacterCL::applyCurrentStage: there is no stage.");
|
||||
|
||||
// Upate informations from remaining stages.
|
||||
// Update information from remaining stages.
|
||||
updateStages();
|
||||
|
||||
return bRet;
|
||||
|
@ -5345,7 +5345,7 @@ void CCharacterCL::applyAllStagesToFirstPos()
|
|||
else
|
||||
nlwarning("CH:applyAllStagesToFirstPos:%d: There is no stage with a position.", _Slot);
|
||||
|
||||
// Upate informations from remaining stages.
|
||||
// Upate information from remaining stages.
|
||||
updateStages();
|
||||
}// applyAllStagesToFirstPos //
|
||||
|
||||
|
@ -5451,7 +5451,7 @@ ADD_METHOD(void CCharacterCL::playToEndAnim(const double &startTimeOffset, doubl
|
|||
|
||||
//-----------------------------------------------
|
||||
// updateStages :
|
||||
// Call this method to give a time for each stage, compute distance to destination and some more informations.
|
||||
// Call this method to give a time for each stage, compute distance to destination and some more information.
|
||||
// \todo GUIGUI : clean up
|
||||
//-----------------------------------------------
|
||||
void CCharacterCL::updateStages()
|
||||
|
@ -5513,7 +5513,7 @@ void CCharacterCL::updateStages()
|
|||
}
|
||||
|
||||
|
||||
// ***** Compute Stages to give them a time and get some informations from those stages.
|
||||
// ***** Compute Stages to give them a time and get some information from those stages.
|
||||
// yoyo: use any stage with no LCT, until it is to be played AFTER a position
|
||||
bool stageForceLCTFound= false;
|
||||
CStageSet::TStageSet::iterator itTmp;
|
||||
|
@ -6836,7 +6836,7 @@ void CCharacterCL::updateAllPostRender()
|
|||
//-----------------------------------------------
|
||||
void CCharacterCL::processFrame(const TTime ¤tTimeInMs)
|
||||
{
|
||||
// Prepare stages and update informations from them.
|
||||
// Prepare stages and update information from them.
|
||||
updateStages();
|
||||
|
||||
// Compute the time remaining until frame completely processed.
|
||||
|
@ -8274,7 +8274,7 @@ void CCharacterCL::setAlive() // virtual
|
|||
|
||||
//---------------------------------------------------
|
||||
// displayDebug :
|
||||
// Display Debug Informations.
|
||||
// Display Debug Information.
|
||||
//---------------------------------------------------
|
||||
ADD_METHOD(void CCharacterCL::displayDebug(float x, float &y, float lineStep)) // virtual
|
||||
CInterfaceManager *IM = CInterfaceManager::getInstance ();
|
||||
|
|
|
@ -84,7 +84,7 @@ public:
|
|||
enum { MaxNumAura = 2 };
|
||||
enum TAtkHeight
|
||||
{
|
||||
AtkUnkownHeight = 0,
|
||||
AtkUnknownHeight = 0,
|
||||
AtkLow,
|
||||
AtkMiddle,
|
||||
AtkHigh
|
||||
|
@ -289,9 +289,9 @@ public:
|
|||
std::string currentAnimationSetName(TAnimationType animType) const;
|
||||
/// Change the entity colors.
|
||||
virtual void changeColors(sint userColor, sint hair, sint eyes, sint part);
|
||||
/// Display Debug Informations.
|
||||
/// Display Debug Information.
|
||||
virtual void displayDebug(float x, float &y, float lineStep);
|
||||
/// Display Debug Informations for property stages
|
||||
/// Display Debug Information for property stages
|
||||
virtual void displayDebugPropertyStages(float x, float &y, float lineStep);
|
||||
/// set the NameId for debug in local
|
||||
void debugSetNameId(uint32 nameId) {updateVisualPropertyName(0, nameId);}
|
||||
|
@ -899,7 +899,7 @@ protected:
|
|||
/// Play the time step for the loop and truncate to End Anim if Time Step too big.
|
||||
void playToEndAnim(const double &startTimeOffset, double &length);
|
||||
|
||||
/// Call this method to give a time for each stage, compute distance to destination and some more informations.
|
||||
/// Call this method to give a time for each stage, compute distance to destination and some more information.
|
||||
void updateStages();
|
||||
|
||||
/**
|
||||
|
|
|
@ -500,7 +500,7 @@ void CAutomatonListSheet::build(const NLGEORGES::UFormElm &rootList)
|
|||
string modeName = NLMISC::strlwr(MBEHAV::modeToString((MBEHAV::EMode)mode));
|
||||
// Compute the automaton name
|
||||
string filename = NLMISC::strlwr(automatonType) + "_" + modeName + ".automaton";
|
||||
// Push some informations
|
||||
// Push some information
|
||||
nlinfo("loading automaton '%s'.", filename.c_str());
|
||||
// Load the automaton's form.
|
||||
form = formLoader->loadForm(filename.c_str());
|
||||
|
|
|
@ -185,7 +185,7 @@ public:
|
|||
void serial(class NLMISC::IStream &f) throw(NLMISC::EStream);
|
||||
|
||||
/**
|
||||
* Return a pointer on the informations about the state corresponding to the key.
|
||||
* Return a pointer on the information about the state corresponding to the key.
|
||||
* \param key : state key.
|
||||
* \return CAutomatonStateSheet * : pointer on the state or 0.
|
||||
*/
|
||||
|
|
|
@ -87,7 +87,7 @@ public:
|
|||
* \param path the path textures should be retrieved from.
|
||||
* \param validExtensions an array of the valid bitmap files extensions.
|
||||
* \param numExtensions number of texture extensions in the array
|
||||
* \return true if all texture where added succesfully
|
||||
* \return true if all texture where added successfully
|
||||
*/
|
||||
bool addTexturesFromPath(const std::string &path,
|
||||
const char *validExtensions[] = _DefaultTextureExtension,
|
||||
|
@ -98,7 +98,7 @@ public:
|
|||
* \param instance the instance to change
|
||||
* \param slotID The slot to change
|
||||
* \param the value to assign to that slot
|
||||
* \return true if all slots where changed succesfully
|
||||
* \return true if all slots where changed successfully
|
||||
* NB : If you must activate a texture slot on an instance, you should do it before calling this method.
|
||||
*/
|
||||
bool setInstanceSlot(NL3D::UInstance instance, uint slotID, uint value) const;
|
||||
|
@ -107,7 +107,7 @@ public:
|
|||
* \param instance the instance to change
|
||||
* \param slotIDs An array of pairs (slotID, slotValue)
|
||||
* \param numValues Number of values in the array
|
||||
* \return true if all slots where changed succesfully
|
||||
* \return true if all slots where changed successfully
|
||||
* NB : If you must activate a texture slot on an instance, you should do it before calling this method.
|
||||
*/
|
||||
bool setInstanceSlot(NL3D::UInstance instance, TIntCouple *slotIDs, uint numValues) const;
|
||||
|
|
|
@ -601,7 +601,7 @@ NLMISC_COMMAND(dump, "Command to create a file with the current state of the cli
|
|||
return true;
|
||||
}
|
||||
|
||||
NLMISC_COMMAND(verbose, "Enable/Disable some Debug Informations", "none or magic")
|
||||
NLMISC_COMMAND(verbose, "Enable/Disable some Debug Information", "none or magic")
|
||||
{
|
||||
// Check parameters.
|
||||
if(args.size() != 1)
|
||||
|
@ -4901,7 +4901,7 @@ NLMISC_COMMAND(luaScript, "Execute a lua script", "direct_script_code")
|
|||
}
|
||||
}
|
||||
|
||||
NLMISC_COMMAND(luaInfo, "Dump some informations on LUA state", "detaillevel from 0 to 2")
|
||||
NLMISC_COMMAND(luaInfo, "Dump some information on LUA state", "detaillevel from 0 to 2")
|
||||
{
|
||||
CInterfaceManager *pIM= CInterfaceManager::getInstance();
|
||||
if(ClientCfg.AllowDebugLua)
|
||||
|
|
|
@ -2688,7 +2688,7 @@ class CAHScenarioControl : public IActionHandler
|
|||
}
|
||||
setScenarioInformation(scenarioWnd, "");
|
||||
|
||||
// hide description and informations?
|
||||
// hide description and information?
|
||||
result = scenarioWnd->findFromShortId(string("scenario_info_prop"));
|
||||
if(result)
|
||||
result->setActive(R2::getEditor().isInitialized());
|
||||
|
@ -2863,7 +2863,7 @@ class CAHScenarioInformation : public IActionHandler
|
|||
}
|
||||
}
|
||||
|
||||
// active description and informations
|
||||
// active description and information
|
||||
result = scenarioWnd->findFromShortId(string("scenario_info_prop"));
|
||||
if(result)
|
||||
result->setActive(true);
|
||||
|
|
|
@ -536,7 +536,7 @@ void CContinent::select(const CVectorD &pos, NLMISC::IProgressCallback &progress
|
|||
if(igZone == outpostZone)
|
||||
{
|
||||
nlctassert(RZ_MAX_BUILDING_PER_OUTPOST==4);
|
||||
// Check there is all informations in the IG for a ZC and initialize.
|
||||
// Check there is all information in the IG for a ZC and initialize.
|
||||
bool zcOK[RZ_MAX_BUILDING_PER_OUTPOST+1] = {false, false, false, false, false};
|
||||
UInstanceGroup *ig = igsWithNames[i].first;
|
||||
uint k;
|
||||
|
@ -564,7 +564,7 @@ void CContinent::select(const CVectorD &pos, NLMISC::IProgressCallback &progress
|
|||
}
|
||||
}
|
||||
|
||||
// There are not enough informations in the IG for ZC.
|
||||
// There are not enough information in the IG for ZC.
|
||||
for (k=0; k<RZ_MAX_BUILDING_PER_OUTPOST+1; k++)
|
||||
if (!zcOK[k])
|
||||
break;
|
||||
|
|
|
@ -99,7 +99,7 @@ bool VerboseVP = false;
|
|||
CLFECOMMON::TCLEntityId WatchedEntitySlot = CLFECOMMON::INVALID_SLOT;
|
||||
|
||||
|
||||
// To Display some Debug informations
|
||||
// To Display some Debug information
|
||||
uint32 Verbose = 0;
|
||||
|
||||
// Time in main loop
|
||||
|
@ -362,7 +362,7 @@ void displayStreamingDebug ()
|
|||
|
||||
// FPS and Ms per frame
|
||||
line = 0.99f;
|
||||
TextContext->printfAt(0.01f, line, "STREAMING INFORMATIONS");
|
||||
TextContext->printfAt(0.01f, line, "STREAMING INFORMATION");
|
||||
if(deltaTimeSmooth != 0.f)
|
||||
TextContext->printfAt(0.8f, line,"%.1f fps", 1.f/deltaTimeSmooth);
|
||||
else
|
||||
|
@ -519,7 +519,7 @@ string getDebugInformation()
|
|||
}
|
||||
else
|
||||
{
|
||||
str += "No user entity informations\n";
|
||||
str += "No user entity information\n";
|
||||
}
|
||||
|
||||
str += toString("ViewPosition: %.2f %.2f %.2f\n", View.viewPos().x, View.viewPos().y, View.viewPos().z);
|
||||
|
@ -634,7 +634,7 @@ void displayNetDebug ()
|
|||
TextContext->setHotSpot(UTextContext::BottomLeft);
|
||||
float xUser= 0.3f;
|
||||
float xWatched= 0.5f;
|
||||
// Display informations about the debug entity slot.
|
||||
// Display information about the debug entity slot.
|
||||
if(WatchedEntitySlot != CLFECOMMON::INVALID_SLOT)
|
||||
{
|
||||
line = 0.f;
|
||||
|
@ -645,7 +645,7 @@ void displayNetDebug ()
|
|||
if(watchedEntity)
|
||||
watchedEntity->displayDebugPropertyStages(xWatched, line, lineStep);
|
||||
}
|
||||
// Display informations about the user
|
||||
// Display information about the user
|
||||
if(UserEntity)
|
||||
{
|
||||
line = 0.f;
|
||||
|
|
|
@ -1462,7 +1462,7 @@ void CEntityManager::updatePostRender()
|
|||
//-----------------------------------------------
|
||||
void CEntityManager::updateVisualProperty(const NLMISC::TGameCycle &gameCycle, const uint &slot, const uint &prop, const NLMISC::TGameCycle &predictedInterval)
|
||||
{
|
||||
// INFO : log some debug informations about visual properties.
|
||||
// INFO : log some debug information about visual properties.
|
||||
if(verboseVP(NULL))
|
||||
nlinfo("EM:updateVP: received prop '%d' for the slot '%d'.", prop, slot);
|
||||
|
||||
|
@ -1476,7 +1476,7 @@ void CEntityManager::updateVisualProperty(const NLMISC::TGameCycle &gameCycle, c
|
|||
// Entity still not allocated -> backup values received for the entity.
|
||||
if(_Entities[slot] == 0)
|
||||
{
|
||||
// INFO : log some debug informations about visual properties.
|
||||
// INFO : log some debug information about visual properties.
|
||||
if(verboseVP(NULL))
|
||||
nlinfo("EM:updateVP: backup the property as long as the entity is not allocated.", prop, slot);
|
||||
|
||||
|
|
|
@ -236,7 +236,7 @@ void CEntityAnimationManager::load(NLMISC::IProgressCallback &/* progress */, bo
|
|||
}
|
||||
}
|
||||
|
||||
// Flush debug informations
|
||||
// Flush debug information
|
||||
flushDebugStack("-- ANIMATIONS OTHER --");
|
||||
|
||||
// Stop to Log in the animation file.
|
||||
|
|
|
@ -197,8 +197,8 @@ public :
|
|||
void processLogic(const std::string &animListName, TAnimStateKey animationId, CAnimationTime startTimeOffset, CAnimationTime endTimeOffset, NL3D::UTrack *&soundTrack, std::vector<NL3D::CAnimationTime>& result);
|
||||
|
||||
|
||||
/** \name INFORMATIONS ABOUT ANIMATIONS
|
||||
* Methods to get informations about an animation.
|
||||
/** \name INFORMATION ABOUT ANIMATIONS
|
||||
* Methods to get information about an animation.
|
||||
*/
|
||||
//@{
|
||||
/**
|
||||
|
|
|
@ -2093,7 +2093,7 @@ void CEntityCL::setEntityName(const ucstring &name)
|
|||
|
||||
//---------------------------------------------------
|
||||
// displayDebug :
|
||||
// Display Debug Informations.
|
||||
// Display Debug Information.
|
||||
//---------------------------------------------------
|
||||
void CEntityCL::displayDebug(float x, float &y, float lineStep) // virtual
|
||||
{
|
||||
|
|
|
@ -602,9 +602,9 @@ public:
|
|||
|
||||
/// Change the entity colors.
|
||||
virtual void changeColors(sint /* userColor */, sint /* hair */, sint /* eyes */, sint /* part */) { }
|
||||
/// Display Debug Informations.
|
||||
/// Display Debug Information.
|
||||
virtual void displayDebug(float x, float &y, float lineStep);
|
||||
/// Display Debug Informations for property stages
|
||||
/// Display Debug Information for property stages
|
||||
virtual void displayDebugPropertyStages(float x, float &y, float lineStep);
|
||||
//@}
|
||||
|
||||
|
|
|
@ -413,7 +413,7 @@ string getVersionString (uint64 version)
|
|||
}
|
||||
|
||||
|
||||
string getSystemInformations()
|
||||
string getSystemInformation()
|
||||
{
|
||||
string s;
|
||||
s += "Memory: " + bytesToHumanReadable(CSystemInfo::availablePhysicalMemory()) + "/" + bytesToHumanReadable(CSystemInfo::totalPhysicalMemory()) + "\n";
|
||||
|
@ -452,7 +452,7 @@ string getSystemInformations()
|
|||
static string crashCallback()
|
||||
{
|
||||
string s = getDebugInformation();
|
||||
s += getSystemInformations();
|
||||
s += getSystemInformation();
|
||||
|
||||
#ifdef NL_OS_WINDOWS
|
||||
if (Driver)
|
||||
|
|
|
@ -2811,7 +2811,7 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText)
|
|||
// Display the ToolType required.
|
||||
strFindReplace(brickText, "%tool", CI18N::get("tool"+TOOL_TYPE::toString(pBR->FaberPlan.ToolType)));
|
||||
|
||||
// --- Display MP itempart informations
|
||||
// --- Display MP itempart information
|
||||
if(pBR->FaberPlan.ItemPartMps.empty())
|
||||
{
|
||||
strFindReplace(brickText, "%mpinfo", CI18N::get("uihelpMpNone"));
|
||||
|
@ -2832,7 +2832,7 @@ void getSabrinaBrickText(CSBrickSheet *pBR, ucstring &brickText)
|
|||
strFindReplace(brickText, "%mpinfo", mpInfo);
|
||||
}
|
||||
|
||||
// --- Display MP formula informations
|
||||
// --- Display MP formula information
|
||||
if(pBR->FaberPlan.FormulaMps.empty())
|
||||
{
|
||||
strFindReplace(brickText, "%mpformula", CI18N::get("uihelpMpNone"));
|
||||
|
@ -3664,7 +3664,7 @@ void updateStatReport ()
|
|||
|
||||
// ***************************************************************************
|
||||
|
||||
extern string getSystemInformations();
|
||||
extern string getSystemInformation();
|
||||
class CAHSendStatReport : public IActionHandler
|
||||
{
|
||||
public:
|
||||
|
@ -3674,7 +3674,7 @@ public:
|
|||
CInterfaceManager *pIM = CInterfaceManager::getInstance();
|
||||
pIM->displaySystemInfo(CI18N::get ("uiSendingStatReport"));
|
||||
string s = getDebugInformation();
|
||||
s += getSystemInformations();
|
||||
s += getSystemInformation();
|
||||
|
||||
string progname;
|
||||
char name[1024] = "";
|
||||
|
|
|
@ -947,7 +947,7 @@ void CChatGroupWindow::loadFreeTeller(NLMISC::IStream &f)
|
|||
|
||||
CGroupContainer *pGC = createFreeTeller(sTitle, "");
|
||||
|
||||
// With version 1 all tells are active because windows informations have "title based" ids and no "sID based".
|
||||
// With version 1 all tells are active because windows information have "title based" ids and no "sID based".
|
||||
if ((ver == 1) && (pGC != NULL))
|
||||
pGC->setActive(false);
|
||||
}
|
||||
|
|
|
@ -103,7 +103,7 @@ public:
|
|||
// Get the view text
|
||||
const CViewText *getViewText () const {return _ViewText;}
|
||||
|
||||
// Get the historic informations
|
||||
// Get the historic information
|
||||
sint32 getMaxHistoric() const {return _MaxHistoric;}
|
||||
sint32 getCurrentHistoricIndex () const {return _CurrentHistoricIndex;}
|
||||
void setCurrentHistoricIndex (sint32 index) {_CurrentHistoricIndex=index;}
|
||||
|
|
|
@ -91,7 +91,7 @@ string CGroupHTMLCS::home ()
|
|||
// ***************************************************************************
|
||||
|
||||
extern string getDebugInformation();
|
||||
extern string getSystemInformations();
|
||||
extern string getSystemInformation();
|
||||
|
||||
string convertToHTML (const string &s)
|
||||
{
|
||||
|
@ -118,7 +118,7 @@ string convertToHTML (const string &s)
|
|||
void CGroupHTMLCS::getParameters (std::vector<CParameter> ¶meters, bool encodeForUrl)
|
||||
{
|
||||
string s = getDebugInformation();
|
||||
s += getSystemInformations();
|
||||
s += getSystemInformation();
|
||||
|
||||
// For each line
|
||||
string::size_type startOfLine = 0;
|
||||
|
|
|
@ -38,14 +38,17 @@
|
|||
#include "nel/misc/big_file.h"
|
||||
#include "nel/misc/i18n.h"
|
||||
|
||||
#ifdef NL_OS_WINOWS
|
||||
#define NL_USE_SEVENZIP 1
|
||||
#endif
|
||||
|
||||
// 7 zip includes
|
||||
//extern "C"
|
||||
//{
|
||||
#include "seven_zip/7zCrc.h"
|
||||
#include "seven_zip/7zIn.h"
|
||||
#include "seven_zip/7zExtract.h"
|
||||
#include "seven_zip/LzmaDecode.h"
|
||||
//};
|
||||
#ifdef NL_USE_SEVENZIP
|
||||
#include "seven_zip/7zCrc.h"
|
||||
#include "seven_zip/7zIn.h"
|
||||
#include "seven_zip/7zExtract.h"
|
||||
#include "seven_zip/LzmaDecode.h"
|
||||
#endif
|
||||
|
||||
#include "game_share/bg_downloader_msg.h"
|
||||
|
||||
|
@ -137,8 +140,7 @@ struct EPatchDownloadException : public Exception
|
|||
|
||||
CPatchManager *CPatchManager::_Instance = NULL;
|
||||
|
||||
|
||||
|
||||
#ifdef NL_USE_SEVENZIP
|
||||
/// Input stream class for 7zip archive
|
||||
class CNel7ZipInStream : public _ISzInStream
|
||||
{
|
||||
|
@ -187,7 +189,7 @@ public:
|
|||
}
|
||||
}
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
// ****************************************************************************
|
||||
|
@ -1939,6 +1941,7 @@ void CPatchManager::getCorruptedFileInfo(const SFileToPatch &ftp, ucstring &sTra
|
|||
|
||||
bool CPatchManager::unpack7Zip(const std::string &sevenZipFile, const std::string &destFileName)
|
||||
{
|
||||
#ifdef NL_USE_SEVENZIP
|
||||
nlinfo("Uncompressing 7zip archive '%s' to '%s'",
|
||||
sevenZipFile.c_str(),
|
||||
destFileName.c_str());
|
||||
|
@ -2023,10 +2026,14 @@ bool CPatchManager::unpack7Zip(const std::string &sevenZipFile, const std::strin
|
|||
|
||||
// ok, all is fine, file is unpacked
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
bool CPatchManager::unpackLZMA(const std::string &lzmaFile, const std::string &destFileName)
|
||||
{
|
||||
#ifdef NL_USE_SEVENZIP
|
||||
nldebug("unpackLZMA : decompression the lzma file '%s' into output file '%s", lzmaFile.c_str(), destFileName.c_str());
|
||||
CIFile inStream(lzmaFile);
|
||||
uint32 inSize = inStream.getFileSize();
|
||||
|
@ -2087,6 +2094,9 @@ bool CPatchManager::unpackLZMA(const std::string &lzmaFile, const std::string &d
|
|||
outStream.serialBuffer(outBuffer.get(), (uint)fileSize);
|
||||
|
||||
return true;
|
||||
#else
|
||||
return false;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
|
@ -3420,7 +3430,7 @@ void CInstallThread::run()
|
|||
std::string correct = CPath::standardizePath (patchPath + _Entries[first].PatchName, false);
|
||||
allowed.insert(correct);
|
||||
}
|
||||
// Delete file from tmp directory that are not "allowed" (torrent protocol can downlaod partial file that are not asked)
|
||||
// Delete file from tmp directory that are not "allowed" (torrent protocol can download partial file that are not asked)
|
||||
std::vector<std::string> vFiles;
|
||||
CPath::getPathContent(patchPath , true, false, true, vFiles);
|
||||
for (uint32 i = 0; i < vFiles.size(); ++i)
|
||||
|
|
|
@ -211,9 +211,8 @@ public:
|
|||
void deleteBatchFile();
|
||||
void reboot();
|
||||
|
||||
// TODO : Revoir ca pour la seconde partie ...
|
||||
// On a peut etre pas les informations de taille des patches ... voir avec daniel
|
||||
// pour l'instant c'est un fake qui retourne 1 !
|
||||
// TODO : modify it for the second part ...
|
||||
// Maybe we can't get patchs size ... currently, it only returns 1!
|
||||
|
||||
int getTotalFilesToGet();
|
||||
int getCurrentFilesToGet();
|
||||
|
|
|
@ -44,7 +44,7 @@ public:
|
|||
|
||||
|
||||
/** Notify the http logon server from the various step that have been reached in the client.
|
||||
* Php scripts on server side use these informations to collect statistics such as :
|
||||
* Php scripts on server side use these information to collect statistics such as :
|
||||
* - how many player manage to do a successful video driver initialization ?
|
||||
* - how many player did pass the login screen ?
|
||||
* - what is the mean loading time from character selection until in game ?
|
||||
|
@ -89,7 +89,7 @@ enum
|
|||
LoginStep_VideoModeSetupHighColor = 2000,
|
||||
LoginStep_LoginScreen = 3000,
|
||||
LoginStep_PostLogin = 4000,
|
||||
// following are not really part of the login, but are useful informations as well (TODO : find a better name for the class ...)
|
||||
// following are not really part of the login, but are useful information as well (TODO : find a better name for the class ...)
|
||||
LoginStep_CharacterSelection = 5000,
|
||||
LoginStep_InGameEntry = 6000,
|
||||
LoginStep_GameExit = 7000
|
||||
|
|
|
@ -426,9 +426,6 @@ void displayDebugUIUnderMouse();
|
|||
// Display an Help.
|
||||
void displayHelp();
|
||||
|
||||
// Draw a Bar to show when the user will be disconnected.
|
||||
void drawDisco();
|
||||
|
||||
//update the sound manager (listener pos, user walk/run sound...)
|
||||
void updateSound();
|
||||
|
||||
|
@ -2847,7 +2844,7 @@ bool mainLoop()
|
|||
if(UserEntity->sendToServer(out))
|
||||
NetMngr.push(out);
|
||||
}
|
||||
// Give informations to the server about the combat position (ability to strike).
|
||||
// Give information to the server about the combat position (ability to strike).
|
||||
{
|
||||
CBitMemStream out;
|
||||
if(UserEntity->msgForCombatPos(out))
|
||||
|
@ -3109,7 +3106,7 @@ void displayDebugFps()
|
|||
static NLMISC::CRefPtr<CInterfaceElement> HighlightedDebugUI;
|
||||
|
||||
// displayDebug :
|
||||
// Display informations about ui elements that are under the mouse
|
||||
// Display information about ui elements that are under the mouse
|
||||
//---------------------------------------------------
|
||||
void displayDebugUIUnderMouse()
|
||||
{
|
||||
|
@ -3357,14 +3354,14 @@ void displayDebug()
|
|||
// Now Displaying the selection.
|
||||
TextContext->printfAt(0.0f, line, "--*** Watched entity ***--");
|
||||
line -= lineStep;
|
||||
// Display informations about the debug entity slot.
|
||||
// Display information about the debug entity slot.
|
||||
if(WatchedEntitySlot != CLFECOMMON::INVALID_SLOT)
|
||||
{
|
||||
// Get a pointer on the target.
|
||||
CEntityCL *watchedEntity = EntitiesMngr.entity(WatchedEntitySlot);
|
||||
if(watchedEntity)
|
||||
{
|
||||
// Display Debug Informations about the Selection.
|
||||
// Display Debug Information about the Selection.
|
||||
watchedEntity->displayDebug(0.0f, line, -lineStep);
|
||||
|
||||
// Distance of the target
|
||||
|
@ -3392,7 +3389,7 @@ void displayDebug()
|
|||
line -= lineStep;
|
||||
TextContext->printfAt(0.0f, line, "Mem Used: %d",nMem);*/
|
||||
|
||||
// 3D Filters informations:
|
||||
// 3D Filters information:
|
||||
#ifdef _PROFILE_ON_
|
||||
line-= lineStep;
|
||||
TextContext->printfAt(0.0f, line, "3D Filters:");
|
||||
|
|
|
@ -93,7 +93,7 @@ CPlayerCL::CPlayerCL()
|
|||
_HairColor = 0;
|
||||
_EyesColor = 0;
|
||||
|
||||
// Not enough informations to display the player.
|
||||
// Not enough information to display the player.
|
||||
_WaitForAppearance = true;
|
||||
|
||||
_PlayerCLAsyncTextureLoading= false;
|
||||
|
@ -680,7 +680,7 @@ void CPlayerCL::updateVisualPropertyVpa(const NLMISC::TGameCycle &/* gameCycle *
|
|||
{
|
||||
CInterfaceManager *IM = CInterfaceManager::getInstance ();
|
||||
|
||||
// Player will now have enough informations to display the character.
|
||||
// Player will now have enough information to display the character.
|
||||
_WaitForAppearance = false;
|
||||
|
||||
// Get the property.
|
||||
|
@ -1223,7 +1223,7 @@ double CPlayerCL::getMaxSpeed() const// virtual
|
|||
|
||||
//---------------------------------------------------
|
||||
// displayDebug :
|
||||
// Display Debug Informations.
|
||||
// Display Debug Information.
|
||||
//---------------------------------------------------
|
||||
void CPlayerCL::displayDebug(float x, float &y, float lineStep) // virtual
|
||||
{
|
||||
|
|
|
@ -70,7 +70,7 @@ public:
|
|||
* Methods only here for the debug.
|
||||
*/
|
||||
//@{
|
||||
/// Display Debug Informations.
|
||||
/// Display Debug Information.
|
||||
virtual void displayDebug(float x, float &y, float lineStep);
|
||||
//@}
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ CPlayerR2CL::CPlayerR2CL()
|
|||
_HairColor = 0;
|
||||
_EyesColor = 0;
|
||||
|
||||
// Not enough informations to display the player.
|
||||
// Not enough information to display the player.
|
||||
_WaitForAppearance = true;
|
||||
|
||||
_PlayerCLAsyncTextureLoading= false;
|
||||
|
@ -431,7 +431,7 @@ void CPlayerR2CL::updateVisualPropertyVpa(const NLMISC::TGameCycle &/* gameCycle
|
|||
{
|
||||
CInterfaceManager *IM = CInterfaceManager::getInstance ();
|
||||
|
||||
// Player will now have enough informations to display the character.
|
||||
// Player will now have enough information to display the character.
|
||||
_WaitForAppearance = false;
|
||||
|
||||
// Get the property.
|
||||
|
@ -969,7 +969,7 @@ double CPlayerR2CL::getMaxSpeed() const// virtual
|
|||
|
||||
//---------------------------------------------------
|
||||
// displayDebug :
|
||||
// Display Debug Informations.
|
||||
// Display Debug Information.
|
||||
//---------------------------------------------------
|
||||
void CPlayerR2CL::displayDebug(float x, float &y, float lineStep) // virtual
|
||||
{
|
||||
|
|
|
@ -70,7 +70,7 @@ public:
|
|||
* Methods only here for the debug.
|
||||
*/
|
||||
//@{
|
||||
/// Display Debug Informations.
|
||||
/// Display Debug Information.
|
||||
virtual void displayDebug(float x, float &y, float lineStep);
|
||||
//@}
|
||||
|
||||
|
|
|
@ -525,7 +525,7 @@ CTool::TRayIntersectionType CTool::computeLandscapeRayIntersection(const CWorldV
|
|||
const CArray2D<sint16> &heightMap = getEditor().getIslandCollision().getHeightMap();
|
||||
if (!heightMap.empty())
|
||||
{
|
||||
// if heightmap is present, use it because it gives us more reliable informations
|
||||
// if heightmap is present, use it because it gives us more reliable information
|
||||
CVector surfPos;
|
||||
if (!computeNearestValidSurfaceFromHeightMap(inter.x, inter.y, surfPos)) return InvalidPacsPos;
|
||||
static volatile float threshold = 2.f;
|
||||
|
|
|
@ -627,7 +627,7 @@ void CSheetManager::loadAllSheet(NLMISC::IProgressCallback &callBack, bool updat
|
|||
callBack.progress (0);
|
||||
callBack.pushCropedValues (0, 0.5f);
|
||||
|
||||
// Get some informations from typ files.
|
||||
// Get some information from typ files.
|
||||
loadTyp();
|
||||
|
||||
// prepare a list of sheets extension to load.
|
||||
|
@ -970,7 +970,7 @@ CItemSheet *CSheetManager::getItem(SLOTTYPE::EVisualSlot slot, uint index)
|
|||
|
||||
//-----------------------------------------------
|
||||
// loadTyp :
|
||||
// Get Some informations from 'typ' files.
|
||||
// Get Some information from 'typ' files.
|
||||
//-----------------------------------------------
|
||||
void CSheetManager::loadTyp()
|
||||
{
|
||||
|
|
|
@ -356,7 +356,7 @@ void CStreamableIG::addLoadedIGToMap()
|
|||
if (!_IGMap) return;
|
||||
for(uint k = 0; k < _IGs.size(); ++k)
|
||||
{
|
||||
if (_IGs[k].IG && _IGs[k].IG != (NL3D::UInstanceGroup *)-1) // is this a succesfully loaded ig ?
|
||||
if (_IGs[k].IG && _IGs[k].IG != (NL3D::UInstanceGroup *)-1) // is this a successfully loaded ig ?
|
||||
{
|
||||
// insert the new ig if it hasn't before..
|
||||
if( _IGMap->insert(std::make_pair(NLMISC::strlwr(_IGs[k].Name), _IGs[k].IG)).second )
|
||||
|
@ -373,7 +373,7 @@ void CStreamableIG::removeLoadedIGFromMap()
|
|||
if (!_IGMap) return;
|
||||
for(uint k = 0; k < _IGs.size(); ++k)
|
||||
{
|
||||
if (_IGs[k].IG && _IGs[k].IG != (NL3D::UInstanceGroup *)-1) // is this a succesfully loaded ig ?
|
||||
if (_IGs[k].IG && _IGs[k].IG != (NL3D::UInstanceGroup *)-1) // is this a successfully loaded ig ?
|
||||
{
|
||||
TString2IG::iterator it = _IGMap->find(_IGs[k].Name);
|
||||
if (it != _IGMap->end())
|
||||
|
|
|
@ -166,14 +166,14 @@ void removePacket(uint8 numPacket)
|
|||
|
||||
//-----------------------------------------------
|
||||
// insertPacket :
|
||||
// Insert the packet received informations in a list.
|
||||
// Insert the packet received information in a list.
|
||||
//-----------------------------------------------
|
||||
void insertPacket(const CPacketInfos &packetInfos)
|
||||
{
|
||||
// Upadte the last packet received.
|
||||
LastPacketReceived = packetInfos.Num;
|
||||
|
||||
// Insert the packet informations.
|
||||
// Insert the packet information.
|
||||
PacketInfos.insert(make_pair(LastPacketReceived, packetInfos));
|
||||
|
||||
// Check Local Time Step with the new packet.
|
||||
|
|
|
@ -117,7 +117,7 @@ void insertPacketTime(uint8 numPacket, TTime time);
|
|||
void ackPacketTimeBefore(uint8 ackPacketNumber);
|
||||
|
||||
void removePacket(uint8 numPacket);
|
||||
/// Insert the packet received informations in a list.
|
||||
/// Insert the packet received information in a list.
|
||||
void insertPacket(const CPacketInfos &packetInfos);
|
||||
/// Return the sent time for a given packet or 0 if the packet is not found
|
||||
TTime getSentPacketTime(uint8 numPacket);
|
||||
|
|
|
@ -3578,7 +3578,7 @@ CCDBNodeBranch *CUserEntity::getBeastDBEntry( CLFECOMMON::TClientDataSetIndex ui
|
|||
|
||||
//---------------------------------------------------
|
||||
// displayDebug :
|
||||
// Display Debug Informations.
|
||||
// Display Debug Information.
|
||||
//---------------------------------------------------
|
||||
void CUserEntity::displayDebug(float x, float &y, float lineStep) // virtual
|
||||
{
|
||||
|
|
|
@ -344,7 +344,7 @@ public:
|
|||
* Methods only here for the debug.
|
||||
*/
|
||||
//@{
|
||||
/// Display Debug Informations.
|
||||
/// Display Debug Information.
|
||||
virtual void displayDebug(float x, float &y, float lineStep);
|
||||
//@}
|
||||
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
#include "data_set_base.h"
|
||||
#include <nel/georges/u_form_elm.h>
|
||||
|
||||
// Dependancy on NLNET::IService only for config file access for TDataSetSheet::getConfigDataSetSize()
|
||||
// Dependency on NLNET::IService only for config file access for TDataSetSheet::getConfigDataSetSize()
|
||||
#include <nel/net/service.h>
|
||||
#include "ryzom_entity_id.h"
|
||||
|
||||
|
|
|
@ -3601,7 +3601,7 @@ namespace RSMGR
|
|||
// get session info (anim)
|
||||
virtual void on_getSessionInfo(NLNET::TSockId from, uint32 charId, TSessionId sessionId) =0;
|
||||
|
||||
// Update the informations of a planned or running session
|
||||
// Update the information of a planned or running session
|
||||
// Return 'invokeResult' : 0 : ok, session updated
|
||||
// 1 : unknown character
|
||||
// 2 : unknown session
|
||||
|
@ -4012,7 +4012,7 @@ namespace RSMGR
|
|||
|
||||
_CallbackClient->send(message);
|
||||
}
|
||||
// Update the informations of a planned or running session
|
||||
// Update the information of a planned or running session
|
||||
// Return 'invokeResult' : 0 : ok, session updated
|
||||
// 1 : unknown character
|
||||
// 2 : unknown session
|
||||
|
|
|
@ -2483,7 +2483,7 @@ void CServerAnimationModule::addPioneer( TSessionId sessionId, TCharId charId)
|
|||
return;
|
||||
}
|
||||
getEditionModule()->updateCharPioneerRight(charId);
|
||||
// TODO send this informations only if client
|
||||
// TODO send this information only if client
|
||||
askMissionItemsDescription(*clientProxyPtr);
|
||||
askActPositionDescriptions(*clientProxyPtr);
|
||||
askUserTriggerDescriptions(*clientProxyPtr);
|
||||
|
|
|
@ -1928,7 +1928,7 @@ NLMISC_COMMAND(displayTarget,"display bot target status for given bot(s) or play
|
|||
|
||||
if (!found)
|
||||
{
|
||||
log.displayNL("=> can't display informations for the target of: %s", args[i].c_str());
|
||||
log.displayNL("=> can't display information for the target of: %s", args[i].c_str());
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue