Author Topic: psupdater.exe  (Read 3302 times)

HadrianKross

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
psupdater.exe
« on: October 07, 2008, 02:02:52 pm »
Mind if I poke around in the psupdater.exe source?

Interested in automating it; [ENTER] [UP ARROW] [ENTER] gets old after the 20th time (actually after the 1st time...)

Also, would like to add a simple (.bat style) file fix for the "updaterinfo.xml" <config active="false"> problem to the "Updater patch for Windows"

Thanks,
Jonathan

*edit*

Might be interested in looking into a very simple GUI also...

H
« Last Edit: October 08, 2008, 01:25:52 pm by neko kyouran »

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: psupdater.exe
« Reply #1 on: October 07, 2008, 02:13:17 pm »
first dont double post, and second work is still going on with the updater so i would advice you to wait a while before doing anything with it.

neko kyouran

  • Guest
Re: psupdater.exe
« Reply #2 on: October 07, 2008, 02:45:05 pm »
work is going on with every part of the game.... by your logic, no one should look at anything.  ::)



 HadrianKross, no one's going to stop you from poking the code.  that's why its there to look at after all.

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: psupdater.exe
« Reply #3 on: October 07, 2008, 03:50:43 pm »
specifically a gui is in the works in svn already for the updater just the art for its use is not released due to it not being read, also keep in mind that you can take time to do whatever you want that does not mean the dev team will accept it. Also keep in mind that gui must work on all 3 major os's ps supports.

Mordraugion

  • Hydlaa Notable
  • *
  • Posts: 816
  • Ex Dev and GM
    • View Profile
Re: psupdater.exe
« Reply #4 on: October 08, 2008, 03:01:29 am »
Actually the code is gpl and if you make a mod it doesnt "have" to work on all platforms, it would be nice if you did,  but that is only necessary if you intend to submit it for inclusion in Planeshift
No longer a member of the PlanShift Development Team
Hokinon or Hoki on IRC

PS is not a democracy, nor will it ever be -- Karyuu 2006
http://www.hydlaaplaza.com/smf/index.php?topic=21049.msg230947#msg230947

HadrianKross

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Re: psupdater.exe
« Reply #5 on: October 08, 2008, 03:57:27 am »
Caarrie: Found the "Modify" button. Thanks.

Does replying to your own post with additional info (that might not be good to include in the original) constitute a double post?
Thought that was when you hit submit twice, or with the exact same info, like bump etc.
I'll do edits to this post until I get a reply, but it seems a bit asinine.
Wasn't really expecting to be forum nazied in the dev boards.

"also keep in mind that you can take time to do whatever you want that does not mean the dev team will accept it..."
Well yea, that's sort of the nature of open source...either implement it for yourself, and/or submit it so that others can use it or improve off of it.
Have you had trouble getting inclusions past the dev team??
Either way I'm not going to get pissed off just because something isn't accepted, main thing is I get familiar with the code...

neko kyouran: thanks

found the code here:
http://planeshift.svn.sourceforge.net/viewvc/planeshift/trunk/docs/compiling.html
didn't notice what it was written in though

Mordraugion: GPL = teh good; was mainly looking into a simple automation script for the current interface... If this can be done with a simple .bat style file included in an optional patch, along with the "updaterinfo.xml" fix, I think it would help end user frustration...
<edit> actually why not include a good "updaterinfo.xml" in the "Updater patch for Windows" (along with psupdater.exe)?

At this point would do a scripted file for each supported OS (rather than an actual app that is cross platform)
Starting with windoze'r
<edit> apparently not necessary (at least for windows) with a "good" copy of psupdater.exe (see bottom)

Now back to the joys of .bat--will post any code I think is worth considering...

Thanks for the replies,
HK

<edit> The gui idea was mainly something that could be quickly implemented, or made available now--not something that would really compete with a GUI in the works.

<edit> As of 6:00am CST the updater appears to be automated--at least for me. Maybe I got a bad version? It downloaded a new version just beforehand, but it's still showing 1.0. Seems to be a few (at least 2) versions floating around. When I did "Updater patch for Windows" along with a fresh install--prior to this morning, I still had to manually do each file. I'll confirm this on another fresh install. If the registry doesn't get uninstalled completely will have to do that manually also--wonder how much that has to do with the updater.
Either I just patched a good version of the updater or someone's been doing some late night/early morning work o_0 (assuming they're in the Western Hemisphere)...

<edit> Looks like the uninstall misses a few files in C:\Program Files\PlaneShift Steel Blue--deleted them. Also, didn't see any registry keys left that would explain the updater starting to work properly all of a sudden. Wish I had a copy of the old updater log (the one with "ms5sum dosen't match client ms5sum") hmm...

<edit> Did a fresh install and ran psupdater.exe:

For 0.4.01 looks like the updater starts at 5 then updates to 1.0

PlaneShift Updater Version 5 for win32.

Checking for updates:
Checking for updates to the updater: Update Available!
Beginning self update!
0% ---- 25% ---- 50% ---- 75% --- 100%

PlaneShift Updater Version 1.00 for win32.

Copying new files!

PlaneShift Updater Version 1.00 for win32.


Cleaning up!
Checking for updates:
Checking for updates to the updater: No updates needed!
Checking for updates to all files: Updates Available!

Downloading update file..

Downloading update file..
Patching file OpenAL32.dll: Done!
Checking for correct md5sum: Success!

Downloading update file..
Patching file art/things/shields.zip: Done!
Checking for correct md5sum: Success!
...
...
...

Is the "Updater patch for Windows" necessary (or desired) at this point?
Unless there were residual installation files/settings/registry entries/etc. on my system that made the psupdater.exe start working right off the bat, I don't think it's necessary any more.
Otherwise is there a full manual uninstall list available somewhere?
« Last Edit: October 08, 2008, 12:08:01 pm by HadrianKross »

Mordraugion

  • Hydlaa Notable
  • *
  • Posts: 816
  • Ex Dev and GM
    • View Profile
Re: psupdater.exe
« Reply #6 on: October 08, 2008, 07:48:32 am »
Is the "Updater patch for Windows" necessary (or desired) at this point?

Not sure what you mean by Updater patch for windows, I know I'm linux only but I dont recall a specific windows patch for a very long time

Edit
 feel free to join irc.freenode.net #planeshift or #planeshift-build and if you really want to dive into the code http://www.planeshift.it/recruitment.html
« Last Edit: October 08, 2008, 07:52:47 am by Mordraugion »
No longer a member of the PlanShift Development Team
Hokinon or Hoki on IRC

PS is not a democracy, nor will it ever be -- Karyuu 2006
http://www.hydlaaplaza.com/smf/index.php?topic=21049.msg230947#msg230947

HadrianKross

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Re: psupdater.exe
« Reply #7 on: October 08, 2008, 08:24:11 am »
Thanks   :thumbup:

"Updater patch for Windows" is here:
http://www.planeshift.it/download.html

Known Problem in updater 0.4.01
If you download version 0.4.01, there is a known issue in the updater, so please also get this package to fix your updater. Just unzip in the PlaneShift dir after installation of 0.4.01.

Updater patch for Linux 32 Bit
Updater patch for Linux 64 Bit
Updater patch for Windows
Updater patch for MACOSX 10.3.9
Updater patch for MACOSX

« Last Edit: October 08, 2008, 08:26:18 am by HadrianKross »

Mordraugion

  • Hydlaa Notable
  • *
  • Posts: 816
  • Ex Dev and GM
    • View Profile
Re: psupdater.exe
« Reply #8 on: October 08, 2008, 10:40:31 am »
hmm I didnt bother with that I just fixed the xml and ran it
No longer a member of the PlanShift Development Team
Hokinon or Hoki on IRC

PS is not a democracy, nor will it ever be -- Karyuu 2006
http://www.hydlaaplaza.com/smf/index.php?topic=21049.msg230947#msg230947

HadrianKross

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Re: psupdater.exe
« Reply #9 on: October 08, 2008, 11:47:23 am »
Yea, for the most recent install I did of 0.4.01 (this morning) that was the case...

<edit> Actually my second (and subsequent) installs were from different mirrors--sorry don't remember which ones. This might explain some updaters working (or not) right after install. Going to test the patch and see if it reverts back to "one file per execute" like before.

<edit>The patch psupdater.exe works as it should--though it did update to the new version (1.0 apparently), maybe it was a server bug that got worked out /shrug

<edit> best answer I can think of so far is that the Updater Updater was down (this part "Checking for updates to the updater:"). Almost reinvented the wheel   O--)

nuff said

*edit*

Wonder what the verdict is on double posting?   

Perhaps Caarrie will chime in?   

Maybe another "double post" will incurr her wrath. 

Hadrian Kross begins preparations for the impending onslaught.
« Last Edit: October 08, 2008, 01:25:30 pm by neko kyouran »

neko kyouran

  • Guest
Re: psupdater.exe
« Reply #10 on: October 08, 2008, 01:26:34 pm »

HadrianKross

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Re: psupdater.exe
« Reply #11 on: October 08, 2008, 01:41:32 pm »
 :detective:
In order to alleviate some of the impending doom Hadrian Kross attempted to turn himself in today for failing to follow the forum rules for:
"Make a reply after your own reply." (2nd attempt failed miserably as a result of "Hand of MOD")
attempting to break the rule for "Smile Sparingly." (also thwarted by HOM)
very nearly breaking the rule for "Post topics addressed directly to another player."
and for seriously considering very nearly breaking the "Is in a language other than English." i.e. 1337 5p34k...oops
but he was told:
"You can't report your own post to the moderator, that doesn't make sense!"

So, he awaits his fate at the hands of the mods...  :ban:

* Hadrian Kross starts to understand why Caarrie was rather short to begin with...
* Hadrian Kross suspects there will be a new rule about poking fun at the rules as a result...
* Hadrian Kross attempts to log in to the game hoping to find refuge with the gaming gods in hopes that the forum gods will begin to forget his transgressions.
/ooc my name will probably have Hadrian in it somewhere...later.
« Last Edit: October 08, 2008, 02:00:42 pm by HadrianKross »

neko kyouran

  • Guest
Re: psupdater.exe
« Reply #12 on: October 08, 2008, 04:25:18 pm »
nah, unlike Caarrie, I have a sense of humor.

@caarrie:   :P   :whistling:  :innocent:  :flowers:  :lol:

Caarrie

  • Forum Addict
  • *
  • Posts: 3369
  • We want no UNFIXED bugs!!!!!!!!!!!!!
    • View Profile
    • PlaneShift3dMods
Re: psupdater.exe
« Reply #13 on: October 08, 2008, 04:40:06 pm »
what did you say?

HadrianKross

  • Wayfarer
  • *
  • Posts: 9
    • View Profile
Re: psupdater.exe
« Reply #14 on: October 08, 2008, 06:05:08 pm »
Hadrian ignores both sets of gods and attempts HOM on neko's last post.
HOM backfires ending his post abru