EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
Thread Tools Search this Thread Display Modes
  #1  
Unread 05-13-2005, 03:10 AM
talenramel talenramel is offline
A Young Mystail Rat
 
Join Date: May 2005
Server: Antonia Bayle
Posts: 2
Default Is reading a file possible?

After searching and reading and questing to find the answer to this question, I remain ignorant, and so I ask:

Is it possible to read data from a file in the UI?

As in, a random file held in the eq2 folder (or any subfold as necessary). I'd like to parse the /log data and get mob hp's and have these displayable in the target window. It was my thought to just stick it all in a file and read the data from there. Possibly it might need to be in a .xml UI file or something?

I'm shooting in the dark. All the coding I've encountered with other MMO's has been script-based and the difference between those and EQ2 is throwing me something fierce.
Reply With Quote
  #2  
Unread 05-13-2005, 03:36 AM
Deathbane27's Avatar
Deathbane27 Deathbane27 is offline
aka Mook
This person is a EQ2Map developer.
Interface Author - Click to view interfaces
 
Join Date: Jul 2004
Server: Nektulos
Posts: 1,451
Default

You can read html/text files using the in-game HTML window.

-Have the log parser save to C:\Whatever.html
-In-game, type /show_window Inventory.HTML
-Enter C:\Whatever.html in the URL field. (Er... or did this not work? Running a webserver and going to http://127.0.0.1/whatever.html would work if nothing else.)

Whatever your log parser has written to the file will be displayed.

Getting the data to the target window, however, is another matter entirely. You can't copy anything via a script since it's loaded in a Page object. You'd have to type it in a textbox you added somewhere.
__________________
If it ain't broke, it needs more features!

Last edited by Deathbane27 : 05-13-2005 at 03:38 AM.
Reply With Quote
  #3  
Unread 05-13-2005, 06:23 AM
Zonx's Avatar
Zonx Zonx is offline
A Green Troll
This person is a EQ2Map developer.
Featured
 
Join Date: Dec 2004
Server: Blackburrow
Posts: 2,221
Default

c:\Whatever.html as a URL in the HTML window does work if the file exists, as does the http URL for a local webserver

You should be able to embed the log data into a textbox with a simple XML include. Considering how long the file is likely to get, anything other than a scrollable textbox is probably impracticle.

You can of corse pre-parse the data into an XML format for other types of display. For instance, its possible to build a Journal style colapsable tree view.

However, there isn't an easy way to do lookups across datasources. Showing details matching a selection in the tree view is a problem. Likewise, showing HPs for a targeted mob is a problem.
Reply With Quote
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 11:19 AM.


Our Network
EQInterface | EQ2Interface | WoWInterface | LoTROInterface | ESOUI | MMOUI