asarium
f819db3ac5
More string const correctness fixes
2017-01-04 00:12:41 +01:00
asarium
9a8bfc0217
More const correctness
2017-01-02 13:17:59 +01:00
asarium
52aa0ac031
Add catch clauses everywhere where parselo is used
...
Before, if any parsing call failed it would throw an exception which
would have been propagated to the exception handler in main() which
terminates the program. This should fix that.
2016-12-09 10:46:51 +01:00
asarium
599260f2e5
Use platform checks to determine case compare function
2016-10-15 19:37:18 +02:00
asarium
6dbf200cc3
Move lua to scripting folder
2016-10-03 21:38:29 +02:00
Fabian Woltermann
69f33c5d95
Fixes an assert that got inadvertently inverted
2016-08-19 22:45:35 +02:00
Fabian Woltermann
770fce8de5
Bitset flags -- take 2 ( #775 )
...
This introduces a new mechanism for handling bit flags. Instead of using an int (or two, or three) to write bits into, this uses the std::bitset in a wrapper class that accepts an enum class as input. This means that certain classes of errors we've had a few of in the engine, where a coder used the wrong set of flags or checked them against the wrong variable (SF_STEALTH vs SIF_STEALTH, for example) can now be detected at a compiler level rather than not at all.
2016-08-12 16:13:50 -07:00
asarium
0cabe71fdd
More 64-bit MSVC warning fixes
2016-08-10 13:33:12 +02:00
niffiwan
8162abc256
Allow apng's to not be cached
...
Main use case is headanis where only one is played at a time and
caching the frames merely increases memory use & fragmentation, leading
to malloc errors with heavy apng use
2016-07-09 20:04:16 +10:00
Yarn366
7d3b824428
Added a flag the message_extra struct that tells whether the base animation exists. Also changed message_play_anim() to use this flag rather than the first_frame field to decide whether to add a suffix to the name.
2016-05-23 01:10:33 -04:00
The E
f790b3b0c6
small error correction
2015-11-14 23:13:32 +01:00
The E
cbad1cf10f
Addressing style comments
2015-11-14 13:30:51 +01:00
The E
67d51037ff
Adds Persona flag "$Allow substitution of missing messages:"
2015-11-14 12:55:41 +01:00
niffiwan
409ba384b0
Fix memory leaks in generic_anim_stream
2015-10-24 15:04:13 +10:00
niffiwan
12f4bcfd9b
Reduce bmpslot usage by headz
...
As headani's (both ANI & EFF) are streamed there's no need to have
the anim data in bmpman, the streaming code does that with only two
slots, rather than one slot per ani frame
Also fix a "leak" in the streaming code use of bmpman slots. i.e. each
time a message was played another slot would be used & not released
2015-09-18 19:34:28 +10:00
asarium
1ded65c3d0
Fix invalid usage of mprintf
2015-08-19 11:26:28 +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
asarium
f51bc78126
Fix for Coverity 1093530: Negative array index read
...
A memory location at a negative offset from the beginning of the array will be read, resulting in incorrect values.
In message_queue_process(): Negative value used to index an array in a read operation
2015-05-03 14:34:06 +02:00
asarium
4bfea90a17
Fix for Coverity 1093683: Resource leak
2015-05-02 19:32:39 +02:00
asarium
9aed627ce7
Replace longjmp with exceptions
...
Also added a EditorConfig file
2015-04-24 15:03:59 +02:00
MageKing17
83414b238d
Remove required_string_3() and required_string_4().
...
Replaced with usage of required_string_one_of(). (required_string_either() not removed due to different behavior.)
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11321 387891d4-d844-0410-90c0-e4c51a9137d3
2015-04-23 12:09:06 +10:00
zookeeper
2203c1e9a8
Ported r11232 from zookeeper branch: Set the Sender hook variable to nil in On Message Received hooks if message not coming from a ship.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11257 387891d4-d844-0410-90c0-e4c51a9137d3
2015-02-21 11:34:30 +10:00
Goober5000
4eb1726004
this should fix Mantis #2888 (allow for head.ani files without letter suffixes)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11186 387891d4-d844-0410-90c0-e4c51a9137d3
2014-12-04 16:39:40 +10:00
chief1983
5e94b75354
Fix Mantis 3109: Revert r11079 and reopen #2888 since I didn't realize that Fred messages also often use built-in suffix appending. Need to either use FUBAR's original solution or re-engineer something else.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11090 387891d4-d844-0410-90c0-e4c51a9137d3
2014-09-29 06:19:41 +10:00
Goober5000
7917b9885d
fix Mantis #2987 (AddressSanitizer: global-buffer-overflow in message_queue_process())
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11084 387891d4-d844-0410-90c0-e4c51a9137d3
2014-09-25 16:40:34 +10:00
chief1983
946d7a45af
Fix for Mantis 2888 - add Suffix support to disable suffixes for messages on a per message basis in messages.tbl. See the wiki.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@11079 387891d4-d844-0410-90c0-e4c51a9137d3
2014-09-24 20:08:21 +10:00
Goober5000
2fe0ec8ef0
Yarn's patch for Mantis #3049 (character remapping in tstrings.tbl)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10894 387891d4-d844-0410-90c0-e4c51a9137d3
2014-07-14 19:02:31 +10:00
niffiwan
8baa713ef8
Fix a few gcc compile errors introduced by r10756
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10760 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-07 12:37:26 +10:00
m_m
d84d9d31aa
Added multiple scripting features related to messaging as requested by Axem.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10756 387891d4-d844-0410-90c0-e4c51a9137d3
2014-06-06 16:51:18 +10:00
The_E
e4009799c6
Remove a pointless, ✌️ original assert (All ships should be able to send messages regardless of whether they're flyable; checking whether they are accomplishes literally nothing)
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10376 387891d4-d844-0410-90c0-e4c51a9137d3
2014-02-02 10:52:49 +10:00
Goober5000
70d05d3815
scramble messages on a per-ship basis
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@10136 387891d4-d844-0410-90c0-e4c51a9137d3
2013-11-25 19:29:36 +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
194300dc94
Fix for mantis 2864: correctly init message_extra struct
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9681 387891d4-d844-0410-90c0-e4c51a9137d3
2013-06-11 19:22:16 +10:00
The_E
cb1f812cef
Fix for Mantis 2857: We need to tell generic_anim_load what to load, really. Otherwise this whole exercise is kinda pointless :P
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9660 387891d4-d844-0410-90c0-e4c51a9137d3
2013-06-11 19:22:15 +10:00
Echelon9
aa463ca772
Fix for loading of AVIs in BP. As discussed with The_E on IRC, this bug may have had a range of unintended consequences, although not clear why it hasn't been picked up already.
...
git-svn-id: svn://svn.icculus.org/fs2open/trunk/fs2_open@9654 387891d4-d844-0410-90c0-e4c51a9137d3
2013-06-11 19:22:15 +10:00
karajorma
c51f88abd8
Doh! Those two should be the other way round.
2012-09-25 01:08:19 +00:00
karajorma
05215a7ffa
Commit Mission Moods
2012-09-24 11:00:40 +00:00
Goober5000
ca08b3813a
reverting 9121 -- I'll give karajorma the benefit of the doubt and assume he just didn't see the compatibility additions
2012-08-19 07:20:06 +00:00
karajorma
8e043a0019
Revert 9119 and 9120 since at least one of them breaks compatibility with 3.6.12
2012-08-19 06:13:45 +00:00
Goober5000
53f080ea67
all mod_table flags should also default to NO
...
also, change the generic_anim flag on whether to use the HUD color settings to be a bit more descriptive
2012-08-19 03:27:31 +00:00
Valathil
8ea85e3004
Fix for Mantis #2697 : That was supposed to be the other way round. DIVIDE BY 0 OH SHIII...
2012-08-18 17:47:13 +00:00
Valathil
48e0517e0d
Allow generic_anim's to reuse bmpman and texture_cache slots and implement eff streaming. Changed talking heads to use generic_anim. Fixes Mantis 2417
2012-08-14 23:48:23 +00:00
niffiwan
a66665dd73
remove memsets on game_snd vars - struct now has vectors in it...
2012-08-02 10:17:32 +00:00
karajorma
480931fa17
Additions to message.tbl to allow users to specify the frequency of builtin messages.
2012-06-24 11:36:45 +00:00
niffiwan
381d50c74c
Documentation for head-ani's && messages
2012-05-20 10:07:21 +00:00
niffiwan
b1b2920ea9
Fix for mantis 2655: play messages at least until head ani finishes
2012-05-20 06:03:24 +00:00
karajorma
dc9de13d85
Get the default chance of a pilot praising his own kills from mod.tbl rather than the hardcoded magic number it currently uses.
...
Switch mod.tbl to automatically read the default table first, then look for the one the mod uses. This guarantees that variables are initialised to something and simplifies the logic for mod.tbl a lot.
2012-03-07 00:45:28 +00:00
Valathil
3f69eafcbc
Don't wait for brackets for messages without a target.
2012-02-08 02:49:34 +00:00
Zacam
dd6fb0d27b
100ms was perhaps a bit too long. The answer is, of course, 42.
...
Wait, what was the question...?
2012-02-01 23:13:11 +00:00
Valathil
b9599be1cc
Fix for Mantis 2588: Messages without voice files now show the target brackets for at least "Message Length" * 100ms
2012-02-01 20:27:25 +00:00