Register for your free account! | Forgot your password?

Go Back   elitepvpers › Popular Games › Silkroad Online
You last visited: Today at 15:18

  • 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: 67
Received Thanks: 47
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 offline  
Old   #2
 
elite*gold: 350
Join Date: Nov 2013
Posts: 35
Received Thanks: 10
Dude, just make it opensource. Its a fcking old *** dead game. With AI there are tons of new things to come, you are not the only one working on files. Do not make a secret about it.
huweto is offline  
Old   #3
 
elite*gold: 0
Join Date: Jun 2022
Posts: 41
Received Thanks: 14
you really worrying about a game no one every heard of or plays ?
MultiplayerHDOTcom is offline  
Old   #4
 
silkroadbotter's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 457
Received Thanks: 207
many people are already working on vsro 188 and some rigid using AI so releasing or not its your choice.. so many people are already trying to sell the files and they just got AI to reverse them.. chinese guy on dc is trying to sell them and many open source projects working already using them as well.. i dont know why such an old game is so 'exclusive' and people think keeping the source is anything special.. if this community 10+ years ago worked together on open source projects it would not be so dead but this community only wants money and scam the little player base it has..

look at opensro from rptlee.. that project is doing great with many people working together..

tldr.. release them. help the community and stop the people scamming others for them..
silkroadbotter is offline  
Thanks
1 User
Old   #5
 
elite*gold: 0
Join Date: Mar 2009
Posts: 113
Received Thanks: 7
yes please 🙏
As a silkroad huge fan and software dev I would love to read and analyze it.
zlatan124 is offline  
Old   #6
 
mgunbatti's Avatar
 
elite*gold: 0
Join Date: Aug 2018
Posts: 67
Received Thanks: 47
Man, these replies are incredibly disappointing. Building a clean, stable core isn't just telling AI what to do. Stop speaking about things you clearly don't understand.

Now I see why developers keep their work private. Wish I'd never made this thread. Solid wake-up call.
mgunbatti is offline  
Old   #7
 
elite*gold: 0
Join Date: Jul 2024
Posts: 61
Received Thanks: 11
I believe the greatest benefit comes when everyone has access to such code. The release of these files is what made everything we see here possible over the years. Sooner or later, this material ends up being hacked, or whatever else might happen and then shared publicly anyway. This gives you the chance, like Cherno, to contribute a piece to history. Who knows what might develop from this over the coming years? (Translated with Google)
Fanal is offline  
Old   #8
 
WEXiT's Avatar
 
elite*gold: 78
Join Date: Dec 2016
Posts: 42
Received Thanks: 8
open source it so everybody can make a better game
WEXiT is offline  
Old   #9
 
reptilee's Avatar
 
elite*gold: 0
Join Date: Sep 2007
Posts: 474
Received Thanks: 719
Quote:
Originally Posted by mgunbatti View Post
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.
We reversed and ported all of this a while ago. Reinforce and berserk were worked out over the summer and have been on GitHub, completely free, since 27 September 2026: Go, from the v1.188 SR_GameServer and the v1.150 client, including every part your snippet redacts.

Alchemy / reinforce
CEnchant_Reinforce_ItemChance 0x505F00, _SuccessChance 0x506020, _Execute 0x506090, _ApplyFailure 0x506CE0
  • Chance clamp 10..100, the +5 destroy / curse branch, and the order Immortal, Steady, Astral and Lucky charges are spent:
  • Durability curse (stacks, clamped to 1..99):
  • Tests:

The 0x72FCC4 "truncation" detail
0x72FCC4 is an instruction inside mfunc_single_range's roll (vtable slot 2, 0x72FC60), the magic-option min..max roll. Same float32 rounding, same truncation, both values read unsigned:
Code:
value = min + trunc(float32(rand() / 32767.0) * (max - min))

Berserk
Formulae_CalculateBerserkPointGain 0x410880, grade getter 0x4C1C60, rand() % 10000 < uint16 at 0x593B4B
  • Level decay curve: 8%, minus 0.25% per level past 5 below you, floor 0.25%
  • Rarity low nibble: 3 / 8 = always 5 orbs, 4 = ×5, 6 = ×2, plus the crown buff's gain parameter
  • Tests:

Whole project:
reptilee is offline  
Thanks
6 Users
Old   #10
 
silkroadbotter's Avatar
 
elite*gold: 0
Join Date: Aug 2007
Posts: 457
Received Thanks: 207
Quote:
Originally Posted by mgunbatti View Post
Man, these replies are incredibly disappointing. Building a clean, stable core isn't just telling AI what to do. Stop speaking about things you clearly don't understand.
i think someone that says 'AI' instantly triggers you.. no post so far has been insulting.. everyone only has the source from AI so it will be brought up? and you know how many 'should i release' threads people make with no release?

Quote:
Originally Posted by mgunbatti View Post
Now I see why developers keep their work private. Wish I'd never made this thread. Solid wake-up call.
so annoyed over 3-4 posts.. every has been positive and you come up with this out of nowhere.. i think you read my post as negative too and i was just pointing out how it is..

Quote:
Originally Posted by reptilee View Post
We reversed and ported all of this a while ago. Reinforce and berserk were worked out over the summer and have been on GitHub, completely free, since 27 September 2026: Go, from the v1.188 SR_GameServer and the v1.150 client, including every part your snippet redacts.

Alchemy / reinforce
CEnchant_Reinforce_ItemChance 0x505F00, _SuccessChance 0x506020, _Execute 0x506090, _ApplyFailure 0x506CE0
  • Chance clamp 10..100, the +5 destroy / curse branch, and the order Immortal, Steady, Astral and Lucky charges are spent:
  • Durability curse (stacks, clamped to 1..99):
  • Tests:

The 0x72FCC4 "truncation" detail
0x72FCC4 is an instruction inside mfunc_single_range's roll (vtable slot 2, 0x72FC60), the magic-option min..max roll. Same float32 rounding, same truncation, both values read unsigned:
Code:
value = min + trunc(float32(rand() / 32767.0) * (max - min))

Berserk
Formulae_CalculateBerserkPointGain 0x410880, grade getter 0x4C1C60, rand() % 10000 < uint16 at 0x593B4B
  • Level decay curve: 8%, minus 0.25% per level past 5 below you, floor 0.25%
  • Rarity low nibble: 3 / 8 = always 5 orbs, 4 = ×5, 6 = ×2, plus the crown buff's gain parameter
  • Tests:

Whole project:
looks and works great.. keep it up reptilee.. i am out of silkroad scene for 10+ years now only checking scene and its good to see open source silkroad releases
silkroadbotter is offline  
Old   #11
 
mgunbatti's Avatar
 
elite*gold: 0
Join Date: Aug 2018
Posts: 67
Received Thanks: 47
First time hearing about your project, honestly. Putting the date in **bold** as if we copied something from you is pretty funny, though. Reversing the same v1.188 binary will naturally lead to the same addresses and formulas.

Either way, thanks for independently confirming our findings. Good luck with OpenSRO!
mgunbatti is offline  
Old   #12
 
elite*gold: 0
Join Date: Nov 2013
Posts: 144
Received Thanks: 29
Yes, I genuinely believe it should be made open source.

Nobody is questioning your technical expertise or the amount of work involved. However, rather than being so negative about AI and other people's approaches, I think you should adopt a more positive mindset and move with the times. AI doesn't replace expertise, but it opens up opportunities that simply didn't exist a few years ago.

The Silkroad community has suffered enough from secrecy, lack of collaboration and financial interests. Combining open source with AI could accelerate progress and give everyone the freedom to create their own experience, whether that means improving the original game, playing solo with AI-powered bots simulating real players, or simply enjoying a stable server with friends.

Of course, releasing your work is entirely your decision. But progress comes from collaboration, open-mindedness and innovation, not negativity.

After more than 20 years, perhaps it's time to build something together rather than constantly reinventing the wheel.
wxcxc is offline  
Old   #13
 
elite*gold: 0
Join Date: Nov 2011
Posts: 50
Received Thanks: 13
Quote:
Originally Posted by mgunbatti View Post
Man, these replies are incredibly disappointing. Building a clean, stable core isn't just telling AI what to do. Stop speaking about things you clearly don't understand.

Now I see why developers keep their work private. Wish I'd never made this thread. Solid wake-up call.
nobody gonna lick ur *** to release for cheap *** source u get from AI dont be retarted fatso if you need attention or love ask ur parents to pat your head instead of coming here
proasd is offline  
Old   #14
 
mgunbatti's Avatar
 
elite*gold: 0
Join Date: Aug 2018
Posts: 67
Received Thanks: 47
Quote:
Originally Posted by silkroadbotter View Post
i think someone that says 'AI' instantly triggers you.. no post so far has been insulting.. everyone only has the source from AI so it will be brought up? and you know how many 'should i release' threads people make with no release?



so annoyed over 3-4 posts.. every has been positive and you come up with this out of nowhere.. i think you read my post as negative too and i was just pointing out how it is..



looks and works great.. keep it up reptilee.. i am out of silkroad scene for 10+ years now only checking scene and its good to see open source silkroad releases
Take an objective look at these replies. People downplaying my work, mocking me for caring about a supposedly dead game, and even implying that I copied someone else's code.



Quote:
Originally Posted by wxcxc View Post
Yes, I genuinely believe it should be made open source.

Nobody is questioning your technical expertise or the amount of work involved. However, rather than being so negative about AI and other people's approaches, I think you should adopt a more positive mindset and move with the times. AI doesn't replace expertise, but it opens up opportunities that simply didn't exist a few years ago.

The Silkroad community has suffered enough from secrecy, lack of collaboration and financial interests. Combining open source with AI could accelerate progress and give everyone the freedom to create their own experience, whether that means improving the original game, playing solo with AI-powered bots simulating real players, or simply enjoying a stable server with friends.

Of course, releasing your work is entirely your decision. But progress comes from collaboration, open-mindedness and innovation, not negativity.

After more than 20 years, perhaps it's time to build something together rather than constantly reinventing the wheel.
Thanks, man. I really appreciate your comment. I've got nothing against AI or collaboration. It was just the dismissive and toxic attitude in some of the earlier replies that bothered me. Glad to see someone approaching this with respect.

Quote:
Originally Posted by proasd View Post
nobody gonna lick ur ass to release for cheap ass source u get from AI dont be retarted fatso if you need attention or love ask ur parents to pat your head instead of coming here
Thanks for proving my exact point in one comment. Have a good one.
mgunbatti is offline  
Thanks
1 User
Old   #15
 
ƛssman's Avatar
 
elite*gold: 123
Join Date: Sep 2014
Posts: 263
Received Thanks: 292
Quote:
Originally Posted by silkroadbotter View Post
many people are already working on vsro 188 and some rigid using AI so releasing or not its your choice.. so many people are already trying to sell the files and they just got AI to reverse them.. chinese guy on dc is trying to sell them and many open source projects working already using them as well.. i dont know why such an old game is so 'exclusive' and people think keeping the source is anything special.. if this community 10+ years ago worked together on open source projects it would not be so dead but this community only wants money and scam the little player base it has
Sadly, it's always been like this in the PSRO scene. No one shares **** apart from a few people. Even now, when they don't even write their own code, they're still trying to make a profit out of it and brag about their skills. Interestingly it's often those who ***** the most who know the least.
ƛssman is offline  
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 15:21.


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.