Jump to content


ViroMan's Beta Application


230 replies to this topic

#181 click-click

    I am not young enough to know everything.

  • Release Managers
  • PipPipPipPip
  • 484 posts
  • Gender:Male

Posted 29 April 2012 - 09:26 AM

APUP2 cannot be started from a cmd prompt. It exits shortly after showing the main screen. Also, window cannot be maximized. Sorting on date and size columns give wrong results. Looks like you are sorting the list from the actual text. in the columns.

Edited by click-click, 29 April 2012 - 09:42 AM.


#182 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 29 April 2012 - 01:35 PM

I have no problem running apup2 from command line or from a batch file. Posted Image can you give steps for me to replicate? Does the log report an error?
I disabled the maximize because I saw no reason to stretch the data across the entire screen(and I didn't make a function to do that either).
The data is indeed being sorted by the text in the columns. In what way is it wrong? Do you mean by the way ".NET" shows at the top or the size column. They use a built in "bubble sort" to sort the list so naturally some special characters have a lower ASCII value then letters do. I didn't bother to make a separate function for the size column. Although hitting sort on the size does look terrible so I might do something about that.

Ok I think I figured your command line problem. You might have gave it a bad command line. Apup2 is similar to apup1 in many of the commands except one. /log doesn't work the same ... here

Descriptions:
/LOG:[1-2] - APUP2 Already Creates A Simple Log File. You Can Ask For A More Verbose Log File Though.
/LOG:1 - More Detailed Log.
/LOG:2 - A Debug Log. It WILL Fill Your Log File With Lots Of Data.
/LISTFILE:[location] - Use This If You Have A Different List File To Read Updates From.
/LOCALSCRIPT:[location] - If You Have A Script You Want To Test, Use This.
/AUTO - This Will Auto Download The Items You Selected Last Time.

as always don't include the [ ]'s

huh... I just realized I didn't put a /? in or /help in for the command lines to display the help list. The help list only shows in the log when do something wrong.... I will have to see if I can output to the command window the help list. I have never made an windows application display things in a command window. console apps sure but, not windows apps.

while im at it ... I will see about throwing a few errorcodes in to allow easy automation.

Edited by ViroMan, 30 April 2012 - 12:05 AM.


#183 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 30 April 2012 - 02:31 AM

Current possible exit codes for apup2 that I might create

exit codes
0 No errors
Errors:
1 Logging Error (Couldn't Create Log File) <--- Not enough space, current log file is read only(how did that happen?), you ran apup2 from network location but, it does not have permission to write to that location, or you are running it from a CD/DVD which you shouldn't be doing.
2 Bad Command Line (Currently Terminates The Program)
3 Environment Detection Error (Registry Error Or Can't Detect Folder Locations) <--- not enough permissions to run...
4 Missing Files Needed To Run
5 Download Errors <--- possible firewall issues
6 Unknown Errors
Finished codes:
7 User Aborted Operations
8 Finished With User Exit (No Errors)
9 Auto Finished All operations


Any other error codes you guys might need?

Edited by ViroMan, 30 April 2012 - 02:37 AM.


#184 Black Ghost

    AutoPatcher Expert

  • Members
  • PipPipPipPip
  • 217 posts

Posted 30 April 2012 - 02:50 AM

Is there a way to put it in debug mode so that we can log the errors so that we can send them to you to look at. That should help you a lot on your end.

#185 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 30 April 2012 - 03:01 AM

you can... go into options and slide the logging bar all the way to the right.. I warn you that it will generate large log files though.

Normally its in simple mode... extra mode is fine too that will give more information but, debug mode will make 200k+ size log files.

Edited by ViroMan, 30 April 2012 - 03:03 AM.


#186 click-click

    I am not young enough to know everything.

  • Release Managers
  • PipPipPipPip
  • 484 posts
  • Gender:Male

Posted 30 April 2012 - 07:55 AM

If I open a cmd window and switch to the unziped APUP2 directory and simply run APU2.exe without any parms, the program starts and then exits right away. This happens on XP and Win7. If I run APUP2 from the run box, it stays on the screen and one can continue. Here's the log:

Spoiler

As far as sorting goes, it makes no sense to sort on text since the results are of no real value, at least not for me Posted Image . If I want to see what components were most recently updated, its not very apparent after sorting. The same goes for size. It might be easiest to just change the text so it sorts correctly such as yyyy-mm-dd, and nnnn.nn MB. Also, it would be nice if APUP would flip-flop between ascending and descending when clicking on the column. This is how most programs work that allow for column sorting.

Edited by click-click, 30 April 2012 - 07:57 AM.


#187 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 30 April 2012 - 08:50 AM

ahh... now the error is duplicated. I will look into it. It must be interpreting the command line wrong somehow when it comes from the console.

I will look into setting up your suggestions too.

Ha... I found the mistake in the command line checking... fixed. Still looking into the screen size error and adding your suggestions so no update.

Edited by ViroMan, 30 April 2012 - 09:01 AM.


#188 Penn Boy

    Newbie

  • Members
  • Pip
  • 6 posts

Posted 30 April 2012 - 03:49 PM

Did you notice I'm running Win 7/

dpi is the problem. Not all of us have prefect eyesight and can run at 96 dpi

Win 7 allows 96 dpi (which I can't read), 120 dpi - which is ok (APUPpanel are fine), 144 dpi (which I use), and 192 dpi (which I may get to one day).

Now that I know whaat the problem is no problem (have other programs that shooow same effects), I can quickly switch dpi. Could this be happening only with x86 programs??

#189 click-click

    I am not young enough to know everything.

  • Release Managers
  • PipPipPipPip
  • 484 posts
  • Gender:Male

Posted 30 April 2012 - 08:49 PM

ViroMan, this might be of help in understanding various DPI issues. There is also sample code that may be of use to you. A tutorial is there too. http://msdn.microsof...v=vs.85%29.aspx

#190 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 30 April 2012 - 10:35 PM

Well the problem is mostly my compilers issue. It is supposed to do the dpi changes automatically. It seems to be broken or something. I can trigger manual changes by tricking it but, it doesn't seem to always work. Posted Image

edit:
Hmm... I can't output any text to the console if run from there due to the applications core releasing console control as soon as it is finished loading into memory. Its not something I can modify due to the way borland builder handles things. Unless I create a console app that you run that will call apup2 and will capture strings from apup2. I am not going to do that unless there are people who want such a thing. even if the want such a thing I could just make a console version of apup2 for them to run.

edit2: This also means I can't give return errorcodes when the application returns because it has already release the console. I will continue to look into a way to solve this.

Edited by ViroMan, 30 April 2012 - 11:55 PM.


#191 click-click

    I am not young enough to know everything.

  • Release Managers
  • PipPipPipPip
  • 484 posts
  • Gender:Male

Posted 30 April 2012 - 11:09 PM

What language are you using to program APUP2?

#192 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 01 May 2012 - 12:00 AM

The language is C++ but, some of the problems are because I am letting borland handle all of the gui elements(saves me a ton of coding... and I mean a ton). I might have to switch to win32 functions instead of borland functions so that the gui will scale.

I may have figured out a way to solve a few of the problems... stand by....

Edited by ViroMan, 01 May 2012 - 12:14 AM.


#193 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 01 May 2012 - 01:22 AM

ha.. well I have a sort of fix. I can provide two apup2s. One will be the normal apup2 the other is a console app that has apup2 code injected into it.

The one with apup2 injected into it can output to the console because it doesn't let go of it. If you run the console apup2 not from within a console, a console box will pop up that will display anything that it wants to show.

Actually I might just cut out the GUI nearly completely for those who want a separate app to automate downloading and just provide the download window. These changes can make it into the new AP as well so I don't mind working on it now if you guys want them.

#194 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 01 May 2012 - 06:45 AM

Newer APUP2 posted...
VER 1.0.5.6

http://www.autopatch...apup2-download/

edit:
Bah.. found a small glitch after the fact... uploading newer one.

Newer APUP2 posted...
VER 1.0.5.7

Edited by ViroMan, 01 May 2012 - 06:59 AM.


#195 click-click

    I am not young enough to know everything.

  • Release Managers
  • PipPipPipPip
  • 484 posts
  • Gender:Male

Posted 01 May 2012 - 08:02 AM

Sorting makes more sense now. The GUI is now more conform, but the font for the releases list is a wee bit small for my eyes. What point size are you using for that font?

Starting from a cmd prompt works fine now. I would suggest allowing /log to be a valid command since it's mentioned in the help, even though it's the default. I don't understand the apup2console.exe. When i run that, I still get the GUI + a cmd window saying console enabled. How is this supposed to work?

Edited by click-click, 01 May 2012 - 08:20 AM.


#196 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 01 May 2012 - 09:52 AM

The font is Courier New at size 9 it shouldn't be small... grr.. it might be the resize code making it too small.

apup2console still shows the gui for now because I still havn't decided if im going to rip out most of the gui for the console mode yet. In console mode it will only run in /auto. Meaning it will run on the preselected items you have chosen in the past(with apup2(will use the ini file)) or if you specify a script in the command line. In other words you make the connection setting and everything else in apup2 and then you can run apup2console in full auto. I will probably leave in the download window to show progress however I might even get rid of that to allow for full console only mode. Im unsure as to the direction I wish to go in that regard.

In hind sight I probably shouldn't have let you guys download the console version as its just a mock up really. It does show that I got the console working but, you didn't need to see that really.

Edited by ViroMan, 01 May 2012 - 09:55 AM.


#197 DesertJerry

    AutoPatcher Elite

  • Members
  • PipPipPipPipPip
  • 982 posts
  • Gender:Male
  • Location:Victorville, California

Posted 01 May 2012 - 06:50 PM

Downloaded 1.5.0.7 - terrible - can hardly read the Release Name list - font is much to small.

Also. would prefer making the APUP window itself larger rather than using the left/right and up/down scroll bars.

#198 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 01 May 2012 - 09:03 PM

You see window scroll bars? ok ya the code is still bad then... bah... I might just have to toss the whole gui out the window and make a new one using windows api instead of borlands gui code which is supposed to work.
I will turn off the resize code and put it out so that you can at least use it till I find a solution.

Edited by ViroMan, 01 May 2012 - 09:05 PM.


#199 ViroMan

    Just an awesome guy.

  • Project Manager
  • PipPipPipPipPipPip
  • 1,159 posts
  • Gender:Male
  • Location:California, USA, Earth, SOL, Milkyway
  • Interests:Programming and being a know it all pest.

Posted 01 May 2012 - 09:29 PM

OK put out a version without the resize code in it. Also removed the console version since I still have not decided the direction with it.

#200 DesertJerry

    AutoPatcher Elite

  • Members
  • PipPipPipPipPip
  • 982 posts
  • Gender:Male
  • Location:Victorville, California

Posted 03 May 2012 - 03:13 AM

Downloaded resize version - font is ok - can read much easier now. Still has up/down scroll bar - please make window resizable.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users