Commit Graph

65 Commits

Author SHA1 Message Date
wfowler
249aaa2b77 Add a bit of error checking to the detection of Source entity connections.
This will make the parser more robust against false positives.
2018-07-21 21:39:46 -06:00
wfowler
2f726b15bf Add MoHAA static models 2018-07-20 03:38:47 -06:00
wfowler
caa7856fed Whoops, don't escape with backslashes here also. 2018-07-14 23:59:45 -06:00
wfowler
c8a4bcb22d Fix a problem with entity processing that was throwing on a (probably) broken entity in MoHAA's m3l2.bsp. 2018-07-14 21:28:02 -06:00
wfowler
7fc89ecd4f Rename Face.textureScale to Face.textureInfo. 2018-07-14 20:24:22 -06:00
wfowler
bba8a899ba Fix NullReferenceException when constructing TextureInfo. 2018-07-13 02:22:15 -06:00
wfowler
1a7203637d Add more fields to DisplacementInfo. Also fix a Unity-compile oversight. Again. 2018-07-09 02:32:11 -06:00
wfowler
d9bfd2e3d2 Whoops, missed this one. 2018-07-09 02:04:00 -06:00
wfowler
2b5f61946f Fix compiling in Unity 2017 and 2018 versions. 2018-07-09 01:58:30 -06:00
wfowler1
e990e8d6d0 Add a bunch of Plane extensions for dealing with Quake engine planes in Unity.
Fix a couple small mistakes elsewhere.
2016-08-30 19:13:22 -06:00
wfowler1
45c4de4094 Add texture scale information to TextureInfo.
This is only useful in MAPBrushSides, BSPs compile the scales into the axes themselves.
2016-08-30 19:11:05 -06:00
wfowler1
aa144a0f4c Small optimization to SplitUnlessInContainer in StringExtensions. 2016-08-30 19:05:50 -06:00
Will
56c496c419 Fix getting head revision when checked out as a submodule. 2016-03-18 01:51:32 -06:00
Will
4641f37c1f Fix a mistake preventing the revision field from being filled. Also record the sha1 of the head revision. 2016-03-18 01:40:32 -06:00
Will
458c535809 Merge branch 'master' of https://github.com/wfowler1/LibBSP 2016-03-18 00:46:23 -06:00
Will
16b95973dd Add a Revision class containing a revision number, retrieved from GIT at build time. 2016-03-18 00:46:14 -06:00
Will
324edbf5f9 Fix a warning in BSP class. 2016-03-18 00:44:33 -06:00
Will
ef5454bf92 Add a todo reminding me to do MoHRadiant terrain. 2016-02-20 16:50:56 -07:00
Will
902b1f9f49 Fix reading vertices of EF2 maps. 2016-02-20 05:38:25 -07:00
Will
fbb56a52fd Visual Studio does funny things with CSPROJ files. 2016-02-20 03:31:22 -07:00
Will
2700decfe3 Merge branch 'master' of https://github.com/wfowler1/LibBSP 2016-02-20 03:27:51 -07:00
Will
f9bd13ae35 Add support for EF2 terrainDef structures. 2016-02-20 03:27:32 -07:00
Will
87cd9fb2bb Fix reading Call of Duty maps. 2016-02-18 22:02:22 -07:00
Will
c11ac46c78 Unbreak Left 4 Dead 2. (Oops) 2016-02-15 19:32:43 -07:00
Will
10efe43efd Fix reading v6 Static Props in Vindictus. 2016-02-15 14:20:54 -07:00
Will
b8c883fd75 Refactor of BSP and BSPReader to enable lump structures to know what version of lump they represent.
As a result, fix reading v2 faces lump from Vindictus.
2016-02-15 02:57:10 -07:00
Will
75ee1e44f1 Fix issues reading Game Lump in Vindictus maps. 2016-02-13 21:30:37 -07:00
Will
bdde60d78c Resolve issues of decimal formatting in non-English locales. 2016-02-11 21:22:13 -07:00
Will
4a35493246 Fix brush side vertex reading from MAPBrushSides in files. 2016-02-08 02:44:50 -07:00
Will
dea420be7c Add a constructor for Entities accepting a FileInfo. 2016-02-08 02:44:02 -07:00
Will
2f8cec701b Add support for Source engine's lump file system. Now lump files will take precedence over internal data. 2016-02-01 17:39:32 -07:00
Will
857acfff14 UIVertex needs to be serializable as well. 2016-02-01 14:38:57 -07:00
Will
9e2e3b9382 Add FAKK to Face lump factory (oops). 2016-01-31 16:09:46 -07:00
Will
afe443f45d Unfortunately TextureInfo can't be a struct. 2016-01-31 16:09:21 -07:00
Will
454e470fb1 Merge branch 'master' of https://github.com/wfowler1/LibBSP 2016-01-31 03:56:06 -07:00
Will
0b38af21bc Must implement ISerializable on Entity to properly serialize Entities, plus everything an Entity can reference. 2016-01-31 03:55:35 -07:00
Will
552bbf39c8 Allow access to a BSP's BSPReader from outside the class. 2016-01-27 02:24:13 -07:00
Will
9bf45765a5 Moderate refactor.
Removes "Source" from in front of source engine structures.
Spells out full names of structures in class names.
Adds punctuation to all documentation comments and fixes some mistakes.
Adds some missing documentation comments.
2016-01-26 22:37:52 -07:00
Will
ed5abdcc92 Fix Static Props angles being read as origin. 2016-01-20 01:02:35 -07:00
Will
04af0a31ce Remove stuff for Doom, it's out of scope for this library. Other small cleanups and refactorings. 2016-01-20 01:01:57 -07:00
Will
f5c751e217 Fix BSPReader throwing exception when attempting to open a read-only file. 2015-11-10 19:28:43 -07:00
Will Fowler
9aa197fe1f Normalizing Vector4d.zero returns Vector4d.zero. 2015-11-10 14:10:05 -07:00
Will Fowler
956abb4a26 Normalizing Vector2d.zero returns Vector2d.zero. 2015-11-10 14:09:01 -07:00
Will Fowler
b9fd3bc140 Normalizing Vector3d.zero returns Vector3d.zero. 2015-11-10 14:07:30 -07:00
Will Fowler
61884e01b6 Fix params int[] constructor in Vector4d.
Forgot to change an array indexer in a copypasta.
2015-11-10 13:11:32 -07:00
Will
4d12f9be6f Ensure that if a structure doesn't have a lump index that we don't try to read it from the file. This was causing errors because the FileStream was trying to read the file starting from a negative index.
Add functionality to BSP and BSPReader allowing the file handle to be released and the FileStream disposed of.
2015-11-03 00:02:46 -07:00
Will
0f0b235d2a Fix CSProj file.
Fix bug in game lump info reading giving nonsense data for game lump offset and length.
Fix bug in Static Prop lump reading causing prop model dictionary to always be null.
2015-11-02 22:46:24 -07:00
Will
d66a5fa91b Move source into /Source rather than /src. Some documentation cleanup. 2015-11-02 21:48:07 -07:00
Will
3a2a493154 More small cleanups. 2015-11-01 13:58:38 -07:00
Will
1da72cc4cb Fix bug in PlaneExtensions.LumpFactory causing exceptions. 2015-10-31 12:27:14 -06:00