asarium
88a85e4024
Improve gamesnd modular parsing
...
As requested by jg18, this improves the sound.tbl parser to properly handle +nocreate. If the file name of an entry should not be changed you have to specify <same>.
2015-05-08 08:48:17 +02:00
asarium
9aed627ce7
Replace longjmp with exceptions
...
Also added a EditorConfig file
2015-04-24 15:03:59 +02: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
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
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
Goober5000
2e2c1afe38
there is actually a way to check for extra sound values per Mantis #2048 , and here it is
2012-12-17 05:54:18 +00:00
Valathil
0dc6c8fcf7
Set the 3D flag in the new sounds.tbl parsing.
2012-12-15 22:11:57 +00:00
niffiwan
adecd7fe12
From m!m: Fix for mantis #0002695
2012-09-11 10:02:59 +00:00
Goober5000
e541cf0180
m!m's modular sounds patch, with minor modifications
2012-07-29 07:35:37 +00:00
IssMneur
2eff95c4ea
Allow names in mainhall.tbl sound lists.
...
Allows sound names in addition to sound indexes in the sound lists:
+Intercom sound:
+Misc anim sounds:
+Door sounds:
Extends parse_sound to search in the interface sound table instead of the main sound table.
2011-12-09 06:38:16 +00:00
Echelon9
90601fce4d
Bug fix: This looked to be an accidental copy paste. See further gamesnd_get_by_iface_tbl_index() and gamesnd_get_by_tbl_index()
2011-11-03 14:39:37 +00:00
Echelon9
181fbfed52
From Eli2: patch removes leftovers of the conversion from arrays to Vectors.
2011-11-03 14:32:52 +00:00
Echelon9
80a027a400
PVS-Studio fix: V803 Decreased performance. In case 'tvs' is iterator it's more effective to use prefix form of increment. Replace iterator++ with ++iterator.
...
For further discussion see, http://www.viva64.com/en/b/0093/
The scenarios where it will improve performance are under Debug builds. This improvement will however allow quicker use of other profiling tools that need to run on Debug builds.
Note. Code with size_t does not see the performance improvement comparison to iterators due to absence of array overrun check.
2011-08-28 08:31:25 +00:00
The_E
7f5c3d343e
Valathil's code cleanup patch.
2011-07-20 18:04:43 +00:00
The_E
1b00dda9dd
Fix for Mantis 2333 (Random crashes caused by snd_get_duration())
2010-11-08 23:04:34 +00:00
chief1983
e691fa8f94
Should allow INT_MAX to be visible on POSIX-compliant systems
2010-07-21 18:50:19 +00:00
chief1983
e9e3333c73
IssMneur's fix for Mantis #2240 , allow gaps after the hardcoded retail sound entries.
2010-07-20 21:59:36 +00:00
taylor
b287ecfef9
new sound code
...
- Mantis #58
- Mantis #1769
- many other fixes and improvements
2010-05-29 15:53:18 +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
taylor
0253d298e9
only load tbls from tables/ (Mantis #1725 )
2008-10-13 06:34:48 +00:00
taylor
390b00d52f
use strrchr() to be sure that we get the last occurance of any "." (Mantis #1587 )
2008-03-28 02:18:59 +00:00
Goober5000
6ab0b17acc
added fixes for #1415 and #1483 , made sure every read_file_text had a corresponding setjmp, and sync'd the parse error messages between HEAD and stable
2007-09-02 02:10:29 +00:00
taylor
65afcdb4b6
we are only supposed to init 5 slots here, not 6 ;) (Mantis bug #1195 )
2007-01-07 12:11:05 +00:00
taylor
6ab6cd71ce
fixes for stuff_string() bounds checking
2006-09-11 01:17:07 +00:00
taylor
8a9d540c4c
make Species_info[] and Asteroid_info[] dynamic
2006-08-27 18:12:42 +00:00
taylor
76617a180d
don't setup all of the sound stuff for a mission if sound is disabled
2006-05-27 17:09:43 +00:00
wmcoolmon
fb286f1706
gamesnd_get_by_name now ignores extensions, mostly for parse_sound reasons.
2006-04-03 07:45:43 +00:00
taylor
ff5da43159
a few game_busy() changes
2005-12-08 15:11:29 +00:00
wmcoolmon
d1e8839166
Small fix for XMTs
2005-11-17 05:12:42 +00:00
taylor
9906d23845
make sure gamesnd_parse_soundstbl() doesn't inf-loop because of species problems
...
if we have missing species then report that before the end of table section check so we're sure to know what's missing
2005-10-18 14:57:32 +00:00
taylor
17a5e786a4
(NULL != (int)0); the size and type of NULL is platform and implementation dependant and should only be used for pointers!
...
fix naughty bug that would set the flyby sound filenames to NULL
2005-10-16 11:19:57 +00:00
Goober5000
3ae72e2854
partial commit; hang on
...
--Goober5000
2005-09-25 07:07:34 +00:00
Goober5000
81784bfa63
hopefully complete species upgrade
...
--Goober5000
2005-09-25 05:13:07 +00:00
Goober5000
374b2b21a0
another species overhaul
...
--Goober5000
2005-09-24 07:07:17 +00:00
taylor
1b5400ad08
fix afterburner bug
2005-09-16 08:11:39 +00:00
Goober5000
5c6738a534
fixed a bunch of "issues" caused by me with the species stuff
...
--Goober5000
2005-07-13 02:01:30 +00:00
Goober5000
76d05268fd
improved species support and removed need for #define
...
--Goober5000
2005-07-13 00:44:24 +00:00
Goober5000
6497691a33
* NOX'd none.wav
...
* changed comparisons on none.wav to only look at the first four letters in case
we don't have an extension or in case some weirdo decides to put none.ogg
* simulated speech pre-empts "beeps" in in-game messages
--Goober5000
2005-06-30 01:48:52 +00:00
Goober5000
7917104281
if game_busy() is in gamesnd_preload_common_sounds() then it should
...
also be in gamesnd_load_gameplay_sounds() I would expect
--Goober5000
2005-06-30 00:48:02 +00:00
taylor
1c8c8f0b6e
little cleanup and error checking
2005-06-29 18:50:13 +00:00
taylor
1929229e5e
MIN Num_iface_sounds fix
2005-06-19 02:29:54 +00:00
wmcoolmon
1db7d30986
Hopefully this fixes something :)
2005-06-07 06:34:30 +00:00
taylor
10955f821d
make sure that newly created entries are properly initialized
2005-06-01 09:35:42 +00:00
taylor
3f6e13d20b
use vm_malloc(), vm_free(), vm_realloc(), vm_strdup() rather than system named macros
...
fixes various problems and is past time to make the switch
2005-05-12 17:49:18 +00:00
wmcoolmon
e70db11b41
Added parse_sound; replaced Assert() with an if() (The latter may not be a good idea, but it keeps missions from being un-debuggable)
2005-04-25 00:22:34 +00:00
taylor
043758c633
initial changes to mission loading and status in debug builds
...
- move bmpman page in init to an earlier stage to avoid unloading sexp loaded images
- small changes to progress reports in debug builds so that it's easier to tell what's slow
- initialize the loading screen before mission_parse() so that we'll be about to get a more accurate load time
fix memory leak in gamesnd (yes, I made a mistake ;))
make sure we unload models on game shutdown too
2005-04-21 15:58:08 +00:00
wmcoolmon
e7f1c3e1fa
Made it so *Snd fields in ships.tbl and weapons.tbl take the sound name
...
as well as its index (ie "L_sidearm.wav" instead of "76")
2005-03-30 02:32:41 +00:00
taylor
c0ca55e591
make sounds.tbl dynamic
...
"filename" will never be larger than 33 chars so having it 260 is a waste (freespace.cpp)
2005-03-24 23:31:46 +00:00
Kazan
864e1b5922
remove MCD complete
2004-07-26 20:47:56 +00:00
Kazan
428b3dcbc9
MCD - define _MCD_CHECK to use memory tracking
2004-07-12 16:33:09 +00:00