mirror of
https://github.com/UOX3DevTeam/UOX3
synced 2026-08-13 12:27:04 -04:00
Option to define how much memory JS engine should be allowed to allocate before last-ditch GC kicks in has been moved from engine.dat to a new UOX.INI setting under [server]. Note that too low values can lead to server instability, especially if doing a lot of JS engine reloads, so default value has been increased from 16 to 256 MB per JS Runtime: JSENGINESIZE=256 // gcMaxBytes limit in MB per JS Runtime. Must be between 16 and 4095 Reduced stackchunksize value provided for JS_NewContext from 0x500000 to the recommended default of 8192 Updated how players are paid for completing NPC escort quests; instead of hard-coded random amount between 0-600 gold, the reward is now based partly on the NPC escort's fame, and partly on the amount of gold the NPC is carrying. The formula for quest rewards thus look like this: rewardAmount = (( totalFame / 100 ) * 50 ) + ( totalGold * 0.25 ) Fixed healthbars of nearby characters not showing correctly for players who have just logged in. Cause seems to have been UOX3 reading more bytes from network buffer than required when (not) handling packets 0xB5 and 0xFB. Added basic handling of these packets to avoid that problem. Fixed an issue where UOX3 would send full status updates (packet 0x11) for each character on the screen, rather than just sending the minimum required for each character. Client doesn't need to know the weight of an NPC, or how much gold an opponent player is carrying! Fixed an issue with tooltips for characters and/or items not always appearing, caused by UOX3 not responding correctly to certain tooltip requests (packet 0xD6)
84 lines
No EOL
2.1 KiB
C++
84 lines
No EOL
2.1 KiB
C++
//o-----------------------------------------------------------------------------------------------o
|
|
//| File - cVersionClass.cpp
|
|
//| Date - 10/17/2002
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
//| Purpose - Handles version info for builds
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
#include <string>
|
|
#include "cVersionClass.h"
|
|
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
// product info
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
const std::string VER = "0.99";
|
|
const std::string BUILD = "4f";
|
|
const std::string REALBUILD = "0";
|
|
const std::string SVER = "2.0";
|
|
const std::string CVER = "2.0";
|
|
const std::string IVER = "2.0";
|
|
const std::string PRODUCT = "Ultima Offline eXperiment 3";
|
|
const std::string NAME = "UOX3";
|
|
const std::string EMAIL = "https://www.uox3.org/";
|
|
const std::string PROGRAMMERS = "Countless! See UOX3 Hall of Fame in documentation!";
|
|
|
|
//////////////////////////////////////////////////////////////////////
|
|
// Construction/Destruction
|
|
//////////////////////////////////////////////////////////////////////
|
|
CVersionClass::CVersionClass()
|
|
{
|
|
}
|
|
//o-----------------------------------------------------------------------------------------------o
|
|
CVersionClass::~CVersionClass()
|
|
{
|
|
|
|
}
|
|
|
|
std::string CVersionClass::GetVersion( void )
|
|
{
|
|
return VER;
|
|
}
|
|
|
|
std::string CVersionClass::GetBuild( void )
|
|
{
|
|
return BUILD;
|
|
}
|
|
|
|
std::string CVersionClass::GetRealBuild( void )
|
|
{
|
|
return REALBUILD;
|
|
}
|
|
|
|
std::string CVersionClass::GetScriptVersion( void )
|
|
{
|
|
return SVER;
|
|
}
|
|
|
|
std::string CVersionClass::GetCharacterVersion( void )
|
|
{
|
|
return CVER;
|
|
}
|
|
|
|
std::string CVersionClass::GetItemVersion( void )
|
|
{
|
|
return IVER;
|
|
}
|
|
|
|
std::string CVersionClass::GetProductName( void )
|
|
{
|
|
return PRODUCT;
|
|
}
|
|
|
|
std::string CVersionClass::GetName( void )
|
|
{
|
|
return NAME;
|
|
}
|
|
|
|
std::string CVersionClass::GetEmail( void )
|
|
{
|
|
return EMAIL;
|
|
}
|
|
|
|
std::string CVersionClass::GetProgrammers( void )
|
|
{
|
|
return PROGRAMMERS;
|
|
} |