Does the hammer editor run on Linux?

Discussion in 'Mapping Questions & Discussion' started by DonutVikingChap, May 20, 2013.

  1. DonutVikingChap

    DonutVikingChap L5: Dapper Member

    Messages:
    228
    Positive Ratings:
    142
    I searched the entire internet and I didn't find any answers to this question. It might seem stupid to ask but since Steam is now on Linux, is there any way to get the hammer editor working on a Linux OS to make TF2 maps?

    I currently don't have a Linux machine so I haven't tried anything yet, has anyone else?
     
  2. Kiddnils

    Kiddnils L3: Member

    Messages:
    140
    Positive Ratings:
    113
    There are certain ways you could run the hammer editor on linux. Right now Valve hasn't released it for their native steam client yet but you could try to emulate it with wine or run it in a virtual windows with a programm like virtualbox. There may be graphical issues and other bugs. Ask me if you have any question on how to do it.
     
  3. DonutVikingChap

    DonutVikingChap L5: Dapper Member

    Messages:
    228
    Positive Ratings:
    142
    What kind of graphical issues and bugs, and what would cause them? Do you think it would make a huge difference when mapping?

    EDIT: Also, what kind of hardware is actually needed to run hammer? I haven't really tried it on any other computer than my own, which is very powerful (3770K and 16GB RAM). Would something linke a Pentium 3 run it properly? Especially on Linux with Virtualbox/other
     
    Last edited: May 20, 2013
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    The rendering engine Hammer uses is very stripped down, so the graphical load shouldn't be too heavy until you get to very extensive maps (release quality) and even then there are options like max render range you can adjust along with hiding certain groups of stuff you don't need visible at the time. However it can easily become RAM weighty (I've seen it at 2 GB) if you've used/viewed lots of materials or models during the session.
     
  5. Kiddnils

    Kiddnils L3: Member

    Messages:
    140
    Positive Ratings:
    113
    In my experience if you don't use the proprietary drivers for your graphic cards there will be issues. Otherwise feel free to test it.
     
  6. Dark

    Dark L4: Comfortable Member

    Messages:
    159
    Positive Ratings:
    137
    I've run hammer on linux before. It worked well, a little glitchy with the window management in the app, and I can't remember how well the model/ texture browser was working. I haven't launched it since the sdk update, however, and I'm not sure how you should go about getting that to work.
    I use an Nvidia card (560ti) with the proprietary drivers.
    The major drawback is that compile times are a heck of a lot longer in wine. A super simple map that would have taken maybe 3 seconds to compile on windows was taking about a minute and a half to compile through wine. I'll post here again if I get the sdk update hammer working.
     
  7. Dark

    Dark L4: Comfortable Member

    Messages:
    159
    Positive Ratings:
    137
    I got the steam pipe sdk working!
    I used playonlinux (Download) to manage wine for me, along with an updated system wine, 1.5.31. If you are using ubuntu you will need to add a wine ppa to get this version of wine. Launchpad wine ppa
    I installed steam with playonlinux and then re downloaded tf2. I had some problems trying to share the data files with my ntfs formatted windows drive, so I would use a ext4 formatted drive only.
    After the game is installed hammer can be found under common/teamfortress2/bin. I launched hammer.exe with system wine-1.5.31.
    As for settings I had the window manager manage the windows, but not decorate them. Running the program under a virtual desktop helped some of the graphical bugs, but it made the entity property window appear under the editor. :/ 1.5.31 worked all right, I'm not sure if another version would work better.
    I don't think you can have wine hammer launch system native tf2 binaries, so I would just leave tf2 open on linux, and have hammer place the compiled bsps in your linux tf2's maps folder. This option can be changed in the options menu of hammer under build programs.
    Compile times don't seem that bad for the small maps I compiled to test it, but I would assume that they are taking a large hit under wine. I'm not sure if wine will make the compiler produce errors, but I wouldn't be super surprised if it did.
    Overall the program under wine seems all right, but there are some graphical problems relating to the views. These go away when you mouse over them or use them, but they make the editor feel a lot slower because the views don't update right when you put a new thing down, and need to be moved around a bit to display correctly.
    I'll need some more time to test boojum's pack with wine hammer; I'm not even sure it is updated for steam pipe yet.
     
    • Thanks Thanks x 1
  8. Smyther

    Smyther L1: Registered

    Messages:
    10
    Positive Ratings:
    0
    Having some trouble getting sourceSDK to fine tf2's gameinfo.txt I point it at C:/Program Files/Steam/SteamApps/common/Team Fortress 2/tf rather than the default steamapps/smyther/team fortress 2/tf but to no avail.

    Edit: Oh, I've already ran tf2, and found gameinfo.txt

    Edit: Whut. OK now it works, just be trying it 3 more times without changing anything. Oh well.

    Edit: Tried to download and load freight, but attemting to open it brings a "file does not exist" message, but I don't think this is linux-specific territory now.
     
    Last edited: Aug 23, 2013
  9. Samniss Arandeen

    Samniss Arandeen L1: Registered

    Messages:
    33
    Positive Ratings:
    7
    I use PlayOnLinux to manage Wine for me, I run Kubuntu 13.10 and both Steam on Wine and Steam for Linux have no noticeable problems.

    hammer.exe runs pretty smoothly...until I edit entities. Then KWin (KDE window manager) crashes, crashes, crashes, and fucking crashes.
     
  10. Endriou

    Endriou L1: Registered

    Messages:
    1
    Positive Ratings:
    0
    I've been working with hammer on Linux for over 2 years now. If you would like to try the method I used to get hammer working then follow the steps on the guide I created. I've tested this on many different Linux operating systems (Arch / Ubuntu / Debian / Fedora), and this method seems to work on all of them. One thing that I can't get working sometimes, is the Source SDK menu, so hammer has to be manually launched using 'cd $HOME/.wine/drive_c/"Program Files"/Steam/SteamApps/common/"Team Fortress 2"/bin/ && wine hammer.exe' in terminal.

    Compile: It is recommended you add "-low" for normal and expert compile parameters, otherwise wine might crash. Final compile has a very HIGH CHANCE OF NOT WORKING (working on a way to get it working using different parameters).

    Overall: Everything works, minus a few little bugs. The views work great for me. Most noticeable problem is the model view, which I found a way to fix. You can only use the model view via the entity properties for static and dynamic prop entities once for every new edit entity properties window. In other words, open entity properties, then hit the browse button then select the prop you want, hit okay, then apply and close the entity properties window. If you don't like that prop, just repeat. If you hit browse a 2nd time with the same entity properties window, the model browser will glitch up and you wont be able to select anything. The texture browse feature works fine, but for some reason some search words will freeze hammer. To kill hammer, just open a new terminal and type 'wineserver -k' and then try again using a different search word, using the same search word that froze hammer will just freeze it again and again.

    This will take you to the guide on my website.
     
    Last edited: May 7, 2015
  11. BloxxingBlocks

    BloxxingBlocks L1: Registered

    Messages:
    2
    Positive Ratings:
    0
    You can use either WINE or PlayOnLinux to insall Windows version of Steam, then use Half-Life SDK/Source SDK Hammer Editor/Portal 2 Authoring Tools Hammer Editor

    IMPORTANT: I have tested ONLY, yes I mean it, ONLY Half-Life SDK's Hammer Editor. You can test Portal 2 Authoring tools for Y-O-U-R-S-E-L-F. I will not do tests with it. I will go test Source SDK Now. :closedeyes: