The Hammer Forum

This is a community forum and not official technical support. — If you need official support: Contact Us

The following comments are owned by whoever posted them. We are not responsible for them in any way.

Back to Threads Reply to Thread

Did anybody get Hammer to work?

I want to be a game developer and Hammer looks awesome. I want to make a stage for Team Fortress 2, but I see that it's listed as not working.

Whenever I open it, I get a message saying "Warning: The configuration information for the game you're trying to edit is invalid or missing." It then asks me to either run anyway, cancel, or go to the wiki. Opening it anyway says "gameinfo.txt" does not exist. Is this problem related? And will resetting my configuration delete my save files and/or preferences for Portal, the Half Life 2 series, and Team Fortress 2? I'm probably missing something stupid. :P

Help would be greatly appreciated, thanks.

I have noticed the same thing. I never took too much into it at the time. Crossover could barely run tf2 at the time. It would be great if support was added.

Yeah. :|
Did you reset your configuration? I would do it, but I'm scared I'd mess up my awesome Source games.
And check out this post: http://www.codeweavers.com/compatibility/browse/name/?app_id=3379;forum=1;msg=60204

Indeed I did. But no help. I would really like to make a map, since I will most likely be getting a Team Fortress 2 server dedicated to crossover games users.

The main issue with Hammer is the D3D rendering:

Hammer renders multiple viewpoints to different windows. To do that, it uses a big back buffer(bigger than the single windows) and copies parts of the back buffer to separate windows.

On OpenGL you cannot really do that. The backbuffer is tied to a window, and it cannot be bigger(or smaller) than the window. Furthermore, it is hard to copy the rendering to a different window at the end. So in order to implement that, we'll have to render the big backbuffer offscreen to a GL frame buffer object, and then set up separate GL contexts for each destination window. Then, render a quad textured with the fake offscreen backbuffer to the windows real backbuffer and present it. That needs some additional infrastructure for our D3D implementation.

On OSX we have another problem: We can't render OpenGL content to a child window. We either have to get rid of X11, or add compositing support to our X11 server. The latter is more likely, since if we were using native Carbon or Cocoa we'd need a separate window access process anyway since in Carbon only one process can draw to each window, while on Windows any process can draw to any window. We might as well just use the standardized X server for emulating that behavior.

So we don't deliberately ignore Hammer, its just a whole lot of work. Considering the amount of posts Hammer has, and TF2, HL2 etc have, we cannot justify putting this amount of work into hammer right now. Also, I haven't seen any other app yet that has this big backbuffer issue.

Dingus wrote:

Indeed I did. But no help. I would really like to make a map, since
I will most likely be getting a Team Fortress 2 server dedicated to
crossover games users.

Oh, that sucks. :|
Maybe we have to do some custom configuration or something?
Yeah, it looks cool. Ah, right, you're the dude with the server. :)

Stefan Dösinger wrote:

The main issue with Hammer is the D3D rendering:

Hammer renders multiple viewpoints to different windows. To do that,
it uses a big back buffer(bigger than the single windows) and copies
parts of the back buffer to separate windows.

On OpenGL you cannot really do that. The backbuffer is tied to a
window, and it cannot be bigger(or smaller) than the window.
Furthermore, it is hard to copy the rendering to a different window
at the end. So in order to implement that, we'll have to render the
big backbuffer offscreen to a GL frame buffer object, and then set
up separate GL contexts for each destination window. Then, render a
quad textured with the fake offscreen backbuffer to the windows real
backbuffer and present it. That needs some additional infrastructure
for our D3D implementation.

On OSX we have another problem: We can't render OpenGL content to a
child window. We either have to get rid of X11, or add compositing
support to our X11 server. The latter is more likely, since if we
were using native Carbon or Cocoa we'd need a separate window access
process anyway since in Carbon only one process can draw to each
window, while on Windows any process can draw to any window. We
might as well just use the standardized X server for emulating that
behavior.

So we don't deliberately ignore Hammer, its just a whole lot of
work. Considering the amount of posts Hammer has, and TF2, HL2 etc
have, we cannot justify putting this amount of work into hammer
right now. Also, I haven't seen any other app yet that has this big
backbuffer issue.

Yikes. D:
I don't know much about this technical stuff, but that sounds annoying. And I get what you're saying about giving more support to more popular apps, that makes sense.
Could you change Hammer so it only has one viewpoint or is it possible that an alternative, 3rd party program that's either native to Mac OS or Linux or that runs in Windows (under CrossOver, of course) could do the job? I've never used Hammer, so sorry if I'm not noticing something obvious. (And again, I don't know much about Hammer, but it seems like multiple viewpoints might be necessary.)

UPDATE:
I just got a random idea. This probably wouldn't work at all, but could you use a program like Unity to make levels in Source, or does Source/Hammer use a special format?

I'm about to test hammer in crossover games 8 rc1. I didn't understand anything stefan said.

Oh, wow, I totally forgot to install CG 8 RC1. -_-
I'll try it out now.

Well, I think he means that Hammer is designed in such a way that it uses technologies that can't be emulated easily in CrossOver, and that programs don't usually do that, so it doesn't currently run under CrossOver at all.

Here is the error I got.

SteamStartup() failed: SteamStartup(0xf,0x0033F480) failed with error 1: failed to take master pipe connection lock

So Steam didn't start up at all in the RC?

It's a hammer error somehow.

So it happens in Hammer after opening it with Steam?

Yeah, maybe i should try without steam.

I got a different error. :(
image

I actually got to the hammer screen. You need to right click and click launch. Then you should get my error heheh

Wow, that's weird. xD
When I right clicked to launch Hammer, I just got the same exact problem I had earlier. :(

I get this after launching it:
image
After running it anyway, I get this:
image

Turns out those are both errors NOT caused by crossover games. It is very common for hl2 ep2 owners.

Wow, really? :|
Do you know if there's a way to fix it?

Doing exactly what it said. The gameinfo is your stats. Hammer thinks your stats are invalid.

Oh snap, I just did it again but using TF2, and it showed the window a little.
First I got a black screen, then the blank window, then I clicked new, I got another black screen, I got some sort of error about it not responding or something, and then it continued to not do anything. :|
Should I fix my gameinfo for HL2 and try it again?

how does one fix this game info you speak of?

would love to get hammer working, got lots of map ideas... and that dedi server 4 all us crossoverers... would rock! love that idea!

I have no clue. :|
Maybe reset the game save file? Or create a blank file? I'm just guessing.
And yeah, they would both be awesome. :|

has anyone tested hammer on VMware?

maybe that might work, or would that just strait up fail?

Well, not to be rude, but that's totally off topic. And I don't have VMware. And I think it should work. That's like parallels, right?

it is, but it fails @ running games

but yeah it should work unless hammer has crazy computer requirements, vmware should handle it, then you'd just need 2 transfer it somehow

Oh, ok. But it uses 3D graphics obviously, so that could be a problem. And you'd probably be able to share stuff along your hard drive between the two. And what about people without VMWare? Do you think something like VirtualBox could do the trick?

thats a good idea there, i can try it out in VB if i get the time 2 install everything on VB...

anyone tried hammer on 8.0? never bothered to, but might as well you know?

I tried it again. No luck. You can't click Hammer in the SDK to open it, you have to right click and select launch. Last time I tried it I coulde see the window for a second but then it just blacked out and had all these weird glitches, so it's pretty much useless.

And I'm running Mac OS Leopard 10.5.8 (on a Mac).

Just wanted to throw this out there.. I don't have VMWare to try out, but Hammer/SourceSDK/tools etc all work great under Parallels. You have to do some mouse tweaks (turn off the 'smart' mouse features in parallels) but otherwise Hammer works just fine.

I have both CXG/P and Parallels and use whichever best suits any given task. For SourceSDK work, it's going with a vm.

as steam is coming to macs i'd hope valve remembers that the mac community has map makers... hopefully they'll turn hammer into a mac app as well... cross fingers and pray
repeat
repeat
repeat...

1 to 31 of 31

CrossOver Forums: the place to discuss running Windows applications on Mac and Linux

CodeWeavers or its third-party tools process personal data (e.g. browsing data or IP addresses) and use cookies or other identifiers, which are necessary for its functioning and required to achieve the purposes illustrated in our Privacy Policy. You accept the use of cookies or other identifiers by clicking the Acknowledge button.
Please Wait...
eyJjb3VudHJ5IjoiVVMiLCJsYW5nIjoiZW4iLCJjYXJ0IjowLCJ0enMiOi02LCJjZG4iOiJodHRwczpcL1wvbWVkaWEuY29kZXdlYXZlcnMuY29tXC9wdWJcL2Nyb3Nzb3Zlclwvd2Vic2l0ZSIsImNkbnRzIjoxNzMxNDM1MjAzLCJjc3JmX3Rva2VuIjoiRWh5bnFNU0V2bjlRcUtSUyIsImdkcHIiOjB9