GithubHelp home page GithubHelp logo

logicandtrick / sledge Goto Github PK

View Code? Open in Web Editor NEW
301.0 301.0 81.0 22.26 MB

An open source alternative to Valve's Hammer Editor for the Goldsource engine. (No longer in development)

Home Page: https://logicandtrick.github.io/sledge/

License: BSD 3-Clause "New" or "Revised" License

PowerShell 0.15% Java 0.22% C# 98.90% NSIS 0.13% HLSL 0.60% Smalltalk 0.01%
c-sharp half-life level-editor windows

sledge's People

Contributors

aj292 avatar christopherhaws avatar ericwa avatar joeltroch avatar jpiolho avatar lavendermoon avatar lcarst avatar logicandtrick avatar m-x-d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

sledge's Issues

VM scaling tool is missing

Captain Terror also reports:

Alt-E scaling tool is missing?

Press Alt+E in VM mode, highlight vertices, place a center point, change the values. It's crazy that I've never seen this thing before. Needs to be implemented.

Null pointer errors when no textures are loaded

http://bugs.sledge-editor.com/Bug/View/1

Object reference not set to an instance of an object. (System.NullReferenceException)
   at Sledge.Editor.Tools.TextureApplicationForm.b__0(TextureItem x)
   at System.Linq.Enumerable.WhereListIterator`1.MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at Sledge.Editor.UI.TextureListPanel.SetTextureList(IEnumerable`1 textures)
   at Sledge.Editor.Tools.TextureApplicationForm.UpdateRecentTextureList()
   at Sledge.Editor.Tools.TextureApplicationForm.SelectTexture(TextureItem item)
   at Sledge.Editor.Tools.TextureTool.ToolSelected()
   at Sledge.Editor.Tools.ToolManager.Activate(BaseTool tool)
   at Sledge.Editor.Editor.SelectTool(BaseTool t)

Feature: "favourite textures"

Feature request from Captain Terror: http://twhl.info

Like the visgroup toolbox or whatever it's called, have one with say 8-12 of your favourite textures you can select, like a couple everyone would probably add off the bat would be: trigger, Player_clip, nodraw, hint/skip/, a couple blend textures, a crete texture, and a wood texture, etc.

Case sensitive file format providers

http://bugs.sledge-editor.com/Bug/View/57

No texture provider was found for package: G:\D2\wonHalf-Life\Cstrike16\CS_747.WAD (Sledge.Providers.ProviderNotFoundException)
   at Sledge.Providers.Texture.TextureProvider.CreateCollection(IEnumerable`1 packages)
   at Sledge.Editor.Documents.Document..ctor(String mapFile, Map map, Game game)
   at Sledge.Editor.Editor.FileNew()

The WAD file and other providers should check for the .wad extensions without considering case.

Unhandled errors in settings dialog when files aren't found

http://bugs.sledge-editor.com/Bug/View/2

File does not exist: D:\Github\sledge\_Resources\FGD\Half-Life.fgd (Sledge.Providers.ProviderException)
   at Sledge.Providers.GameData.FgdProvider.GetFromFile(String filename)
   at Sledge.Providers.GameData.GameDataProvider.GetGameDataFromFile(String fileName)
   at System.Linq.Enumerable.<>c__DisplayClass12`3.b__11(TSource x)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at Sledge.Providers.GameData.GameDataProvider.GetGameDataFromFiles(IEnumerable`1 files)
   at Sledge.Editor.Settings.SettingsForm.SelectedGameUpdateFgds()
   at Sledge.Editor.Settings.SettingsForm.UpdateSelectedGame()
   at Sledge.Editor.Settings.SettingsForm.GameSelected(Object sender, TreeViewEventArgs e)

Feature: "advanced" snap to grid

Feature request from Captain Terror: http://twhl.info

Could you make a tool for geometry normalize or filter grid spacing, e.g., automatically align all your brushwork to bigger grids if they are certain x unints away from a bigger grid, whilst keeping similar as possible proportions?

I guess think of it as an uber snap-to-grid, and resizes a little if necessary to keep EVERYTHING on a bigger grid size.

I would imagine something like this would have a popup associated with it, similar to paste special. It could align vertices to the grid, rather than brushes. However, would need to be careful to prevent invalid brushwork being generated.

Crash when unsupported WAD format referenced

http://bugs.sledge-editor.com/Bug/View/21

Error caused by loading tempdecal.wad - lump type 0x40 not supported.

Unable to get image dimensions. (System.Exception)
   at Sledge.Libs.HLLib.HLLib.WADFile.GetImageDimensions()
   at Sledge.Providers.Texture.WadProvider.<>c__DisplayClass4.b__1(WADFile wad)
   at System.Linq.Enumerable.<>c__DisplayClass12`3.b__11(TSource x)
   at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext()
   at System.Collections.Generic.List`1.InsertRange(Int32 index, IEnumerable`1 collection)
   at Sledge.Providers.Texture.WadProvider.GetAllTextureItems(TexturePackage package)
   at Sledge.Providers.Texture.TextureProvider.GetAllTextureItemsFromPackage(TexturePackage package)
   at Sledge.Providers.Texture.TexturePackage.LoadAllTextureItems()
   at Sledge.Providers.Texture.TexturePackage.Load(String file)
   at Sledge.Editor.Documents.Document..ctor(String mapFile, Map map, Game game)
   at Sledge.Editor.Editor.FileNew()

Empty groups not being culled

When deleting objects inside groups with ignore grouping on, empty groups are not being deleted when all their children are removed.

Null pointer exception during problem fixing

http://bugs.sledge-editor.com/Bug/View/31

Object reference not set to an instance of an object. (System.NullReferenceException)
   at Sledge.Editor.Actions.MapObjects.Operations.EditFace.b__19(Face x)
   at System.Linq.Enumerable.<>c__DisplayClass12`3.b__11(TSource x)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at System.Linq.Enumerable.d__81`1.MoveNext()
   at Sledge.DataStructures.MapObjects.Map.UpdateAutoVisgroups(IEnumerable`1 nodes, Boolean recursive)
   at Sledge.Editor.Actions.MapObjects.Operations.EditFace.Perform(Document document)
   at Sledge.Editor.Actions.ActionCollection.<>c__DisplayClass3.b__2(IAction x)
   at System.Collections.Generic.List`1.ForEach(Action`1 action)
   at Sledge.Editor.Actions.ActionCollection.Perform(Document document)
   at Sledge.Editor.Documents.Document.PerformAction(String name, IAction action)
Action exception: Fix 7 problems (Sledge.Editor.Actions.ActionCollection)
    Sledge.Editor.Documents.Document.PerformAction
    Sledge.Editor.UI.CheckForProblemsDialog.FixErrors
    Sledge.Editor.UI.CheckForProblemsDialog.FixAll

Additional User Info: i tried to vertex stuff and then i tried to fix an invalid solid

OpenGL 3.3 not supported on older hardware

DiscoStu has reported a crash due to GLSL 330 not being supported on his hardware: http://twhl.info/forums.php?thread=18410&page=1
http://bugs.sledge-editor.com/Bug/View/13
http://bugs.sledge-editor.com/Bug/View/14

Investigate how realistic it is to downgrade to GLSL 130 and use glBindAttribLocation for layout location binding.

Error compiling VertexShader shader: ERROR: 0:3: 'location' : syntax error parse error (System.Exception)
   at Sledge.Graphics.Shaders.Shader.CreateShader(ShaderType shaderType, String shaderCode)
   at Sledge.Graphics.Shaders.Shader..ctor(ShaderType type, String shaderCode)
   at Sledge.Editor.Rendering.RenderManager..ctor(Document document)
   at Sledge.Editor.Documents.Document..ctor(String mapFile, Map map, Game game)
   at Sledge.Editor.Editor.FileNew()

Index out of bounds when performing certain changes in the settings dialog

http://bugs.sledge-editor.com/Bug/View/7

Index was out of range. Must be non-negative and less than the size of the collection.
Parameter name: index (System.ArgumentOutOfRangeException)
   at System.ThrowHelper.ThrowArgumentOutOfRangeException()
   at Sledge.Editor.Settings.SettingsForm.SelectedGameEngineChanged(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.CheckBox.OnCheckedChanged(EventArgs e)
   at System.Windows.Forms.CheckBox.set_CheckState(CheckState value)
   at System.Windows.Forms.CheckBox.OnClick(EventArgs e)
   at System.Windows.Forms.CheckBox.OnMouseUp(MouseEventArgs mevent)

Index out of bounds when creating a new game configuration with no builds

http://bugs.sledge-editor.com/Bug/View/5 /6 /8 /9 /10

InvalidArgument=Value of '0' is not valid for 'SelectedIndex'.
Parameter name: SelectedIndex (System.ArgumentOutOfRangeException)
   at System.Windows.Forms.ComboBox.set_SelectedIndex(Int32 value)
   at Sledge.Editor.Settings.SettingsForm.UpdateSelectedGame()
   at Sledge.Editor.Settings.SettingsForm.GameSelected(Object sender, TreeViewEventArgs e)
   at System.Windows.Forms.TreeView.OnAfterSelect(TreeViewEventArgs e)

Hotkeys stop working

Sometimes, document subscription hotkeys (such as delete) just don't work. I've only seen the issue once and I'm not sure of replication steps, but it may have something to do with opening more than one map in succession and the subscriptions not catching. Has already been seen in the wild. Needs investigation.

Update: Not caused by subscriptions failing, rather by parents not assigning properly on created brushes.

Brush creation: option to default to block after creating a brush

Feature request from Tetsu0: http://twhl.info/

Add an option to revert back to a 'default' block creation mode after a different one was used. Example, you create a cylinder, mess with it a bit, texture it, change some other things... But when time comes to make another block, (i know i do this all the time) you might forget to switch back to box creation mode. So you spend all that time and energy aligning your new box placement, press enter, and BAM you have cylinder because you forgot to change it back! Super frustrating!

Null pointer exception during clip operation

http://bugs.sledge-editor.com/Bug/View/11

Object reference not set to an instance of an object. (System.NullReferenceException)
   at Sledge.Editor.Actions.MapObjects.Operations.Clip.Perform(Document document)
   at Sledge.Editor.Documents.Document.PerformAction(String name, IAction action)
Action exception: Perform Clip (Sledge.Editor.Actions.MapObjects.Operations.Clip)
    Sledge.Editor.Documents.Document.PerformAction
    Sledge.Editor.Tools.ClipTool.PerformClip
    Sledge.Editor.Tools.ClipTool.KeyPress

This one happened when clipping a torus in half. Needs investigation.

3D view stealing hotkeys and vice versa

Captain Terror from TWHL and others report:

if your mouse pointer is over the 3d window when you toggle a tool, it will also move you the WASD direction as well!

Error when number cannot be parsed in object properties smart edit mode

http://bugs.sledge-editor.com/Bug/View/43

Input string was not in a correct format. (System.FormatException)
   at System.Number.StringToNumber(String str, NumberStyles options, NumberBuffer& number, NumberFormatInfo info, Boolean parseDecimal)
   at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info)
   at Sledge.Editor.UI.EntityEditor.SmartEditChoices.b__af(Option x)
   at System.Linq.EnumerableSorter`2.ComputeKeys(TElement[] elements, Int32 count)
   at System.Linq.EnumerableSorter`1.Sort(TElement[] elements, Int32 count)
   at System.Linq.OrderedEnumerable`1.d__0.MoveNext()
   at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection)
   at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source)
   at Sledge.Editor.UI.EntityEditor.SmartEditChoices.OnSetProperty()
   at Sledge.Editor.UI.EntityEditor.SmartEditControl.SetProperty(String propertyName, String currentValue, Property property)
   at Sledge.Editor.UI.EntityEditor.AddSmartEditControl(Property property, String propertyName, String value)
   at Sledge.Editor.UI.EntityEditor.KeyValuesListSelectedIndexChanged(Object sender, EventArgs e)
   at System.Windows.Forms.ListView.OnSelectedIndexChanged(EventArgs e)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.