Commit graph

341 commits

Author SHA1 Message Date
biwa
05939279dc Dehacked: fixed a crash when loading data from a directory that didn't contain a Dehacked patch 2021-09-11 22:47:52 +02:00
biwa
fca82f5c91 Dehacked: added support for editor keys
Dehacked: Dehacked files are now properly loaded from directories
2021-09-11 22:11:07 +02:00
biwa
0b70b08bd8 Fixed some compiler warnings 2021-09-06 23:43:30 +02:00
biwa
e362df1d98
Added DeHackEd support (#617) 2021-09-05 14:59:31 +02:00
biwa
3ade52303d Added safeguard so that the program doesn't crash when encountering an unknown header while unpacking zip files. It will add an error to the log instead 2021-08-01 11:10:51 +02:00
biwa
62d9da0e73 Fixed a rare crash when pasting a thing that has a model assigned to another map 2021-06-26 22:20:39 +02:00
biwa
3e9d86e4b3 Fixed a crash when textures contain non-existing patches 2021-05-29 19:40:39 +02:00
biwa
e980523843 Map options: removed checkbox for opening resources as read-only. Resources are now always opened as read-only. Fixes #559 2021-05-29 12:04:32 +02:00
biwa
ea15732e8d Vertical patch offsets for masked patches are now handled correctly based on the game configuration 2021-05-16 22:48:45 +02:00
biwa
5191e9822a Negative vertical patch offsets are now handled correctly based on the game configuration. Fixes #561 2021-05-16 16:47:42 +02:00
biwa
898fe21f75 TEXTURES lump: fixed a problem where textures that use textures as patches were too bright when gamma correction was enabled 2021-05-13 21:36:29 +02:00
biwa
3ae5b1e27d Fixed a problem where sprites with 16 rotations defined in the TEXTURES lump would not be handled correctly (they are still not displayed with 16 rotations, but don't throw an error anymore) 2021-04-27 20:12:46 +02:00
Derek MacDonald
bef514fabb
Ignore texture patch negative vertical offset (#544)
https://doomwiki.org/wiki/Vertical_offsets_are_ignored_in_texture_patches

BIGDOOR7 & STEP2 in doom.wad and doom2.wad contain
negative Y-offsets some a patch but instead the
renderer defaults to Y-offset value of 0.

This stops UDB's 3D visual mode from using the
negative value - change it to 0 to match the game
renderer. (G)ZDoom behaves the same as vanilla.
2021-04-06 21:16:50 +02:00
biwa
18d56c6e04 Decorate/Zscript Actors that replace other actors should now display the correct actor name given through the $Title editor key. Fixes #122 2021-02-13 15:12:49 +01:00
Magnus Norddahl
49edfed449 Fix MakeAlphaTestImage performance issue 2020-11-15 03:20:41 +01:00
biwa
d831d22217 Visual Mode: fixed a problem where wide classic skies were not rendered with the correct orientation 2020-10-29 20:21:42 +01:00
biwa
722c79d894 Added preliminary DECALDEFS support. Parsing works, indexed decals and decal groups can be selected as the first argument of the Decal thing. Decals are not displayed in Visual Mode, decals without an index are not supported 2020-10-11 22:36:07 +02:00
biwa
3af704b7a6 Fixed a bug where PNG sprites without an offset incorrectly had their offset centered instead of using (0, 0) 2020-10-11 13:18:08 +02:00
Magnus Norddahl
e390bce8f6 Find the exact Scintilla.NET API used by UDB and create a stub implementation so that it builds without 2020-09-30 03:34:11 +02:00
biwa
8e043aa875
Added support for loading PK3s in read-only mode (#477) 2020-09-27 15:05:27 +02:00
biwa
3218218dcc Fixed a crash when trying to load files that do not exist 2020-09-13 10:45:30 +02:00
Magnus Norddahl
626af9e85e
Merge pull request #448 from Talon1024/fix/UnixCaseSensitivity
Attempt to improve Unix filesystem support
2020-09-12 15:42:29 +02:00
Magnus Norddahl
0d07050bcb Remove the need for ZeroMemory 2020-09-11 22:39:18 +02:00
Kevin Caccamo
2f48255ddf
Remove GetCorrectCaseForFile call in GetFileAtPath
It's redundant because GetCorrectCaseForFile is called in DirectoryReader.LoadFile, and UDB will change all filenames in a PK3 to lowercase when it loads a PK3 into memory.
2020-07-29 17:30:17 -04:00
biwa
6a926d337e Some cleanup, added some comments. 2020-07-29 22:05:12 +02:00
Kevin Caccamo
42be899204
Attempt to improve Unix filesystem support
Add some new methods to PK3StructuredReader and DirectoryReader, which get the filename with the correct case, and get a file at a particular path.
Replace backslashes in modeldef model paths with forward slashes, instead of doing the opposite, which was preventing some models from loading.

I don't know whether or not this is a good solution or not, since I don't know the UDB codebase very well.
2020-07-29 04:14:37 -04:00
biwa
2813a392e7 Force HiRes replacements to always use worldpanning. Fixes #432 2020-07-05 09:20:08 +02:00
biwa
91cbcde1eb It's compiling! 2020-05-21 14:20:02 +02:00
biwa
9cadd378bc Changed the ambient sound drop down menu of ambient sound things to natural sort order. Resolves #406. 2020-04-28 22:48:00 +02:00
Magnus Norddahl
db44d411c7 Fix black output from visplane explorer 2020-04-19 14:19:18 +02:00
biwa
e07a3170ac Made drop down items for ambient sounds more descriptive 2020-03-29 16:29:53 +02:00
Magnus Norddahl
44d972c876 Fix crash when tga image loader succeeds in loading a 0x0 image
Copy resource bitmaps before using them on a worker thread
2020-03-19 15:46:04 +01:00
Magnus Norddahl
c943b07bd0 Fix broken patch loading 2020-02-16 18:57:19 +01:00
Magnus Norddahl
c1130b4c62 Merge remote-tracking branch 'origin/master' into nodevil 2020-02-16 16:48:49 +01:00
Magnus Norddahl
6e4a02fb2b Add texture format to the Texture class so that render target textures do not have to be in the bgra8 format 2020-01-15 23:28:17 +01:00
Magnus Norddahl
e908ec72e9 Add missing try/catch 2020-01-14 17:29:13 +01:00
Magnus Norddahl
3bbe76b225 Remove DevIL dependency
Remove IImageLoader code duplication
2020-01-14 17:25:35 +01:00
Magnus Norddahl
7ea64f910b Fatal crash (Texture name input) #367 2020-01-13 19:11:10 +01:00
Magnus Norddahl
a2b18f1893 Fix load bug where exactly one image per thread would not get loaded 2020-01-12 23:35:20 +01:00
Magnus Norddahl
fc7093b959 Load images when they accessed
Load previews when they are accessed
2020-01-12 23:10:57 +01:00
Magnus Norddahl
acfd4f5283 LoadImage should not be virtual 2020-01-12 21:12:56 +01:00
Magnus Norddahl
db747d022b Dispose the bitmap as soon as it has been uploaded to a texture. Use a 1 bit alphatest bitmap for those that have transparency in them. 2020-01-12 20:17:18 +01:00
Magnus Norddahl
21d19e2804 Only use GetBitmap for the alpha test 2020-01-12 19:53:50 +01:00
Magnus Norddahl
0abaeaf758 Replace GetBitmap with more descriptive functions and move the alpha test inside ImageData 2020-01-12 19:37:27 +01:00
ZZYZX
044dbbcfd0 Rewrote dynamic light support. Resolves #319. Resolves #318. Resolves #233. 2020-01-03 03:22:33 +02:00
ZZYZX
961b5fdb33 Actually fixed PK3 synchronization 2019-12-31 13:46:30 +02:00
ZZYZX
fa053bc097 Prevent closing the PK3 stream before read operation has completed 2019-12-31 13:35:43 +02:00
Magnus Norddahl
f6dd787f0d Present maps slightly faster to the user 2019-12-30 06:41:52 +01:00
Magnus Norddahl
c95e5af46d Reduce memory usage during preview image loading 2019-12-30 06:22:32 +01:00
Magnus Norddahl
65fdafafd8 Fix TransformPatch using bitmap from the main thread 2019-12-29 23:24:08 +01:00