EQ2Interface.com
Search Downloads


Go Back   EQ2Interface > Developer Discussion > UI Developer Discussion

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Unread 01-14-2008, 07:09 PM
Devilen Devilen is offline
A Forest Scavenger
 
Join Date: Aug 2007
Server: Antonia Bayle
Posts: 16
Default UI Possability?

Just wondering if this would be possable to do with the UI EQ2 Has.

The UI Add-on would be used to track things. Would you be able to have a db file and save to the XML File from ingame or no? I know you can have a XML file read the DB File.
Reply With Quote
  #2  
Unread 01-15-2008, 02:46 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

You can't save directly, however you can POST via the browser. The UI can't read the db in realtime however, only once per session.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #3  
Unread 01-15-2008, 10:03 AM
Devilen Devilen is offline
A Forest Scavenger
 
Join Date: Aug 2007
Server: Antonia Bayle
Posts: 16
Default

Ok that makes sence so in order to update it I would have to Reload the UI over and over again and that would get really tiring. If you dont mind me asking how do you post info through the browser? I looked with the Search button and couldnt find a thing I must be blind or something.
Reply With Quote
  #4  
Unread 01-15-2008, 06:42 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Basically what your browser does when you submit a web form. Google for HTTP POST if you want details.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #5  
Unread 01-17-2008, 06:31 PM
SOE-Rothgar SOE-Rothgar is offline
A Griffon
Yes this person is from Daybreak!
 
Join Date: Aug 2007
Server: Unrest
Posts: 208
Default

Quote:
Originally Posted by gm9 View Post
You can't save directly, however you can POST via the browser. The UI can't read the db in realtime however, only once per session.
I was actually discussing this with Aerilik last night. We were talking about creating a new window property that would flag a window as "Dynamic". This would mean that the client watches the xml file for changes, and when a change occurs, re-reads the file and updates the values of controls.

This would open the possibility to some cool new mods but I'd need to discuss it with our technical lead and producers to get the OK. We probably add some restrictions, like a minimum amount of time between updates, so if you spam the file with changes it wont bog down the client. Also, I don't think we'd want to support adding and removing of controls because that would mean a lot of extra work for the client every time the file changes. However, the ability to update text values or UIDataSources and have the controls reload that data would be really cool.
Reply With Quote
  #6  
Unread 01-17-2008, 06:36 PM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Sounds interesting. How about a special window then that can save to an xml file? So we can get rid of the clunky window settings dialog and start saving mod configuration settings to .xml? Every modder here would love you for that.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.
Reply With Quote
  #7  
Unread 01-17-2008, 07:06 PM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

This would be great! I then could add a plugin to Henchman that would update guild DKP values and basically open up a ton of things I have wanted to add to my UI.
__________________
Landiin's EQ2MAP Updater Discussion Download
Reply With Quote
  #8  
Unread 01-17-2008, 08:27 PM
SOE-Rothgar SOE-Rothgar is offline
A Griffon
Yes this person is from Daybreak!
 
Join Date: Aug 2007
Server: Unrest
Posts: 208
Default

Quote:
Originally Posted by gm9 View Post
Sounds interesting. How about a special window then that can save to an xml file? So we can get rid of the clunky window settings dialog and start saving mod configuration settings to .xml? Every modder here would love you for that.
Thats a possibility too. If someone wants to write up some details on how they'd like to see it work, I'd love to take a look at it.
Reply With Quote
  #9  
Unread 01-17-2008, 11:20 PM
Drumstix42's Avatar
Drumstix42 Drumstix42 is offline
A Griffon
Featured
 
Join Date: Oct 2004
Server: Antonia Bayle
Posts: 3,287
Default

Something like EQ1 ini files is all ya need really. I've said it several times in the past. Why are the UI configurations saved as an unreadable compiled file? It makes it so hard to troubleshoot a broken UI setup without 1) going back to default layout or 2) having a saved, working backup.

With all the strange UI behavior, like chat tabs/channels, I think it would be so much easier for the customizers (us and everyone else) to setup things just how we want it
__________________
"I'm afraid you're guilty of thought-crime. Don't bother getting the door, we'll let ourselves in..."
<Donate to DrumsUI> < [DrumsUI] Updater > < [DrumsUI] Full Interface> < Drumstix42 on Twitch.tv
>
Reply With Quote
  #10  
Unread 01-18-2008, 04:23 AM
gm9 gm9 is offline
gm10-1
Premium Member
EQ2Interface Super Mod
Featured
 
Join Date: Feb 2006
Posts: 6,479
Default

Yes, that's another point, a readable uisettings.ini format would be great, even though I decoded much of the current format by now (the info is somewhere in Landiin's UI settings spy thread I think).

Quote:
Originally Posted by SOE-Rothgar View Post
Thats a possibility too. If someone wants to write up some details on how they'd like to see it work, I'd love to take a look at it.
I would basically like the possibility to store arbitrary information (mostly integers) to a file for window configuration. For example, currently in my ControlCenter window you can scale the target effect icons. I would like to be able to store that setting so I can restore it next time the user logs in.

There are two very easy ways to implement this:

  1. Since I don't assume that you will just give us the possibility to save to arbitrary files (for security reasons), maybe just give us the possibility to save to one specific file, eg. eq2ui_custom_settings.xml.

    The functionality would be very simple. We can load that file during runtime and make modifications via ui scripting just like we currently do. The only thing you would need to add is that we get the command /save_custom_settings (or something like that) and that will take the version of that xml which is in memory and write it to disk.

  2. The alternative implementation to that would be to have /save_uisettings also save changes made to windows via scripting. For example, if I set window size and position via a script it will not save unless I modify the window with the mouse first. If I could have the script modified settings saved via a script triggered /save_uisettings, then I could also store integer values by manipulating the size and location of elements.

And while you are taking wishes, fix the scripting engine to allow the handling of non-ascii characters, and give us dynamic data for raid wide impairments.
__________________
P R O F I T U I ∙ R E B O R N [Auto-Updater] | [Portal] | [F.A.Q.] | [Support Forums]
~ Retired ~
If it does not work, you likely installed it incorrectly. Always try a clean install before reporting bugs.

Last edited by gm9 : 01-18-2008 at 04:25 AM.
Reply With Quote
  #11  
Unread 01-18-2008, 08:41 AM
Landiin Landiin is offline
Slayer of clock cycles
This person is a EQ2Map developer.
Featured
 
Join Date: Nov 2004
Server: Oasis
Posts: 3,464
Default

Quote:
Originally Posted by SOE-Rothgar View Post
Thats a possibility too. If someone wants to write up some details on how they'd like to see it work, I'd love to take a look at it.
You would also need to add another property to UI objects. Something like SaveProperties or something. That way the client would know if you wanted to save this objects properties. Because not every object would need it's properties saved and you can't begin to guess what the modder wants.

I'd like to see the file laid out kind of like;

Code:
<CustomSave>
 <Window Name="window name" Top="1" Left="1" etc..>
  <SubObject Name="Object name" Top="1" left="1" etc../>
 </Window>
</CustomSave>
And please please please pass the value sent to Top, Left, Height and Width through a trunc function.... You don't have to change the way math is done just pass the values in these properties through a trunc function.. If you do this I am sure gm9 will give you his 1st born child.
__________________
Landiin's EQ2MAP Updater Discussion Download

Last edited by Landiin : 01-18-2008 at 09:37 AM.
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 01:36 PM.


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