Locked Home » Forums » Legacy & Archived » Archived Content » Star Wars Galaxies » SWG Premium Discussions

text parser? : SWG Premium Discussions

Posted: September 22nd, 2008
exfelon
is there a way to parse text in star wars galaxies?
Posted: September 30th, 2008
User avatar
Total Posts:261 Joined:2008
there is always a way :p , infact.. many ways.

but on a more serious note, you will have to describe which text exactly you want to parse? and what do you want to do with the parsed text.

Example:

1)External process to monitor whispers or chat and respond to them.
2) A combat statistics application that creates advanced graphs/logs by implementing math and reading the damage types.
3) Parse the item descriptions and match them to a filter table and delete items that arent specified in the filter.
4) etc...etc..etc
Posted: September 30th, 2008
Total Posts:198 Joined:2007
evilfigment wrote:there is always a way :p , infact.. many ways.

but on a more serious note, you will have to describe which text exactly you want to parse? and what do you want to do with the parsed text.

Example:

1)External process to monitor whispers or chat and respond to them.
2) A combat statistics application that creates advanced graphs/logs by implementing math and reading the damage types.
3) Parse the item descriptions and match them to a filter table and delete items that arent specified in the filter.
4) etc...etc..etc
haha reminding me of something ;)
Posted: September 30th, 2008
Total Posts:139 Joined:2007
evilfigment wrote:there is always a way :p , infact.. many ways.

but on a more serious note, you will have to describe which text exactly you want to parse? and what do you want to do with the parsed text.

Example:

1)External process to monitor whispers or chat and respond to them.
2) A combat statistics application that creates advanced graphs/logs by implementing math and reading the damage types.
3) Parse the item descriptions and match them to a filter table and delete items that arent specified in the filter.
4) etc...etc..etc
A chat parser would be nice!
Posted: October 15th, 2008
exfelon
yes a chat parser was what i was looking for, all the info i need can be made to come through a chat channel. I'm looking for a way to command another account via /tell 's primarily. ie i send a /tell follow and dude follow me. /attack /heal etc...
Posted: March 10th, 2009
Total Posts:3 Joined:2007
evilfigment wrote:there is always a way :p , infact.. many ways.

but on a more serious note, you will have to describe which text exactly you want to parse? and what do you want to do with the parsed text.

Example:

1)External process to monitor whispers or chat and respond to them.
2) A combat statistics application that creates advanced graphs/logs by implementing math and reading the damage types.
3) Parse the item descriptions and match them to a filter table and delete items that arent specified in the filter.
4) etc...etc..etc
I'm very interested in item 3 in this list. Has anyone done any work on it? I would be willing to contribute if its incomplete.
Posted: August 18th, 2009
User avatar
Total Posts:11 Joined:2006
I'm looking too, for a chat text parser for my Ent buff bot.

I'm exploring several ideas but I haven't quite found what I need.

I'm thinking I might find something like a command line for zoned OCR software to extract the text from a screen shot ?

nvm, I found a better bot than mine here with a chatlog parser :-)

I still would like to find good zoned ocr software for a few other scripts I'd like to try out.
Posted: August 28th, 2009
User avatar
Total Posts:11 Joined:2006
To answer the OP, yes but it's not that nice.

You can access the Chatlog txt file. It's default locat is C:\Program Files\StarWarsGalaxies\profiles\[Account name]\[Server]\XXXXXXXXXXX_chatlog.txt (where X=:Digit:)

Problem is that SWG doesn't flush the buffers to the text file until it needs to.
The only way I've found to force the log to be written is to turn off the log.

It's hard on the PC and laggy but if you issue "/log" twice (once to turn it off and once to turn it back on) you can read and parse the chatlog.txt file.

Everytime you do this you will generate 2 extra lines and the file will grow very fast if your loop is on a short timer.

What I need is a hook into the Chat that would let me extract the text to a variable or write it to a file in real time.

Is Exhume still up and does it do this ?
Ready to join the community? Click here and see all of the benefits!
blue large dotWho is online
Users browsing this forum: No registered users and 4 guests
Locked