[Release] Leatty v159

Page 1 of 6 123456 LastLast
Results 1 to 15 of 90
  1. #1
    Valued Member nuclear898 is offline
    MemberRank
    Nov 2011 Join Date
    137Posts

    [Release] Leatty v159

    Some of you might have witnessed the drama that happened about a month ago regarding the leak of the Leatty source code. This was resolved quickly but it's been brought to my attention that one or more people are now trying to sell the source now.

    Don't buy it, it's a scam.

    The source is highly unfinished, only has very basic gameplay functions working and a lot of parts of the code are old, broken, or simply complete shit. Current public v144 sources have more functionality than this and would be a better investment of your time if you are planning to start a server with it.

    So in order to hopefully stop people being from being scammed I'm releasing the source here. Please don't waste your time trying to run a server with this, because like I said it's got barely anything working. I'm purely releasing it because people are trying to make money off of something that is not theirs and worth nothing.

    List of working stuff from the top of my head:
    • Movement
    • Monsters
    • Basic skills
    • Items and inventories
    • Leveling
    • C# Scripting engine
    • Chat



    Broken/uncoded stuff:
    • Guilds
    • Parties
    • Quests
    • Cheat tracker
    • Ban system
    • Lots of multiplayer packets
    • Pretty much everything else not mentioned




    Credits:
    Yaminike - Starting this project with me and doing all of the net & crypto code and much more
    Alonevampire - Developing for a while (where did ya go buddy :/ )
    angelsl and Retep998 - NX libraries
    Ragezone - getting me into maple dev, learning from public sources etc.

    https://github.com/nuclear898/LeattyServer
    Attached Files Attached Files
    Last edited by nuclear898; 26-04-15 at 02:41 PM.


  2. #2
    Member topkek is offline
    MemberRank
    Aug 2014 Join Date
    56Posts

    re: [Release] Leatty v159

    Cool stuff.
    If it's not too much of a bother, could you post it on github or something of the sort? It's much easier to browse it that way.

  3. #3
    Valued Member nuclear898 is offline
    MemberRank
    Nov 2011 Join Date
    137Posts

    re: [Release] Leatty v159

    Sure, added.

  4. #4
    unknowndog Mallissy is offline
    MemberRank
    May 2011 Join Date
    unknowndogLocation
    493Posts

    re: [Release] Leatty v159

    There are many useful things in here I've already adapted a few thanks for this ^~^

  5. #5
    Member TL Works is offline
    MemberRank
    Apr 2015 Join Date
    NetherlandsLocation
    52Posts

    re: [Release] Leatty v159

    Yeah I noticed Smile is selling those sources, you should watch out. He's a scammer.

    As for the source, it's missing the NX files.

    - - - Updated - - -

    And now that we're at it, he decided to upload it on here Removing this link
    Last edited by TL Works; 27-04-15 at 05:31 AM.

  6. #6
    Member insouciant is offline
    MemberRank
    Feb 2013 Join Date
    96Posts

    re: [Release] Leatty v159

    setup guide?

  7. #7
    Member TL Works is offline
    MemberRank
    Apr 2015 Join Date
    NetherlandsLocation
    52Posts

    re: [Release] Leatty v159

    It's no use, the client is missing DLL's.

  8. #8
    Proficient Member souravipc53 is offline
    MemberRank
    Dec 2011 Join Date
    159Posts

    re: [Release] Leatty v159

    what about this source smile posted a few days ago?

    http://www.mediafire.com/download/s5...43/MS.V160.rar

  9. #9
    Valued Member nuclear898 is offline
    MemberRank
    Nov 2011 Join Date
    137Posts

    re: [Release] Leatty v159

    Quote Originally Posted by souravipc53 View Post
    what about this source smile posted a few days ago?

    http://www.mediafire.com/download/s5...43/MS.V160.rar
    Basically the same execpt with some headers updated for v160 and one or two packet structures that gets you in-game. A lot of things broke with v160, and it doesn't have mapletalk, so it's in worse condition than v159.

  10. #10
    Apprentice VirusCoMz is offline
    MemberRank
    Jul 2010 Join Date
    9Posts

    re: [Release] Leatty v159

    @nuclear898 Where is LeattyScripts.dll ?

    How to create NPCscript ?

  11. #11
    Apprentice RomantiCs is offline
    MemberRank
    Oct 2008 Join Date
    19Posts

    re: [Release] Leatty v159

    It's don't have LeattyScripts.dll?
    How i can do write npc script or used this engine?

  12. #12
    Member TL Works is offline
    MemberRank
    Apr 2015 Join Date
    NetherlandsLocation
    52Posts

    re: [Release] Leatty v159

    Quote Originally Posted by VirusCoMz View Post
    @nuclear898 Where is LeattyScripts.dll ?

    How to create NPCscript ?
    You can't, simply because you're lacking the sufficient acknowledge required to even either run this source properly or even finish it at all.

    - - - Updated - - -
    Quote Originally Posted by RomantiCs View Post
    It's don't have LeattyScripts.dll?
    How i can do write npc script or used this engine?
    Because it either does not exist or wasn't "LEAKED". Your only option would be to either change the way it loads scripts into the source or create your own.

  13. #13
    is it friday yet Baha is offline
    MemberRank
    Apr 2009 Join Date
    The VoidLocation
    754Posts

    re: [Release] Leatty v159

    How would you connect locally?
    Last edited by Baha; 06-05-15 at 02:37 AM.

  14. #14
    Member kururulabo is offline
    MemberRank
    Jul 2013 Join Date
    ThailandLocation
    66Posts

    re: [Release] Leatty v159

    Well, Nice scripte engine forever(Personal opinions).
    It's can use all c# method, library, and easy customize. So can reload or edit while debuging / running server.
    (Personal opinions i give it 10/10 stars)



    PS. i updated to 161 and try only npc engine(Lazy update opcode / and packet strcuture)

  15. #15
    BloopBloop Hilia is offline
    MemberRank
    Aug 2012 Join Date
    905Posts

    re: [Release] Leatty v159

    Quote Originally Posted by kururulabo View Post
    Well, Nice scripte engine forever(Personal opinions).
    It's can use all c# method, library, and easy customize. So can reload or edit while debuging / running server.
    (Personal opinions i give it 10/10 stars)



    PS. i updated to 161 and try only npc engine(Lazy update opcode / and packet strcuture)

    The NPC is engine is the biggest crap in the whole source.
    So every time you type the !reloadNPC command , you are reloading all the scripts from the dll ,while the old ones did not get unloaded.

    Now consider this code:
    Code:
     const string scriptFile = ".\\Scripts\\LeattyScripts.dll";
                if (!File.Exists(scriptFile)) return 0;
                var bytes = File.ReadAllBytes(scriptFile);
                //Assembly scriptAssembly = Assembly.LoadFrom(scriptFile);
                Assembly scriptAssembly = Assembly.Load(bytes);
    What they did is that they called : " Assembly scriptAssembly = Assembly.Load(bytes);" Every time this method is called ALL the Assemblies in the "LeattyScript.dll" are re-loaded into the main AppDomain,while the old ones can't be unloaded, so every time you recompile the dll ,even if you didn't modified a NPC script, you are increasing your memory. (=memory leak)

    A way to reduce the memory increase is to only load the modified NPC-Scripts ,this can be done with: : "//Assembly scriptAssembly = Assembly.LoadFrom(scriptFile)"
    When Assembly.LoadFrom is called it will only load the not already in memory loaded Assemblies
    (aka the modified NPC scripts), however the problem with this method is , is that it locks the dll, ( so you can't replace the LeattyScript.dll with a modified version,) In other words: By using this method you reduce the memory leak, the problem is that you can't replace the dll, so it is not possible to modifier the NPC scripts at run-time (and that was the whole point of this design), ofcourse there are enough easy ways to bypass this lock, but that will still result into a memory leak (not as big as in the first implementation,but it is still a memory leak)

    A way to solve this memory leak is to load the scripts into a separated AppDomain and execute the NPC script into that separated AppDomain,however the problem with this is , that (at least in the implementation i used) it was kinda "slow" , by lack of interested in finding a good design for this i simply switched to an alternative,to make it possible to modifier the NPC's at run-time. (an example of a alternative is a Javascript or a lua wrapper,where as i am using lua)


    Last edited by Hilia; 03-05-15 at 05:29 PM.



Page 1 of 6 123456 LastLast

Advertisement