Register for your free account! | Forgot your password?

Go Back   elitepvpers › Popular Games › Silkroad Online
You last visited: Today at 20:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



SRO Source Code Core – Should I Make It Public?

Discussion on SRO Source Code Core – Should I Make It Public? within the Silkroad Online forum part of the Popular Games category.

Reply
 
Old   #1
 
mgunbatti's Avatar
 
elite*gold: 0
Join Date: Aug 2018
Posts: 61
Received Thanks: 45
Post SRO Source Code Core – Should I Make It Public?

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:

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);
}
Let me know what you guys think.
mgunbatti is online now  
Reply


Similar Threads Similar Threads
Problem mit make /make.sh core segmentation fault core dumped Bitte hilfe
09/09/2010 - Metin2 Private Server - 8 Replies
Hey Hab n kleines Problem, wenn ich make mache um die Quests όbernehmen zu lassen kommt folgender fehler: http://www.abload.de/img/fehlerservery5fp.jpg Was kann ich tun? LG Saaja



All times are GMT +1. The time now is 20:15.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.