Sledge (Hammer Alternative) Alpha Build Created 10 years ago2013-07-27 02:24:39 UTC by Penguinboy Penguinboy

Created 10 years ago2013-07-27 02:24:39 UTC by Penguinboy Penguinboy

Posted 10 years ago2014-01-12 23:23:33 UTC Post #317484
Another question regarding your geometry representation :P - how do you deal with the fact that none of your faces share common vertices? I mean, implicitly they do, but each face stores its own vertices as far as I can see from your code, which means that translating one vertex of the brush would correspond to translating multiple vertex locations (one for each neighbour face). Also, how do you deal with vertex manipulations possibly causing the vertices of a face to become non-coplanar?

Additionally, in relation to the plugin discussions, the way I was intending Crowbar's toolkit to work was to have everything as a plugin - all tools right down to selection being a module located at runtime, with the possibility of inter-plugin dependencies and of utilising Qt's native support for JS scripts for the less performance-critical plugins. I've also so far implemented a clone of the console from the Source engine, complete with console variables and commands and support for command piping Unix-style, in order to help expose as much of the application to external configuration as possible. I don't know how realistic design choices in this direction would be for Sledge at this stage, considering you've got a fair amount of the core framework done already, but absolutely feel free to re-use any of the console code concepts (albeit physically written in C++) if you feel they'd be helpful.
Posted 10 years ago2014-01-12 23:33:09 UTC Post #317485
oh! i forgot another suggestion (i cant add it to my long-butt post unfortunately otherwise i would) :

i think you should add a mouse sensitivity slidey bar thing in options because mouse movement seems a bit slower than in hammer 3.5.
Posted 10 years ago2014-01-13 00:03:24 UTC Post #317486
Like COOBORKY?[kzna] said about vertex editing, I too have a problem. I am trying to make a funnel-shaped cylinder by scaling down the vertices, but it lets me with invalid solids.

I have to say the improved vertex editing is exciting. Please release this for Source ASAP :D.
Striker StrikerI forgot to check the oil pressure
Posted 10 years ago2014-01-13 00:25:47 UTC Post #317487
@x6herbius: The vertex tool is a bit more complex because it has to know about shared vertices, but aside from that it's much easier to keep the vertices separate per-face. When transforming a solid, you can simply perform the same transformation on every vertex - the shared vertices that happen to be in the same place will be transformed in the same way, so you don't have to worry too much about it.

In terms of avoiding nonplanar vertices, Sledge currently does nothing to avoid this - same as Hammer. I have looked into auto-correction during VM like gtkRadiant (or QuArK? I forget) does, and I will probably try to add that as an option in a future version.

Regarding plugins and architecture, I'm structuring Sledge in a way that most things are extensible, but Sledge itself contains all the core functionality. This makes it easy to extend with new features (most common plugin use-case), but more difficult to remove/replace existing functionality (extremely uncommon use case, if a developer wants to do this they should create a fork). Cross-dependencies between plugins sounds like a very painful thing to deal with, so good luck with that!

I'd suggest starting with the big stuff (like the map objects, gamedata, file parsing, rendering, and editing) instead of focusing too much on UI niceties like plugins and consoles, simply because you will come across any shortcomings in your architecture while working on those, rather than when working on chrome components. I've been working on adding extra UI in Sledge at the moment and it is blissfully easy and simple when compared to editing or rendering which are incredibly difficult and require a lot of non-trivial architecture refactoring when trying to add new features.

@COOBORKY: Do you happen to have a download link for the WAD that breaks Sledge? I think I have fixed the problem in the next version, but it would be nice to be able to test it for sure. Thanks for reporting the bugs, I will be sure to take a look at them.

@Striker: I'll take a look at this, invalid solids have been annoying me lately since I have been trying to create a sphere brush tool :/
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-13 03:47:22 UTC Post #317488
hey, yeah here you go. hope sendspace is ok!

http://www.sendspace.com/file/pxatcp

and anyone else is free to use it too, its kinda of a big wad.
Posted 10 years ago2014-01-13 08:29:07 UTC Post #317489
Thanks, I'll test it out when I get home from work :)

Edit: well there's your problem: a texture called "|gt01". The pipe character '|' is not a valid Windows path character and it was crashing because I was using the default .NET file path handlers to open WAD textures. Replaced it with a custom function and all is well. This WAD crashes GCFScape with the same error message as well.
User posted image
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-13 08:33:22 UTC Post #317490
  • Snip -
Didn't see there was another page where my question was answered, sorry!
Posted 10 years ago2014-01-13 14:09:16 UTC Post #317491
ahh i looked through quickly to see if there were weird chars in the wad but i was too hasty apparently! good catch! i appreciate you lookin. also does sledge update automatically or give notifications? or do i need to manually do it myself
Posted 10 years ago2014-01-13 20:38:37 UTC Post #317494
It checks for updates automatically each time it starts up.
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-14 01:03:32 UTC Post #317500
Sledge is looking good sir! I plan to explore more of it's features soon, as i have a temporary fetish with GoldSrc mapping again =P

Incidentally, I just ported some CSGO brushwork to GoldSrc, using Sledge to open the vmf and Save As rmf, and Whammo! No need to correct any mistakes, and zero brushwork/compile errors! Awesome! =P

BTW there is no favicon for the Sledge Site ;)
Captain Terror Captain Terrorwhen a man loves a woman
Posted 10 years ago2014-01-14 01:49:48 UTC Post #317501
I recommend that you use VMF for all your Sledge editing, regardless of engine, as it is a more extensible format and it will retain more features. Use RMF if you need compatibility with Hammer, otherwise use VMF.
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-14 06:52:48 UTC Post #317504
Just reporting about this issue (not sure if it's already reported, so sorry). I've seen some strange overlaying of BEVEL texture on textured solids. Take a look at this screenshot:
User posted image
Posted 10 years ago2014-01-14 08:29:46 UTC Post #317505
Intel graphics by any chance? Once the next version is released, could you check again and let me know if it's fixed? The next version has a fix that should make the depth testing much better on Intel GPUs and fix that weird triangle effect where brushes meet. If it's not fixed then I might ask you to provide more screenshots or a video if you're able to, but if you have Intel graphics there's a high chance it will be fixed so don't do anything yet :)
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-14 09:35:59 UTC Post #317507
Yes, I have Intel Graphics Card (Chipsets). Sure I'll check, but how will I know if there's a new release is available? Do I have to download every time for new update/release?

Thanks. I'm still waiting for this! :)
Posted 10 years ago2014-01-14 10:13:14 UTC Post #317508
It will notify you when an update is available. I'm still working on it!
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-15 10:39:39 UTC Post #317522
i have just opened my goldsrc map... but i can save it as .vmf, does it convert goldsrc to source engine map?
Posted 10 years ago2014-01-15 10:47:12 UTC Post #317523
The geometry format is more less the same, so yeah it will probably open up in H4 fine.
rufee rufeeSledge fanboy
Posted 10 years ago2014-01-15 10:54:19 UTC Post #317524
Particularly considering Hammer 4 can open .rmf with no problems.
Archie ArchieGoodbye Moonmen
Posted 10 years ago2014-01-15 11:13:04 UTC Post #317525
Once Source support is implemented in Sledge it will start warning people who use the RMF format because RMF doesn't support features such as displacements, instances, additional map properties, and so on, which cripples a lot of the power of the editor (Sledge will change these back to plain brushwork - displacements into triangles, instances into brushwork, etc). Instances and displacements in Sledge will work in both Source and Goldsource if you use the VMF format.
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-15 17:28:39 UTC Post #317527
can u tell me which part of code is responsible for creating the window where u fill in rotate values for a brush? i can't find the thing in the sledge source
Posted 10 years ago2014-01-15 21:11:08 UTC Post #317528
i know you said you are focusing on bugs and stuff as opposed to like the aesthetics and 'ease of use' (for now), but i just thought of a few more things you could do:

1. make each of the tool icons (whether they be on the left side bar or the top bar) movable individually for 'full' customization. Maybe even have an option to right click on the top tool bar and insert your own little divider so you can group any icon however you want.

2. re-add the shortcut for flipping an object (CTRL + L for horizontally and CTRL + I for vertically) like in 3.5. flipping objects easily like that is very useful and having to go through the tools tab each time is a bit annoying.

3. have the texture browser remember the last selected texture when you re-click the browse button. as of now it just reverts back to the first texture on the texture list instead of the one that you have selected. also it would be helpful to have it remember if you selected a certain wad from the wad list on the left (of the texture browser), as well.

not to bombard you with things while you are focusing on other elements of Sledge but just some things to consider!
Posted 10 years ago2014-01-15 21:11:51 UTC Post #317529
I second #2 and #3.
Posted 10 years ago2014-01-15 23:54:22 UTC Post #317530
#2 is pretty easy to do and #3 isn't too bad, so I will try and get those into the next release. #1 is a bit more complicated and if I did something like that it probably wouldn't work exactly like that, so no guarantees there.

@ninja: do you mean the transform dialog? Look here.
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-16 09:27:35 UTC Post #317532
@up
yes ^_^
Posted 10 years ago2014-01-16 16:05:04 UTC Post #317534
is there an "export to map" feature/button that im not seeing? or do i have to manually 'save as' and then select .map every time?

including this if its not already in there would probably be a good idea as well :o
Posted 10 years ago2014-01-16 17:33:19 UTC Post #317535
With the ability to save in a .map format right from the save file dialog, "export to map" is redundant.
Posted 10 years ago2014-01-16 18:55:14 UTC Post #317538
yeah but then the vmf or rmf that you currently have open is changed into .map format and u have to re-open the vmf/rmf and thats just another step that can be eliminated by the export feature.

export keeps your current file as is, while "save as" will change the current file into .map, causing me to have to keep reloading the .vmf that i just saved as a .map which is annoying. you see what im saying?
Posted 10 years ago2014-01-17 00:04:46 UTC Post #317539
Good point, I will add an export function that works the same as "Save As", except that it doesn't switch you to the new file.
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-18 11:41:17 UTC Post #317543
New version time! This one has a bunch of minor improvements and bug fixes that have been reported recently. The sidebar is slightly improved now (it can be resized!) to make it ready for new features in the future.

Full change list:

Sledge 0.1.0.17
  • Right sidebar changed to prepare for future features
  • Sidebar and viewport layouts are now saved
  • Fixed crash in the model file browser
  • Minor fixes related to multiple FGD files
  • Fixed issues related to hotkey localisation
  • The shift key must now be held to create a new camera in the camera tool
  • Added "Reset to defaults" buttons for the hotkey configuration screen
  • Added camera tool hotkey (Shift+C)
  • Changed the behaviour of "rotation height" in the torus tool since it generated invalid geometry
  • Added arch and sphere brush types
  • Arrow keys pan and tilt in the 3D view. Resolves #91.
  • Improved the game selection form
  • Significantly improved rendering on Intel GPUs
  • Added hotkeys for flipping objects (Ctrl+L,I,K for X,Y,Z flipping)
  • The texture browser now remembers the selected package, texture, filter, view type, and sort options
  • Added "Export" function to "Save As" without switching to the new file
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-18 13:28:17 UTC Post #317544
:thefinger: Archie likes this post.

(there's no thumbs up smiley so you'll have to excuse the rudeness)

Edit:
This doesn't come close to being a necessary feature, but I think it'd be insanely cool to see a 'viewport screenshot' button. Take a screenshot of the active - or selected via a popup - viewport in nice high res without having to resize your windows. I don't know how difficult this would be to accomplish, but it has potential for even cooler features attached to it with different render options and overlay options in the future.
Archie ArchieGoodbye Moonmen
Posted 10 years ago2014-01-18 14:54:04 UTC Post #317545
And while you're at it, why not include auto-art features that will transform the screenshot in different beautiful art styles like expressionism(look at this poetic landscape!), cubism(because everything starts with a cube), hyper-realism( instantly enhances your map, thereby rendering any future Source engine useless), and impressionism(for the adventurous mapper that understands all is but light).

Oh, remember that auto-mapping utility, that ancient crap software that was actually awesome?

How about a sprite brush or model brush that helps us instantly make forests and grassy landscapes?

How about an integrated texture super tool that helps you download from popular sources like cgtextures, crop, stitch, blend the seams and create on the fly map textures? (don't forget about bump maps, hehe!)

Heh, but did somebody think of a model exporter like propper integrated in the thing?

An extremely useful tool would be an integrated particle editor that would help easily sculpt the particle in the landscape created.

A performance prediction could be useful, some sort of feedback without compiling the map that can help you optimize the map rendering speeds.

I think I might went a bit overboard here.
Striker StrikerI forgot to check the oil pressure
Posted 10 years ago2014-01-18 16:39:44 UTC Post #317548
perfect timing on the update PB! thanks for listening to some of my suggestions ^^

Edit: one thing thats still plaguing Sledge is the fact that your cursor goes invisible and all crazy when you open any other window (object properties, texture application, etc) while you are already in fly mode. ive found that it DOESNT do this when the other box is already open and THEN you press Z in the 3D view; only when you press Z FIRST....strange.

but yeah im not sure if this is a complicated problem to fix and you just werent able to work it out by this update or if it slipped your mind. just a friendly reminder!
Posted 10 years ago2014-01-18 16:43:38 UTC Post #317550
Or how about adding support for mind-reading, so that Sledge knows exactly what we want to create, and then it just maps everything for you automatically?

Seriously though, good work. Installed it on my laptop and all the hotkeys seem to work as they should, although I'm not at home right now to test on my desktop I guess it should work properly now.

Don't want to sound entitled, but will you consider implementing some more of the suggestions I mentioned previously? Particularly being able to see the vertex points while using the camera tool, hide the vertex mode toolbox, and changing the behavior of the clipping tool a bit. Perhaps even add an option in the settings for switching the behavior of the clipping tool to that of Hammer? For stupid people like me, who find the three-points clipping tool currently implemented kinda confusing.

Also, while testing Sledge on my laptop, I stumbled upon a graphical/rendering oddity when creating an arch, sphere or torus brush... http://www.youtube.com/watch?v=_nD6bHBgnkI

The laptop (an Asus G73JH) specs are:

Windows 7 Home Premium 64-bit
Intel i7 Q 720 @ 1.60GHz
ATI Mobility Radeon HD 5800 1GB VRAM driver 8.753.2.0
6GB RAM

Finally, a minor annoyance: when holding down space and left-clicking in the 3D view to move around, if there is something where you mouse-click, it will be selected.
Posted 10 years ago2014-01-18 17:42:40 UTC Post #317551
Hmm im not sure if its an error on my end or perhaps something overlooked but every time i try to export to map and then compile (regardless of compiler) it never goes through and i get this error:

Warning: ::FindTexture() texture ROPE not found!

but there is one for every texture in the map. i know it means that the wads arent located in the correct spot but thing is they ARE, and ive moved them to different locations and made SURE every path is correct in all programs.

now when i googled it, someone mentioned that the paths for all used wads are included in the .map file that is exported from hammer. i checked .map files i know work and indeed i see the line at the very top that names all the wads used and their paths.

however, when i open the .map file exported from sledge (via the new "export" function) in notepad, the wads are not there at the top like in the other .map files. i wonder if somehow this was overlooked? that the new 'export' function somehow doesnt write the wads into the .map file? "save as" DOES include these wads but now that doesnt work either when i try to compile. i didnt change ANYTHING before trying to compile with the updated sledge :z
Posted 10 years ago2014-01-19 20:11:04 UTC Post #317555
Great news! I'm gonna try it out asap! As always. <3

P.S.: The Sledge's last update on GameBanana has been updated with the current changelog.
Alberto309 Alberto309weapon_spaghetti
Posted 10 years ago2014-01-20 10:50:21 UTC Post #317557
@Cooborky: The mouse capture issue is kind of complicated to fix so I ignored it for this release. I will investigate a better fix for the future :)

Your mind isn't playing tricks on you regarding the missing WAD files in the exported MAP. Compiling does a slightly different save process than exporting (as compiling clips the cordon beforehand) and the export/save function isn't adding the WAD files correctly. I'll fix it in the next version.

@kaffikopp: Clipping tool behaviour and hiding the window are features in the works, but vertex mode in the camera tool might be quite difficult, I'm not sure how I would go about implementing that with the current architecture. I will have a think about it.

@Archie: Screenshots are a neat idea, I will have a think about it.
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-20 13:18:49 UTC Post #317558
ahh ok cool! i thought i messed something up and was getting really frustrated heh good deal, keep up the great work!
Posted 10 years ago2014-01-20 14:31:30 UTC Post #317561
Fair enough. Just so there's no confusion, I don't mean both tools should be operable at the same time, just that if you enter vertex mode on a brush and then switch to the camera tool, the vertices would still be visible, but not adjustable.
Posted 10 years ago2014-01-22 01:54:24 UTC Post #317591
There is still no favicon for the sledge Dev site..(and a hole in my bookmark bar ;) )
Captain Terror Captain Terrorwhen a man loves a woman
Posted 10 years ago2014-01-22 18:34:32 UTC Post #317596
Favicons are such neglected details...
Striker StrikerI forgot to check the oil pressure
Posted 10 years ago2014-01-23 04:54:00 UTC Post #317605
Oh come on CT. xD
Alberto309 Alberto309weapon_spaghetti
Posted 10 years ago2014-01-23 07:36:53 UTC Post #317606
Hey they MAKE the webpage!

Favicon are like the bowtie on a tuxedo! prove me wrong =P


Ok maybe not, since i've just now noticed TWHL has no favicon ;)
Captain Terror Captain Terrorwhen a man loves a woman
Posted 10 years ago2014-01-23 08:01:23 UTC Post #317608
Lol. You've just noticed now? xD
Alberto309 Alberto309weapon_spaghetti
Posted 10 years ago2014-01-23 08:27:51 UTC Post #317609
Not sure where you guys are looking, TWHL has always had a favicon...
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-23 09:04:06 UTC Post #317610
Oh yeah durr, it's right there on my bookmark bar. Stupidly, i was looking for it right in front of the URL, inside the address bar? (did it used to show up there in older versions of Firefox maybe?)

I think maybe i need to go to bed... ;)
Captain Terror Captain Terrorwhen a man loves a woman
Posted 10 years ago2014-01-23 11:05:45 UTC Post #317611
Worked first time on the Sledge and created a map, partially done. Most of the updates worked and were helpful, however some suggestions I want them to be implemented, as well as some bugs report (not sure if they've been reported/suggested before).

(Suggestions)

1. A speed reduction for 3D camera. As I've set to slowest speed (1000 units/secs) but still, it's moving way faster than I thought. Hammer has adequate speed, I prefer that speed. Due to having too faster speed, I can't properly texture on corners, etc.

2. What about the rendering of entities in 3D view, just like in Hammer? It would allow to quickly find the entity we are looking for, rather than click on each to find the needed one.

3. The Texture Browser, where last used textures are remembered; I suggest to increase the number of textures last used to 5 or more. Currently, only 2 textures are shown which are lastly used.

4. Not a big problem but what about a change in the icon of Camera Tool? I always click on the wrong one when I want to use the Camera tool. :P

(Bugs)

1. Sledge reported a problem with my map which is "invalid solid". But when I opened the same map file in Hammer, it didn't give me any error/problem like that. Probably a mistake/false report. (If you want, I can show a screenshot about that problem with that solid)

2. Models and Sprites aren't rendering in 3D view.

This is just for now. I'll see if I get any more.
Posted 10 years ago2014-01-24 11:28:33 UTC Post #317618
i have just came up with an idea, it should make easier and faster to rotate a brush 90 degrees

there are 4 buttons, and a square (just to make it clear what is going on)
User posted image
and something else now:
User posted image
Posted 10 years ago2014-01-24 11:32:57 UTC Post #317619
Some bugs I noticed yesterday.

1. When grouped brushes/solids tied into an entity, it gives an error. But when they are ungrouped and tied into an entity, it works fine. So there's a problem with grouping function.
2. The entities still duplicating options. Check screenshot to understand.
User posted image
Posted 10 years ago2014-01-24 12:54:46 UTC Post #317620
Thanks for the bugs/suggestions guys, I will look into them this weekend.
Penguinboy PenguinboyHaha, I died again!
Posted 10 years ago2014-01-25 18:59:26 UTC Post #317628
I lost a fair amount of previously on-grid brushwork in Hammer 4.1 today due to decimal loss.
Does sledge operate the same as a VMF on a technical level to prevent this, or have some other way to make it a non-issue?
If not, I know making a workaround would take a fair amount of re-engineering, but I'd like to request it for sometime down the line.
Notewell NotewellGIASFELFEBREHBER
You must be logged in to post a response.