Jump to content
TrinityCore

darki73

Members
  • Posts

    267
  • Joined

  • Days Won

    17

Posts posted by darki73

  1. Don't think that quest part is implemented in Trinity, since they do rely on the "blizzlike" implementation, and Classic WoW wasn't around for a "couple" of years, maybe soon it will change since ppl will be able to provide sniffs from the official Classic servers.

    As for the achievements, whenever you use the /gm on command, no achievements will be awarded to you, if you get for example Invincible and use it without the /gm on then you will get achievement.

  2. 9 hours ago, CDawg said:

    WDBXEditor was created by barncastle to be compatible with every revision ;).

    Personally, it is my favorite, especially when you need to dissect from different revisions with the project that I have been working on.

    @Daniel25 There is no need to compile, @CDawg just pointed you to the repo.

    Here is the direct link to the latest (17-08-2017) version of the compiled application from their "Releases" page - https://github.com/WowDevTools/WDBXEditor/releases/download/1.0.8/WDBX.Editor.zip

    Just keep in mind, it might take a minute to start up due to the "auto update" being broken (maybe fixed already), if you will see any errors after startup just ignore them (application cannot contact update server).

     

    P.S. Some of the db2 files do not contain "proper" column definitions (in WDBXEditor), so you might want to use https://github.com/TrinityCore/TrinityCore/blob/master/src/server/game/DataStores/DB2Structure.h for the reference of the column structure

    • Upvote 2
  3. They are trying to fix all the new issues with the core as well as the problem with balance arises with the new sets from ToS. As you can see from today's build, they've nerfed priests damage and buffed their intellect (I main priest, yes) in pvp. Just incremental builds for hotfixes

  4. Don't know if there are any updated tools for this matter, but what you can do is (with PHP):

    1. Read file as binary ('rb' option for fopen)
    2. Read first 4 bytes of the stream to find out which type of the file it is (WDB2, WDB5, etc)
    3. Unpack stream of bytes (according to order of bytes)
    4. Perform any necessary operations to get data from the file

    I've made a script for doing that, however, cant share it, since it depends on the other framework classes and methods, and obviously i cannot share the framework (for now).

    Can only give you the following part (these are the variables you will most likely need to work with)

     

    	    protected $wdbVersion           = 0;
    	    protected $isWDBC               = false;
    	    protected $idField              = 0;
    	    protected $idMap                = [];
    	    protected $headerFieldCount     = 0;
    	    protected $recordCount          = 0;
    	    protected $fieldCount           = 0;
    	    protected $recordSize           = 0;
    	    protected $stringBlockSize      = 0;
    	    protected $tableHash            = 0;
    	    protected $layoutHash           = 0;
    	    protected $build                = 0;
    	    protected $timestamp            = 0;
    	    protected $flags                = 0;
    	    protected $minId                = 0;
    	    protected $maxId                = 0;
    	    protected $locale               = 0;
    	    protected $commonBlockSize      = 0;
    	    protected $copyBlockSize        = 0;
    	    protected $headerSize           = 0;
    	    protected $headerFormat         = null;
    	    protected $preambleLength       = 0;
    	    protected $hasEmbeddedStrings   = false;
    	    protected $totalFieldCount      = 0;
    	    protected $hasIdBlock           = false;
    	    protected $hasIdsInIndexBlock   = false;
    	    protected $idBlockPosition      = 0;
    	    protected $indexBlockPosition   = 0;
    	    protected $commonBlockPosition  = 0;
    	    protected $stringBlockPosition  = 0;
    	    protected $copyBlockPosition    = 0;
    	    protected $endOfFile            = 0;
    	    protected $recordFormat         = [];
    	    protected $recordOffsets        = null;
    	    protected $commonLookup         = [];
     
    	
  5. I am checking against hashes which are made by the worldserver application.

    I've managed to get hash for battlenet_accounts with following function

    strtoupper(bin2hex(strrev(hex2bin(strtoupper(hash("sha256",strtoupper(hash("sha256", strtoupper($username)).":".strtoupper($password))))))));

    Now i have some thoughts about the account table... Will share if i will succeed

     

    • Upvote 1
  6. So i guess it is pretty obvious about what am i going to ask =)

    Problem is, previousle we could just sha1 username and password separated by colon and here is the sha_pass_hash.

    The problem i am facing right now, is that according to https://github.com/TrinityCore/TrinityCore/blob/86b98686a95e23247ecb774fb23ecd5b8d94b97b/src/server/game/Accounts/BattlenetAccountMgr.cpp#L177 Trinity now uses SHA256, so the hashes do not match anymore. The thing is, password length in database is 40 symbols (exactly as many as in sha1 hash), but sha256 hash length is 64 characters long. I am confused...

    I've tried to recreate whole "Cryptography" thing on PHP but, guess what, failed.

    Can somebody explain me how the password is generated nowadays?

    Thank you for your attention. 

  7. Just cloned repo and after compilation got this error:

    D:\Developer\ZeroMQ 4.0.4\bin\libzmq-v120-mt-4_0_4.dll : fatal error LNK1107: invalid or corrupt file: cannot read at location 0x2E0

    Here is CMAKE output

    Detected 32-bit platform
    MSVC: Enabled large address awareness
    MSVC: Enabled SSE2 support
    MSVC: Disabled Safe Exception Handlers for debug builds
    MSVC: Overloaded standard names
    MSVC: Disabled NON-SECURE warnings
    MSVC: Disabled POSIX warnings
    MSVC: Disabled generic compiletime warnings
    Found OpenSSL library: optimized;D:/Developer/OpenSSL-Win32/lib/VC/ssleay32MD.lib;D:/Developer/OpenSSL-Win32/lib/VC/libeay32MD.lib;debug;D:/Developer/OpenSSL-Win32/lib/VC/ssleay32MDd.lib;D:/Developer/OpenSSL-Win32/lib/VC/libeay32MDd.lib
    Found OpenSSL headers: D:/Developer/OpenSSL-Win32/include
    Found ZMQ library: D:/Developer/ZeroMQ 4.0.4/bin/libzmq-v120-mt-4_0_4.dll
    Found ZMQ headers: D:/Developer/ZeroMQ 4.0.4/include
    Boost version: 1.57.0
    Found the following Boost libraries:
    system
    filesystem
    thread
    program_options
    iostreams
    Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM
    Performing Test boost_filesystem_copy_links_without_NO_SCOPED_ENUM - Success
    Found MySQL library: D:/Developer/mysql_lib/lib_32/libmysql.lib
    Found MySQL headers: D:/Developer/mysql_lib/include
    Found MySQL executable: C:/Program Files/MySQL/MySQL Server 5.6/bin/mysql.exe
    Found git binary : C:/Program Files (x86)/Git/cmd/git.exe
    
    * TrinityCore revision : b78921de84e1+ 2015-08-10 18:36:17 +0200 (6.x branch)
    
    * Install core to : C:/Program Files (x86)/TrinityCore
    
    * Build world/auth : Yes (default)
    * Build with scripts : Yes (default)
    * Build map/vmap tools : Yes
    * Build core w/PCH : Yes (default)
    * Build scripts w/PCH : Yes (default)
    * Show compile-warnings : No (default)
    * Use coreside debug : No (default)
    * Show source tree : No (default)
    * Use GIT revision hash : Yes
    
    SCRIPT PREPARATIONS
    -> Prepared: Spells
    -> Prepared: Commands
    -> Prepared: Custom
    -> Prepared: World
    -> Prepared: Outdoor PVP Zones
    -> Prepared: Eastern Kingdoms
    -> Prepared: Kalimdor
    -> Prepared: Outland
    -> Prepared: Northrend
    -> Prepared: The Maelstrom
    -> Prepared: Events
    -> Prepared: Pet
    SCRIPT PREPARATION COMPLETE
    
    Configuring done

     

    I'm running latest Boost/ZMQ libraries (which are provided by tutorial), still getting this error on all Windows machines.

    Any help? Please?

     

    SORRY!

    i'm guess i'm somewhat retarded.... included dll instead of lib

×
×
  • Create New...