Christoph Oelckers
16f6a88680
- fixed Build tiles and removed test code.
2018-03-19 20:56:04 +01:00
Christoph Oelckers
bf2003fe6a
- fixed pixel address.
...
Colors still need work.
2018-03-19 20:09:32 +01:00
Christoph Oelckers
04b8a12ca4
- Build texture work. Currently broken.
2018-03-19 20:02:38 +01:00
Christoph Oelckers
f4d9ad1123
- extended FTexture::GetPixels and FTexture::GetColumn by a RenderStyle parameter.
...
Now it is no longer necessary to provide specially set up textures for rendering shaded decals, they can use any PNG texture now that contains a proper red channel.
Handling of the alPh chunk has been removed as a result as it in no longer needed.
2018-03-18 21:33:44 +01:00
Christoph Oelckers
a399d79f8a
- minor reformatting.
2018-03-18 14:18:42 +01:00
Christoph Oelckers
47bfbb5e08
- Make BuildTexture inherit from worldtexture.
...
- handle WorldTextures that can change their content automatically.
2018-03-18 14:18:19 +01:00
Christoph Oelckers
94eadb1a8c
- made it compile again.
2018-03-18 13:47:40 +01:00
Christoph Oelckers
de8db297a6
- made the backdrop texture also inherit from FWorldTexture.
...
In this case the only benefit is one less piece of GetColumn duplication - this texture is simply not usable in-game, unlike the BarShader.
2018-03-18 13:12:25 +01:00
Christoph Oelckers
494504229f
- fixed the BarShader texture.
...
Even though unlikely, this should work as a regular texture because it can be used as such.
As a result of the above, true color generation needs to be done explicitly now.
2018-03-18 12:54:40 +01:00
Christoph Oelckers
1d59a53cd4
- added worldtexture.cpp
2018-03-18 12:54:14 +01:00
Christoph Oelckers
7e169eb76f
- split out the span generation from most texture classes
...
Until now each subclass of FTexture had to implement the entire span generation itself, presumably so that a few classes can use simpler structures.
This does not work if a texture can have more than one pixel buffer as is needed for alpha textures.
Even though it means that some classes will allocate more data now, it's the only way to do it properly.
In addition this removes a significant amount of mostly redundant code from the texture classes.
- added alpha texture processing to all converted classes
As of now this is not active and not tested.
Note that as part of the conversion even those textures that were working as alphatextures will not look correct until the higher level code gets adjusted.
2018-03-18 12:36:14 +01:00
alexey.lysiuk
832fc42e07
Added native UI dialog to confirm stats collection
2018-03-18 13:26:04 +02:00
Christoph Oelckers
102d2647d3
- removed support for loading Build palettes as the main game palette.
...
This was implemented in a way that made it entirely impossible to load Build resources and make them usable for modding.
ZDoom had Build texture support for many years but the limitations the palette handling imposed made it impossible to use them.
It wasn't usable for anything more than to load Build maps and have them display properly - a feature that had to be removed because it was irreparably broken already.
With the forced palette override out of the way it should now be possible to implement loading of Build ART files as actually usable resources.
2018-03-18 11:57:41 +01:00
alexey.lysiuk
341a9bcf91
Added target and last enemy to linetarget CCMD output
...
https://forum.zdoom.org/viewtopic.php?t=59716
2018-03-18 11:23:24 +02:00
alexey.lysiuk
75782e6b34
Exported Inventory.AltHUDIcon field to ZScript
...
https://forum.zdoom.org/viewtopic.php?t=59842
2018-03-18 11:02:21 +02:00
alexey.lysiuk
ecff13ac2e
Fixed crash on attempt to send stats without network connection
...
https://forum.zdoom.org/viewtopic.php?t=59844
2018-03-17 22:38:41 +02:00
Magnus Norddahl
a2b9a70835
- Fix crash when reloading a map
2018-03-17 00:09:43 +01:00
alexey.lysiuk
9a737a0622
Added ability to turn off sending of stats in CMake configuration
2018-03-16 16:04:43 +02:00
alexey.lysiuk
a9802f82f4
Replaced usages of sprintf() in stats sender
2018-03-14 22:19:33 +02:00
Christoph Oelckers
f1bfc3514d
- fixed: For proper recognition of optional function arguments, the argflags must also be copied from the parent function to ensure they are itdentical on the override.
2018-03-14 19:52:30 +01:00
Rachael Alexanderson
549a290a2f
- add 'renderconfig' for the stats script to easily differentiate between OpenGL and software
2018-03-14 11:40:47 -04:00
alexey.lysiuk
bdeae23a56
Added native UI dialog to confirm stats collection
...
Implemented only for Windows so far
Need good message to explain purpose of this feature
2018-03-14 10:20:46 +02:00
Christoph Oelckers
49f590c797
- Use the Windows system function to determine the number of physical CPU cores.
...
The generic version does not appear to work as intended.
2018-03-13 20:04:41 +01:00
Rachael Alexanderson
d83456e9cc
- fixed: stats checker was not actually checking if it was being run in WOW64 mode
2018-03-13 09:34:38 -04:00
raa-eruanna
251f0c8459
- add one more missing include to make GCC happy
2018-03-12 22:39:50 -04:00
Marisa Kirisame
fb5eae8aaa
Added some missing zlib.h and stdint.h includes
2018-03-12 21:06:03 -04:00
Christoph Oelckers
fed7286442
- p_glnodes.cpp must include zlib.h
2018-03-12 22:45:49 +01:00
Christoph Oelckers
5fccdd9acd
- added missing return to translation code.
...
- a bit of header cleanup.
* moved <zlib.h> and <bzlib.h> from files.h to files_decompress.cpp because they are no longer needed for defining the interface.
* added <functional> to the precompiled header
2018-03-12 21:18:11 +01:00
Christoph Oelckers
5a4e9decd9
- added missing #include
2018-03-12 19:33:49 +01:00
Rachael Alexanderson
fbc4831072
- remove empty Mac I_HTTPRequest prototype since it's not used
2018-03-12 19:33:49 +01:00
Christoph Oelckers
f2f649bf77
- put all stats related code into one file.
2018-03-12 19:33:48 +01:00
Rachael Alexanderson
033a11a028
- fix compile on clang
...
- implement TCP connections in Linux
- fix passing of request string to a thread
- implement OS stats for ARM and PPC on Linux
2018-03-12 19:33:48 +01:00
Christoph Oelckers
d2fa4d0ff9
- most stat stuff done.
2018-03-12 19:33:48 +01:00
Rachael Alexanderson
c15e868b0f
- implemented anonymous stats collector
2018-03-12 19:33:48 +01:00
Christoph Oelckers
5d436cd3ed
- forward the error state of the translation parser to the calling code so that it can print a message pointing to the problem content.
2018-03-12 19:14:56 +01:00
Christoph Oelckers
73248e7f86
- added a missing nullptr check in Instruments::free_soundfonts()
2018-03-12 18:55:05 +01:00
Christoph Oelckers
13ef97c4ac
- removed debug message.
2018-03-12 18:47:49 +01:00
Major Cooke
4851c5bfde
Insert an extra line after printing the warnings.
2018-03-12 18:17:08 +01:00
Christoph Oelckers
c85389c976
Re-fixed 95d74614
...
This should be dealt with at the source, not one level up, so that it also works properly if the GetReader function of the ResourceFile object is called directly and not through the resource manager.
2018-03-12 10:26:36 +01:00
Christoph Oelckers
3cf1959070
Merge branch 'master' of https://github.com/coelckers/gzdoom
2018-03-12 10:19:23 +01:00
Christoph Oelckers
def5e1d61b
Added proper handling for default parameter values of virtual overrides
...
Due to how the VM handles default parameters, these must always be identical to the parent to prevent undefined behavior.
So now, if such parameters are encountered, the compiler will either abort (for script version >= 3.3) or print a warning (for older versions.)
Any defaults being specified for older versions will be ignored, though, and the defaults of the parent function be copied to the override.
2018-03-12 10:19:16 +01:00
alexey.lysiuk
e0f7c99496
Fixed crash on loading directories
2018-03-12 11:00:40 +02:00
Christoph Oelckers
c01554c6c8
- feeding another one to Travis CI...
2018-03-11 23:32:40 +01:00
Christoph Oelckers
54061ad50c
- another one.
...
This would be easier if Travis CI didn't abort compilation after each single error...
2018-03-11 23:25:30 +01:00
Christoph Oelckers
011bf9d9aa
- another one...
2018-03-11 22:44:05 +01:00
Christoph Oelckers
b72ccba5f5
- missed one bit.
2018-03-11 22:17:50 +01:00
Christoph Oelckers
8c0925dd5d
- fixed some compile errors which were only reported on GCC/Clang.
2018-03-11 22:05:28 +01:00
Christoph Oelckers
b445347aca
Merge branch 'master' of https://github.com/coelckers/gzdoom
2018-03-11 19:30:06 +01:00
Christoph Oelckers
b939836846
- renamed FileRdr back to FileReader.
2018-03-11 19:29:37 +01:00
Christoph Oelckers
0be1ed252b
- rewrote the operator>> methods of FileReader as normal functions for clarity.
2018-03-11 18:20:49 +01:00
Christoph Oelckers
833dbee167
- fixed some issues with m_swap's design.
...
The native byte order converters were defined as macros which hid some issues due to lack of type checks.
Additionally the ???Long variants taking 'long' variables were removed, because longs are not always 32 bits so this could be destructive.
As a result of this, removed several DWORDs from struct definitions in i_crash.cpp.
2018-03-11 14:35:36 +01:00
Christoph Oelckers
8bbfd39f42
- fixed some remaining issues:
...
* initial positioning in a subsection of a file failed. This mainly affected music playback.
* made the FileRdr constructor which takes a FileReaderInterface private so that everything that needs it must be explicitly declared as friend.
* removed a few redundant construction initializers for FileRdrs.
* loading compressed nodes needs to check the validity of its reader.
* use GetLength to detemine the size of a Zip file instead of doing another seek to the end.
* removed duplicate Length variables.
2018-03-11 13:26:30 +01:00
Christoph Oelckers
b14ee50d0d
- transition to new FileReader interface complete, but untested.
2018-03-11 12:33:46 +01:00
Christoph Oelckers
247785bca2
- converted map loader to FileRdr and took the opportunity to clean up its interface.
2018-03-10 21:48:33 +01:00
Christoph Oelckers
6f8ca2eace
- fixed a few issues from implicit FileReader conversion.
2018-03-10 20:47:17 +01:00
Christoph Oelckers
b315bc3be0
- added a few more FileRdr replacements
...
- fixed: The streaming music player must return the file reader if it fails to open, so that the next player can still use it.
- fixed: Timidity++'s Instruments class did not delete the sound font when it was destroyed.
..-
2018-03-10 20:33:49 +01:00
Christoph Oelckers
56991a9ace
- Removed FileReader from SoundFont manager.
...
- renamed close_file to tf_close for consistency.
2018-03-10 20:10:17 +01:00
Christoph Oelckers
c4387459bb
- use FileRdr in the PNG code, in particular to sanitize the savepic handling.
2018-03-10 19:22:26 +01:00
Christoph Oelckers
5fa63c396d
- sound code and most of texture code converted to FileRdr.
...
This allowed to remove a lot of bad pointer voodoo in the music loader, because the new class does not allow duplication of the reader object
2018-03-10 18:45:11 +01:00
Rachael Alexanderson
37fa3fa25e
- add variables 'am_unexploredsecretcolor' and 'am_ovunexploredsecretcolor' to mark undiscovered secrets differently in the automap
2018-03-10 10:36:43 -05:00
Christoph Oelckers
26e948357e
- added an abstract FileReader wrapper.
...
The idea here is to decouple the actual reader creation from the code using them so that, for example, the Open function can decide if it wants to open the file regularly or memory mapped and return different readers as deemed useful. For that to work the exposed object needs to be an abstract wrapper so that this can be done without having to use pointers and all the drawbacks coming from that.
So far put to use in a few parts of the music code so the general functionality could be tested.
2018-03-10 13:46:35 +01:00
alexey.lysiuk
9cd5b415c1
Improved profilethinkers in various ways
...
Added features:
* Formatted table
* Average time per one actor
* Sorting column highlight
* Rows limit
* Usage help
2018-03-10 11:04:31 +02:00
alexey.lysiuk
fc981bf5d4
Extended profilethinkers CVAR with sorting ability
...
Sorting modes are
1 - by name, from A to Z
2 - by name, from Z to A
3 - number of calls, ascending
4 - number of calls, descending
5 - total time, ascending
anything else - total time, descending
2018-03-09 18:13:16 +02:00
alexey.lysiuk
f5d5430804
Added ability to build without thread_local support
...
https://forum.zdoom.org/viewtopic.php?t=58043
2018-03-09 12:53:41 +02:00
Magnus Norddahl
2589447d0e
- fixed midtex nowrap clipping bug when 3d floors are in view
...
- made sure no code uses sclipTop or sclipBottom as a working variable
2018-03-09 01:30:47 +01:00
alexey.lysiuk
53a9819283
Disabled GCC loop vectorization for R_LoadKVX() function
...
This prevents crash (unaligned memory access by SSE instruction) on loading voxels in Release (-O3) builds
https://forum.zdoom.org/viewtopic.php?t=59656
2018-03-08 12:24:33 +02:00
alexey.lysiuk
7f17121df8
Fixed crash in MIDI to wave writer
2018-03-08 11:38:02 +02:00
alexey.lysiuk
cea64ea092
Moved old Nuked and Java OPL3 to own namespaces
...
This helps to avoid clashing of OPL3 classes
2018-03-08 10:18:49 +02:00
alexey.lysiuk
114e56b334
Moved old NukedOPL to own namespace
...
This fixes linking issues on non-MSVC targets and improves code navigation
2018-03-08 09:51:37 +02:00
alexey.lysiuk
15138c38ca
Improved organization of ADLMIDI files in CMake generated projects
2018-03-08 09:49:51 +02:00
Magnus Norddahl
6ab58e56ad
- fix simplify code slightly
2018-03-08 04:25:27 +01:00
Magnus Norddahl
71623198d2
- remove fake3D with structs and localize their usage instead of sharing global state
2018-03-08 04:05:35 +01:00
Magnus Norddahl
7cb4deabdd
- get rid of FAKE3D_REFRESHCLIP and fix holes in 3d floors with wrapped midtextures
2018-03-08 01:28:23 +01:00
Magnus Norddahl
a55be25a9d
- add const qualifier on top/bottom clip arrays usage
2018-03-08 00:55:37 +01:00
Christoph Oelckers
2d2d44baad
- integrated ADL as a proper device in the MIDI device list.
...
- resorted the MIDI device menu option by device types (i.e. all SW synths first, FM synths second)
- allow setting the ADL bank.
2018-03-07 21:20:25 +01:00
Christoph Oelckers
fd801b8b94
Merge branch 'adlMIDI'
...
# Conflicts:
# src/sound/musicformats/music_midistream.cpp
2018-03-07 20:31:32 +01:00
alexey.lysiuk
e51a1867df
Added default values for BaseStatusBar.AttachMessage() arguments
2018-03-07 16:00:08 +02:00
alexey.lysiuk
81bc05b7c5
Added support for default values of arguments with uint type
2018-03-07 15:58:06 +02:00
Christoph Oelckers
9b61ee9618
- fixed: The MIDI wave writer set the sample rate to save at too late.
...
This was done after the players had already been created. To ensure that everything gets set properly it is necessary to pass the desired sample rate to the device's constructor and let it make sure that a proper sample rate gets set.
2018-03-06 22:41:27 +01:00
alexey.lysiuk
72831c9db7
Fixed archiving of CVARs with default values
...
https://forum.zdoom.org/viewtopic.php?t=59701
2018-03-06 22:46:18 +02:00
Christoph Oelckers
4d4edcfbfb
- fixed setup for Timidity++ playback frequency.
2018-03-06 19:52:29 +01:00
alexey.lysiuk
4b7e57b007
Fixed selection of soundfont with spaces in its name
2018-03-06 13:05:38 +02:00
Christoph Oelckers
774a7773a4
Merge branch 'master' of https://github.com/coelckers/gzdoom
2018-03-05 20:39:34 +01:00
alexey.lysiuk
adae6c19b8
Made left button down event available to UI event handler
...
Main menu is no longer triggered in game on left mouse button press when handler is processing UI events
https://forum.zdoom.org/viewtopic.php?t=59673
2018-03-05 16:53:17 +02:00
alexey.lysiuk
3e9de3788d
Fixed spelling of MissileShootersActivateImpactLines MAPINFO property
...
https://forum.zdoom.org/viewtopic.php?t=59686
2018-03-05 15:02:39 +02:00
alexey.lysiuk
77e1a1d289
Replaced usages of fluid_settings_getstr() function
...
This function is deprecated since FluidSynth 1.1.9 and removed in upcoming 2.x
2018-03-05 12:31:50 +02:00
alexey.lysiuk
ac47166894
Fixed freeze after saving game when cl_waitforsave CVAR set to false
...
Restored assertions that help to spot incorrect usage of I_FreezeTime() function
https://forum.zdoom.org/viewtopic.php?t=59672
2018-03-04 15:11:45 +02:00
alexey.lysiuk
d0ec6ef1d4
TiMidity++ now loads SF2 soundfont with spaces in path
2018-03-04 13:09:29 +02:00
alexey.lysiuk
d802abec5b
Fixed initialization of search paths on macOS
...
IWAD directories previously set in user configuration file led to inconsistent file and soundfont search paths
2018-03-04 11:06:11 +02:00
alexey.lysiuk
8145b52037
Added explicit fallback to default soundfont
...
With no soundfonts found the game crashed on startup
Local UNIX build had the same issue because $PROGDIR/soundfonts is not in search path
2018-03-03 15:17:30 +02:00
alexey.lysiuk
4053e18835
Allowed CVARs to be set in unsafe context
...
CVAR values set in unsafe context are not written to user configuration file
This does not affect mod's CVARs
https://forum.zdoom.org/viewtopic.php?t=59484
2018-03-03 10:26:28 +01:00
Christoph Oelckers
2541bd93fc
- made DHUDMessageBase non-abstract.
2018-03-03 09:52:34 +01:00
Marisa Kirisame
069c5aa90a
Fix accidentally removed SectorPlane assignment. Added missing HitVector support.
2018-03-03 09:30:06 +01:00
Marisa Kirisame
bc4a8190bf
Fix incorrect HitTexture reassignment in LineTrace.
2018-03-03 09:30:06 +01:00
Marisa Kirisame
4cc8ba3399
Export GetSector() again, removed lightingdata assignment.
2018-03-03 09:26:11 +01:00
Marisa Kirisame
f55bad472c
Removed some garbage changes
2018-03-03 09:26:11 +01:00
Marisa Kirisame
053d9f4a44
Export sector effect pointers, fix missing pointer assignment on Lighting effect creation.
2018-03-03 09:26:11 +01:00
Christoph Oelckers
4f68b78c3b
- removed an unchecked fixed size buffer in the KEYCONF parser.
2018-03-03 09:14:33 +01:00
Christoph Oelckers
b327aa737a
Merge remote-tracking branch 'remotes/origin/materials'
2018-03-03 08:54:04 +01:00
Christoph Oelckers
e1bb14803e
- print an error message if the requested MIDI device cannot be started.
...
This will only be done the first time a given setup fails. Repeated messages will be muted.
2018-03-03 08:52:25 +01:00