WineHQ

Valve Hammer Editor

Half-life/mods map construction tool.

 

changelog

This is the current changelog. It must be stressed that this is a work in progress, not a final release, so your comments and feedback are quite valuable.

  • added model rendering in the 3D view
  • added pointfile viewing to the 3D view
  • modified Half-Life and DoD FGDs to add model viewing support
  • improved the texture application tool and advanced compile mode dialog UI
  • separate pitch, yaw, and roll angle compasses added to entity properties
  • "animate models" toggle in 3d options
  • adjustable viewdistance for models in 3d options
  • selectable animation sequences
  • customizable 3D view background color
  • more to come
notes:

  • The angle compasses in the entity properties still don't work. They have not been hooked up yet. Note, though, that you can rotate models in the 2D views in the same way that you would rotate a brush model. To easily disable the default 15�, hold down Shift while you rotate an object.
  • There is an issue that occurs when you load a second map in Hammer. As explained by Matt, the textures aren't being re-generated for opengl (glGenTextures), so the models think they have a texture loaded and call glBindTexture, but get nothing, as the textures arent in there. Just something to be aware of, if you run into the problem.
  • To make model preview work, you must use the Half-Life FGD (or modify your mod FGD as outlined below) and unpack your PAK file's models folder to Half-Life\valve\models (or the applicable mod folder). You can find PAK file utilities in the Half-Life Utilities page. You must also make sure the Mod and Game Directory settings in your Game Configuration settings (accessible throught Tools -> Options) are set correctly.
  • The new masked-texture model format is supported. The masked areas of these models will be transparent in the editor.
FGD modification

Making Models Appear

To make a model appear in the 3D view, three things must be done. First, the "Game Directory" (and/or "Mod Directory") property in Tools / Options / Game Configurations must be set. Second, the models must be unpacked into the proper folder. Third, the entity definition in the FGD must include the studio() helper. This is done one of two ways.

case 1:
@PointClass studio() = entity_name
[
model(studio) : "Model"
]


In this case, the entity initially appears as the flatshaded box we've come to know and love, until a model is specified for its "model" property, at which time the model is then displayed in the 3D view.

case 2:
@PointClass studio("models/some_model.mdl") = entity_name []

In this case, the model is explicitly defined in the entity properties, and will always appear as this model in Hammer's 3D view.

Note that in either case, the model must be present in the specified folder or it will simply appear as the flatshaded box.

Setting Model Animation Sequences

To enable the ability to set the animation sequence of a model in the 3D view, a "sequence" property must be added to an entity. The value of "sequence" is an integer corresponding to the animation in the model. For example, the monster_hgrunt_dead entity in the FGD has the following property added to it:

sequence(Choices) : "Animation Sequence (editor)" : 44 =
[
44 : "deadstomach"
45 : "deadside"
46 : "deadsitting"
]


This could just have easily been setup as an integer, as the Choices variable type just lets you give a list of integers with descriptive names to choose from.

Note that the animation sequence setting only affects the display of the model in the editor, not in the game. This is mainly useful for differentiating between things like monster_scientist, monster_sitting_scientist, and monster_scientist_dead, which would otherwise all show the same model, plus it will greatly aid in the placement of scripted sequences.

Application Details:

Version: 3.5 beta
License: Free to use
URL: https://developer.valvesoftwar...
Votes: 1
Latest Rating: Silver
Latest Wine Version Tested: 1.7.8

Maintainers: About Maintainership

Link Hammer beta Free Download Hammer beta

Test Results

Old test results
The test results for this version are very old, and as such they may not represent the current state of Wine. Please consider submitting a new test report.
Selected Test Results

What works

  • Mostly everything.
  • Editing properties of entities can result in a horrifying experience. However, using Winetricks to get the "comctl32" library will fix this.

What does not

  • Creating prefabs.
  • Camera tool barely work.
  • Some other minor stuff I'm sure...

Workarounds

What was not tested

  • Compiling a map.
  • Some other extensive Hammer features.

Hardware tested

Graphics:

  • GPU:
  • Driver:

Additional Comments

Note: You do not need to get "comctl32ocx", just doing "winetricks comctl32" will fix bug 14659. Tested this fix on several different maps and so far everything works fine. I am setting this rating to Gold because almost everything seems to function in Hammer despite some minor tools being buggy or broken. Admin note: rating changed to conform to the rating definitions. Everything must work perfectly to warrant a gold rating. Thanks to Dmitry for finding the root of this bug.

selected in Test Results table below
Operating systemTest dateWine versionInstalls?Runs?Used
Workaround?
RatingSubmitter
CurrentFedora 19 x86_64Dec 23 20131.7.8N/A Yes NoSilverXylemon 
ShowLinux Mint 15 "Olivia" x86_64Jul 03 20131.6-rc4N/A Yes NoSilverXylemon 
ShowDebian GNU/Linux 7.x "Wheezy" x86_64Jun 16 20131.4.1Yes Yes NoBronzean anonymous user 
ShowArch LinuxApr 12 20070.9.34.Yes Yes NoSilverXeroXer 

Known Bugs

Bug # Description Status Resolution Other apps affected
14659 Valve Hammer Editor 3.x: Entity properties being switched around to other entities and not being saved NEEDINFO View

Show all bugs

Comments

Back