EQ2Interface

EQ2Interface (https://www.eq2interface.com/forums/index.php)
-   Beta (https://www.eq2interface.com/forums/forumdisplay.php?f=29)
-   -   UI Installer (https://www.eq2interface.com/forums/showthread.php?t=1883)

bderry71 03-21-2005 06:06 PM

UIInstaller/UISwitcher question?
 
Quote:

Originally Posted by ger
Submitted for download. Once it gets approved, please try to break this thing so I can make it better. I'm especially interested in comments on the status bar messages and the directions, although all bug reports/feature requests are welcome. (Enjoy the teaser screenshot while you wait for Dolby to aprove the download :D )

Will UIInstaller and UISwitcher be made to work from subfolders in the EQ2 folder. ie. C:Program Files\Sony\EverQuest II\UIInstaller or UISwitcher. I don't want to add to the clutter in the EverQuest II folder.

Thanks,
Ben

ger 03-21-2005 09:34 PM

Quote:

Originally Posted by bderry71
Will UIInstaller and UISwitcher be made to work from subfolders in the EQ2 folder. ie. C:Program Files\Sony\EverQuest II\UIInstaller or UISwitcher. I don't want to add to the clutter in the EverQuest II folder.

Thanks,
Ben

UIInstaller already works from anywhere. UISwitcher could be relatively easily changed to work from anywhere, but then I'd have to add a find button. ;) We'll see once I finish with the root autodetection code on UIInstaller.

Dolby 03-22-2005 12:22 AM

Suggestion, maybe add an installer for ui-installer. That way once the site integration happens people dont even have to know how to unzip something.

Also maybe add a "install as new" button and it will auto create the folder. Then a "install as addon/patch" and when you click that it will list their current interfaces so they can select where the addon/patch should go.

I can't seem to exit the program when scanning for my EQII folder. Also on my system it crashes after about 1min of scanning because EQII is on my 2nd HD.

Add a checkbox that says "make this my main interface" OR make it part of the "install as new" button and it will auto generate the eq2.ini or maybe merge the uiswitcher into this program?

Great work so far.

ger 03-22-2005 12:37 AM

Quote:

Originally Posted by Dolby
Suggestion, maybe add an installer for ui-installer. That way once the site integration happens people dont even have to know how to unzip something.

An installer is on the list for when I move from beta to release.

Quote:

Originally Posted by Dolby
Also maybe add a "install as new" button and it will auto create the folder. Then a "install as addon/patch" and when you click that it will list their current interfaces so they can select where the addon/patch should go.

I like the install new/install patch & add-on idea, I'll consider it.

Quote:

Originally Posted by Dolby
I can't seem to exit the program when scanning for my EQII folder. Also on my system it crashes after about 1min of scanning because EQII is on my 2nd HD.

That's odd. Does it display the folder it's scanning in the status bar? I've had it scanning up to 4 drives on my system, and granted it isn't speedy, but it doesn't crash. Any more info you can provide would be greatly appreciated.

Dolby 03-22-2005 12:38 AM

It displays the folders then after about 1min the uiinstaller window goes white.

ger 03-22-2005 12:47 AM

Quote:

Originally Posted by Dolby
It displays the folders then after about 1min the uiinstaller window goes white.

Yeah, it will do that occassionally. Unfortunately, it has to do with how fast UIInstaller scans directories, how many directories it's scanning at any given time, and how fast Windows/.NET can update a window.

I'll try to give a brief rundown of how the find function works so this makes more sense. Find starts with a list of every possible drive and scans to see which ones exist. Once it knows which drives exist it starts at the beginning of the alphabet and scans each drive one at a time. Now, this is where things get wacky. When scanning the individual directories it will look for EQ2.exe and if it finds it add the location to an array. Regardless of whether or not it finds it it will then launch a scan on every subdirectory in the directory it's looking in. It will continue doing that until it runs out of directories to look in, but that means that when you get to directories with a lot of subdirectories (basically, any Microsoft product) you end up with a lot of scans going on at once. While each scan in and of itself only takes a fraction of a second (think typing "dir EQ2.exe" on the command-line) having a couple hundred running at the same time can overload the refresh function.

Each directory that's scanned triggers not only the scan itself, but also a change of the status bar text box, and then an update of the status bar text box. Without forcing an update you wouldn't see any change in the status bar until the scan was complete, and by that time what's the point? So, combine looking through a couple hundred directories at the same time, with trying to change and redisplay a text box a couple hundred times in the same instant, and you end up with a white program window. But the program isn't locked or crashed at this point. It's still scanning and once it reaches the last subdirectory in the string it's working on it'll refresh the display.

The thing that has me wondering is why is it taking a full minute to scan your machine? On mine I routinely scan an 80GB primary HDD, 160GB secondary HDD (USB), a DVD-ROM, and an emulated DVD-ROM, and it never takes nearly that long, even if it does flip out and go white briefly.

Dolby 03-22-2005 01:22 AM

Ok I timed it, its about 10sec until it locks up. Feels like a minute in my little world. :)

taco-man 03-22-2005 01:49 AM

hey ger i would be happy to provide you the code i use for detecting, and setting the eq2 directory if you like, hit me up on aim tomorrow and i think i know an easy way to keep the window "alive" while its scanning for directories.

taco-man 03-22-2005 01:58 AM

Quote:

Originally Posted by Dolby
Ok I timed it, its about 10sec until it locks up. Feels like a minute in my little world. :)

I just grabbed it and told it to find my eq2 directory, its been white for over 5 minutes according to the stopwatch thing on my watch....i finnaly killed it, but i admit i have ALOT of files / folders on this computer(over 300GB) :) takes my anti virus more than an hour to do a full scan of all my files. :eek:

EDIT: well, after killing it and running it again it found it about 30 seconds after going white, maybe it was just a glitch???? but definately talk to me on aim tomorrow i think i know an easy way to keep it from going white.

ger 03-22-2005 02:35 AM

Quote:

Originally Posted by taco-man
I just grabbed it and told it to find my eq2 directory, its been white for over 5 minutes according to the stopwatch thing on my watch....i finnaly killed it, but i admit i have ALOT of files / folders on this computer(over 300GB) :) takes my anti virus more than an hour to do a full scan of all my files. :eek:

EDIT: well, after killing it and running it again it found it about 30 seconds after going white, maybe it was just a glitch???? but definately talk to me on aim tomorrow i think i know an easy way to keep it from going white.

Yeah, I know, grab it from HKLM\Software\Microsoft\Windows\CurrentVersion\AppPath\EverQuest2.exe ... but where's the fun in that? :) I'm considering switching to that method of grabbing the EQ2 folder name, but I need to check on TestCenter detection if I go with that method.

ger 03-22-2005 03:54 AM

Registry-based find version, with installer. Doesn't locate TestCenter installs anymore, couldn't find a regkey for that. /shrug I'll work on it more tomorrow.

Note: file is ZIP'd so I can attach it, otherwise it wouldn't be.

Edit: New version below.

taco-man 03-22-2005 09:32 AM

Quote:

Originally Posted by ger
Registry-based find version, with installer. Doesn't locate TestCenter installs anymore, couldn't find a regkey for that. /shrug I'll work on it more tomorrow.

Note: file is ZIP'd so I can attach it, otherwise it wouldn't be.

TestCenter, what is that?

Kosmos 03-22-2005 09:56 AM

I sorta got sucked into the game last night and didn't get to test this at all Ger. I'll give it a go tonight if I can.

bderry71 03-22-2005 11:12 AM

UIInstaller/UISwitcher question?
 
Quote:

Originally Posted by ger
Yeah, I know, grab it from HKLM\Software\Microsoft\Windows\CurrentVersion\AppPath\EverQuest2.exe ... but where's the fun in that? :) I'm considering switching to that method of grabbing the EQ2 folder name, but I need to check on TestCenter detection if I go with that method.

One way to detect Testserver is look for it in the default location under what the Registry tells you. As if that folder is not there they aren't useing it. And if it is there then it will automatically get the testeq2.exe and readme.txt to get the users started. If its' missing a UI folder under testserver then they are not useing it.

Ben

PS. When is UISwitcher going to support the folder? Just wondering. :)

taco-man 03-22-2005 04:15 PM

yea that would be simple to do all you would need would be something like
Code:

Imports System.IO

Public Class formname
    Public EQ2dir As String

    Private Sub CheckEQ2Path()
    If Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\App Paths\EverQuest2.exe", False) Is Nothing Then
                'open file browser dialog and have the user select thier EQ2 directory
                GetEQ2Path()
            Else
                'get the registry entry to the eq directory and set it equal to the EQ2dir variable
                Dim RegEQ2dir As Microsoft.Win32.RegistryKey = Microsoft.Win32.Registry.LocalMachine.OpenSubKey("Software\Microsoft\Windows\CurrentVersion\App Paths\EverQuest2.exe", False)
                Dim PossibleEQ2dir As String = RegEQ2dir.GetValue("Path").ToString
                'dlgEQ2Path is a simple dialog which asks if the path is correct and has a yes and no dialog button.
                Dim dlg As New dlgEQ2Path

                ' Show the dialog and determine if they confirmed it was or not
                Select Case dlg.ShowDialog
                    Case DialogResult.Yes
                        'MessageBox.Show(PossibleEQ2dir)
                        MainEQ2dir = PossibleEQ2dir
                    Case DialogResult.No
                        GetEQ2Path()
                End Select
                dlg.Dispose()
            End If

    If IO.Directory.Exists(EQ2Path & "\TestServer\UI\") = True Then
                'the user uses a test server ui
    End if
    End Sub

    Public Sub GetEQ2Path()
        Dim EQ2locate As New OpenFileDialog
        EQ2locate.Filter = "EverQuest2.exe|EverQuest2.exe"
        EQ2locate.Title = "Select Your EverQuest2.exe file"
        EQ2locate.CheckFileExists = True
        EQ2locate.CheckPathExists = True
        EQ2locate.InitialDirectory = "C:\Program Files\Sony\EverQuest II"
        Select Case EQ2locate.ShowDialog()
            Case DialogResult.OK
                EQ2dir = IO.Path.GetDirectoryName(EQ2locate.FileName)
            Case DialogResult.Cancel
                MessageBox.Show("EverQuest2.exe was not selected, program will now close.")
                Application.Exit()
        End Select
        EQ2locate.Dispose()
    End Sub

I tried to include the relevant code however i could have missed something.
i didnt bother including the dialog box form i made to ask yes or no, however you could even just use a default yes/no dialog box.

Kosmos 03-23-2005 10:01 AM

I used the UI Installer to install your newest bag mod. (Which I love the smaller ones)

The Setup Went well. I like having it install to its own directory.
- You may want to include a line that ask if it wants to create a shortcut, as well as put a listing in the startmenu.

I downloaded the the .ZIP file to the same directory as the UI Installer, Ger/UI Installer.

I then drag and dropped the mod onto the installer and selected the custom folder and did install, and got no errors. Except of course the overwright window shich I was expecting.

So it looks good!
I'm very curious to see how things go once its implemented with the website!

Kosmos 03-23-2005 07:10 PM

Ok, I used this as the last comment describes.

Tonight I did exactly the same steps to install the talyns mini-map mod, and when i draged and drop the file on the UI Installer it says


No Possible Root Folder Located, even though it ran succesfully yesterday.

All buttons were also disabled, so I was unable to do a find or anything.


I was also unable to navigate to the correct folder.

Laffs 03-23-2005 07:53 PM

Kosmos..... Shame on you stop breaking Ger's mods, I like trying to do that lol j/k :p

ger 03-23-2005 11:00 PM

Quote:

Originally Posted by Kosmos
Ok, I used this as the last comment describes.

Tonight I did exactly the same steps to install the talyns mini-map mod, and when i draged and drop the file on the UI Installer it says


No Possible Root Folder Located, even though it ran succesfully yesterday.

All buttons were also disabled, so I was unable to do a find or anything.


I was also unable to navigate to the correct folder.

Talyns' mini-map is an add-on to EQ2MAP and doesn't contain any standard EQ2 XML files in it, so the installer can't figure out where it's supposed to start installing. I still need to add the option to install anyway, just haven't gotten to it yet.

I have, however, gotten to fixing TestServer detection, adding autodetection at runtime if no folder was saved from the last session, and adding a restore file-type association pop-up.

When I implement Dolby's install as new/install as add-on suggestion I'll fix installation of add-on-only mods. (Hopefully sometime before the end of this coming weekend)

New version below.

ger 03-29-2005 11:59 PM

1 Attachment(s)
Updates:
* Added "Install as Add-on" button

Install as Add-on:
Install as Add-on will allow you to ignore the usual rules enforced by UIInstaller. It will not use any autodetected archive root information (i.e. the file is unzipped as it was zipped, including any empty/extraneous folders.) It will allow you to install to folders more than one level below UI (i.e. UI\Mods\eq2map.) It will allow you to install files with not enough or too many possible archive roots detected.

Once again, zipped because I can't attach exes.

Kosmos 03-30-2005 04:22 AM

Hey Ger!

Been using this a bit lately, as as of yet the only problem I've found has been the one with the zip package not being the right structure.

It's pretty handy! I keep all my zips that I download in the same directory
as the UI Installer.


Nice job! Thanks

forry 03-30-2005 04:39 AM

Suggestion
 
I'll admit right now that I did not read through every post on this subject, but I have a suggestion.

Ger...I see that you have Object Desktop and probably know about the optional program you can download that will let you view/download the different Window Blind skins found on the Wincustomize site. Would it be possible to make your UIinstaller do something similar? Then the user could just start up the program and actually just surf the different skins located on this site, find one they like, and just press a download button to have it installed. I'm guessing Dolby would also have to set something up on this end to work with the program.

I'm not sure of the name of the Object Desktop program (since I'm at work), but I can check when I get home. This is just a suggestion! I personally don't use that program anyway, but thought it may just make things a little easier for everyone else.

EDIT: Just forgot to say...Great job so far! Keep up the good work! :D

ger 03-30-2005 08:47 AM

Quote:

Originally Posted by forry
I'll admit right now that I did not read through every post on this subject, but I have a suggestion.

Ger...I see that you have Object Desktop and probably know about the optional program you can download that will let you view/download the different Window Blind skins found on the Wincustomize site. Would it be possible to make your UIinstaller do something similar? Then the user could just start up the program and actually just surf the different skins located on this site, find one they like, and just press a download button to have it installed. I'm guessing Dolby would also have to set something up on this end to work with the program.

I'm not sure of the name of the Object Desktop program (since I'm at work), but I can check when I get home. This is just a suggestion! I personally don't use that program anyway, but thought it may just make things a little easier for everyone else.

EDIT: Just forgot to say...Great job so far! Keep up the good work! :D

The other half of this program, UISwitcher, has a 'get more skins' button that links to EQ2Interface.com. EQ2Interface.com, in the Downloads CP, has an option to enable Auto-Install. Auto-Install will download an EQI file that will auto-open UIInstaller for installation. So, it's not exactly like WindowBlinds, but it's close. :D

gustyn 03-31-2005 03:04 PM

OK I have four computers running XPPro SP2 on three of them everytime I try to run this program, the UISwitcher, or the EQ2Map updater they crash with the following error before even starting up:

"The application failed to initialize properly (0xc0000135). Click OK to terminate the application"

They all work fine on the other machine though, and I did the same thing to install all of them.

Kosmos 03-31-2005 04:19 PM

Quote:

Originally Posted by gustyn
OK I have four computers running XPPro SP2 on three of them everytime I try to run this program, the UISwitcher, or the EQ2Map updater they crash with the following error before even starting up:

"The application failed to initialize properly (0xc0000135). Click OK to terminate the application"

They all work fine on the other machine though, and I did the same thing to install all of them.


Do you have Microsoft .NET framework 1.1 as the directions indicate you must have?

gustyn 04-05-2005 02:29 AM

Yeah, that was it thanks. Out of curiousity, what is it with .NET? I thought it was primarily for easing login onto various servers/systems. I don't install it unless I have to since I was concerned about security.

taco-man 04-05-2005 04:39 AM

.net is the same concept as java but from Microsoft. hope that makes sense to you, although it is used for servers...kinda (ASP.net) ASP.net is different from a program written in .net

hirebrand 05-07-2005 02:14 PM

Hey ger the buttons are messed up in 120 DPI. Any chance of a fix for those of us with bad eyes?

hirebrand 05-07-2005 02:28 PM

Some mods add lines for new windows into eq2ui_mainhud.xml, and other include files. Any chance the program could intelligently splice the new into the old? Maybe with a configuration file...

Example.. what if I want to install these two:

http://www.eq2interface.com/download...fo.php?id=3758

http://www.eq2interface.com/forums/s...9&postcount=29

ger 05-07-2005 04:51 PM

Quote:

Originally Posted by hirebrand
Some mods add lines for new windows into eq2ui_mainhud.xml, and other include files. Any chance the program could intelligently splice the new into the old? Maybe with a configuration file...

Example.. what if I want to install these two:

http://www.eq2interface.com/download...fo.php?id=3758

http://www.eq2interface.com/forums/s...9&postcount=29

That would be such an ungodly pain in the butt…no way I'm doing that. I'll see what I can find out about making it respect the DPI thing correctly, though.

ger 05-07-2005 05:36 PM

Quote:

Originally Posted by hirebrand
Hey ger the buttons are messed up in 120 DPI. Any chance of a fix for those of us with bad eyes?

Can you post a screenshot please? Just realized that the buttons are really all images, so I'm not sure what 120dpi even does to how the window looks.

firesparkz 09-14-2005 09:38 PM

UI Installer Beta
 
Sweet Work Ger.

Just what the UI Doc ordered.

Many peeps will be happy with this,

And for some of us,

Alot less time spent on IM walking peeps through installing a custom UI. :nana: :D

I know it's still in beta, so this is a future suggestion once your happy with final release, maybe some sort of arrangement can be made with the everyday modders to intergrate this with their mods (Maybe set a link to download this as well) and even further down the track the idea arises that maybe your Installer maybe able to have integrated COM routines to automatically download from a selected list of UIs, similiar to the way EQ2 Maps Autoupdater does. (Who knows just an idea / suggestion)

Anyway great work bud. Look forward to final release. :)

Will give it a test run now with Onxa's latest FN 4.5. ;)

Firesparkz Lava`Walker.

46 Templar of Najena


See I made a post in Onxa's Fetish UI forums, which in turn has turned out to be a good thing as now alot of peeps at least knows where he stands with his Fetish mod, hoping that it will inspire now others to create UI addons and the like. (Myself included now, :eek: lol )


All times are GMT -5. The time now is 04:18 AM.

vBulletin® - Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
© MMOUI