Hack the planet, err I mean Proto! Hack the Proto.

Discussion in 'Negative Energy Plane' started by Nomad_Wanderer, Sep 25, 2003.

Remove all ads!
  1. Nomad_Wanderer

    Nomad_Wanderer Established Member Veteran

    Joined:
    Sep 25, 2003
    Messages:
    305
    Likes Received:
    0
    Yep, That's my point about we should be releasing a combined patch ourselves...

    (that combines both all of the changes from each person working on the proto, and all of the other changes to ToEE as a whole (spells, dialogs, etc).)
     
  2. Bentagon

    Bentagon Member

    Joined:
    Sep 25, 2003
    Messages:
    1
    Likes Received:
    0
    Could someone make the protos.tab file available for download please? I think I have a db here at work I could get to import all the fields and possibly dump back into Excel format.
     
  3. Vaevictis666

    Vaevictis666 Established Member

    Joined:
    Sep 25, 2003
    Messages:
    114
    Likes Received:
    0
    I have a bit of an app started in VB.NET that loads the file into a 2d array, spits out stuff to the dialog window, and can write it back to the file. I've sorted it by ID (which has the effect of clumping all the categories together) and my next step is to do a switch on the category and display info. I won't display everything, just the values that are used by items in the category.

    If all goes well I should even be able to allow edits from within the prog and then we'll be set.

    Also it should be trivial to save a file with differences between the records, so we can get smaller diff files to transfer about that one can merge locally.

    I'm at work right now so can't put much into it, but once I have it split up the file by category and display contents intelligently into a text box I'll post it as v 0.1.

    Also, if anyone out there that has VB.Net experience knows how to programmatically alter the contents of a DataGrid object at run-time, please let me know as that would ease editing a LOT.
     
  4. Nomad_Wanderer

    Nomad_Wanderer Established Member Veteran

    Joined:
    Sep 25, 2003
    Messages:
    305
    Likes Received:
    0
    The problem is with excel...

    It can't have more than 255 columns in a single worksheet..

    I think probably it's best to use a multi-worksheet version (Kobayashi still hasn't shared his. :) ) to learn about the file plan your edits, and then make the edits directly to the proto.tab file.


    Unless anyone knows of a way to take multiple excel worksheets and turn them into a single proto.tab file.
     
  5. Nomad_Wanderer

    Nomad_Wanderer Established Member Veteran

    Joined:
    Sep 25, 2003
    Messages:
    305
    Likes Received:
    0

    Sorry my VB experience ended right around the time 6.0 came out.. :)
     
  6. Zane

    Zane Member

    Joined:
    Sep 25, 2003
    Messages:
    16
    Likes Received:
    0
    Drew up a quick .tab viewer, nothing proto.tab specific in it and you can't edit/save. Not trying to step on Vaevictus' toes here and I'm pretty much done I think. You'll have to wait on his editor if you want more. :)

    http://www.killeverything.com/files/ToEETabEdit.rar

    You'll need the .NET Framework installed, it's in C#.

    -Zane
     
  7. Chris Woods

    Chris Woods Member

    Joined:
    Sep 25, 2003
    Messages:
    48
    Likes Received:
    0
    Field56: Link to index value in descriptions.tab for display name when item is unidentified.

    Chris Woods
     
  8. Vaevictis666

    Vaevictis666 Established Member

    Joined:
    Sep 25, 2003
    Messages:
    114
    Likes Received:
    0
    REJOICE!

    First version of the proto viewer is up and running.

    Requires the .NET Framework (probably 1.1) from microsoft, sorry.

    http://www3.telus.net/vaevictis666/toee/ProtoEd.exe

    There's no error checking at the moment, so if it crashes tough :)

    Modify the text string at the top so it can find the protos.tab file, then hit load. It sorts by category, then by ID, and displays the nonempty items from the list.

    View only now, if you can get indexes correlated to what they do (I think I have a couple) post below and I'll add them in. I'll make it read the data from a file this evening so I don't need to keep recompiling :)

    Only other thing to note is that the other list out there differs on indexing by 1 with mine. I'll make a change later to bring them both into base 1 indexing rather than mine being base 0.

    Comments welcome :)
     
  9. Kentamanos

    Kentamanos Member

    Joined:
    Sep 25, 2003
    Messages:
    36
    Likes Received:
    0
    Glad to see I won't be the only guy writing stuff in .NET. I hate requiring people to download runtimes to run things, but it's just such a sweet development environment.

    I'll check it out when I get home in a bit, but I'm sure this will help quite a bit. Add it to the tools post at the top of the page BTW.
     
  10. Zane

    Zane Member

    Joined:
    Sep 25, 2003
    Messages:
    16
    Likes Received:
    0
    Nice work Vaevictis666. :beer:
     
  11. Vaevictis666

    Vaevictis666 Established Member

    Joined:
    Sep 25, 2003
    Messages:
    114
    Likes Received:
    0
    Except that it's still kinda sorta buggy :) I think I've ironed out most of the bugs, I'll upload a new copy in a bit with some more stuff in the description panel, but that still isn't externalized. Yeah I'm lazy :p

    Thanks for encouragement though. :D
     
  12. PlatinumWeaver

    PlatinumWeaver Member

    Joined:
    Sep 25, 2003
    Messages:
    44
    Likes Received:
    0
    Very very cool..

    Next revision it might be nice if we can point the program at a specific file rather than having to input the address, but damn, this makes looking through the file so much easier...

    My 'Asian' Hat is off to you..
     
  13. Zane

    Zane Member

    Joined:
    Sep 25, 2003
    Messages:
    16
    Likes Received:
    0
    Probably no more buggy than the crap I posted above. :) Would've been nice to see a OpenFileDialog instead of the text field for the pointer to the proto.tab but I'll survive untill it's prettied up. Didn't mess with it much but the only bug I've run into so far was trying to load a non-existant file causes an exception.

    Still more usefull than what I posted.

    -Zane
     
  14. PlatinumWeaver

    PlatinumWeaver Member

    Joined:
    Sep 25, 2003
    Messages:
    44
    Likes Received:
    0
    Just noticed you said it's a little big buggy.. it seems that it's putting entries under the wrong catagory in the version i've got.. like 4006 which is a weapon is classed as a container in the program...
     
  15. Vaevictis666

    Vaevictis666 Established Member

    Joined:
    Sep 25, 2003
    Messages:
    114
    Likes Received:
    0
    Yep. This is what happens when you have a data array and sort it without sorting the associated index array. Note that the categories are sorted by name, while the sub-entries got stuck into them in numeric order :p

    And yes, this has been fixed.
     
Our Host!