UniUploader 2.6.8 BETA 4 - PLEASE TEST

Support and feedback for UniUploader
UniUploader requires microsoft .net runtimes!

UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby MattM » Tue Sep 09, 2008 4:40 am

Important Notes:
Requires .NET Framework 2.0 or better (whereas was .NET 1.1 before the 2.6.8 beta series)

beta 4 changes:
added - forum/home URL context menu items (updated through UA)
changed - ss protocol now uploads the SVs with every step (so that addon update hooks in Roster will work) (UPLOADSVS is overridden, but had to be done unfortunately)

beta 3 changes:
Completely rewritten HTTP class
Screenshot Protocol
GUI changes
UA Fields:
UPLOADSCREENSHOTS=Upload Screenshots
UPLOADSVS=Upload SVs

Beta 2 changes:
option to choose system tray icon
waits for updates/sync before launch wow (both auto and button/menu click launch)

beta 1 Changes:
option to store/modify files in %appdata% instead of the executable's container
optional user popup (config tick in options tab) to notify of a non 200 error code, saying "There was an error while uploading, please see the debug log for error information"
custom user agent setting with UA integration+UU settings tab
Fixed: UU Crash if addon can't be downloaded
Auto-Adddon-Update timer options
Quit UU when Launch Wow option

beta 1 UA Fields:
USERAGENT=Custom User Agent
UPERRPOPUP=Show Error Popup when upload fails
CLOSEAFUPD=Close UU after Sync/Update
CLOSEAFLAU=Close UU after Wow Launch
AUTOSYNCIN=Auto Sync/Update Interval
USEAPPDATA=Use Application Data Folder



As always, any Code Monkeys can access the source with our SVN repo.

After this is tested, I may release it.

EDIT: Download Removed, 2.6.8 is released!
Last edited by MattM on Thu Sep 18, 2008 1:21 am, edited 4 times in total.
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

UniUploader 2.6.8 BETA 3 - PLEASE TEST

Postby Movix » Wed Sep 10, 2008 5:38 am

as windows vista is storing the WTF in the virtual store, UU does not find it an did not recognise the SV folder
C:\Users\%USERNAME%\AppData\Local\VirtualStore\Program Files\World of Warcraft\WTF\ should be checked if vista is installed.

What i conclued by my tests, is the following:
On vista wow inspects if there is a WTF folder in the program files\wow folder, if so this one is use. (this mostly happens when someone is just copying his wow installation folder an a new vista machine.

If a fresh installation of wow is made an a vista machine there is no WTF folder at the first launch and wow will store the WTf in the VirtualStore

np further test possible for me or i have to migrate my WTF back
Image
DF 9.2.1 - RosterDF 1.7.3.0 (patched) - Roster 2.0 beta
User avatar
Movix
WR.net Apprentice
WR.net Apprentice
 
Posts: 59
Joined: Fri Dec 22, 2006 1:27 pm

Re: UniUploader 2.6.8 BETA 3 - PLEASE TEST

Postby Movix » Wed Sep 10, 2008 5:52 am

it's a bit more complicated, wow on vista did not check if WTF existst, but inspect the SV it self, if it's not existent in the programm files WTF, the it will be saved to the virtualstore WTF !!
Image
DF 9.2.1 - RosterDF 1.7.3.0 (patched) - Roster 2.0 beta
User avatar
Movix
WR.net Apprentice
WR.net Apprentice
 
Posts: 59
Joined: Fri Dec 22, 2006 1:27 pm

UniUploader 2.6.8 BETA 3 - PLEASE TEST

Postby PleegWat » Wed Sep 10, 2008 1:19 pm

This is false as well. On vista, wow will try to save to WTF. However, under normal user permissions, it won't be allowed to, and WINDOWS will save it in the VirtualStore instead. The version in the WTF directory is not used if there is a VirtualStore version, and all new or modified files are stored in VirtualStore.

The same is true for the Cache folder, and auto-updated addons.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

UniUploader 2.6.8 BETA 3 - PLEASE TEST

Postby MattM » Wed Sep 10, 2008 9:56 pm

I have not heard of this kind of problem before. There is no problem with Vista? I have not changed the behavior of LUA file handling or Addon handling.

I would rather several people confirm this before I start cannibalizing things.
Last edited by MattM on Wed Sep 10, 2008 10:01 pm, edited 1 time in total.
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

UniUploader 2.6.8 BETA 3 - PLEASE TEST

Postby Movix » Wed Sep 10, 2008 10:30 pm

sorry for the trouble, but in my case UU did not see the account used by my wow installation.
As i got all WTF data in the virtualstore i thought i would help to post my opinion.
Sorry or the mistake if so.
If i understood you well PleegWat it's due to insufisant rigth or a miss configured windows ?
Image
DF 9.2.1 - RosterDF 1.7.3.0 (patched) - Roster 2.0 beta
User avatar
Movix
WR.net Apprentice
WR.net Apprentice
 
Posts: 59
Joined: Fri Dec 22, 2006 1:27 pm

UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby PleegWat » Fri Sep 12, 2008 2:35 am

(Note I'm not on vista)

A UU compiled on windows XP(!) should work flawlessly. Windows Vista will see it is an XP program, and like with WoW, overlay the VirtualStore directory over the 'real' directory.

A UU compiled on windows vista will not be able to update addons, and will not see any modifications in the WTF directory since the computer has been updated to vista (or nothing at all, if wow was originally installed on vista).
This problem with a vista-compiled UU can only be fixed by explicitly accounting for the virtualstore system in the UU source.

Summarizing, a UU compiled on windows XP, started normally without administrator rights, should work like it does on XP.
I <3 /bin/bash
User avatar
PleegWat
WoWRoster.net Dev Team
WoWRoster.net Dev Team
 
Posts: 1636
Joined: Tue Jul 04, 2006 1:43 pm

UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby MattM » Fri Sep 12, 2008 2:39 am

Interesting. I had no idea the resulting executable has any difference when compiled on vista as opposed to xp.

Can you confirm this? (no vista to test with here)
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

Re: UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby Calystos » Fri Sep 12, 2008 8:05 am

A few quick hacks... (NOTE: All the below info is just in ref to MainForm.cs no other file needs to be edited)

If anyone is wanting to stop the X button from closing the uploader (I had some of my friends request this cos they kept accidently closing instead of minimizing) go to the start of the MainForm.cs at this line:
Code: Select all
    public class MainForm : UniUploader.GUI_helper
    {

And change it so its this:
Code: Select all
    public class MainForm : UniUploader.GUI_helper
    {
      private const int CP_NOCLOSE_BUTTON = 0x200;
      protected override CreateParams CreateParams
      {
         get
         {
            CreateParams myCp = base.CreateParams;
            myCp.ClassStyle = myCp.ClassStyle | CP_NOCLOSE_BUTTON ;
            return myCp;
         }
      }

That will disable the X button, (when I get time I'll see about coding an option together to make the X be optional to minimize instead of close, but for now this will suffice).

Next...

In ref to the new submenu options in the systray icons menu, add this function:

Code: Select all
        private void doContextMenuMoveToBottom(string text)
        {
            foreach (MenuItem mi in contextMenu1.MenuItems)
            {
                if (mi.Text == text)
                {
                    contextMenu1.MenuItems.RemoveAt(mi.Index);
                    contextMenu1.MenuItems.Add(menuItem3);
                }
            }
        }


(or name it whatever you want, I just wrote it like that to explain what it is quickly, shoulda really added some comments to it but *shrugs*).

Then at the bottom of the doHomeURL() and doForumURL() functions (one, or the other, or both, doesn't really matter it seems), add:
Code: Select all
         // Put the Exit option at the BOTTOM of the list!
         doContextMenuExit("Exit");

Before the final "}".

This will force the Exit option to move to the bottom of the list, :-) Instead of having it above the 2 new items (in the middle of the list).

Quick an dirty hack but it works, ;-)

I also wrote together a new url entry option for those who release custom UniUploaders and have their own updates page. Instead of them getting updates from http://www.wowroster.net/uniuploader_up ... update.php

It works great, and means you can have the updater set to any url.

And here ya go, the info on how to add the url entry for custom updater stuff...

Find:
Code: Select all
        private System.Windows.Forms.Button autoAddonSyncNow;


Add below it:
Code: Select all
        private System.Windows.Forms.Label label21;
        private System.Windows.Forms.TextBox UpdatesURL;


Next find:
Code: Select all
        public string _SYNCHURL = "Synchronization URL:";


And add below it:
Code: Select all
        public string _UPDATESURL = "Updates URL:";


Find:
Code: Select all
            this.AutoAddonURL = new System.Windows.Forms.TextBox();


Add below it:
Code: Select all
            this.label21 = new System.Windows.Forms.Label();
            this.UpdatesURL = new System.Windows.Forms.TextBox();


Find:
Code: Select all
            this.groupBox11.Controls.Add(this.AutoAddonURL);

An again, below it:
Code: Select all
            this.groupBox11.Controls.Add(this.label21);
            this.groupBox11.Controls.Add(this.UpdatesURL);


Find:
Code: Select all
            //
            // label12
            //
            this.label12.Location = new System.Drawing.Point(8, 88);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(152, 16);
            this.label12.TabIndex = 3;
            this.label12.Text = "Synchronization URL:";
            //
            // AutoAddonURL
            //
            this.AutoAddonURL.Location = new System.Drawing.Point(8, 112);
            this.AutoAddonURL.Name = "AutoAddonURL";
            this.AutoAddonURL.Size = new System.Drawing.Size(280, 20);
            this.AutoAddonURL.TabIndex = 2;
            this.AutoAddonURL.Text = "http://XXXXXXX.XXX/uniadmin/interface.php";

Replace with (replaced due to the 2 above items being moved a little to make room for the 2 new items, and to keep things looking neat):
Code: Select all
            //
            // label12
            //
            this.label12.Location = new System.Drawing.Point(8, 107);
            this.label12.Name = "label12";
            this.label12.Size = new System.Drawing.Size(152, 16);
            this.label12.TabIndex = 3;
            this.label12.Text = "Synchronization URL:";
            //
            // AutoAddonURL
            //
            this.AutoAddonURL.Location = new System.Drawing.Point(8, 123);
            this.AutoAddonURL.Name = "AutoAddonURL";
            this.AutoAddonURL.Size = new System.Drawing.Size(280, 20);
            this.AutoAddonURL.TabIndex = 2;
            this.AutoAddonURL.Text = "http://XXXXXXX.XXX/uniadmin/interface.php";
            //
            // label21
            //
            this.label21.Location = new System.Drawing.Point(8, 69);
            this.label21.Name = "label21";
            this.label21.Size = new System.Drawing.Size(152, 16);
            this.label21.TabIndex = 3;
            this.label21.Text = "Updates URL:";
            //
            // UpdatesURL
            //
            this.UpdatesURL.Location = new System.Drawing.Point(8, 85);
            this.UpdatesURL.Name = "UpdatesURL";
            this.UpdatesURL.Size = new System.Drawing.Size(280, 20);
            this.UpdatesURL.TabIndex = 2;
            this.UpdatesURL.Text = "http://www.wowroster.net/uniuploader_updater2/update.php";


Find:
Code: Select all
                                case "SYNCHROURL":
                                    AutoAddonURL.Text = settingValue;
                                    break;

Add below:
Code: Select all
                                case "UPDATESURL":
                                    UpdatesURL.Text = settingValue;
                                    break;


Again, another find:
Code: Select all
                    ini.AddValue("updater", "SYNCHROURL", AutoAddonURL.Text);

Add below:
Code: Select all
                    ini.AddValue("updater", "UPDATESURL", UpdatesURL.Text);


Search for:
Code: Select all
                        case "SYNCHROURL":
                            AutoAddonURL.Text = settingSplit[1];
                            break;

Below add:
Code: Select all
                        case "UPDATESURL":
                            UpdatesURL.Text = settingSplit[1];
                            break;


Search for and delete all traces of:
Code: Select all
            string updaterLocation = "http://www.wowroster.net/uniuploader_updater2/update.php";

Should only be 3 to be found.

Then search for and replace all traces of:
Code: Select all
updaterLocation

With:
Code: Select all
UpdatesURL.Text

Should be a total of 7 items.

(Nearly done!)

Find:
Code: Select all
                            case "_SYNCHURL":
                                _SYNCHURL = @settingValue;
                                break;

Below it add:
Code: Select all
                            case "_UPDATESURL":
                                _UPDATESURL = @settingValue;
                                break;


Find:
Code: Select all
            autoAddonSyncNow.Text = _SYNCHNOW;

Below it add:
Code: Select all
            label21.Text = _UPDATESURL;


That should be about everything, you'll now see a new menu option listed. :-D

Oh, and in ref to that updatesurl thing I also modded the UniAdmin system so that it now has a new option to let you select the url used there too, if anyone wants this code let me know and I'll paste the info. I'll paste it anyways, but only when I get time, :-)
Last edited by Calystos on Fri Sep 12, 2008 8:09 am, edited 3 times in total.
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby MattM » Fri Sep 12, 2008 10:58 am

nice updates mod, that may be "wikiworthy"!

There's a wierd mist of vista buggyness in the air, so I refrain from releasing UU until that's cleared up.

I really wish I knew what is fact.

I was thinking about the exit entry in the context menu "wierd" not at the bottom but i shrugged it off as I enjoy being lazy. Thanks for doing that work for me!
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

Re: UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby Calystos » Fri Sep 12, 2008 11:17 am

MattM wrote:nice updates mod, that may be "wikiworthy"!

There's a wierd mist of vista buggyness in the air, so I refrain from releasing UU until that's cleared up.

I really wish I knew what is fact.

I was thinking about the exit entry in the context menu "wierd" not at the bottom but i shrugged it off as I enjoy being lazy. Thanks for doing that work for me!

:-) No probs, glad to be of help. Am constantly looking into tweaking an stuff.

As to vista, yeah major probs from various people in ref to vista. Typical micro$oft. I had someone tell me they couldn't do the update function on UU cos it came up with some error and the only way to get it to update was to quit the app and update manually. I asked them to let me know what the error said but they'd forgot. The only info I got from them was that they were running vista lol. I've asked my friends to keep check out and if any get any more problems to grab a screenshot and as much info as poss to let me know whats going wrong exactly, :-)

If I come up with any more tweaks, fixes, etc, I'll let ya know, :-)
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

Re: UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby Calystos » Fri Sep 12, 2008 8:01 pm

And heres my info on updating the UniAdmin system to work with my aforementioned UniUploader patch to allow custom sites to update their UU application. 3 simple steps this time, instead of a load of changes, ;-)

-=-=- mysql_data -=-=-
Execute the following mysql code into your mysql uniadmin database:
Code: Select all
### Settings
INSERT INTO `uniadmin_settings` (`set_name`, `set_value`, `enabled`, `section`, `form_type`) VALUES
   ('UPDATESURL', 'http://www.wowroster.net/uniuploader_updater2/update.php', '0', 'updater', 'text{250|50');

Done with the mysql data.

-=-=- language/english.php -=-=-
Search for
Code: Select all
$lang['ALLOWADDONDEL'] = 'Allow UniAdmin to DELETE addons';


Add below it:
Code: Select all
$lang['UPDATESURL'] = 'URL for UniUpdater updates/upgrades';


Done with English.php

-=-=- images/UPDATESURL.jpg -=-=-
And finally copy into the "images" directory the "UPDATESURL.jpg" file attached.

Thats it, all done, the UniAdmin system is now capable of telling the UniUploader (with my previously uploaded patch info that is) to update/upload UU from a custom listed site. Note it defaults to http://www.wowroster.net/uniuploader_up ... update.php but you can change this once you have it all running.

Enjoy, :-)
Attachments
updatesurl.zip
Added zipped up version of the updatesurl.jpg file for those who don't know how to simply right-click and save image, ;-) Just extract straight to the uniadmin\images area.
(5.65 KiB) Downloaded 109 times
updatesurl.jpg
Simply right-click & save the image straight to the uniadmin\images area.
updatesurl.jpg (6.3 KiB) Viewed 595 times
Last edited by Calystos on Fri Sep 12, 2008 8:05 pm, edited 1 time in total.
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth

UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby zanix » Sat Sep 13, 2008 11:18 am

Added to UniAdmin in the SVN
Read the Forum Rules, the WiKi, and Search before posting!
WoWRoster v2.1 - SigGen v0.3.3.523 - WoWRosterDF
User avatar
zanix
Admin
Admin
WoWRoster.net Dev Team
WoWRoster.net Dev Team
UA/UU Developer
UA/UU Developer
 
Posts: 5543
Joined: Mon Jul 03, 2006 8:29 am
Location: Idaho Falls, Idaho
Realm: Doomhammer (PvE) - US

UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby MattM » Sat Sep 13, 2008 1:41 pm

I'll implement this before release, thanks again!
MattM
UA/UU Developer
UA/UU Developer
Gimpy Developer
Gimpy Developer
 
Posts: 886
Joined: Tue Jul 04, 2006 9:53 pm
Location: USA

Re: UniUploader 2.6.8 BETA 4 - PLEASE TEST

Postby Calystos » Sun Sep 14, 2008 12:24 am

No probs guys, glad to be of help! :-D An even more glad to know the stuff I wrote is going in the releases! Weeeeeee *dances* lol. (Soz, hehehe).
User avatar
Calystos
UA/UU Developer
UA/UU Developer
 
Posts: 140
Joined: Tue Mar 04, 2008 10:57 am
Location: Earth


Return to UniUploader

Who is online

Users browsing this forum: No registered users and 0 guests

cron