Page 2 of 3

Re: How does one use new maps on a Mac?

Posted: 30 May 2009, 23:59
by Buginator
No. .wz files are just zip files, and they contain mods or maps or music ...

I am not 100% sure where they are on the mac.

Re: How does one use new maps on a Mac?

Posted: 31 May 2009, 04:01
by Zarel
heatwave wrote:So apparently, .wz files are Windows only?
No, they work in Windows, Mac, and Linux. The default Mac OS X package doesn't compress the game data into .wz files like Windows does, but it still loads external maps and mods from .wz files just fine.

Granted, I haven't done much with it myself, but it's theoretically possible. ;)

Re: How does one use new maps on a Mac?

Posted: 31 May 2009, 05:07
by heatwave
Ah, I see. So, if I were to unzip a .wz file (which I can't) I would find all the files displayed in my picture?
And Warzone is smart enough that it doesn't need you to unzip your .wz files. It reads the zipped files just fine. That makes sense.

Warzone still isn't recognizing my maps (even after a fresh install), whether I put them along with the bundled maps or in the maps folder in the Application Support file.
So, I guess adding custom maps on Mac OS X is broken? Where/how do you guys put/place your custom maps?

Also, I stumbled across a file inside Warzone with the extension .win32. Call me crazy, but that seems out of place on a Mac...

Re: How does one use new maps on a Mac?

Posted: 31 May 2009, 05:22
by Buginator
heatwave wrote:Ah, I see. So, if I were to unzip a .wz file (which I can't) I would find all the files displayed in my picture?
And Warzone is smart enough that it doesn't need you to unzip your .wz files. It reads the zipped files just fine. That makes sense.

Warzone still isn't recognizing my maps (even after a fresh install), whether I put them along with the bundled maps or in the maps folder in the Application Support file.
So, I guess adding custom maps on Mac OS X is broken? Where/how do you guys put/place your custom maps?

Also, I stumbled across a file inside Warzone with the extension .win32. Call me crazy, but that seems out of place on a Mac...
Hmm, search your HD for folders called "screendumps", "savegames", "maps", "multiplay", "music", and files, "config", "keymap.map" in that directory that has these folders, stick the new .wz maps in the maps folder.

I guess it is possible that physfs wasn't compiled with zip support on the mac?

Re: How does one use new maps on a Mac?

Posted: 31 May 2009, 05:31
by heatwave
I'll check right now. Meanwhile:
Zarel wrote:(MacBook, bought Jun 2008)
CPU: 2.1GHz Intel Core 2 Duo T8100
RAM: 2 GB
Video Card: Intel GMA X3100
OS: Mac OS X 10.5 Leopard / Windows XP Professional
Hey Zarel, you could help me out here. I'm sure you could figure out the right place to put my .wz maps just by looking through Warzone's file structure, right? I'm pretty sure you can't run Warzone on a MacBook (unless you overclock the GMA) but if you could give me a definite answer as to where custom maps belong, and thing still don't work after I place them there, then I'd say there's a pretty good chance that all Mac users are having this problem.

Edit:
Hmm, search your HD for folders called "screendumps", "savegames", "maps", "multiplay", "music", and files, "config", "keymap.map" in that directory that has these folders, stick the new .wz maps in the maps folder.
The folder with those files/folders is called "Warzone 2.2", found in ~/Library/Application Support/. Placing .wz files in the maps folder like you said does nothing. Would a more recent .wz file be different than one from a few months ago?

Re: How does one use new maps on a Mac?

Posted: 31 May 2009, 06:30
by Buginator
heatwave wrote: The folder with those files/folders is called "Warzone 2.2", found in ~/Library/Application Support/. Placing .wz files in the maps folder like you said does nothing. Would a more recent .wz file be different than one from a few months ago?
Nope.
I wish we can get the --debug all --debugfile whatever.txt output from you, since that tells us where it is reading everything from, and we can check that way.

http://macapper.com/2007/03/08/the-term ... roduction/
Maybe that will help you on how to get what we need from within the terminal?

Re: How does one use new maps on a Mac?

Posted: 31 May 2009, 07:50
by Zarel
heatwave wrote:Hey Zarel, you could help me out here. I'm sure you could figure out the right place to put my .wz maps just by looking through Warzone's file structure, right? I'm pretty sure you can't run Warzone on a MacBook (unless you overclock the GMA) but if you could give me a definite answer as to where custom maps belong, and thing still don't work after I place them there, then I'd say there's a pretty good chance that all Mac users are having this problem.
Yes, custom maps belong in ~/Library/Application Support/Warzone 2100 2.2/maps/ (Just check the FAQ if you don't believe me). I just tested it on my MacBook, it doesn't work for me, either... One of us should file a bug. I nominate you. :P

And of course I can run Warzone on a MacBook - no overclocking required. It makes the MacBook pretty loud, but it works. Come on, Warzone isn't that resource intensive. -_-
Buginator wrote:I wish we can get the --debug all --debugfile whatever.txt output from you, since that tells us where it is reading everything from, and we can check that way.

http://macapper.com/2007/03/08/the-term ... roduction/
Maybe that will help you on how to get what we need from within the terminal?
Here, I've attached it. I can't see any information about maps at all.
whatever.txt
(26.05 KiB) Downloaded 261 times

Re: How does one use new maps on a Mac?

Posted: 03 Jun 2009, 00:53
by heatwave
So we've agreed that adding custom Maps on a Mac is broken. I'll start a ticket if you'd like. Too bad the debug info doesn't have any clues.
Zarel wrote:And of course I can run Warzone on a MacBook - no overclocking required. It makes the MacBook pretty loud, but it works. Come on, Warzone isn't that resource intensive. -_-
Well, when I tried to run Warzone on one of the Macbooks at school, it just sat there in the dock bouncing. must be something other than the graphics card or the processor. I'll have to try that again.

Re: How does one use new maps on a Mac?

Posted: 03 Jun 2009, 04:28
by Buginator
heatwave wrote:So we've agreed that adding custom Maps on a Mac is broken. I'll start a ticket if you'd like. Too bad the debug info doesn't have any clues.

Well, when I tried to run Warzone on one of the Macbooks at school, it just sat there in the dock bouncing. must be something other than the graphics card or the processor. I'll have to try that again.
I beg to differ, the debug info DOES give clues.
For example, assuming he did have .wz files in his directory, it would have spit out something like this:

Code: Select all

never   |09:52:16: [removeSubdirs] removeSubdirs: Examining subdir: [2c-c3col100.wz]
Anyway, the problem is PhysFS wasn't build correctly with zip support, so it can't read in zip files. And I guess the problem has been there since '07, yet nobody (that I can think of) said anything about it. Guess not many mac people play the game.

The Mac release is delayed, while we try to find someone who can fix that.

Btw, if you leave it 'bouncing', it will eventually start to play. It only does that once, and then after that, it will start right up. No, I have no idea what it is doing, I just know you need to leave it doing its thing...

Re: How does one use new maps on a Mac?

Posted: 03 Jun 2009, 05:17
by Zarel
heatwave wrote:Well, when I tried to run Warzone on one of the Macbooks at school, it just sat there in the dock bouncing. must be something other than the graphics card or the processor. I'll have to try that again.
You'll have to remember - there are a whole bunch of different laptops called the "MacBook". Your school may have a significantly older one than the one I have.

Re: How does one use new maps on a Mac?

Posted: 04 Jun 2009, 02:08
by heatwave
That's certainly possible. I think they have GMA 950s or something. At least they're replacing all the eMacs in the commons with iMacs.

Edit: The Ticket:
http://developer.wz2100.net/ticket/577

Re: How does one use new maps on a Mac?

Posted: 08 Jun 2009, 02:18
by Vermithrax
I'm late to this thread, so let me sum up a few things.

1) In order to use custom maps on a Mac, the .wz file should be copied into the /maps directory. This is located in <user name>/Library/Application Support/Warzone 2100 2.2/maps

2) Unfortunately, this only seems to work in code compiled in debug mode. In order to get that, you need to download the source code and compile it. Running --debug all --debugfile whatever.txt from the command line does not count.

3) Fortunately, there is a work-around. Take your .wz file and rename it to a .zip file. Then you can extract the folder inside, and copy it into the location above.

4) Unfortunately, this has only been tested in single player mode. I haven't been able to see what happens in multiplayer.

5) A debug file of what happens when attempting to use the file 4c-river_canyon.wz is attached.

Edited to add...

The second debug file is what happens when I've extracted the maps from the .wz files.

Re: How does one use new maps on a Mac?

Posted: 08 Jun 2009, 03:03
by heatwave
I'm not cool enough to read debug files. :stressed:
I assume it didn't work then?

Re: How does one use new maps on a Mac?

Posted: 08 Jun 2009, 07:38
by Buginator
Vermithrax wrote:I'm late to this thread, so let me sum up a few things.

1) In order to use custom maps on a Mac, the .wz file should be copied into the /maps directory. This is located in <user name>/Library/Application Support/Warzone 2100 2.2/maps

2) Unfortunately, this only seems to work in code compiled in debug mode. In order to get that, you need to download the source code and compile it. Running --debug all --debugfile whatever.txt from the command line does not count.

3) Fortunately, there is a work-around. Take your .wz file and rename it to a .zip file. Then you can extract the folder inside, and copy it into the location above.

4) Unfortunately, this has only been tested in single player mode. I haven't been able to see what happens in multiplayer.

5) A debug file of what happens when attempting to use the file 4c-river_canyon.wz is attached.

Edited to add...

The second debug file is what happens when I've extracted the maps from the .wz files.
Both these logs are from debug mode builds, or release mode builds? In either case, can you stick in 1 map.wz file in the maps directory, and then do the logs again?

I don't see any parsing of .wz files in either logs...

Re: How does one use new maps on a Mac?

Posted: 08 Jun 2009, 11:19
by Vermithrax
They're both release mode, version 2.2.0 as downloaded from this website.

In the "Second Debug.txt" file you can see where it comes across the decompressed map files.

And you're correct. In "Debug.txt" you can't see the .wz file at all.