]> git.rm.cloudns.org Git - xonotic/netradiant.git/log
xonotic/netradiant.git
3 years agoMake About window message more explicit about maintainer and latest build 171/head
Thomas Debesse [Thu, 18 Feb 2021 09:41:18 +0000 (10:41 +0100)]
Make About window message more explicit about maintainer and latest build

3 years agoMerge branch 'max' into 'master'
Thomas Debesse [Mon, 15 Feb 2021 09:50:45 +0000 (09:50 +0000)]
Merge branch 'max' into 'master'

bump MAX_IMAGES, MAX_MODELS

See merge request xonotic/netradiant!170

3 years agobump MAX_IMAGES, MAX_MODELS 170/head
Garux [Tue, 9 Feb 2021 21:20:32 +0000 (00:20 +0300)]
bump MAX_IMAGES, MAX_MODELS

3 years agoMerge branch 'dds' into 'master'
Thomas Debesse [Mon, 15 Feb 2021 09:18:12 +0000 (09:18 +0000)]
Merge branch 'dds' into 'master'

fix dds loading in 64 bit

See merge request xonotic/netradiant!169

3 years agofix dds loading in 64 bit 169/head
Garux [Sat, 23 Jan 2021 08:23:04 +0000 (11:23 +0300)]
fix dds loading in 64 bit

3 years agoreadme: update with macOS and bundling instructions
Thomas Debesse [Wed, 23 Dec 2020 02:17:40 +0000 (03:17 +0100)]
readme: update with macOS and bundling instructions

3 years agoplugin/vfspk3: prevent buffer overflow/stack smashing
Thomas Debesse [Wed, 23 Dec 2020 01:46:27 +0000 (02:46 +0100)]
plugin/vfspk3: prevent buffer overflow/stack smashing

This isssue:

```
netradiant/plugins/vfspk3/vfs.cpp:595:7: warning: array index 1024 is past the end of the array (which contains 1024 elements)
      [-Warray-bounds]
                                                tmppath[PATH_MAX] = '\0';
                                                ^       ~~~~~~~~
netradiant/plugins/vfspk3/vfs.cpp:587:5: note: array 'tmppath' declared here
                                char tmppath[PATH_MAX];
                                ^
netradiant/plugins/vfspk3/vfs.cpp:607:7: warning: array index 1024 is past the end of the array (which contains 1024 elements)
      [-Warray-bounds]
                                                tmppath[PATH_MAX] = '\0';
                                                ^       ~~~~~~~~
netradiant/plugins/vfspk3/vfs.cpp:587:5: note: array 'tmppath' declared here
                                char tmppath[PATH_MAX];
```

is producing this (on macOS):

```
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
    frame #0: 0x00007fff58f4f2c6 libsystem_kernel.dylib`__pthread_kill + 10
libsystem_kernel.dylib`__pthread_kill:
->  0x7fff58f4f2c6 <+10>: jae    0x7fff58f4f2d0            ; <+20>
    0x7fff58f4f2c8 <+12>: movq   %rax, %rdi
    0x7fff58f4f2cb <+15>: jmp    0x7fff58f49457            ; cerror_nocancel
    0x7fff58f4f2d0 <+20>: retq
Target 0: (netradiant) stopped.
(lldb) thread backtrace all
* thread #1, queue = 'com.apple.main-thread', stop reason = signal SIGABRT
  * frame #0: 0x00007fff58f4f2c6 libsystem_kernel.dylib`__pthread_kill + 10
    frame #1: 0x00007fff5900abf1 libsystem_pthread.dylib`pthread_kill + 284
    frame #2: 0x00007fff58eb9745 libsystem_c.dylib`__abort + 144
    frame #3: 0x00007fff58eb9ff3 libsystem_c.dylib`__stack_chk_fail + 205
    frame #4: 0x000000010a8a7e59 libvfspk3.so`InitDirectory(char const*, Modules<_QERArchiveTable>&) + 7689
    frame #5: 0x00000001000e0a57 netradiant`QE_InitVFS() + 1351
    frame #6: 0x0000000100094673 netradiant`VFSModuleObserver::realise() + 19
    frame #7: 0x000000010009478a netradiant`HomePathsModuleObserver::realise() + 58
    frame #8: 0x000000010008906a netradiant`EnginePath_Realise() + 58
    frame #9: 0x00000001000d3f5f netradiant`Radiant::Radiant() + 351
    frame #10: 0x00000001000d15d1 netradiant`Radiant_Construct(ModuleServer&) + 353
    frame #11: 0x000000010008a84a netradiant`Radiant_Initialise() + 42
    frame #12: 0x0000000100088087 netradiant`main + 535
    frame #13: 0x00007fff58e143d5 libdyld.dylib`start + 1
  thread #2
    frame #0: 0x00007fff58f4abfe libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff59007636 libsystem_pthread.dylib`_pthread_wqthread + 458
    frame #2: 0x00007fff590073fd libsystem_pthread.dylib`start_wqthread + 13
  thread #3
    frame #0: 0x00007fff58f4abfe libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #1: 0x00007fff59007636 libsystem_pthread.dylib`_pthread_wqthread + 458
    frame #2: 0x00007fff590073fd libsystem_pthread.dylib`start_wqthread + 13
  thread #4
    frame #0: 0x00007fff58f4abfe libsystem_kernel.dylib`__workq_kernreturn + 10
    frame #&1: 0x00007fff590076e6 libsystem_pthread.dylib`_pthread_wqthread + 634
    frame #2: 0x00007fff590073fd libsystem_pthread.dylib`start_wqthread + 13
```

3 years agoMerge branch 'illwieckz/gtkglext' into 'master'
Thomas Debesse [Tue, 22 Dec 2020 23:27:19 +0000 (23:27 +0000)]
Merge branch 'illwieckz/gtkglext' into 'master'

Make possible to build custom GtkGLExt and build macOS bundle

See merge request xonotic/netradiant!168

3 years agocmake: minor tweaks
Thomas Debesse [Tue, 22 Dec 2020 22:14:58 +0000 (23:14 +0100)]
cmake: minor tweaks

3 years agomacos: produce working NetRadiant.app
Thomas Debesse [Tue, 22 Dec 2020 22:12:02 +0000 (23:12 +0100)]
macos: produce working NetRadiant.app

3 years agomacos: rename radiant to netradiant
Thomas Debesse [Tue, 22 Dec 2020 19:27:09 +0000 (20:27 +0100)]
macos: rename radiant to netradiant

3 years agobundle: bundle macos binaries (no .app file done yet)
Thomas Debesse [Tue, 22 Dec 2020 17:37:36 +0000 (18:37 +0100)]
bundle: bundle macos binaries (no .app file done yet)

3 years agotools: update daemonmap submodule
Thomas Debesse [Mon, 21 Dec 2020 16:16:26 +0000 (17:16 +0100)]
tools: update daemonmap submodule

3 years agotools: no need for minizip/ directory, pkg-config tells it
Thomas Debesse [Mon, 21 Dec 2020 16:13:34 +0000 (17:13 +0100)]
tools: no need for minizip/ directory, pkg-config tells it

3 years agoeasy-builder: also build builtins, make macos use builtin gtkglext
Thomas Debesse [Mon, 21 Dec 2020 16:12:51 +0000 (17:12 +0100)]
easy-builder: also build builtins, make macos use builtin gtkglext

3 years agomacos: disable drawing xorrectangle (rectangle selection feedback)
Thomas Debesse [Tue, 22 Dec 2020 19:08:31 +0000 (20:08 +0100)]
macos: disable drawing xorrectangle (rectangle selection feedback)

disable drawing xorrectangle (rectangle selection feedback)
to workaround crash, selection still works

3 years agomacos: workaround faulty destructor
Thomas Debesse [Mon, 21 Dec 2020 13:34:33 +0000 (14:34 +0100)]
macos: workaround faulty destructor

3 years agogtkglext: build macos non-x11 gtkglext
Thomas Debesse [Mon, 21 Dec 2020 00:47:21 +0000 (01:47 +0100)]
gtkglext: build macos non-x11 gtkglext

3 years agogtkglext: build and bundle built-in gtkglext
Thomas Debesse [Thu, 17 Dec 2020 20:54:29 +0000 (21:54 +0100)]
gtkglext: build and bundle built-in gtkglext

There is a chicken-and-egg problem, so the build must be done in two steps,

First build built-in libraries:

cmake -G "Unix Makefiles" -S. -Bbuild -DBUILTIN_GTKGLEXT=ON -DBUNDLE_LIBRARIES=ON
cmake --build build --parallel $(nproc) -- builtins

Then detect the built-in libraries and build netradiant and install the bundle as usual:

cmake -S. -Bbuild
cmake --build build --parallel $(nproc) install

There is no need to set cmake options on second step but cmake still has to be called again to detect the new files.

3 years agobundler: detect missing libraries
Thomas Debesse [Thu, 17 Dec 2020 18:47:59 +0000 (19:47 +0100)]
bundler: detect missing libraries

3 years agogtkglext: build builtin GtkGLExt as cmake external project
Thomas Debesse [Tue, 15 Dec 2020 12:21:38 +0000 (13:21 +0100)]
gtkglext: build builtin GtkGLExt as cmake external project

Do:

cmake -G "Unix Makefiles" -S. -Bbuild -DBUILTIN_GTKGLEXT=ON
cmake --build build --parallel $(nproc)

A GtkGLExt tree knonn to build will be downloaded into:

build/gtkglext-prefix/src/gtkglext

and installed into:

build/external

NetRadiant does not build against this builtin GtkGLExt yet.

4 years agoq3map2/light_bounce: prevent infinite loop on obscure bias compute 167/head
Thomas Debesse [Wed, 1 Jul 2020 16:20:25 +0000 (18:20 +0200)]
q3map2/light_bounce: prevent infinite loop on obscure bias compute

New code produces same result without loop at all, so
it cannot fall in infinite loop, and it is faster in
use cases requiring more than one loop in previous code.

The Unvanquished vega map is known to trigger the bug:
https://github.com/UnvanquishedAssets/map-vega_src.dpkdir
I reproduced it multiple time on various hardware (8 core FX-9590,
12 core/24 thread Ryzen 9 3900X) with commit af40508 and using
final compilation profile edited to use -fastbounce instead
of -fast option.

The symptom is simple, q3map2 stucks there:

--- Radiosity (bounce 1 of 8) ---
--- RadCreateDiffuseLights ---
0...1...2...3..

Or somewhere else in that progression bar given your hardware
and the amount of core your CPU has.

When stuck, all the CPU cores are running 100% but the thread
never returns (a strace can reveals it, a gdb backtrace too).

Thanks to @slipher for the precious advices and improving my first
attempt to fix it.

For more information on the issue, I asked:

> which negative value never can become positive
> when incremented infinitely?

slipher said:

> for a double, any value less than -2^53 would have this property
> don't know for float off the top of my head

But then, it means that's theorically verified this loop was able
to run forever in some case.

I don't know what this code is doing anyway, but at least we can
keep the behaviour without requiring to understand it.

4 years agoq3map2 * fix: do not affect styled lightmaps by floodlight
Garux [Wed, 25 Mar 2020 18:21:07 +0000 (21:21 +0300)]
q3map2 * fix: do not affect styled lightmaps by floodlight
port of https://github.com/id-tech-3-tools/map-compiler/pull/12
https://github.com/id-tech-3-tools/map-compiler/commit/87b8589a3a5069c482243bb33c587fc18911746c

4 years agogamepacks: add Alien Arena (GPL)
Thomas Debesse [Sat, 23 May 2020 12:31:16 +0000 (14:31 +0200)]
gamepacks: add Alien Arena (GPL)

4 years agoMerge branch 'vfs' into 'master'
Thomas Debesse [Mon, 25 May 2020 08:54:22 +0000 (08:54 +0000)]
Merge branch 'vfs' into 'master'

Some VFS fixes: attempt to load .pak and .wad, load png fallback even if game does not support png, do not load engine path twice

Closes #141 and #139

See merge request xonotic/netradiant!166

4 years agoradiant/texwindow: use TextureBrowser_showWads when possible 166/head
Thomas Debesse [Fri, 22 May 2020 16:17:35 +0000 (18:17 +0200)]
radiant/texwindow: use TextureBrowser_showWads when possible

instead of doing alternatively:
- !string_empty( g_pGameDescription->getKeyValue( "show_wads" ) )
- TextureBrowser_showWads()

the last one calling:
- !string_empty( g_pGameDescription->getKeyValue( "show_wads" ) )

4 years agoradiant/texwindow: only show per-wad textures, update texture window title with wad...
Thomas Debesse [Fri, 22 May 2020 16:06:50 +0000 (18:06 +0200)]
radiant/texwindow: only show per-wad textures, update texture window title with wad name

4 years agoradiant/texwindow: beautify wad list
Thomas Debesse [Fri, 22 May 2020 15:04:29 +0000 (17:04 +0200)]
radiant/texwindow: beautify wad list

4 years agoradiant/texwindow: test .wad file extension case-insensitively on all systems, fix...
Thomas Debesse [Fri, 22 May 2020 12:58:11 +0000 (14:58 +0200)]
radiant/texwindow: test .wad file extension case-insensitively on all systems, fix #139

4 years agoradiant/image: load fallback images with png loader even if game does not support...
Thomas Debesse [Thu, 21 May 2020 22:43:20 +0000 (00:43 +0200)]
radiant/image: load fallback images with png loader even if game does not support png, fix #141

Current implementation has a minor issue, when "Hide Fallback" option is
disabled, the fallback image does not appear in texture browser before radiant
makes use of it (for example creating a brush before selecting a texture).

Since "Hide Fallback" option is enabled by default and it never makes sense
to apply those fallback intentionally, I don't care for the moment.

I would like to see a better implementation that would work for all
editor images (like the one set with `qer_editorImage` shader keyword).

4 years agoradiant/vfs: do not load enginepath twice
Thomas Debesse [Fri, 22 May 2020 08:34:43 +0000 (10:34 +0200)]
radiant/vfs: do not load enginepath twice

Do not load engine path twice when the home path and the engine path is the same,
This happens when a game does not have home path.

Also rework a bit that code, and prints useful information on console.

4 years agoradiant/vfs: rework vfs loading, attempt to load wads and paks, ref #139
Thomas Debesse [Thu, 21 May 2020 18:22:26 +0000 (20:22 +0200)]
radiant/vfs: rework vfs loading, attempt to load wads and paks, ref #139

Also load .pak extracted as .pakdir (can be done using unpak).
NOTE: that feature would have to be supported by map compilers to
be useful. This is still handy for testing purpose so I'm keeping it.

Also prints on console the opened pak directories.

4 years agoFixing compilation with -DBUILD_SHARED_LIBS=ON
Azamat H. Hackimov [Thu, 21 May 2020 01:08:39 +0000 (04:08 +0300)]
Fixing compilation with -DBUILD_SHARED_LIBS=ON

Libraries under libs should be forced STATIC since there circular
dependencies and implicit linking with external libraries. Otherwise
compilation will fails with underlinking errors.

4 years agodaemonmap: update submodule for fixes for compilation with '-DBUILD_SHARED_LIBS=ON'
Thomas Debesse [Thu, 21 May 2020 09:24:59 +0000 (11:24 +0200)]
daemonmap: update submodule for fixes for compilation with '-DBUILD_SHARED_LIBS=ON'

4 years agoMerge branch 'illwieckz/gcc10' into 'master'
Thomas Debesse [Sun, 17 May 2020 15:53:01 +0000 (15:53 +0000)]
Merge branch 'illwieckz/gcc10' into 'master'

Fix compilation with GCC 10, <3 @SpiKe, fix #140

Closes #140

See merge request xonotic/netradiant!163

4 years agodaemonmap: update submodule 163/head
Thomas Debesse [Fri, 15 May 2020 03:33:45 +0000 (05:33 +0200)]
daemonmap: update submodule

4 years agoh2data: use static for homonyms
Thomas Debesse [Fri, 15 May 2020 03:18:01 +0000 (05:18 +0200)]
h2data: use static for homonyms

4 years agoq3data: already defined in cmdlib.h
Thomas Debesse [Fri, 15 May 2020 02:51:27 +0000 (04:51 +0200)]
q3data: already defined in cmdlib.h

4 years agoq2map: declare once, define as extern
Thomas Debesse [Fri, 15 May 2020 02:21:03 +0000 (04:21 +0200)]
q2map: declare once, define as extern

4 years agoq2map: do not define globally when used locally
Thomas Debesse [Fri, 15 May 2020 02:11:36 +0000 (04:11 +0200)]
q2map: do not define globally when used locally

4 years agoh2data: do not redefine if unused
Thomas Debesse [Thu, 14 May 2020 11:18:25 +0000 (13:18 +0200)]
h2data: do not redefine if unused

4 years agoh2data: declare once, define as extern
Thomas Debesse [Thu, 14 May 2020 11:14:19 +0000 (13:14 +0200)]
h2data: declare once, define as extern

4 years agoq3map2: declare or define with Q_EXTERN
Thomas Debesse [Thu, 14 May 2020 11:04:30 +0000 (13:04 +0200)]
q3map2: declare or define with Q_EXTERN

4 years agoq3map2: already defined in inout.h
Thomas Debesse [Thu, 14 May 2020 11:02:03 +0000 (13:02 +0200)]
q3map2: already defined in inout.h

4 years agoreadme: add download link, make sure people download source using git, and other...
Thomas Debesse [Fri, 24 Apr 2020 23:34:51 +0000 (01:34 +0200)]
readme: add download link, make sure people download source using git, and other rewording

4 years agoq3map2: generate unvanquished minimap sidecar file
Thomas Debesse [Sun, 19 Apr 2020 09:49:36 +0000 (11:49 +0200)]
q3map2: generate unvanquished minimap sidecar file

also enable the option for work-in-progress smokinguns port on dæmon

4 years agoq3map2: remove useless zlib dependency
Thomas Debesse [Sat, 18 Apr 2020 08:03:56 +0000 (10:03 +0200)]
q3map2: remove useless zlib dependency

4 years agoComment ColorToBytesNonZero and fix zero detection in light.c.
Rudolf Polzer [Sun, 19 Apr 2020 00:41:25 +0000 (02:41 +0200)]
Comment ColorToBytesNonZero and fix zero detection in light.c.

4 years agoFix ioq3 compatibility bug with lightgrid and only one light.
Rudolf Polzer [Sat, 18 Apr 2020 00:10:39 +0000 (20:10 -0400)]
Fix ioq3 compatibility bug with lightgrid and only one light.

Correct math requires the ambient component of the lightgrid to be zero
in that case. However, ioq3 ignores lightgrid cells with all zero ambient
value, EVEN if the directed value is nonzero.

This change sets the ambient value to #010101 if it'd be pitch black. This
should be a minimal change without affecting light hue that fixes
lightgrid rendering. In engines like DarkPlaces, almost no map should
look different from this.

Fixes #137.

4 years agoeasy-builder: make it compatible with Ubuntu 18.04/CMake 3.10
Thomas Debesse [Mon, 6 Apr 2020 00:16:27 +0000 (02:16 +0200)]
easy-builder: make it compatible with Ubuntu 18.04/CMake 3.10

on CMake 3.10i, options -S and -B were not supported yet

4 years agoreadme: update
Thomas Debesse [Sun, 5 Apr 2020 03:57:55 +0000 (05:57 +0200)]
readme: update

4 years agoMerge branch 'clang' into 'master'
Thomas Debesse [Sun, 5 Apr 2020 03:53:57 +0000 (05:53 +0200)]
Merge branch 'clang' into 'master'

4 years agoreadme: gcc is not required anymore on FreeBSD and macOS
Thomas Debesse [Sun, 5 Apr 2020 03:52:42 +0000 (05:52 +0200)]
readme: gcc is not required anymore on FreeBSD and macOS

4 years agoeasy-builder: do not enforce gcc on FreeBSD and macOS
Thomas Debesse [Sun, 5 Apr 2020 03:37:54 +0000 (05:37 +0200)]
easy-builder: do not enforce gcc on FreeBSD and macOS

4 years agoclang/error: fix: call to convertToOpaque is ambiguous
slipher [Sun, 5 Apr 2020 03:09:07 +0000 (05:09 +0200)]
clang/error: fix: call to convertToOpaque is ambiguous

4 years agoclang/error: fix: non-type template argument refers to function Export that does...
slipher [Sun, 5 Apr 2020 02:13:48 +0000 (04:13 +0200)]
clang/error: fix: non-type template argument refers to function Export that does not have linkage

4 years ago clang/error: fix: non-type template argument refers to function ExportThunk that...
slipher [Sun, 5 Apr 2020 01:44:55 +0000 (03:44 +0200)]
 clang/error: fix: non-type template argument refers to function ExportThunk that does not have linkage

4 years agoradiant/build: add comment telling MaingFrame_getWindow() is suspicious
Thomas Debesse [Sat, 4 Apr 2020 19:23:28 +0000 (21:23 +0200)]
radiant/build: add comment telling MaingFrame_getWindow() is suspicious

4 years agodocs: set index.html to redirect
Thomas Debesse [Sat, 4 Apr 2020 09:09:58 +0000 (11:09 +0200)]
docs: set index.html to redirect

4 years agocontrib: update urls and names
Thomas Debesse [Sat, 4 Apr 2020 08:39:28 +0000 (10:39 +0200)]
contrib: update urls and names

4 years agoradiant/build: center buildmenu editor on screen
Thomas Debesse [Sat, 4 Apr 2020 08:07:56 +0000 (10:07 +0200)]
radiant/build: center buildmenu editor on screen

I haven't managed to center it on main windows
centering on screen is still better than top -left

4 years agobikeshedding: unifying some variable in contrib/bobtoolz
Thomas Debesse [Sat, 4 Apr 2020 05:21:15 +0000 (07:21 +0200)]
bikeshedding: unifying some variable in contrib/bobtoolz

4 years agobikeshedding: unifying some variable in contrib/shaderplug
Thomas Debesse [Sat, 4 Apr 2020 04:54:05 +0000 (06:54 +0200)]
bikeshedding: unifying some variable in contrib/shaderplug

4 years agocontrib/bobtoolz: center some dialog windows on main window
Thomas Debesse [Sat, 4 Apr 2020 05:42:55 +0000 (07:42 +0200)]
contrib/bobtoolz: center some dialog windows on main window

also rename the Path Plotter window title correctly

4 years agocontrib/brushexport: center export window on main window
Thomas Debesse [Sat, 4 Apr 2020 04:41:46 +0000 (06:41 +0200)]
contrib/brushexport: center export window on main window

4 years agocontrib/prtview: center config window on main window
Thomas Debesse [Sat, 4 Apr 2020 04:23:10 +0000 (06:23 +0200)]
contrib/prtview: center config window on main window

also center color picker on config window

4 years agoradiant/xywindow: center background select error message on main window
Thomas Debesse [Sat, 4 Apr 2020 07:50:54 +0000 (09:50 +0200)]
radiant/xywindow: center background select error message on main window

4 years agoradiant/prefs: center preferences window on main window
Thomas Debesse [Sat, 4 Apr 2020 06:07:10 +0000 (08:07 +0200)]
radiant/prefs: center preferences window on main window

4 years agoradiant: center messagebox on main window
Thomas Debesse [Sat, 4 Apr 2020 05:13:15 +0000 (07:13 +0200)]
radiant: center messagebox on main window

4 years agoradiant/about: reword message
Thomas Debesse [Sat, 4 Apr 2020 02:32:17 +0000 (04:32 +0200)]
radiant/about: reword message

4 years agoradiant/about: rework layout
Thomas Debesse [Sat, 4 Apr 2020 02:26:15 +0000 (04:26 +0200)]
radiant/about: rework layout

4 years agoradiant/about: add link to website
Thomas Debesse [Sat, 4 Apr 2020 02:02:17 +0000 (04:02 +0200)]
radiant/about: add link to website

4 years agoradiant/about: make issue tracker url clickable
Thomas Debesse [Sat, 4 Apr 2020 01:53:47 +0000 (03:53 +0200)]
radiant/about: make issue tracker url clickable

4 years agocontrib/bobtoolz: unify about dialog construction
Thomas Debesse [Sat, 4 Apr 2020 01:23:47 +0000 (03:23 +0200)]
contrib/bobtoolz: unify about dialog construction

4 years agocontrib/sunplug: unify about dialog construction
Thomas Debesse [Sat, 4 Apr 2020 01:14:50 +0000 (03:14 +0200)]
contrib/sunplug: unify about dialog construction

4 years agocontrib/prtview: unify about dialog construction
Thomas Debesse [Sat, 4 Apr 2020 01:10:12 +0000 (03:10 +0200)]
contrib/prtview: unify about dialog construction

4 years agocmake: install global.xlink
Thomas Debesse [Sat, 4 Apr 2020 01:36:42 +0000 (03:36 +0200)]
cmake: install global.xlink

4 years agoglobal.xlink: fix q3map2 handbook url (was dead link)
Thomas Debesse [Sat, 4 Apr 2020 01:30:28 +0000 (03:30 +0200)]
global.xlink: fix q3map2 handbook url (was dead link)

4 years agoglobal.xlink: update netradiant website url
Thomas Debesse [Sat, 4 Apr 2020 01:29:27 +0000 (03:29 +0200)]
global.xlink: update netradiant website url

4 years agodaemonmap: sync submodule to print own git version
Thomas Debesse [Sat, 4 Apr 2020 00:43:57 +0000 (02:43 +0200)]
daemonmap: sync submodule to print own git version

4 years agocmake: drop useless version.h
Thomas Debesse [Sat, 4 Apr 2020 00:35:21 +0000 (02:35 +0200)]
cmake: drop useless version.h

4 years agotools/cmake: do not compute git version again
Thomas Debesse [Sat, 4 Apr 2020 00:25:11 +0000 (02:25 +0200)]
tools/cmake: do not compute git version again

4 years agobundle: make daemonmap buildable and bundlable like other tools as submodule 162/head
Thomas Debesse [Mon, 30 Mar 2020 02:27:13 +0000 (04:27 +0200)]
bundle: make daemonmap buildable and bundlable like other tools as submodule

4 years agoeasy-builder: make possible to check for more than one submodule
Thomas Debesse [Tue, 31 Mar 2020 23:37:26 +0000 (01:37 +0200)]
easy-builder: make possible to check for more than one submodule

4 years agoeasy-builder: strip release binaries, support older cmake
Thomas Debesse [Tue, 31 Mar 2020 16:48:23 +0000 (18:48 +0200)]
easy-builder: strip release binaries, support older cmake

- use `install/strip` target for release build
- CMake used in Ubuntu bionic (currently used to build
  redistributable packages, old enough to be older than
  most of the commonly used distributions) does not
  support -S option yet

4 years agoreadme: use cmake -S instead of undocumented -H
Thomas Debesse [Tue, 31 Mar 2020 00:44:09 +0000 (02:44 +0200)]
readme: use cmake -S instead of undocumented -H

undocumented -H for source directory was replaced
by documented -S and -H is now an alias to --help

4 years agoeasy-builder: improvements
Thomas Debesse [Tue, 31 Mar 2020 00:40:34 +0000 (02:40 +0200)]
easy-builder: improvements

- handle arguments with spaces properly
- provide fallback for nproc
- replace cmake undocumented -H with -S
- do not require to change directory

4 years agobikeshedding: minor readme fix
Thomas Debesse [Sun, 29 Mar 2020 20:19:59 +0000 (22:19 +0200)]
bikeshedding: minor readme fix

4 years agoq3map2/smokinguns: fix .tex writing, <3 @vloup
Thomas Debesse [Sun, 29 Mar 2020 16:47:33 +0000 (18:47 +0200)]
q3map2/smokinguns: fix .tex writing, <3 @vloup

Thanks ElBarto (@vloup) for reporting this

4 years agobikeshedding: reduce diff noise with Garux tree
Garux [Sun, 29 Mar 2020 00:59:32 +0000 (01:59 +0100)]
bikeshedding: reduce diff noise with Garux tree

see:
https://github.com/Garux/netradiant-custom/commit/4292115ef741ff066b382c094f8c7814afaccf59#diff-386c03feac6f15ccc15c4dab7bb97320R342

that's not fair

4 years agoq3map2: pad with zero, not with null pointers, ref #160
Thomas Debesse [Sun, 29 Mar 2020 00:28:29 +0000 (01:28 +0100)]
q3map2: pad with zero, not with null pointers, ref #160

see:

https://gitlab.com/xonotic/netradiant/-/merge_requests/160#note_287938815

4 years agoradiant/buildmenu: rename ".[ExecutableType]" as "[ExecutableExt]"
Thomas Debesse [Fri, 27 Mar 2020 18:11:38 +0000 (19:11 +0100)]
radiant/buildmenu: rename ".[ExecutableType]" as "[ExecutableExt]"

- introduce GDEF_OS_EXE_EXT
- no need for RADIANT_EXECUTABLE anymore
- keep "[ExecutableType]" parsing but it looks useless

4 years agoradiant/buildmenu: fixup, ref #138
Thomas Debesse [Sat, 28 Mar 2020 00:52:57 +0000 (01:52 +0100)]
radiant/buildmenu: fixup, ref #138

4 years agoradiant/buildmenu: better executable extension strip, ref #138
Thomas Debesse [Fri, 27 Mar 2020 16:32:57 +0000 (17:32 +0100)]
radiant/buildmenu: better executable extension strip, ref #138

this fixes issue #138 on my end

4 years agobikeshedding: some touchup on library-bundler
Thomas Debesse [Fri, 27 Mar 2020 00:29:04 +0000 (01:29 +0100)]
bikeshedding: some touchup on library-bundler

4 years agoMerge branch 'missingarg' into 'master'
Thomas Debesse [Fri, 27 Mar 2020 15:43:17 +0000 (15:43 +0000)]
Merge branch 'missingarg' into 'master'

q3map2: fix segfault when missing bspfile arg on light stage

See merge request xonotic/netradiant!161

4 years agoq3map2: fix segfault when missing bspfile arg on light stage 161/head
Thomas Debesse [Fri, 27 Mar 2020 00:52:28 +0000 (01:52 +0100)]
q3map2: fix segfault when missing bspfile arg on light stage

4 years agoMerge branch 'memoryfixes' into 'master'
Thomas Debesse [Thu, 23 Jan 2020 21:53:18 +0000 (21:53 +0000)]
Merge branch 'memoryfixes' into 'master'

q3map2: fix memory errors and misuses

See merge request xonotic/netradiant!160

4 years agoq3map2: use safe_malloc0 when safe_malloc is followed by a memset to 0 with the same... 160/head
Thomas Debesse [Thu, 23 Jan 2020 21:27:12 +0000 (22:27 +0100)]
q3map2: use safe_malloc0 when safe_malloc is followed by a memset to 0 with the same size

4 years agoq3map2: zero the verts array on initialization, verts are tested to not be null in...
Thomas Debesse [Thu, 23 Jan 2020 18:54:31 +0000 (19:54 +0100)]
q3map2: zero the verts array on initialization, verts are tested to not be null in FindMetaVertex()