asarium
a13b503b83
Add more features for the new Options UI
...
The largest new feature is that it is now possible to include other
files into the RML by using the "include" tag. This is useful for making
markup files more modular.
Also added some more options for existing things (e.g. built-in detail
options).
2020-02-08 13:28:53 +01:00
asarium
a815c0247c
Add scripting features for barracks libRocket UI
...
This mostly adds the scripting features required for accessing the
various internal variables required for the barracks screen.
2018-09-27 11:45:09 +02:00
asarium
c7e66e26fb
Delete old pilot files as well when deleting a pilot
2018-09-17 19:23:18 +02:00
asarium
ff911e666d
More fixes
...
This finally fixes the seemingly non-deterministic failure of the
unit-tests (among other things).
2018-09-17 19:23:12 +02:00
asarium
e9f4c1618e
Add unit tests for validating pilot loading
2018-09-17 19:22:50 +02:00
asarium
4eef54c10b
Add JSON reading implementation
...
This changes the pilot reading code to always use JSON files for storing
the pilot data. Old pilots are converted to the new format when FSO
starts and after that point only JSON pilots will be used.
2018-09-17 19:22:43 +02:00
asarium
7173299ca7
Add new libRocket UI system
...
This new system allows to create a user interface that goes beyond the
existing UI system.
2018-09-16 13:55:29 +02:00
Fabian Woltermann
7cd17205b5
Merge pull request #1785 from asarium/feature/soundHandleIds
...
Use strongly typed handles for sound handles
2018-07-27 15:04:02 +02:00
asarium
20925f23cc
Use new cfile location feature for pilot files
...
This was previously hard-coded but it is now possible to solve this
using the new location API.
2018-07-17 17:20:55 +02:00
asarium
2ded9aa35d
Format changes with clang-format
2018-07-16 10:21:52 +02:00
asarium
ad54f588bb
Use strongly typed handles for sound handles
...
This is similar to the other changes I already posted. Here the sound
instance handles are converted to their own handle type which will make
it easier to use the sound API.
2018-07-16 10:21:52 +02:00
niffiwan
9e495d7f94
set default volumes on pilot create
...
previously newly created pilots inherited the volumes from the last
pilot
2018-01-11 12:08:28 +10:00
MageKing17
0b6a8c11f6
Clear the player's variable vector in init_new_pilot() if reset is true.
...
This fixes a bug whereby creating a pilot in the barracks screen (not the initial pilot selection screen) would effectively clone the variable vector from whatever pilot was selected beforehand.
2017-02-19 14:54:01 -08:00
asarium
4a9f1a2d56
Fix the rest of the string conversion warnings
2017-01-05 00:15:01 +01:00
asarium
f91c681ee1
Add improved joystick API
...
This API allows to handle events from multiple joysticks but currently
only the events from the configured joystick are used.
2016-08-02 20:08:21 +02:00
asarium
16be3b7cc5
Add support for TrueType fonts
...
This allows to use standard TrueType Fonts for text rendering in FSO. It uses the NanoVG library which provides the ability of drawing 2D shapes. This library is used for most 2D operations now and can also be used directly by using the PathRenderer class.
2016-08-02 10:57:28 +02:00
asarium
1bcd5400d3
Move build system to CMake
2016-07-22 12:07:19 +02:00
Echelon9
c5493bb480
Scripted sort and uniq on (internal) project includes. Improves search time and as a by product removed a number of duplicative includes.
2015-06-22 20:24:30 +10:00
niffiwan
603a4086f5
Fix mantis 2920: prevent pilots switching languages
...
In other words, a pilot can only be used in the same language it was
created with. Checks both the initial selection screen and in the
barracks.
Also fixes issue with PLR version being ignored in pilotfile::verify()
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10817 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-14 20:29:36 +10:00
niffiwan
e7d041c332
Fix mantis 2940
...
Only reset pilotfile stats when the local Player is reset
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10722 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-02 18:29:58 +10:00
niffiwan
0c4c9ec9c9
Fix mantis 2906
...
reset stats in Pilot (i.e. .plr) on new pilot create/clone
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9887 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-07 20:02:31 +10:00
Goober5000
bdc0767bb0
change strcpy to strcpy_s (left over from r9832)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9884 387891d4-d844-0410-90c0-e4c51a9137d3
2013-10-07 20:02:30 +10:00
niffiwan
62d06cfcd9
Coverity multiple CID: fix potential not null terminated strings
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9842 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-29 22:12:22 +10:00
niffiwan
05a298c68d
Coverity CID 1099443: fix out of bounds access
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9840 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-28 11:47:24 +10:00
Goober5000
8e096f5c15
remove bad use of memcpy by assigning player class using an actual assign() method (part 2)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9832 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-28 11:47:23 +10:00
Goober5000
52edd5b112
remove bad use of memcpy by assigning player class using an actual assign() method
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9831 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-28 11:47:23 +10:00
Goober5000
7248acc004
use a copy method rather than memcpy to clone stats (Mantis #2922 )
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9813 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-26 18:51:35 +10:00
Goober5000
138e6b853f
yeesh... a veritable cascade of const-correctness
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9783 387891d4-d844-0410-90c0-e4c51a9137d3
2013-09-13 20:18:32 +10:00
niffiwan
61bf714c51
Fix mantis 2815: store single/multi squad names and images separately (in csg/plr respectively)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9622 387891d4-d844-0410-90c0-e4c51a9137d3
2013-04-14 13:00:35 +10:00
karajorma
0c4f6bfcdc
Fix Mantis 2811 (Default Campaign File Name was not used).
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9602 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-30 15:36:18 +10:00
Zacam
593be42e66
*drum roll* Pilot Code! Originated by taylor. Additional direct work by: The E, niffiwan, CommanderDJ, Pyro3D, Echelon9 (PVS-Studio), Karajorma and Eli2. (If I missed you, don't kill me.)
...
MASSIVE thanks to Mjn.Mixael and Blue Planet for tireless constant testing.
(It's still not perfect, but it probably wouldn't be where it is at without them)
Spans a lot from initial commit to AP Branch in r6835.
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9561 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:26:06 +10:00
Zacam
0ba6052326
Update to r9550: Make sure that we keep the right directory default for the reading of current player Pilot files until the Pilot code goes in.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9552 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:46 +10:00
Zacam
16e9892903
Whoops. When removing #ifdefs, check the #else block.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9550 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:46 +10:00
Zacam
759b080814
pre-Antipodes Staging Merge: "Inferno" build options go away, INF_BUILD settings now "default" settings. Fixed and made consistent across all projects the Build Output names ("Debug" used for Debug builds at the very end of the file name before the extension and after other options such as SSE, where applicable) Other unused #defines or #ifdefs removed: DEMO build Related, STANDALONE_ONLY_BUILD (already covered by -standalone command line flag)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9549 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:46 +10:00
karajorma
8271a12a53
FUBAR's fix for Mantis 2778 (Game_skill_level goes out of range and causes crashes) with some changes by me.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk@9520 387891d4-d844-0410-90c0-e4c51a9137d3
2013-03-18 20:24:45 +10:00
zookeeper
0f198fd677
Fixed the reset button in the HUD config screen not resetting to the default color scheme given to new pilots.
2012-11-16 21:17:18 +00:00
zookeeper
a456519b95
Made the default detail level tableable in game_settings.tbl, but kept "very high" as the default.
2012-11-14 11:54:47 +00:00
zookeeper
4e273451b4
Set the default detail level of new pilots to "very high".
2012-11-11 12:09:25 +00:00
Echelon9
0c9cfdfc93
PVS-Studio fix: The 'Player' pointer is used simultaneously as an array and as a pointer to single object.
2012-04-01 08:06:21 +00:00
The_E
0525e871d0
PVS Studio related: Mark false alarms as such.
2011-08-30 17:46:49 +00:00
Echelon9
a248a37d58
PVS-Studio: Fix V805. Decreased performance. It is inefficient to identify an empty string by using 'strlen(str) > 0' construct
2011-08-24 13:37:01 +00:00
IssMneur
64ff2ba5a5
Complain correctly about pilot name length (actually say that the name is too long rather than just an assert).
2011-08-01 20:10:51 +00:00
portej05
98f337f701
safe_strings - from Antipodes build #1
2009-07-27 16:06:24 +00:00
portej05
719825f80d
The big CVS comment removal. This chops approx. 3.5mb off a full checkout.
...
I've tested this through compiling and through hand checking.
Normalises line endings in ALL files to \n.
2009-06-20 08:08:20 +00:00
karajorma
466d3a2811
Couple of small changes to make the Standalone work again.
2008-07-07 08:46:17 +00:00
turey
d5aa9ccba8
Bunch of stuff already in HEAD. Shouldn't break anything.
2007-12-20 01:57:45 +00:00
taylor
3f95d5d175
fix anothing something that Valgrind complained about
2007-10-28 16:45:05 +00:00
taylor
4dc5960af3
get rid of stale NO_JOYSTICK define
2007-04-11 14:59:35 +00:00
taylor
a6eb16ec4c
some CFILE cleanup and slight directory order reorg
...
add cfopen_special() for quickly opening files that have already been found with cf_find_file_location_ext()
remove NO_SOUND
2007-02-11 09:25:42 +00:00
taylor
75409481d0
more standalone server fixes:
...
- add some basic bmpman functionality to grstub, since it needs to do something at least
- add missing gr_* function ptrs to grstrub
- (re-)enable radar and hud setup functions that used to crash (problems are fixed now)
- deal with default pilot file properly (also caused a bmpman headache)
- don't bother with Multi_common_icons[] in standalone mode (they don't load, so don't let them unload either)
2006-09-24 22:55:17 +00:00