Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Triskelon1488

macrumors newbie
Sep 2, 2006
15
0
Ok I tried the code again, I export this from the terminal and every time it is 583 bytes in size, what do I do to get 310? I copied your code you posted in the txt file I exported. I can't open it in terminal. I don't know what type in the zero hour terminal file. I ran this code below and it ends up 583. Do I run this code then export then copy the code you posted in the last one? Sorry this mac terminal code is just too much for me..

Last login: Thu Jan 2 21:08:32 on ttys000
Mikes-iMac:~ money$ cd /Users/money/Games/Command\ \&\ Conquer\ Generals/Zero\ Hour/Zero\ Hour.app/Contents/MacOS/
Mikes-iMac:MacOS money$ pwd
/Users/money/Games/Command & Conquer Generals/Zero Hour/Zero Hour.app/Contents/MacOS
Mikes-iMac:MacOS money$ ls -al
total 78784
drwxr-xr-x 4 root admin 136 Jan 2 21:08 .
drwxr-xr-x 6 root admin 204 Dec 4 2006 ..
-rw-r--r--@ 1 money staff 324496 Oct 2 2012 OpenTransport
-r-xr-xr-x 1 root admin 40008712 Dec 1 2006 Zero Hour_bin
Mikes-iMac:MacOS money$
 
Last edited:

Triskelon1488

macrumors newbie
Sep 2, 2006
15
0
Ok I finally understand what the chmod +x does now and how the txt extension has to be removed to make it a terminal file. I'm wondering what I have to have in the file to make it work. I tried what you posted on the last one, no luck. I'll post with updates sorry about all of this.


3 : ONLY copy/paste the code from TPG : the file size should be 310 not 583 !! and saved in .Txt not Rtf !!!!

K this is what I need to know. what to copy to export to 310 bytes.




Mikes-iMac:~ money$ /Users/money/Games/Command\ \&\ Conquer\ Generals/Zero\ Hour/Zero\ Hour.app/Contents/MacOS/zero\ hour ; exit;
/Users/money/Games/Command & Conquer Generals/Zero Hour/Zero Hour.app/Contents/MacOS/zero hour: line 1: drwxr-xr-x: command not found
/Users/money/Games/Command & Conquer Generals/Zero Hour/Zero Hour.app/Contents/MacOS/zero hour: line 2: drwxr-xr-x: command not found
/Users/money/Games/Command & Conquer Generals/Zero Hour/Zero Hour.app/Contents/MacOS/zero hour: line 3: -rw-r—r—@: command not found
/Users/money/Games/Command & Conquer Generals/Zero Hour/Zero Hour.app/Contents/MacOS/zero hour: line 4: -r-xr-xr-x: command not found
logout

[Process completed]

none of the commands in the file were found when trying to start. Can't believe it's this difficult.
 
Last edited:

tpg

macrumors regular
Mar 19, 2010
228
4
what to copy to export to 310 bytes.

none of the commands in the file were found when trying to start. Can't believe it's this difficult.

I have no idea what you're copying, but it's certainly not correct.

Have you read the instructions in my first post? It quite clearly states all the text that the script should contain; no more, no less.
 

Triskelon1488

macrumors newbie
Sep 2, 2006
15
0
I have no idea what you're copying, but it's certainly not correct.

Have you read the instructions in my first post? It quite clearly states all the text that the script should contain; no more, no less.

Ok the code from the first page? Is this what I put in a txt file to the zero hour.app/macos folder? What do I fill in all the names with?

#!/usr/bin/env python

def main():
import os
path = os.path.dirname(os.path.realpath(__file__))
command='DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES="{0}/OpenTransport" "{0}/Zero Hour_bin"'.format(path)
import subprocess
subprocess.call(command, shell=True)

if __name__ == '__main__':
main()
 
Last edited:

Gotmath

macrumors newbie
Jan 3, 2014
1
0
Can't play ZH!?

A quick Google search landed me here. I bought a Mac mini and just tried to load up Generals/ZH.

I got the error message "You can’t open the application “Command & Conquer Generals” because PowerPC applications are no longer supported."

I have OSX v 10.8.5.

Is there a solution that will allow me to continue to play on my new machine?

Thanks!
 

Triskelon1488

macrumors newbie
Sep 2, 2006
15
0
A quick Google search landed me here. I bought a Mac mini and just tried to load up Generals/ZH.

I got the error message "You can’t open the application “Command & Conquer Generals” because PowerPC applications are no longer supported."

I have OSX v 10.8.5.

Is there a solution that will allow me to continue to play on my new machine?

Thanks!

https://www.macupdate.com/app/mac/18448/command-&-conquer-generals:-zero-hour/

click the download button in the top left.
 

Jobymac

macrumors newbie
Dec 24, 2013
6
0

Jobymac

macrumors newbie
Dec 24, 2013
6
0
Pour les supers impatients :

- Chercher le fichier OpenTransport.framework dans le dossier Systeme/blibliothèque/PrivateFrameWork depuis Mac Os X Lion 10.7
- Copier le fichier OpenTransport qui se trouve dans le paquet (via le menu contextuel : afficher le paquet) du fichier OpenTransport.framework, dans le paquet (via le menu contextuel : afficher le paquet) du programme Zero Hour (très précisément : Zero Hour.app/contents/MacOs/)

- Dans le paquet (via le menu contextuel : afficher le paquet) du programme Zero Hour renommer le fichier Zero Hour en Zero Hour_bin (vérifier qu'il n'y a pas d'extension cachée avec la commande Pomme + I)
- Créer avec TextEdit, le fichier texte Zero Hour (copier/coller du code de TPG) et sauvegarder ce nouveau fichier en TXT. Vérifier qu'il n'y a aucune extension !!!!!!!
- Transformer ce fichier texte Zero Hour en exécutable en tapant dans le terminal de Mac Os X : chmod +x Zero\ Hour
- Copier fichier texte Zero Hour dans le paquet (via le menu contextuel : afficher le paquet) du programme Zero Hour (très précisément : Zero Hour.app/contents/MacOs/)

Si tout est bien correct, vous aurez 3 fichiers avec l'apparence de l'icône du terminal soit : openTransport, Zero Hour et Zero Hour_bin.

cliquer sur l'icône Zero Hour (celui du jeu)



Hi,

first i'm so sorry d'être impatient :)

Second tu vas vraiment m'excuser car je te demanderai de prendre ton temps et de me fournir les détails que je te poserai point par point et ligne par ligne.

1. ou et comment trouver et installer "Open Transport" si c'est un link via Web site faire le copier coller.
2. quel C&C faudrait il installer ? s'il y a un link possible de faire le copier coller du link.
3.Expliquer par des mots plus claires le copier coller de Open Transport vers C&C

Merci pour la patience et pour l aide
 

edumac

macrumors member
Oct 26, 2013
30
0
Hi,

first i'm so sorry d'être impatient :)

Second tu vas vraiment m'excuser car je te demanderai de prendre ton temps et de me fournir les détails que je te poserai point par point et ligne par ligne.

1. ou et comment trouver et installer "Open Transport" si c'est un link via Web site faire le copier coller.
2. quel C&C faudrait il installer ? s'il y a un link possible de faire le copier coller du link.
3.Expliquer par des mots plus claires le copier coller de Open Transport vers C&C

Merci pour la patience et pour l aide

1 - OpenTransport est un composant que m'on trouve jusqu'à Mac Os X 10.7. Il suffit de demander à un possesseur de Lion, d'envoyer par mail ce fichier. Après il faudra le replacer dans le paquet du programme Zero Hour.

2 - On parle du dossier Zero Hour qui contient le jeu Zero Hour qui contient le paquet Zero Hour, pas C&C.

3 - Placer le fichier Open Transport dans le paquet du programme Zero Hour, via le menu du clic droit de la souris : afficher le paquet du programme Zero Hour qui se trouve dans le dossier Zero Hour qui inclut le programme Zero Hour qui inclut un paquet contenant des fichiers et dossier soit : Zero Hour / Zero Hour -> Contents/MacOs/...
 

Jobymac

macrumors newbie
Dec 24, 2013
6
0
1 - OpenTransport est un composant que m'on trouve jusqu'à Mac Os X 10.7. Il suffit de demander à un possesseur de Lion, d'envoyer par mail ce fichier. Après il faudra le replacer dans le paquet du programme Zero Hour.

2 - On parle du dossier Zero Hour qui contient le jeu Zero Hour qui contient le paquet Zero Hour, pas C&C.

3 - Placer le fichier Open Transport dans le paquet du programme Zero Hour, via le menu du clic droit de la souris : afficher le paquet du programme Zero Hour qui se trouve dans le dossier Zero Hour qui inclut le programme Zero Hour qui inclut un paquet contenant des fichiers et dossier soit : Zero Hour / Zero Hour -> Contents/MacOs/...


Ton explication est très claire thanks. Mais le soucis demeure :
1.j'ai OS X Mavericks vous me demandez de demander de voir avec le processeur de Lion de m'envoyer cela par mail. je ne sais pas comment faire cela.

2. Avant d'avoir le dossier Zero Hour qui contient le jeu Zero Hour il faudrait l'installer. voila pkoi j'aimerai savoir, y a t il un link qui me permettrai de telecharger ?


donc pour résumer 1. procedure pour avoir Open Transport puis 2. Link pour Download C&C. après ça je pense que ça ira. ou s'il y a moyen de créer une video qui montrerai différentes étapes
 

jamboy3

macrumors newbie
Jan 8, 2014
1
0
C & C Zero Hour Mavericks Patch...tpg is brilliant!

Hi gentlemen,
I have to say that I am knocked out by the technical minds on this forum. (tpg in particular). Unfortunately, I am a lifer musician and have not spent time writing code or editing software like many of you on this site.
Is there a way to package what tpg has done with regards to the 'Mavericks fix' and put it in a single file which could be executed from a simple install file? As a basic 'point and click' type of user, I'm sure there are several of us out there that would be extremely overjoyed to get Zero Hour working again.
Thanks in advance for any responses. I eagerly await news from all of the programming geniuses on MR!
 

edumac

macrumors member
Oct 26, 2013
30
0
Ton explication est très claire thanks. Mais le soucis demeure :
1.j'ai OS X Mavericks vous me demandez de demander de voir avec le processeur de Lion de m'envoyer cela par mail. je ne sais pas comment faire cela.

2. Avant d'avoir le dossier Zero Hour qui contient le jeu Zero Hour il faudrait l'installer. voila pkoi j'aimerai savoir, y a t il un link qui me permettrai de telecharger ?


donc pour résumer 1. procedure pour avoir Open Transport puis 2. Link pour Download C&C. après ça je pense que ça ira. ou s'il y a moyen de créer une video qui montrerai différentes étapes

La communauté mac et les associations sont justement là pour vous aider. vous devriez trouver au moins une personne avec Mac Os X Lion dans votre région.

Zero hour est un jeu qui n'est pas gratuit, vous ne trouverez pas de lien pour le télécharger : il faut l'acheter.
 
Last edited:

shafez

macrumors 6502
Jul 3, 2011
274
157
United States
Guys, Can one post a the script before converting it excitable as an example, i don't see to understand how to do it.

Best Regards
 

Triskelon1488

macrumors newbie
Sep 2, 2006
15
0
I think the same open transport problem is happening with Warcraft 3 frozen throne, does anyone know. I'm trying the same code setup and having problems.
 

Brian21

macrumors newbie
Feb 3, 2014
1
0
Having Troubles Following Directions

tpg

I downloaded OpenTransport from the suggested website. I think it's supposed to be a package, but its not recognized as such. Anyway, I attempted the DYLD command as instructed after positioning myself in the Terminal to the C&C Zero Hour MacOS folder. The cd positioning command looked like this:

cd /Applications/Command\ \&\ Conquer\ Generals/Zero\ Hour/Zero\ Hour.app/Contents/MacOS

Then I copied, pasted and executed your DYLD command trying various alternatives: 1) Exactly as you typed it, 2) Substituting the full path to the downloaded Transport.

Neither one worked. I received the message:

dyld: could not load inserted library '/full/path/to/OpenTransport.framework/Versions/A/OpenTransport' because image not found

Can you still help on this issue?
 

Blogger52

macrumors newbie
Feb 17, 2014
4
0
Hi gentlemen,
I have to say that I am knocked out by the technical minds on this forum. (tpg in particular). Unfortunately, I am a lifer musician and have not spent time writing code or editing software like many of you on this site.
Is there a way to package what tpg has done with regards to the 'Mavericks fix' and put it in a single file which could be executed from a simple install file? As a basic 'point and click' type of user, I'm sure there are several of us out there that would be extremely overjoyed to get Zero Hour working again.
Thanks in advance for any responses. I eagerly await news from all of the programming geniuses on MR!
I think that this proposal is only way for users with no technical knowledge to start playing Zero Hour again.
tpg @ we need your help :)
 

Tanev

macrumors newbie
Feb 24, 2014
1
0
Hey, so after a few hour of attempts I'm completely stuck.

What I did:

1) went to google and looked up OpenTransport.framework and downloaded the file in the /A folder. It saved in my downloads as a white fire that can not be opened and I placed that In Zero Hour.app/Contents/Mac OS

2) changed the name of Zero Hour to Zero Hour_bin in Zero Hour.app/Contents/Mac OS

3) created the script and turned it into executable (310kb size).

Now when I double click the Zero Hour icon I get nothing, if I click the executable that I also placed in Zero Hour.app/Contents/Mac OS I get the following:

$ /Applications/Zero\ Hour/Zero\ Hour.app/Contents/MacOS/Zero\ Hour ; exit;
/bin/sh: /Applications/Zero Hour/Zero Hour.app/Contents/MacOS/Zero Hour_bin: Bad CPU type in executable
logout

[Process completed]
 

helgainpanama

macrumors newbie
Oct 27, 2013
2
0
10.9.2

I updated today OS X to 10.9.2 and it doesn't work anymore. Do you have please any suggestion?

Thanks a lot...


I've got it working - all you need is a version of OpenTransport.framework (specifically you only the dylib within this package at 'Versions/A/OpenTransport' - the rest is just metadata that isn't needed for our purposes), from an older version of OS X. (I happened to notice that someone - not me - has this cached on a google-able website).

You can then go into the "Zero Hour.app" package, and in Contents/MacOS run (using a terminal):

Code:
DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=/full/path/to/OpenTransport.framework/Versions/A/OpenTransport ./Zero\ Hour

Once you've got it working, you can package it up a bit more nicely so just double clicking on the app will work again. Copy the "OpenTransport" file into the MacOS folder of the Zero Hour app, and move the executable called "Zero Hour" to something like "Zero Hour_bin". Then an executable python script called "Zero Hour" with the following contents gets the job done, as it's executed when you double click the app:

Code:
#!/usr/bin/env python

def main():
  import os
  path = os.path.dirname(os.path.realpath(__file__))
  command='DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES="{0}/OpenTransport" "{0}/Zero Hour_bin"'.format(path)
  import subprocess
  subprocess.call(command, shell=True)

if __name__ == '__main__':
  main()

To make this script executable from the command line (sorry if it's obvious), you'd do

Code:
chmod +x Zero\ Hour

NB, I found that most stuff in here was owned by root, so I had to "sudo" all my mv, cp and chmod commands.

For anyone that's interested in the underlying issue that we're solving - as you've probably guessed it has nothing to do with GameKit. In fact, it's due to the fact that this particular game has a dependence on the OpenTransport framework (a library providing low level networking functions), and this has been deprecated for many years. Apple has finally removed it, as expected, and it won't be restored via an update.

Having spent a few too many hours looking through the disassembly, it seems as though the only obvious dependency is a function "OTAtomicAdd16", and possibly one or two variations on this theme -- the point is that these appear to be *very* simple functions, so I would hope that there isn't much that can go wrong by using an older version of the library. Curiously though, none of the places I found it used in the game had anything to do with networking!

I've tested a couple of single player skirmishes, and everything seems fine, but I haven't had a chance to try multiplayer.

Hope this helps!
 

chocobacon

macrumors newbie
Feb 27, 2014
1
0
10.9.2 update

same thing here: Updated to 10.9.2 and no ZH!

Code:
admin-mbp:MacOS admin$ DYLD_FORCE_FLAT_NAMESPACE=1 DYLD_INSERT_LIBRARIES=/Applications/Command\ \&\ Conquer\ Generals/Zero\ Hour/OpenTransport.framework/Versions/A/OpenTransport ./Zero\ Hour
dyld: lazy symbol binding failed: Symbol not found: _gliCreateContextWithShared
  Referenced from: /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
  Expected in: flat namespace

dyld: Symbol not found: _gliCreateContextWithShared
  Referenced from: /System/Library/Frameworks/OpenGL.framework/Resources/GLEngine.bundle/GLEngine
  Expected in: flat namespace

Everything worked yesterday before the update, I checked contents of OpenTransport.framework, it has no extension and is executable...

Just checked, and GLEngine.bundle was modified at the time of update from 10.9.1 to 10.9.2. Finding differences is a bit beyond my level of knowledge
 
Last edited:

danleow

macrumors newbie
Feb 27, 2014
1
0
Solved

Initially I could run Zero Hour for quite sometime until it just stop working after splash screen even after several reinstallation but the Generals had no problem at all. I had tried every solution in this forum without success so I painfully look at each line in the Problem Report and noticed this.

Exception Type: EXC_BAD_ACCESS (SIGBUS)
Exception Codes: KERN_PROTECTION_FAILURE at 0x0000000000000000

VM Regions Near 0:
--> __PAGEZERO

I think some how my admin user privilege has been denied access to use Virtual Memory for Zero Hour. Could have been caused by other third party applications that mucks with the user privilege preferences/setting during installation which never rolled back after it installed. So I think my issue here is not CnC problem, is a bug in the OS.

MY SOLUTION, I created a new admin user account (I called it 'CnC' :D) and run Zero Hour from this account.... BingO! it works!. When you create a new user account your OS is at its basics even your third applications installed in another account appeared in this account but it is not 'Activated' until you open it in which the OS will requires you to confirm running third party app. So in simple words you have a 'clean fresh' OS. So now I have special user account for Zero Hour ;) which is cool too :cool:

By the way I am using Mountain Lion 10.8.5 and Macbook (not Pro) aluminium unibody late 2008. I know this thread is about Zero Hour on Mavericks but I hope this can help some of you.

'Never upgrade if you don't need it'
 
Last edited:
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.