Author Topic: Cant download the updates :(  (Read 2193 times)

Offline shotdown007

  • Newbie
  • *
  • Posts: 9
Cant download the updates :(
« on: July 10, 2011, 06:49:51 pm »
So i run into a problem where i click that square box that u go to in-game when u have a update,and mine says i have 3 beta updates, so i click it and i try all 3 buttons to try to update it, the first one, what it does is it will download the first 2 then the game will close, thats it, nothing pops up or anything, the seccond doesnt do nothing also, so i dont know what to do, BTW i am on a mac and i have steam fyi... .......what do i do   :-[  :'(

Offline Fiskbit

  • Arcen Games Contractor
  • Master Member Mark III
  • *****
  • Posts: 1,752
Re: Cant download the updates :(
« Reply #1 on: July 10, 2011, 07:31:39 pm »
Another Mac user has hit this same problem on IRC. The updates download, but the updater does not run. Trying to manually install updates returns this error: "LSOpenURLsWithRole() failed with error -10810". Trying to run the updater directly reportedly does nothing. The user found this error in his logs: "command/AIWarAutoUpdater-osx.app/Contents/MacOS/installbuilder.sh", ...): No such file or directory".
Have ideas or bug reports for one of our games?  Click here to get started with Mantis for Suggestions and Bug Reports.  Thanks for helping to make our games better!

Offline Fiskbit

  • Arcen Games Contractor
  • Master Member Mark III
  • *****
  • Posts: 1,752
Re: Cant download the updates :(
« Reply #2 on: July 10, 2011, 07:44:07 pm »
Apparently running the osx-intel file in "ai war fleet command/AIWarAutoUpdater-osx.app/Contents/MacOS" installs the updates.
Have ideas or bug reports for one of our games?  Click here to get started with Mantis for Suggestions and Bug Reports.  Thanks for helping to make our games better!

Offline shotdown007

  • Newbie
  • *
  • Posts: 9
Re: Cant download the updates :(
« Reply #3 on: July 10, 2011, 07:56:00 pm »
BTW just adding to that, u have to right click the installer and click open to get to next step, ty for the help :3
 ;D

Offline heze

  • Newbie
  • *
  • Posts: 3
Re: Cant download the updates :(
« Reply #4 on: July 10, 2011, 08:14:46 pm »
I've got AI War 5.000 from Steam on Leopard and here's what I did to get the Beta updates installed:


  • Launch AI War from Steam
  • Continue Trial (I skipped entering License keys for now, can do that later)
  • "Game informs of beta updates, try to install them via the in-game installer. It will download the updates and then suddenly quit back to desktop."
  • Open Finder and navigate to /Users/<your username>/Library/Application Support/Steam/SteamApps/common/ai war fleet command/
  • With Ctrl-key held down, click AIWarAutoUpdater-osx.app and select "Show Package Contents"
  • Got to Contents/MacOS/
  • Doubleclick on the "osx-intel" (obviously works on Intel based Macs :P)
  • A terminal window should pop up and if it's configured to stay open after finishing a process it should read something like:
    Last login: Mon Jul 11 02:37:10 on ttys002
    hostname:~ username$ /Users/username/Library/Application\ Support/Steam/SteamApps/common/ai\ war\ fleet\ command/AIWarAutoUpdater-osx.app/Contents/MacOS/osx-intel ; exit;
    logout

    [Process completed]
  • Launch the game and the update notification has disappeared and top left corner should read 5.011 (at the time of writing)





Offline Nalgas

  • Hero Member
  • *****
  • Posts: 680
Re: Cant download the updates :(
« Reply #5 on: July 10, 2011, 08:36:33 pm »
If it's the same problem as other people were having when the OS X version first came out (and as I and someone else in my AI War group still had a week or two ago), it's the installbuilder.sh script.  Assuming you're using the Steam version, the exact file is "/Users/[username]/Library/Application\ Support/Steam/SteamApps/common/ai\ war\ fleet\ command/AIWarAutoUpdater-osx.app/Contents/MacOS/installbuilder.sh", and all you have to do is open it in your text editor of choice and convert the line endings from DOS to UNIX.

See this thread for the original discovery of the problem and this thread for a more recent/shorter discussion of it.  Here is a link to a replacement AIWarAutoUpdater-osx.app with the file fixed for you (from the Arcen servers, not me, for anyone who doesn't trust strangers on the Internet), if you're feeling lazy and/or don't know what I'm talking with all this computer jargon.


* Nalgas pokes Chris and/or Keith.

Hey guys, maybe this would be a good time to push out a new official non-beta version so all the new people playing on OS X can actually get updates without having to go through this, because I'm going to guess at least 95% of them are never going to get beyond just noticing that the updater doesn't work, much less searching for a solution and manually fixing it.

Edit: Holy crap.  Your forum software just converted that into [me] BBCode.  I think my brain just exploded.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Cant download the updates :(
« Reply #6 on: July 10, 2011, 09:33:26 pm »
Note that this problem exists only in the OSX Steam version of the game, and it's something to do with how their software treats the OSX executables.  They are pushing out updates from windows servers, which is where the line endings come from to my knowledge.  We tried to work that out when we pushed 5.0 with them, but were unable to do so at that time.  Pushing a new update wouldn't change anything with that, it's just something that has to get fixed in terms of their actual file depots.  Given that the in-game updates are not something that Steam completely is supportive of in the first place, I got the feeling is wasn't a priority thing to fix.

Next time we do a full version release we'll definitely try to address that with them again, but now is definitely not the time, for a variety of reasons specific to us and to Valve separately.  I apologize for the convenience to anyone on OSX Steam that wants the beta updates, but we have a fairly simple workaround there and this in no way affects the official updates.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Nalgas

  • Hero Member
  • *****
  • Posts: 680
Re: Cant download the updates :(
« Reply #7 on: July 10, 2011, 10:35:39 pm »
it's something to do with how their software treats the OSX executables.

The executables and binary data files and things like that are all fine.  The only thing it seems to affect is shell scripts, which seem to be fairly uncommonly used by games these days.  Actually, the only other time I remember running into one that was Steam-related was a temporary one for I think Trine that was posted to the forums that was to fix a bug before they could roll out a patch.  Not really an excuse for them to have it broken, but might be why they're not in a hurry to do something about it.

They are pushing out updates from windows servers, which is where the line endings come from to my knowledge.

I suppose that could do it, although there's probably some way for them to work around it (which might break other stuff, or at least require a lot of testing to make sure it doesn't).  Who even uses Windows servers in the first place, though?  I suppose the original Valve team all came from MS, though, which might explain it...

Something you might be able to do if Valve can't/doesn't change anything, depending on how all that stuff is set up, is to replace the shell script with an AppleScript.  It wouldn't surprise me if raw AppleScripts themselves have the same problem with line endings, considering they're probably not designed with "existing on anything other than an HFS+ filesystem" in mind.  However, you can compile them in the script editor, which should get around that.  You can also trivially convert the shell script to an AppleScript by using whatever the AppleScript command is that calls whatever string you pass it as a shell script.

Ok, just double checked, and it really is as simple as:

Code: [Select]
do shell script "<foo>"
You can stick that in the AppleScript Editor and compile it from there or just in a plain old text file and use the command line tools ("osascript" runs scripts, "osacompile" compiles them, man pages have the gory details) to do it that way, et voilĂ .  I just tested a "hello world" script on my MacBook with HFS+, uploaded it to a Linux server (I think using ext4?), downloaded it on a Win7 box on the other side of the room using NTFS, and copied it back over the network to the original computer, and it still runs "echo 'hello world'" like it's supposed to.

Edit: I have no idea why this just occurred to me now, but I thought of a couple details that I meant to mention.  The results I got do not guarantee that it would survive Steamification (I don't know the details of how it works, never having worked with them myself), but they're encouraging.  They do mean that it doesn't use the resource fork of HFS+ in any way (yes, there are still a handful of OS X features using it these days for some bizarre reason, like text clippings), which is good.  The file transfers were also done with SFTP, HTTP, and SMB, for anyone playing along at home, and it seems fine as plain old binary data just the way it is.
« Last Edit: July 11, 2011, 02:03:23 am by Nalgas »

Offline Nalgas

  • Hero Member
  • *****
  • Posts: 680
Re: Cant download the updates :(
« Reply #8 on: July 11, 2011, 02:22:44 am »
In other news, Plants vs. Zombies has shell scripts in the image directories in the Mac version that appear to download properly with the correct line endings and run fine.  I have no idea why.  Unless PopCap has magic powers (which I wouldn't put past them), if it's truly not possible to get Steam to do it correctly when it directly downloads the files the way it normally does, one of my top guesses would be some kind of first-run install (hidden from the user during the loading screen, knowing them...polish, polish, polish!) that unpacks them from somewhere else or something along those lines.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Cant download the updates :(
« Reply #9 on: July 11, 2011, 06:37:08 am »
It is possible to do, but steam has to be configured to alter the file's permissions and such as it installs. With Tidalis, for instance, this happens just fine and our installer works there. But we couldn't figure out why it wasn't working all of a sudden in the latest AI War. Prior to 5.0 it worked there too.
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!

Offline Nalgas

  • Hero Member
  • *****
  • Posts: 680
Re: Cant download the updates :(
« Reply #10 on: July 11, 2011, 06:59:23 am »
The weird part is that the permissions were set correctly, if I remember right.  Actually, strike that.  I just scrolled up in my terminal window to two weeks ago, and it has the basic attributes set correctly, but it also has the flag indicating that it has some extended attributes set on it, but I have no idea what, because I deleted the file.  I'm curious now and am getting a fresh copy from Steam to see what exactly it's doing to it.  Almost nothing ever has any of those set, so that's kind of strange-ish.

Offline Nalgas

  • Hero Member
  • *****
  • Posts: 680
Re: Cant download the updates :(
« Reply #11 on: July 11, 2011, 07:29:47 am »
Well then, no explanation for that, since the fresh copy looks normal.  I blame Spotlight or one of the other things that stores metadata there.  All the permissions are correct.  It really is fine other than the line endings in that one file.  Ok, I will stop poking at that now and find something better to do.  This is clearly a sign that I need to find a job already so I can get a break from my hobbies...

Offline Cyborg

  • Master Member Mark III
  • *****
  • Posts: 1,957
Re: Cant download the updates :(
« Reply #12 on: July 11, 2011, 08:27:43 am »
Wild assumption, speculation, and unsolicited advice time.

A common situation is when changing the line endings happens when you use ASCII mode during FTP instead of binary. By chance, are you uploading using FTP to valve?

If you are doing a straight file transfer bit-by-bit copy, there's no reason they should be modifying your files on their side of it unless they are also doing ASCII FTP in some internal transfer. You should be using binary for sure, if you aren't already.

FTP is one of those old protocols that needs serious revision. Actually, it just needs to go away completely, along with its crappy neighbors telnet, rlogin, etc. You are better off with something like SCP. That will preserve your file attributes and permissions, as well as being much more secure. It also shouldn't mess with your line endings.

One other tidbit would be having the installer do permission stamping/attributes upon installation. I personally have my own little script I use for making a copy of a directory's permission/attributes recursively and then clone it to wherever my new copy of something is going to be; really helps during file transfers from disparate systems.  

edit: I don't use Macintosh/Apple products if it can be avoided. Linux or Windows.
Kahuna strategy guide:
http://www.arcengames.com/forums/index.php/topic,13369.0.html

Suggestions, bugs? Don't be lazy, give back:
http://www.arcengames.com/mantisbt/

Planetcracker. Believe it.

The stigma of hunger. http://wayw.re/Vi12BK

Offline Nalgas

  • Hero Member
  • *****
  • Posts: 680
Re: Cant download the updates :(
« Reply #13 on: July 11, 2011, 08:45:06 am »
FTP is one of those old protocols that needs serious revision. Actually, it just needs to go away completely, along with its crappy neighbors telnet, rlogin, etc.

As far as I'm concerned, anyone who still runs an FTP or telnet server is insane, at least one that's exposed to the outside world.  SFTP and SSH are totally fine, though, and they avoid all of those problems their ancient predecessors are known for.  The serious revision already happened a very, very long time ago, at some point in the 90s.  It's just that there are some stubborn people who never got the memo or are still refusing to go along with the rest of the world after all these years.

Offline x4000

  • Chris McElligott Park, Arcen Founder and Lead Dev
  • Arcen Staff
  • Zenith Council Member Mark III
  • *****
  • Posts: 31,651
Re: Cant download the updates :(
« Reply #14 on: July 11, 2011, 08:45:31 am »
Hmmm, that is a really interesting point all around.  Perhaps that's why we couldn't figure this out, is that it literally wasn't happening on their side.  I am uploading to Valve via FTP, but not in a raw file form.  I'm sending them zips, which they then unzip and then repackage in the format they need, and that handles that.  It may be that they had uploaded internally via FTP, though, which is a very good point to mention.  I'll talk to them about that this week.  Thanks!
Have ideas or bug reports for one of our games?  Mantis for Suggestions and Bug Reports. Thanks for helping to make our games better!