Nw-rom

Results 1 to 8 of 8
  1. #1
    Proficient Member Turmalin is offline
    MemberRank
    Jul 2014 Join Date
    168Posts

    Nw-rom

    Hi to all.
    Wanna to share new thing for fun - db editor(for 6.2-, latest versions can require structs changes), based on my previous C# editor and imported to node/nw.js.

    So, how it works?
    It supports not all, but not bad part of those *.db files. Entry point is views/index.js with following content:

    Code:
    var edge = require('edge');
    var data, _get, _set;
    
    
    (function(){    
        try{
            _get = edge.func("sharp/Edit.cs");        
            _set = edge.func("sharp/Edit.cs");
    
    
            var result=_call(_get, "questdetailobject");
    
    
            data=result;
            _modify(data);
    
    
            //var changed=_call(_set, "questdetailobject", result);
            console.log("Done");
        }
        catch(ex){
            console.log(ex);
        }
    })();
    
    
    
    
    function _modify(result){    
        /*for(var i in result){
            result[i].GUID=100000;
        }
        result.push(result[0]);
        console.log(result.length);*/
    }
    Part, which u need, are those _get and _set functions. First one would return content of your db file by it name(without .db, for ex., "questdetailobject"), second one would update existing table using changed data. For simplier usage u can use _call wrapper like it used in code.

    After u had execute this code, you can use data as usual array of objects directly from console(for nw.js) or just make modify/display logic inside file. For nw.js you can use jQuery as wrapper for some funny things like that:

    Code:
    $(data).filter(function(index, x){
    return x.GUID>425000;
    }); //return array of objects with GUID > 425000

    Download url

    NW.js site: NW.js
    NW.js downloads: Index of /v0.12.3


    If you would have some errors with edge.js, try to rebuild it as described here: https://github.com/frankhale/nw-edge-example


  2. #2
    Account Upgraded | Title Enabled! Elssair is offline
    MemberRank
    Dec 2013 Join Date
    334Posts

    Re: Nw-rom

    Thanks @Turmalin but this and anthers posts (Node.js+frida sniffer,*db editor) for me are three understanding things :(. If you can make a tuto for how to compile this, will be very gratefull.

    Regards,
    Elssair.
    Last edited by Elssair; 22-11-15 at 06:14 PM.

  3. #3
    Proficient Member Turmalin is offline
    MemberRank
    Jul 2014 Join Date
    168Posts

    Re: Nw-rom

    Hi.
    No need to compile it, it's enough to download nw.js and type "nw ." in commandline from project folder.
    If you have more questions, ask at skype.

  4. #4
    Proficient Member Turmalin is offline
    MemberRank
    Jul 2014 Join Date
    168Posts

    Re: Nw-rom

    Did you get it work?

  5. #5
    Account Upgraded | Title Enabled! Elssair is offline
    MemberRank
    Dec 2013 Join Date
    334Posts

    Re: Nw-rom

    Sorry but I don't know what I can do with this tools for my 6.0.7 server :(.

  6. #6
    Proficient Member Turmalin is offline
    MemberRank
    Jul 2014 Join Date
    168Posts

    Re: Nw-rom

    Modify *.db?)

  7. #7
    Novice Surtly1948 is offline
    MemberRank
    Nov 2015 Join Date
    1Posts

    Re: Nw-rom

    Would be nice if you can prepare some of easy tutorials to your projects like with examples how some things work in exacly usefull files etc.
    Sadly not all of us understand, tkanks for your effort.

  8. #8
    Proficient Member Turmalin is offline
    MemberRank
    Jul 2014 Join Date
    168Posts

    Re: Nw-rom

    Those editors usually require some knowledges in used languages. Also, there is example in first post. You get array of objects, what you need to do with it - it's only your choice, but you would need to have some knowledges of JS to do it.



Advertisement