Cheat Issues on Mac

Do you need help? Ask here!

Bug reporting belongs here: http://developer.wz2100.net/newticket
User avatar
Kardas
Rookie
Rookie
Posts: 16
Joined: 27 Feb 2007, 04:41
Location: Nowhere Important
Contact:

Cheat Issues on Mac

Post by Kardas »

I can't figure out how to cheat on Mac OSX 10.4.8, the big problem I see is not knowing how to enter command line entries when starting the game.  The topic this was part of before seems to have disappeared, but I was told to contact Ari (iamtheari), which I did through email and PM, but he has not replied to either and I'm very stuck in campaign mode.  If someone could walk me through this I'd be very grateful.
Last edited by gerard_ on 12 Mar 2007, 20:08, edited 1 time in total.
You can pick your friends, and you can pick your fights, but picking fights for your friends is hilarious.
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Cheat Issues on Mac

Post by lav_coyote25 »

well - i am going to assume that the mac can utilize desktop shortcuts...

go here  and click on the first image... will show you how and where to place the string.

your folder tree may be different but the stings involved shouldnt be...

mine = 
"C:\Warzone 2100_205_rc2\warzone2100.exe"  --mod grim.wz --fullscreen --viewport 1280x1024 --cheat
note the spaces and the double dashes - also ensure the punctuation is also correct... seems for some reason that is missed at times. ;D

also check out this page on the wiki.
‎"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
User avatar
Kardas
Rookie
Rookie
Posts: 16
Joined: 27 Feb 2007, 04:41
Location: Nowhere Important
Contact:

Re: Cheat Issues on Mac

Post by Kardas »

This is the information window for the "alias" file (same concept as a shortcut) but I don't think I can change the file path (select new original has no text input)

http://i178.photobucket.com/albums/w273 ... 00Info.jpg

Image
You can pick your friends, and you can pick your fights, but picking fights for your friends is hilarious.
User avatar
lav_coyote25
Professional
Professional
Posts: 3434
Joined: 08 Aug 2006, 23:18

Re: Cheat Issues on Mac

Post by lav_coyote25 »

no matter how i put it into the search on google... nothing usefull came up. >:(

dunno where else one would look.  unless there is a mac forum specifically for getting windows like stuff into the mac... ???

i can see the yelling now... "what!! omg your kidding!!! ;D
‎"to prepare for disaster is to invite it, to not prepare for disaster is a fools choice" -me (kim-lav_coyote25-metcalfe) - it used to be attributed to unknown - but adding the last bit , it now makes sense.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Cheat Issues on Mac

Post by DevUrandom »

Just asked ##mac on FreeNode... The answer was not very satisfying, but that's what they said:
"Create a wrapper shell script."

Contents could probably look like this:

Code: Select all

#!/bin/sh
/path/to/warzone2100.app --option1 ... --optionn
Kamaze
Regular
Regular
Posts: 1017
Joined: 30 Jul 2006, 15:23

Re: Cheat Issues on Mac

Post by Kamaze »

Kurdas, are we allowed to use/save that image?
We all have the same heaven, but not the same horizon.
User avatar
Kardas
Rookie
Rookie
Posts: 16
Joined: 27 Feb 2007, 04:41
Location: Nowhere Important
Contact:

Re: Cheat Issues on Mac

Post by Kardas »

DevUrandom wrote: Just asked ##mac on FreeNode... The answer was not very satisfying, but that's what they said:
"Create a wrapper shell script."

Contents could probably look like this:

Code: Select all

#!/bin/sh
/path/to/warzone2100.app --option1 ... --optionn
Thanks, I'll try that in a bit and let you know what happens.

Edit: Didn't work :-( said something like the event couldn't be found.
Kamaze wrote: Kurdas, are we allowed to use/save that image?
Sure, go for it
Last edited by Kardas on 13 Mar 2007, 22:37, edited 1 time in total.
You can pick your friends, and you can pick your fights, but picking fights for your friends is hilarious.
User avatar
DevUrandom
Regular
Regular
Posts: 1690
Joined: 31 Jul 2006, 23:14

Re: Cheat Issues on Mac

Post by DevUrandom »

They also said that firefox uses something like this... Maybe you want to look into the firefox app if you have it installed.
User avatar
shishkebab
Trained
Trained
Posts: 55
Joined: 06 May 2007, 01:25
Location: Earth

Re: Cheat Issues on Mac

Post by shishkebab »

I have the same problem! I think you should be able to add the option cheat to the config file to cheat. It would make things a lot easyer.
Image
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Cheat Issues on Mac

Post by Giel »

shishkebab wrote: I have the same problem! I think you should be able to add the option cheat to the config file to cheat. It would make things a lot easyer.
In SVN trunk r1244.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
Kyor
Trained
Trained
Posts: 73
Joined: 03 Apr 2007, 15:28

Re: Cheat Issues on Mac

Post by Kyor »

"Select new Original" ?
User avatar
Kardas
Rookie
Rookie
Posts: 16
Joined: 27 Feb 2007, 04:41
Location: Nowhere Important
Contact:

Re: Cheat Issues on Mac

Post by Kardas »

Tried that, there's no text entry it just allows you to choose a new application to go with that alias.

Would it be out of the question for the devs to make cheat mode simpler and easier to use on different platforms?  Maybe just an options menu item?  Just a thought.
You can pick your friends, and you can pick your fights, but picking fights for your friends is hilarious.
Giel
Regular
Regular
Posts: 725
Joined: 26 Dec 2006, 19:18
Contact:

Re: Cheat Issues on Mac

Post by Giel »

Kardas wrote: Tried that, there's no text entry it just allows you to choose a new application to go with that alias.

Would it be out of the question for the devs to make cheat mode simpler and easier to use on different platforms?  Maybe just an options menu item?  Just a thought.
Instead we've added this as an option to the config file, this is likely to appear in the next release.
"First make sure it works good, only then make it look good." -- Giel
Want to tip/donate? bitcoin:1EaqP4ZPMvUffazTxm7stoduhprzeabeFh
User avatar
Kardas
Rookie
Rookie
Posts: 16
Joined: 27 Feb 2007, 04:41
Location: Nowhere Important
Contact:

Re: Cheat Issues on Mac

Post by Kardas »

Sounds good, I guess I'll just wait for the next release then.
You can pick your friends, and you can pick your fights, but picking fights for your friends is hilarious.
User avatar
iMac
Trained
Trained
Posts: 55
Joined: 04 Jun 2007, 06:28
Location: Nacogdoches, Tx
Contact:

Re: Cheat Issues on Mac

Post by iMac »

Is this what you want???

First you have to find the Warzone2100 application.
Should be in your "Applications" folder

Right click on the Warzone 2100 icon and select "Show Package Contents".

Navigate the folders till you find "warzone2100.sh".
Should be in these folders "Contents/MacOS --> warzone2100.sh"

I made a backup copy of the file at this point.

Open warzone2100.sh in TextEdit.
You might have to right click on the file and go to "Open With --> Other".
Then select TextEdit from the Applications folder and click on "Open"

You should see this in the file:

#!/bin/sh

MYDIR=`dirname "$0"`
cd "$MYDIR"
pwd
exec ./warzone2100 --datadir ../Resources/data

Now add " --cheat" after "exec ./warzone2100 --datadir ../Resources/data"
Don't forget to include the space after the "/data".

It should now look like this.

#!/bin/sh

MYDIR=`dirname "$0"`
cd "$MYDIR"
pwd
exec ./warzone2100 --datadir ../Resources/data --cheat

Now save the file and start the game.

When playing hit "shift" and "delete" at the same time to go into debug/cheat mode

Then hit "t" on the keyboard and type in the cheats. Some cheats don't work.

Hope this is what you are looking for.

I included a picture to visually help show where and what it should look like.
Attachments
WarzoneCheatMac.jpg
"When you do things right, people won't be sure you've done anything at all."
"En Vino Veritas"
Post Reply