Commit graph

1461 commits

Author SHA1 Message Date
Timothee "TTimo" Besset
a2bdc7ca43
Merge pull request #563 from illwieckz/emptydir
do not list empty shader/texture directories
2018-01-27 14:24:08 -06:00
Timothee "TTimo" Besset
88b992a9eb
Merge pull request #562 from illwieckz/notex
always provide notex
2018-01-27 14:18:24 -06:00
Timothee "TTimo" Besset
beaf72c754
Merge pull request #585 from illwieckz/fixurl
allow to open https:// urls
2018-01-27 14:14:56 -06:00
Timothee "TTimo" Besset
1dfec8f7a8
Merge pull request #588 from Pan7/eangle
Angle pointer by entity definition
2018-01-27 14:08:55 -06:00
Timothee "TTimo" Besset
d5329c0636
Merge pull request #589 from illwieckz/dropqlpk3
q3map2: drop quakelive encrypted pk3 vfs
2018-01-27 14:07:52 -06:00
Timothee "TTimo" Besset
0084650867
Merge pull request #590 from illwieckz/nodlpack
don't download gamepacks on “scons -c” fix #477
2018-01-27 14:07:25 -06:00
Thomas Debesse
4f6d5b611d don't download gamepacks on “scons -c” fix #477 2018-01-27 02:40:03 +01:00
Thomas Debesse
ff416cdfb9 q3map2: drop quakelive encrypted pk3 vfs 2018-01-27 02:26:30 +01:00
Pan
784e2de4e3 angle pointer by entity definition 2018-01-27 00:54:01 +01:00
Thomas Debesse
0fd04ccf85 always provide notex
This adds a special VFS providing textures/radiant/notex and shadernotex.

This way, game packs does not have to provide them using the hardcoded
textures/radiant/[shader]notex path (some games prefer other prefixes).

It also allows GtkRadiant to not crash at startup when a wrong game
path is set.

It would also prevents radiant to fail where it tries to load these
textures on very early stage when the whole VFS is not yet loaded,
for example on pk3dir scenario.

The notex and shadernotex textures come from Unvanquished's tex-common
package and are distributed under public domain-like CC0 1.0 Universal license: https://creativecommons.org/publicdomain/zero/1.0/

See: https://github.com/UnvanquishedAssets/tex-common_src.dpkdir/blob/master/about/tex-common.txt
2018-01-23 00:18:45 +01:00
Thomas Debesse
574dd47394 allow to open https:// urls 2018-01-22 20:06:02 +01:00
Timothee "TTimo" Besset
95ae5af82b
Merge pull request #584 from illwieckz/sconsfix
scons: do not look for vfsqlpk3, make diff easier
2018-01-22 13:01:13 -06:00
Thomas Debesse
7660023c96 scons: do not look for vfsqlpk3, make diff easier
- vfsqlpk3 was removed, so scons does not have to build it and don't
  fail anymore.
- when I was maintaining offline unvanquished branch I got so much pain
  each time I rebased on master because of stupid merge conflict since
  git knows well how to merge line addition/deletion but not to merge
  addition/deletion within the same line… setting each gamepack names
  on its own line will save hours of manual stupid merge solve to people
  wanting to add games in the future.
- I also added a comma on another list because python allows to put comma
  on last element and that's great to reduce diff noise (adding another
  line after the last one does not require to modify the one that was
  the last one before).
2018-01-22 19:26:53 +01:00
Thomas Köppe
e1eeefac58 [pico] Add missing header inclusion 2018-01-22 16:52:52 +00:00
Thomas Köppe
d3d00345c5 [q3map2/{vis,visflow}.c] Reinstate offsetof-based size computation.
The logic isn't entirely legitimate, since fixedWinding_t is a
fixed-size type that is *sometimes* treated as a variable-sized type,
but it would require deeper refactoring to make this strictly
conforming. As it is, we just keep the offset computation as a
reasonable way to calculate the allocation size.

Fixes #583.
2018-01-22 16:03:21 +00:00
Timothee Besset
f00e8fd6a6 fix pk3dir/dpk/dpkdir code 2018-01-22 09:03:45 -06:00
Timothee Besset
921dc5083c remove rogue INT_MIN definition 2018-01-22 08:52:06 -06:00
Timothee Besset
d81b0f805e Add bspc from the submodule in the main solution 2018-01-22 08:51:32 -06:00
Timothee Besset
67fa177673 cleanup more offsetof usage 2018-01-22 08:43:48 -06:00
Timothee "TTimo" Besset
322935310e
Merge pull request #582 from tkoeppe/flexi
Use flexible array members
2018-01-22 08:36:52 -06:00
Thomas Köppe
f061ce9990 Change winding_t, winding_accu_t and brush_t to use flexible array members rather than fixed-sized arrays.
The arrays were always meant to be variably sized, and objects are only ever allocated dynamically. Object size computations are simplified with this change.

Flexible arrays were introduced in C99, so this change means that we will require a C99-conforming compiler henceforth.
2018-01-22 02:23:23 +00:00
Timothee Besset
4ace24c00a remove QL encryption, add Q1Pack 2018-01-21 15:41:45 -06:00
Timothee "TTimo" Besset
c0a5da84f0
Merge pull request #535 from illwieckz/unvanquished
initial unvanquished support
2018-01-21 15:09:53 -06:00
Timothee "TTimo" Besset
c92429820b
Merge pull request #533 from illwieckz/pk3dir
pk3dir support (+pk4dir/dpkdir support)
2018-01-21 15:08:15 -06:00
Timothee "TTimo" Besset
ac48f23d4d
Merge pull request #575 from illwieckz/shaderlists
load shaderlist.txt from more than one VFS, fix #573
2018-01-21 15:01:50 -06:00
Timothee Besset
08b44c433d Disable the deprecated functions warning 2018-01-21 14:59:29 -06:00
Timothee Besset
fc33f1818c Merge branch 'master' of github.com:TTimo/GtkRadiant 2018-01-21 14:47:38 -06:00
Timothee Besset
e08d6b6429 Visual Studio 2017. Fixed q3map2_urt 64 bit compilation also. 2018-01-21 14:47:06 -06:00
Timothee "TTimo" Besset
e44968a80f
Merge pull request #580 from tkoeppe/flexi
Use standard "offsetof" facility rather than manual code involving null pointer dereferences.
2018-01-21 14:23:29 -06:00
Thomas Köppe
ec0907f7ca Use standard "offsetof" facility rather than manual code involving null pointer dereferences. 2018-01-21 01:54:24 +00:00
Timothee "TTimo" Besset
3c49dd161d
Merge pull request #576 from tkoeppe/bugfixes
Bugfixes in sciptlib.c and map.c
2018-01-20 15:35:53 -06:00
Timothee "TTimo" Besset
943107012f
Merge pull request #564 from illwieckz/gcc8
gcc8: static_cast NULL instead of reinterpret_cast
2018-01-20 15:33:17 -06:00
Timothee "TTimo" Besset
e5b3a6e942
Merge pull request #579 from Pan7/fixElif
Fix missing #elif
2018-01-20 10:04:10 -06:00
Pan
189a61a9e0 Fix missing #elif 2018-01-20 12:06:23 +01:00
Timothee "TTimo" Besset
61d14dfd10
Merge pull request #578 from Pan7/donotalias
Extra donotenterlarge surfaceparm for nonotenterlarge
2018-01-16 08:59:54 -06:00
Pan
911d5562f6 Extra donotenterlarge surfaceparm for nonotenterlarge 2018-01-16 13:12:13 +01:00
Thomas Köppe
760623150e [q3map2] Unwind script stack in case of script loading error.
Also avoid type punning read into char* variable (even though char* and void* happen to be layout-compatible).
2018-01-08 15:18:40 +00:00
Thomas Köppe
606d72adf2 [q3map2] Fix errnoneous plane access if plane was not found 2018-01-08 15:17:58 +00:00
Thomas Debesse
ec946f83d6 shaderlists 2018-01-07 21:20:52 +01:00
Thomas Debesse
32543d8a24 Unvanquished appears in readme 2018-01-07 21:18:18 +01:00
Thomas Debesse
da38f7754c [q3map2] reduce diff noise with netradiant tree 2018-01-07 21:16:53 +01:00
neumond
eee8d14261 q3map2: Add -game unvanquished 2018-01-07 21:16:53 +01:00
Thomas Debesse
ce211f0773 update unvanquished game pack repository url 2018-01-07 21:16:53 +01:00
Thomas Debesse
33be0cb1f8 config.py: remove some spaces 2018-01-07 21:16:53 +01:00
neumond
2b2d2eab06 Unvanquished gamepack 2018-01-07 21:16:53 +01:00
neumond
cfaa83f3b1 Unvanquished appears in menu 2018-01-07 21:16:53 +01:00
Thomas Debesse
c99c1abd9b [q3map2] import pk3dir/dpk/dpkdir support from netradiant
- load every pk3dir/dpkdir as VFS
- increase VFS_MAXDIR
- dpk/dpkdir is not versionned yet
2018-01-07 21:09:52 +01:00
Thomas Debesse
ba300b1751 [radiant] allow to load pk4/dpk vfs in addition to pk3 vfs
- load also pk4/pk4dir and dpk/dpkdir
- dpk/dpkdir are not versionned yet
2018-01-07 21:09:52 +01:00
Thomas Debesse
721da8cdb1 [radiant] pk3dir support
- load every pk3dir as VFS
- increase VFS_MAXDIR
2018-01-07 21:09:52 +01:00
Timothee "TTimo" Besset
94849adc93
Merge pull request #534 from illwieckz/noradiosity
Proper working with noradiosity 1 lights
2018-01-07 13:06:03 -06:00