|
Post by zeryl on Apr 8, 2009 22:54:19 GMT
I've started working on a replacement loot parser, to help index your bankchests. I know there are likely few issues (I've not tested it extensively, only tested with a couple chests), and it's not anywhere near user friendly or polished yet. I'm really looking to judge interest in this, to see if people find it useful or not. zeryl.mine.nu/test/nwn/lootparse.phpYou can find an example of what you need to paste into the box at zeryl.mine.nu/test/nwn/example.txtSource at zeryl.mine.nu/test/nwn/lootparse.php?sourceAgain, this is not finished, nor is it even polished, the core functionality is what I'm trying to test at this point, and to see if it's even worthwhile to continue to work on this. If you find any issues, or have suggestions on what you would like to see for output (the output now is pretty basic, it's not finished), please post them, and I'll do my best to incorporate anything I can.
|
|
|
Post by Balduvard on Apr 9, 2009 2:09:13 GMT
This has an interesting application for keeping track of items on your trade list (after a little find-replace for formatting). From the example:
|
|
|
Post by zeryl on Apr 10, 2009 20:59:10 GMT
Has anyone tried this yet? Looks like a couple have, so are there any suggestions, or issues with it so far?
I guess ideally, what I'd love to do eventually with it, is allow you to upload your log, and it spit back pre-bb-code formatted text, so that you can just copy+paste to keep your items updated (maybe some check-boxes to specify what to export)
|
|
|
Post by gollem9 on Apr 10, 2009 21:12:11 GMT
looks very sleek zeryl, Only 3 suggestions : 1) Might wanna allow for an extra column (NAME_OF_BANKCHEST) for finding purposes... 2 & 3 :both for dm's/acaos 2) might wanna try and see if acaos can add a new script that iterates over all your existing bankchests & lists em out? 3) Maybe DM/Acaos can extend the script to list out all items + on every line the TYPE of items. That should make it possible to sort/search on types of items. Is this going to be a thin - client app? (or is it just as prototype) Lol was busy on conceptual ideas for one of my own, but busy on something else
|
|
|
Post by mishimayukio on Apr 10, 2009 22:26:09 GMT
If you could set up the output to create bbcode-friendly text files, something like what Balduvard posted, this would be very valuable tool indeed.
|
|
|
Post by zeryl on Apr 10, 2009 23:03:23 GMT
looks very sleek zeryl, Only 3 suggestions : 1) Might wanna allow for an extra column (NAME_OF_BANKCHEST) for finding purposes... 2 & 3 :both for dm's/acaos 2) might wanna try and see if acaos can add a new script that iterates over all your existing bankchests & lists em out? 3) Maybe DM/Acaos can extend the script to list out all items + on every line the TYPE of items. That should make it possible to sort/search on types of items. Is this going to be a thin - client app? (or is it just as prototype) Lol was busy on conceptual ideas for one of my own, but busy on something else 1) The 2nd column is the chest name. I just so happen to have them called trade and armor. 2) I believe that in Syn's logger thread, there was discussion about the listing of bankchest items, and it wouldn't be possible. Unless something has changed recently ( Link) 3) Eventually I'd like to expand into an item database, and gotten the permission from Funky to do this, but it's going to be awhile. So if the script for listing the chest contents could be expanded, that would be quite a bit easier. As for thin-client, I will keep the source code open for whoever wants to use it, if they have their own server. The only down-side is that there really isn't a complete stand-alone operation for php, like there is for Python (I could always show how to create it, but for something that isn't real-time like a log parser, not so sure it's necessary). If you could set up the output to create bbcode-friendly text files, something like what Balduvard posted, this would be very valuable tool indeed. Will be done shortly. Should be easy enough to create a link to do the same output (or even include it on the page, after the current table, or in place of) Thank you for the feedback so far, and I look forward to anything else anyone has for feedback, good or bad. Edit: Yue's suggestion added. Now a check-box on the initial page to generate BBCode.
|
|
|
Post by mishimayukio on Apr 18, 2009 7:36:35 GMT
Much thanks for the addition, this parser saved me hours tonight.
|
|
|
Post by stonewarrior on Apr 18, 2009 15:01:02 GMT
This tool is positively amazing!!!
|
|
|
Post by StrykerOfChaos on Apr 18, 2009 15:36:10 GMT
Just wondering, but damage logs are read straight from the combat logs in-game to the program...is there a way to do this at all? Just transfer the data straight out instead of pull it from the logs ourselves?
Or am I confused as to how you use this?
|
|
|
Post by Yomi on Apr 18, 2009 17:50:17 GMT
A few ways this can be done.
1) Someone writes a script that runs on your local machine to parse the logs and generate the result, perhaps even put it into the clipboard if you want. This really isn't hard, other than dealing with where the logs live and the inevitable 1/10 people who have some crazy NWN setup that requires tweaking or can't figure out how to run a program. An advantage is you can tweak the output if you're programming inclined.
2) Put the same script on a web server, and put a form wrapper around it. That's what this tool does. Advantage is the interface is rather self-explanatory, there's nothing to run on your computer, and it's up to you to find the logs. Disadvantage is that it's more steps if you had #1 working for you.
3) Run it on the game server. Given a player name a relatively simple script could generate a formatted list of every item in every chest owned by the player. Heck, a little extra magic and you could have the inventory of all your toons also. OK.... But what exactly would be done with it? If made available online then everyone could see all your items. I doubt that would go over well. I've thought about writing this for quite some time, but the sticking point is always how to deliver it.
|
|
|
Post by zeryl on Apr 19, 2009 4:03:44 GMT
This goes along with the sending messages into HG from outside the game (there has been discussion previously).
Could it be done? Ya, probably pretty easily.
Could it be done safely, where you don't feel your information is at risk? Not easily.
Yomi's observations are dead on. Sure, if you wanted to do this on your computer, IM me. I'll walk you through it, without a problem. But be prepared to install Apache (or IIS), and PHP, and then edit the script to point to your Neverwinter NIghts directory (I guess that's not totally valid, I guess you could install PHP stand-alone, but the code would have to be slightly modified to support command line arguments).
The On-line method works fairly well, but if you would like to work on something more custom for you, certainly IM me, and I"ll do my best.
|
|
|
Post by Yomi on Apr 19, 2009 4:29:40 GMT
Sure, if you wanted to do this on your computer, IM me. I'll walk you through it, without a problem. But be prepared to install Apache (or IIS), and PHP, and then edit the script to point to your Neverwinter NIghts directory (I guess that's not totally valid, I guess you could install PHP stand-alone, but the code would have to be slightly modified to support command line arguments). I was thinking more of something like Perl, which is downloadable, or using a Perl compiler to generate a standalone exeutable like was done with YAL. After all if you can run YAL then you already have a Perl script doing stuff on your NWN log files.
|
|
|
Post by Chaos on Jul 17, 2009 20:44:12 GMT
How do you work this? Would like to use this instead of waste the time to write down everything. I get the BB code but don't know how you get the finished product to post into the bbcode to generate the table.
Any help for me? Anastasoulis
|
|