Hey guys,
Some of you might know me from my damage formula thread. I've been working on reverse engineering the original SRO gameplay core and finally got it running in UE5.
Honestly though, after seeing those recent UE5 projects using my Blender plugin and how people reacted to them, I'm not even sure if sharing it was a good idea anymore.
Makes me wonder if open sourcing this core would just cause the exact same thing.
Should I go open source or keep it private?
Not selling anything or trying to promote a project here. Just want to hear what players and devs actually think before I decide.
I cut out the core math for now until I make up my mind, just posting a small snippet with the structure and real SR_GameServer offsets so people know it's legit:
Let me know what you guys think.
Some of you might know me from my damage formula thread. I've been working on reverse engineering the original SRO gameplay core and finally got it running in UE5.
Honestly though, after seeing those recent UE5 projects using my Blender plugin and how people reacted to them, I'm not even sure if sharing it was a good idea anymore.
Makes me wonder if open sourcing this core would just cause the exact same thing.
Should I go open source or keep it private?
Not selling anything or trying to promote a project here. Just want to hear what players and devs actually think before I decide.
I cut out the core math for now until I make up my mind, just posting a small snippet with the structure and real SR_GameServer offsets so people know it's legit:
Code:
// ============================================================================
// Silkroad Gameplay Core (UE5 C++ Port - vSRO 1.188 SR_GameServer Parity)
// Verified native entrypoints:
// - Alchemy: 0x00505F00, 0x00506020, 0x00506090, 0x00506CE0, 0x0072FCC4
// - Berserk: 0x00410880, 0x004C1C60, caller 0x00593B4B
// - Status: 0x00410B40 (Ch 0..5 native ms-per-power scaling)
// ============================================================================
struct FAlchemyMaterial
{
int32 Id = 0;
bool bPowder = false;
uint32 Params[5] = {};
int32 Rate(int32 Plus) const;
bool Accepts(int32 Type3, int32 Degree) const;
};
struct FAlchemyResult
{
bool bSuccess = false;
bool bDestroyed = false;
FLocalItemMetadata Metadata;
int32 Chance = 0;
};
// Port of SR_GameServer 0x00505F00 / 0x00506020 / 0x00506090 / 0x00506CE0
int32 FAlchemyMaterial::Rate(int32 Plus) const
{
if (Plus < 0 || Plus >= 250) return 0;
// [REDACTED] Packed Param1..Param3 byte extraction per +tier
return /* ... */;
}
FAlchemyResult FAlchemyRules::Resolve(
const FLocalItemMetadata& Before, int32 Chance,
int32 SuccessSample, int32 FailureSample, int32 DurabilitySample,
bool bHasDurability, int32 PenaltyLow, int32 PenaltyHigh)
{
FAlchemyResult Out;
Out.Metadata = Before;
Out.Chance = FMath::Clamp(Chance, 10, 100);
Out.bSuccess = (SuccessSample % 100) < Out.Chance;
if (Out.bSuccess)
{
Out.Metadata.Plus = FMath::Min(250, Before.Plus + 1);
return Out;
}
// [REDACTED] +5 destroy/steady branch, Immortal/Astral consumption order
// Note: 0x0072FCC4 sets x87 truncation (0xC00) despite decompiler's ROUND label.
if (!Out.bDestroyed && bHasDurability)
{
// [REDACTED] Durability loss quantization matching 0x0072FCC4
}
return Out;
}
// Port of SR_GameServer 0x00410880; rank getter 0x004C1C60 masks the low nibble.
// Caller 0x00593B4B compares a 15-bit rand()%10000 draw strictly below low16.
int32 USourceBerserk::KillGainThreshold(int32 PlayerLevel, int32 MonsterLevel, uint8 Rarity, int32& OutOrbs)
{
const int32 LevelDiff = PlayerLevel - MonsterLevel;
OutOrbs = 1;
// [REDACTED] Level delta decay curve & rarity low-nibble (Rarity & 0x0F) multipliers
const int32 Threshold = /* ... */;
return static_cast<uint16>(Threshold);
}