Asteroth
aaaec24000
Ai use lock status for optimum range choice ( #3762 )
...
* ai use lock status for optimum range choice
* shadowed variable
2021-11-10 21:16:31 -05:00
Asteroth
d079d7fad2
Expose nebula visibility factors ( #3676 )
...
* Expose nebula visibility factors
* separately expose size factors
* naming changes
2021-11-10 13:07:04 -05:00
Goober5000
76c9219df3
Merge pull request #3715 from TaGenius/feature/QtInitialStatusEditor
...
Split From #3674 Initial Status Dialog
2021-11-09 14:26:42 -05:00
The Force
e795d2a9d2
Merge branch 'master' into feature/QtInitialStatusEditor
2021-11-09 16:50:47 +00:00
Goober5000
eccc34d081
Merge pull request #3717 from TaGenius/feature/QtGoalsDialog
...
Split From #3674 Goals Dialog
2021-11-08 23:03:19 -05:00
Asteroth
b625e36858
add destroy-instantly-with-debris ( #3752 )
2021-11-08 11:06:34 -05:00
Goober5000
9050427706
Merge pull request #3767 from Goober5000/sexp_variable_protecc
...
guard against CTD in sexp variables
2021-11-07 18:25:22 -05:00
Goober5000
2f573924a7
address feedback
2021-11-07 16:26:28 -05:00
Goober5000
2e83e5211e
guard against CTD in sexp variables
...
Don't assign strings that are too long for the string variable capacity.
2021-11-07 16:26:28 -05:00
Goober5000
c3db0ed369
Merge pull request #3761 from Goober5000/fix_3758
...
polish sexp syntax checking
2021-11-07 14:19:42 -05:00
The Force
ec35b5815e
Merge branch 'master' into feature/QtInitialStatusEditor
2021-11-07 15:55:12 +00:00
The Force
ac12cc7a80
Merge branch 'master' into feature/QtGoalsDialog
2021-11-07 15:48:16 +00:00
The Force
151039540c
Add missing include
2021-11-07 15:44:13 +00:00
The Force
f4a1b9a7fb
Appease Clang
2021-11-07 15:44:13 +00:00
The Force
32d0ee93d4
Fix Compiler Warnings
2021-11-07 15:44:13 +00:00
The Force
49ced359c7
Goals Editor
2021-11-07 15:44:13 +00:00
The Force
31602dbefe
Goals ui
...
finalise ui
2021-11-07 15:44:13 +00:00
The Force
101dda7f28
Split From #3674 Ship Editor Bugfixes ( #3716 )
...
* Remove Duplicate function
* Ship Editor Bugfixes
* Bugfixes for Ship editor
* Fix Compiler Warnings
* Add Tristate Checkbox
* Appease Clang
* Actually fix class bug
* Capitalization error fix
* Remove reference to goals dialog
This shouldn't have been added
2021-11-05 23:11:32 -04:00
The Force
19b3c419a7
Split From #3674 Flags Dialog ( #3714 )
...
* Create Flags UI
* initial Ship Flags editor
Ship Flags Column One Complete
Ship Flag DIalog Complete
* Fix Compiler Warnings
* Appease Clang
* Fix Scannable Misspelling
* Spelling Fixes and loose semicolon
2021-11-05 23:11:13 -04:00
Goober5000
779e69c3b4
Merge pull request #3745 from Goober5000/target_spelling
...
spelling fixes
2021-11-05 23:04:32 -04:00
Goober5000
b4f87fe04b
Merge pull request #3764 from Goober5000/fix_rand32f
...
fix a major bug in ba.rand32f
2021-11-05 00:41:41 -04:00
Goober5000
e01ae9fe6f
match documentation
2021-11-04 23:02:36 -04:00
Goober5000
b3bb185489
fix a major bug in ba.rand32f
...
The function should return the random result, not the maximum value.
Also use `ade_set_args` for consistency.
2021-11-04 21:57:29 -04:00
Goober5000
71ff21c3d5
address feedback
2021-11-02 12:03:04 -04:00
Asteroth
594491aa78
Add head-on laser bitmaps ( #3748 )
...
* version1 of 'head-on'lasers
* version 2 of head on lasers
* better handling of radius/length
* more adjustments and manual switchover angle
* add switchover rate and glow head on
* bugfix
* allow for instant switchover
* clean up and documentation for PRing
* misc fixes
* more fixes
* more fixes
2021-11-01 15:46:04 -04:00
Tyler Blount
7b7bf598b4
Merge pull request #3749 from ngld/refactor/ci
...
Refactor CI scripts to make release builds more robust and flexible
2021-11-01 10:28:46 -06:00
Goober5000
f960a09539
Merge pull request #3743 from Goober5000/gamesnd_tweaks
...
make gamesnd a little more robust
2021-10-31 21:15:58 -04:00
Goober5000
a25363e564
address feedback
2021-10-31 17:55:33 -04:00
Goober5000
71be5b7b80
make gamesnd a little more robust
...
a) add a new method gamesnd_game_sound_exists
b) add script support for this new method
c) use this method when checking for existence of ballistic rearming sounds
d) prevent "empty" and "none" sounds from triggering warnings
2021-10-31 17:55:33 -04:00
Goober5000
9e0802d53e
make sure bad nodes are accurate
2021-10-31 16:29:08 -04:00
Goober5000
c8b773a6dd
polish sexp syntax checking
...
Some instances of the ship syntax checker will check other nodes in the sexp tree. In those cases, make sure to accommodate special-arg nodes.
This also merges syntax checking for goal/event names and docker/dockee points since they are highly similar.
Fixes #3758 .
2021-10-31 16:16:23 -04:00
The Force
15d70c30c7
Fix Crash On second opening of select box cause by #3634 ( #3760 )
2021-10-31 18:41:24 +00:00
Goober5000
91be1654a3
Merge pull request #3741 from Shivansps/missing_updatedata
...
fix: cmdbrief not saving current stage text by closing the window
2021-10-30 01:18:52 -04:00
Goober5000
8ddf878144
Merge pull request #3755 from Goober5000/script_eval_bool
...
add script-eval-bool
2021-10-30 01:10:25 -04:00
Goober5000
14123b1a04
Merge pull request #3750 from Goober5000/better_argument_syntax_checking
...
better syntax checking for the special argument
2021-10-30 00:11:53 -04:00
Goober5000
00208af898
add script-eval-bool
2021-10-29 23:54:32 -04:00
Taylor Richards
fd2785a504
Merge pull request #3754 from notimaginative/fix_escort_list_stealth_cull
...
fix escort list cull test which removed friendly stealth ships by mistake
2021-10-27 18:59:21 -04:00
Taylor Richards
8d7fd6893e
fix escort list cull test which removed friendly stealth ships by mistake
2021-10-27 00:04:57 -04:00
Goober5000
cfc5901488
better syntax checking for the special argument
...
Improves syntax checking in two ways...
1) Properly checks each sibling of a special argument, rather than skipping the whole list even if just one is a special argument
2) Throws a syntax error if a special argument is found without an argument operator higher in the sexp tree, which fixes #3740
2021-10-25 01:08:44 -04:00
ngld
53b14a0cfd
Refactor CI scripts to make release builds more robust and flexible
2021-10-24 01:16:48 +02:00
Goober5000
58680f766e
Merge pull request #3746 from Goober5000/scripting_neb2_awacs
...
add scripting virtvar for Neb2_awacs
2021-10-22 11:59:29 -04:00
BMagnu
2e35e051e3
Merge pull request #3697 from Baezon/animated-neb-poofs
...
Add animated nebula poofs
2021-10-22 16:16:30 +09:00
Asteroth
375e1caca9
Remove 'stream' weapon handling ( #3720 )
...
* remove stream handling
* unused variable
* turn stream' into an unused flag
* yes really whitespace changes just for clang tidy
2021-10-22 16:15:56 +09:00
BMagnu
0ba5754c30
Add nullptr safety for animations ( #3738 )
...
* Add nullptr safety
* Greatly simplify docking animation logic
* Fix warnings
* Address Feedback
2021-10-21 21:18:31 +00:00
BMagnu
b7258f5fea
Add Bomb-locking secondaries ( #3588 )
...
* Add Bomb-locking secondaries
* Change to different flag
* Address feedback
2021-10-21 20:09:50 +09:00
Goober5000
89d0a49bdc
add scripting virtvar for Neb2_awacs
2021-10-20 22:24:07 -04:00
Goober5000
e27ed05127
spelling fixes
2021-10-20 15:31:23 -04:00
Goober5000
a52e85c760
Merge pull request #3736 from EatThePath/gr_set_lighting-cleanup
...
Removing dead code paths
2021-10-20 11:48:19 -04:00
Goober5000
e07e8341f2
Merge pull request #3724 from Goober5000/hud_gauge_expanded_check
...
make hud gauge checking more robust
2021-10-20 10:21:22 -04:00
Joshua Glatt
0708dd725b
Bump PLR/CSG versions and preserve pre-containers compatibility ( #3739 )
2021-10-19 21:53:20 -07:00
Asteroth
bc24ac3ebc
Add 'passive' lightning arcs to ships ( #3733 )
...
* add passive lightning arcs
* fixes and cache submodel number
* range based loop
2021-10-19 12:51:05 +09:00
Shivansps
eb3224c50e
fix: cmdbrief not saving current stage text by closing the window
2021-10-18 23:47:56 -03:00
BMagnu
16580ac48a
Merge pull request #3732 from EatThePath/safety-animation
...
Protected against trying to animate non-existant submodels
2021-10-18 20:17:27 +09:00
Goober5000
f625096281
Merge pull request #3735 from BMagnu/secondary_no_ammo_turret_fix
...
Fix Turrets using ammo broken by #3589
2021-10-18 00:29:22 -04:00
Goober5000
5b173c6060
Merge pull request #3731 from Goober5000/state_end_script_hooks
...
migrate and augment mission/state end hooks
2021-10-17 19:30:58 -04:00
David Gibson
1c2b83f6aa
Removing dead code paths
2021-10-17 11:05:37 -05:00
Birk Magnussen
c4994c7fdd
Add forgotten negation
2021-10-17 22:56:53 +09:00
David Gibson
2034a3e9e5
Protected against trying to animate non-existant submodels in at least one case
2021-10-16 21:18:28 -05:00
Goober5000
b0c3b4098e
migrate and augment mission/state end hooks
...
1) migrate On Mission End and On State End to the new hook system
2) add On Mission About To End and On State About To End
2021-10-16 21:56:20 -04:00
Asteroth
f91a5bfd00
Add +arrival rvec for ship bays ( #3698 )
...
* add ship bay arrival rvec
* unused variables
* add profile flag
* add corresponding departure flag
* revert accidental changes
* fix fallout from visual studio's dumb 'rename' feature
* swap parsing of departure and arrival rvec
2021-10-15 16:48:56 -04:00
Goober5000
8af833c984
Merge pull request #3728 from Goober5000/sexp_replace_texture_edits
...
upgrade the replace-texture sexp
2021-10-15 13:15:06 -04:00
Goober5000
754fcb3467
upgrade the replace-texture sexp
...
This PR allows the sexp to replace textures with "invisible" as well as to use animated textures.
2021-10-15 00:51:09 -04:00
Goober5000
ebd31c1bd0
Merge pull request #3726 from Goober5000/pre_translation_cleanup
...
pre-translation cleanup
2021-10-14 11:43:41 -04:00
Goober5000
df83882d39
Merge pull request #3722 from EatThePath/ShaderCleanup
...
Removed unused constants from Lighting.sdr.
2021-10-14 11:42:57 -04:00
Goober5000
8e857ddd4e
nullptrs for clang
2021-10-13 20:28:47 -04:00
Brian Hernandez
08548ea517
Scale distant combat related effects so they stay visible ( #3656 )
...
* Scale distant combat related effects so they stay visible
- Effects scaled so that they always maintain a minimum pixel size
- Supports lasers, beams, all trails, muzzle flashes, and thrusters
- Disabled by default, but can be configured through the game_settings.tbl
* Added comments clarifying when min pixel size scaling happens.
* Convert some NULLs to nullptr to make CLANG happy
2021-10-13 19:46:01 -04:00
Goober5000
ae63f02829
rename intrinsic rotation to intrinsic motion
2021-10-13 19:39:16 -04:00
Goober5000
9afec1fd34
add a new in() function to streamline things a bit
2021-10-13 16:52:37 -04:00
Goober5000
47fb4c1d35
use sm and parent_sm instead of submodel array indexes
2021-10-13 16:04:26 -04:00
Goober5000
db7d634a37
make hud gauge checking more robust
...
1) When syntax checking for hud gauges, be sure to check all gauges available because the default ship may not be the ship chosen in the player loadout.
2) Add a warning to every hud gauge check if the gauge isn't found.
3) Don't report syntax errors for hud gauges in FSO, only FRED; because every place that use a gauge will fail gracefully.
2021-10-12 22:19:39 -04:00
David Gibson
c3cba091f1
Removed unused constants from Lighting.sdr.
2021-10-12 19:46:49 -05:00
Joshua Glatt
16d75b981c
karajorma's SEXP containers, Part 2: Persistence ( #3462 )
2021-10-11 18:58:00 -07:00
Goober5000
f09730d923
Merge pull request #3719 from Goober5000/adjust_rotator_flag
...
rename and adjust scope of Rotators_locked flag
2021-10-11 13:47:58 -04:00
Goober5000
e1f20be856
rename and adjust scope of Rotators_locked flag
...
The Rotators_locked flag was created specifically as a lab option that didn't affect animations or intrinsic rotations, so return it to that scope. Also rename it to clarify that it applies to subsystems and to be future-proof for submodel translation.
2021-10-11 12:06:17 -04:00
The Force
5cfa47a63e
Fix load order problems caused by Iff vectorization ( #3718 )
...
* Fix load order problems caused by Iff vectorization
* Use Resize rather than push
2021-10-11 20:13:44 +09:00
Goober5000
8a449eb8ec
Merge pull request #3713 from Goober5000/submodel_rotate_reorg
...
reorganize submodel rotation
2021-10-10 14:10:19 -04:00
Asteroth
0f06bf279a
Add velocity inheritance for particle effects ( #3691 )
...
* implement velocity inheritance for particles
* add vel inherit for single effects
* appease clang
* review feedback
2021-10-10 13:37:31 -04:00
The Force
aa0713fae6
Appease gcc
2021-10-10 14:30:01 +01:00
The Force
726d4f5cc7
Remove Misplaced Addition From Another Pull request
2021-10-10 14:14:43 +01:00
The Force
111736d86d
Capitalization error fix
2021-10-10 14:08:12 +01:00
The Force
42890a3338
Add Tristate Checkbox
2021-10-10 13:58:00 +01:00
The Force
5b54ef772c
Appease Clang
2021-10-10 13:31:16 +01:00
The Force
8a89c5bb05
Fix Compiler warnings
2021-10-10 13:29:35 +01:00
The Force
91331d5d4a
More Bugfixes
2021-10-10 13:27:02 +01:00
The Force
84eacedb7c
Some bugfixes
...
Shield bugfix
2021-10-10 13:25:20 +01:00
The Force
86d2ba8ebd
Initial Status Dialog
2021-10-10 13:24:04 +01:00
Kiloku
0548b2fa2f
Custom data in tables, tackling #3699 ( #3707 )
...
* Add custom data to ship tables
* add index check to shipclass.cpp
* fix hasCustomData name to use the proper casing
* Add custom data to weapon tables
* Add validity checks and remove superfluous empty check
* Attempt to appease clang-tidy
* Use F_RAW as recommended by @BMagnu
* Creates a function to parse maps and uses it in ship.cpp and weapons.cpp
* another attempt to appease clang-tidy
* Remove superfluous using
* Small style and grammar fixes
* Accidentally forgot this change. Rename 'delimiter' to 'end_marker'
2021-10-10 18:26:54 +09:00
BMagnu
ce22482023
Merge pull request #3702 from Baezon/use-real-names-cheats
...
Use real names for ships/weapons in cheat commands
2021-10-10 18:24:27 +09:00
Goober5000
575c050da4
reorganize submodel rotation
...
This moves submodel rotation out of the AI pipeline and into object movement. With the exception of turret rotation (which remains in the AI code) this now allows all types of submodel rotation to happen in the same place. Many associated functions have also been cleaned up.
In addition to making the code cleaner and clearer, this will make it much easier for intrinsic rotations and new animations to be applied to non-ship objects, such as weapons.
2021-10-10 02:29:34 -04:00
wookieejedi
dfa1de5470
Add Per-Ship Class Wingmen Status Dot ( #3711 )
...
* Add Per-Ship Class Wingmen Status Dot
This PR adds a ship info value `$Wingmen Gauge Dot Override:`, which allows modders to set wingmen status dots on a per-ship class basis. If no animation is specified then the default dot animation specified in the HUD table wingmen gauge is used.
Both EatThePath and Darius stated this feature would be useful, and it will also be useful for FotG.
Tested and works as expected, including on winged ships present at mission start and delayed winged ships.
2021-10-09 19:00:16 -04:00
Kiloku
3538c55dae
Add getColor to lua gr library, which returns the active color ( #3687 )
...
* Adds the getColor() function to the Graphics lua library, allowing users to check what color is active for 2D drawing.
* Adds the getColor() function to the Graphics lua library, allowing users to check what color is active for 2D drawing.
2021-10-09 17:39:41 +09:00
wookieejedi
870666dfa3
Add New Options to Wingmen Gauge ( #3703 )
...
* Add New Options to Wingmen Gauge
This PR adds two new options for modders to use in the HUD table for the wingmen gauge:
1) `Use Full Wing Names:` which draws the full wing name and does not alter the capitalization.
2) `Use Expanded Colors:` which use red, yellow, or green color to designate wingmen health (green 1.0 to > 2/3, yellow 2/3 to > 1/3, and red <= 1/3.
Also adds the bright red option to dead wingmen, which seems like it was missing before(?).
Tested and everything works as expected.
* correct string copy length
* fix out of scope case variable
2021-10-09 17:38:03 +09:00
BMagnu
1da6f4a6a2
Simplistic Ship Transparency ( #3436 )
...
* Basic per-render-model + per-ship tools
* Tidy up settable transparency for standalone use
* Force Alpha Premultiplied on external Alphamult
* Fix sexp description.
2021-10-08 21:49:13 +09:00
Goober5000
6166ec4ce9
Merge pull request #3608 from Goober5000/perform_actions_etc
...
enhance the perform-actions family of sexps
2021-10-07 16:28:11 -04:00
Asteroth
5137ec1f3c
use real names for in cheat commands
2021-10-07 12:03:58 -04:00
BMagnu
d0bcf86ecc
Wrap Docking getTime in a timestamp ( #3701 )
2021-10-07 06:29:51 -04:00
Asteroth
8604f783fb
add no evasion flag ( #3677 )
2021-10-06 12:39:04 -04:00
BMagnu
12be7576f7
Animation Overhaul: Phase 2 ( #3609 )
...
* Add Generic Rotation Segment
* SEXPd rotations work
* Fully replace old animation system
* Add sound segment
* Fixes
* Trigger Hangarbay doors for lone player without AI
* Address Warnings
* Fix Docking ANimations + some bugs
* Fix sound issue + docking bug
* fix bugs, add multi handling
* Change direction into enum class
* Address feedback
* Futher clean aicode
* Address feedback
* Add Multi packet constexprs
* Fix multi constexprs
* Clarify AIS_DOCK comments
* Address multi issues
* Clang somehow detects issues where there are none...
2021-10-06 08:50:58 +09:00
Goober5000
47339e1561
Merge pull request #3671 from Goober5000/moar_sexp_documentation
...
expand some sexp documentation
2021-10-05 13:33:18 -04:00
Asteroth
2703fe865b
Fix warnings concerning ballistic weapons ( #3683 )
...
* dont warn for provided pbank capacity but no ballistic weapons
* review feedback
2021-10-05 04:13:26 -04:00
Asteroth
dbd5652eb8
add animation for nebula poofs
2021-10-05 03:01:52 -04:00
Goober5000
5364d65ec5
Merge pull request #3696 from Baezon/fix-secondary-has-ammo
...
Fix a possible crash with `ship_secondary_bank_has_ammo`
2021-10-04 22:17:52 -04:00
Goober5000
e5973e09ca
Merge pull request #3695 from Baezon/fix-visibility-initialization
...
Initialize team visibility before using it
2021-10-04 22:15:08 -04:00
JohnAFernandez
efeb0ee1f2
Actually fix the goal's target being sent ( #3665 )
2021-10-04 21:21:13 -04:00
Asteroth
ca690c267c
verify secondary_bank_weapons before usage
2021-10-04 18:56:51 -04:00
Asteroth
95de9e3ff5
initialize awacs data in post mission parse
2021-10-04 18:33:11 -04:00
Asteroth
a1ae1d80a9
Safety for replace-texture ( #3694 )
...
* dont add replacement texture if unable to find original texture
* NULL -> nullptr
2021-10-04 01:07:38 -04:00
Allen A. Babb
64b2469235
Merge pull request #3688 from z64555/fix/issue_3685
...
Fix issue 3685
2021-10-02 23:57:22 -05:00
BMagnu
2b63097c12
Exclude dead subsys from targeting ( #3614 )
...
* Exclude dead subsys from targeting
* Put behaviour behind flags
* Make ML lock disappear when subsys dies
* Flip flag to change default behaviour
2021-10-03 03:57:40 +09:00
z64555
ea0ad0935d
Cease Targeting properly, without going out of array bounds. Should fix issue #3685 .
2021-10-02 13:54:28 -05:00
Kiloku
ecea40e38f
Allow Lua Scripts to draw rotated rectangles ( #3623 )
...
* Adds the angle parameter to gr.DrawRectangle, allowing scripters to draw arbitrarily rotated rectangles.
* Revert "Adds the angle parameter to gr.DrawRectangle, allowing scripters to draw arbitrarily rotated rectangles."
This reverts commit b1a0480f32 .
* Adds the angle parameter to gr.DrawRectangle, allowing scripters to draw arbitrarily rotated rectangles.
* fix wrong vertex position for unfilled rotated rectangles
* Adds a @param entry to gr_rect explaining the angle parameter.
* Attempt to fix operations with int to float conversions.
* Fix parameters in documentation string
* Change NULL to nullptr to satisfy modern coding standards
* Trying to make code a bit cleaner
2021-10-02 13:11:35 -04:00
BMagnu
a6093dd8c4
Add ammoless secondaries ( #3589 )
...
* Add ammoless secondaries
* Macroify 'ammo>0 || no ammo' check
2021-10-02 04:40:03 +09:00
Goober5000
2b74ba1d30
Merge pull request #3684 from Goober5000/on_death_started
...
add OnShipDeathStarted scripting hook
2021-10-01 14:03:00 -04:00
Asteroth
76046d8aee
Clean up beam type naming scheme ( #3670 )
...
* clean up beam type naming scheme
* appease clang tidy
* cast to int for printing
* address feedback
2021-10-02 02:42:21 +09:00
Goober5000
ebcd4135a7
additional fixes, including a bugfix for #3679
2021-10-01 11:46:48 -04:00
Goober5000
6575cf6887
add OnShipDeathStarted scripting hook
...
This occurs at the beginning of the ship death routine, similarly to OnDepartureStarted occurring at the beginning of the ship departure routine.
2021-09-30 22:42:15 -04:00
Goober5000
470466e8c7
Merge pull request #3679 from Goober5000/killer_fixes
...
patch up scripted kills
2021-09-30 22:41:32 -04:00
BMagnu
f0f6cabe84
Add full team option to change-iff SEXP ( #3632 )
...
* Add full Team option to change-iff
* Fix help text
2021-10-01 05:09:00 +09:00
BMagnu
37a52dcb41
Merge pull request #3630 from Kiloku/lua_expose_weapon_radius
...
Expose Outer and Inner Radii to the Lua API in the weaponclass type
2021-10-01 04:17:06 +09:00
BMagnu
391de411ee
Vectorize IFF Defs for unlimited IFFs ( #3634 )
...
* make IFF limit a vector
* Also change QTFred
* Warnings
* remove decltypes, wrap arrays in unique_ptr
2021-09-30 14:17:28 +09:00
Goober5000
f8c0d30ee1
Merge pull request #3660 from BMagnu/Lua_ship_iter
...
LUA: Add iterator over ships in mission
2021-09-29 21:45:17 -04:00
Goober5000
30d4455417
patch up scripted kills
...
When a ship is killed via scripting, the killer should be credited for the kill in the mission log and the correct hull percentage should be used. Also, the script should work with either the ship or its weapon passed as the killer parameter.
2021-09-29 01:41:36 -04:00
Goober5000
a9b46f6bd3
Merge pull request #3678 from Goober5000/update_version_21.5.x
...
bump version to 21.5.x
2021-09-29 00:59:37 -04:00
Goober5000
8487323175
bump version to 21.5.x
2021-09-29 00:05:36 -04:00
the-maddin
d309ddef1e
Simplify QPlainTextEdit ( #3600 )
2021-09-28 13:50:04 -04:00
Goober5000
d3b37efb7d
Merge pull request #3647 from Goober5000/hidden_mission_log_flag
...
add hide-in-mission-log ship flag
2021-09-28 11:48:21 -04:00
EatThePath
a8bbe23800
Fix homing child weapons in niche circumstances ( #3661 )
...
* Deleted a line that blanked target_num on homing weapons but still let them home
* This whole block of code about missiles missing turns out to be a logical dead end anyway, ripped it out by the roots.
2021-09-28 01:42:18 -04:00
Goober5000
edf7d6cccf
expand some sexp documentation
...
Adds important information to `ship-guardian` and `show-subtitle-image`. Fixes #3669 .
2021-09-22 22:34:49 -04:00
Birk Magnussen
07abcf2238
secure iterators against ships being removed from them while still iterating
2021-09-17 01:40:31 +09:00
Birk Magnussen
491946bfd0
Add explanation
2021-09-17 01:18:22 +09:00
Birk Magnussen
2306faa7cd
Add iterator over ships
2021-09-16 22:58:33 +09:00
Goober5000
e81001f6a6
Merge pull request #3648 from Goober5000/ai_ignore_documentation
...
add some SEXP documentation
2021-09-15 10:03:03 -04:00
Goober5000
945427a849
Merge pull request #3657 from Goober5000/fix_3654
...
fix the cancel behavior when FRED is closed
2021-09-15 10:02:45 -04:00
Goober5000
9d1c93041e
turns out you can actually embed numbers in strings in the preprocessor
2021-09-15 02:19:05 -04:00
Goober5000
5fb9a6f0c6
fix the cancel behavior when FRED is closed
...
Explicitly check whether the mission has been saved, because the automatic check doesn't provide a way to detect that it has been cancelled.
Fixes #3654 .
2021-09-15 01:35:25 -04:00
Goober5000
e2a359b546
Merge pull request #3655 from brihernandez/mod_table_is_game_settings_comment
...
Added comment to clarify that the mod_table is about game_settings.tbl
2021-09-14 19:03:45 -04:00
Brian
e48011d175
Added comment to clarify that the mod_table is about game_settings.tbl
2021-09-14 11:26:13 -04:00
Fabian Woltermann
8766c642fe
Merge pull request #3652 from qazwsxal/master
...
Anti-glint shader trick to reduce glimmer on distant objects
2021-09-14 14:24:00 +02:00
Adam Leach
565f4d469c
Anti-glint shader trick to reduce glimmer on distant objects
2021-09-14 10:26:33 +01:00
Goober5000
8e7476c1b8
Merge pull request #3651 from Goober5000/lua_gc
...
use public API call for Lua garbage collector
2021-09-14 02:16:54 -04:00
Goober5000
d41020222e
use public API call for Lua garbage collector
...
As described in #3650 .
2021-09-13 19:36:24 -04:00
Fabian Woltermann
9c1cf58f8d
Merge pull request #3649 from Goober5000/techroom_fix
...
fix lab variables
2021-09-13 08:21:50 +02:00
Goober5000
183db641d7
fix lab variables
2021-09-13 01:51:13 -04:00
Goober5000
10a5a0d29a
add some SEXP documentation
...
Per request, add some more documentation to ai-ignore and ai-ignore-new (and ai-play-dead while we're at it).
Fixes #3612 .
2021-09-13 00:37:34 -04:00
Goober5000
8cf8d451a8
allow ship creation to not be visible in the mission log
2021-09-12 16:29:17 -04:00
Goober5000
49bab8fe83
add hide-in-mission-log ship flag
...
This flag causes any events involving this ship to not show up in the mission log.
2021-09-11 23:43:30 -04:00
JohnAFernandez
830ecf2ea2
Merge pull request #3646 from BMagnu/fix_lab_turrets
...
Fix Turrets in Lab
2021-09-11 12:54:45 -04:00
Birk Magnussen
472fd6f20f
Fix Turrets in Lab
2021-09-12 01:30:33 +09:00
Goober5000
262e4d4489
Merge pull request #3645 from Goober5000/shipname_fix
...
correct shipname return type
2021-09-08 21:33:00 -04:00
Goober5000
c9d71ce1ab
correct shipname return type
...
The return type of "shipname" is a string, so if the ship can't be found, return an empty string instead of an invalid ship.
2021-09-08 20:57:09 -04:00
Goober5000
e742bd108a
Merge pull request #3635 from Goober5000/gc_on_mission_start
...
run Lua garbage collector on mission start
2021-09-07 14:15:58 -04:00
Goober5000
990d0b7784
run Lua garbage collector on mission start
...
This might fix #2961 . By explicitly running the garbage collector before a mission starts, this will ensure each mission begins with a clean slate.
2021-09-07 13:50:08 -04:00
Goober5000
7c5371af1a
Merge pull request #3624 from Goober5000/fred2_cancel_confirm
...
confirm cancel in Event Editor
2021-09-05 14:45:14 -04:00
Goober5000
99972a17c6
Merge pull request #3625 from Goober5000/duplicate_squadron_wings
...
match wing names and aliases on the status gauge
2021-09-05 14:43:27 -04:00
Joshua Glatt
2e743d9cd6
Apply adjust-audio-volume SEXP for effects to looping 3D sounds ( #3638 )
2021-09-05 11:39:37 -07:00
Goober5000
b7681cfee9
Merge pull request #3636 from Baezon/fix-turret-resetting
...
Fix turrets not resetting sometimes
2021-09-05 14:31:17 -04:00
Goober5000
5eb924cedc
Merge pull request #3639 from Goober5000/handle_invalid_gamesnds
...
handle invalid gamesnds
2021-09-05 14:29:17 -04:00
Goober5000
d561cd87c4
Merge pull request #3641 from Goober5000/fix_3619
...
fix nebula range in mission-set-nebula
2021-09-05 14:12:49 -04:00
Goober5000
562522e098
match wing names and aliases on the status gauge
...
If a wing has a hash symbol, it needs to match the squadron status gauge for the equivalent name without the hash. This could happen for in-mission jumps or cases where a wing leaves and comes back.
Also remove an obsolete function.
2021-09-05 14:12:08 -04:00
Goober5000
f7bfd637d8
comments
2021-09-05 13:44:02 -04:00
Goober5000
235857ca10
add back fred support
2021-09-05 13:15:34 -04:00
Goober5000
f529fbc633
expand comments
2021-09-05 13:11:33 -04:00
Goober5000
22b16c32d4
Merge pull request #3631 from Goober5000/rewrite_xstr
...
rewrite XSTR to be more robust
2021-09-05 13:04:41 -04:00
Goober5000
b1298c2b68
address feedback
2021-09-04 18:43:46 -04:00
Goober5000
2ec18afe02
CI
2021-09-04 17:16:33 -04:00
Goober5000
7f742a2145
fix nebula range in mission-set-nebula
...
The mission-set-nebula sexp never initialized the nebula range, which is usually done in the background editor. This PR allows the range to be specified, and sets it to 3000 (the same default as in the background editor) if not specified.
Fixes #3619 .
2021-09-04 16:37:49 -04:00
Goober5000
b96d9f6e62
address feedback
2021-09-04 15:46:03 -04:00
Goober5000
eaa3fe0979
address feedback
2021-09-03 23:56:46 -04:00
Goober5000
1cd16b7281
string length tweak
2021-09-03 23:16:40 -04:00
Goober5000
44ce5e9b00
handle invalid gamesnds
...
If an entry in a game sound fails to load, mark the sound as invalid and don't try to load it afterwards. This is the "permanent fail" fix for #3388 .
2021-09-03 19:10:31 -04:00
Asteroth
13b922207b
comment cleanup
2021-09-03 00:14:58 -04:00
Asteroth
efc686db2d
unused variable
2021-09-01 14:33:57 -04:00
Asteroth
2738919cc9
fix turrets not resetting sometimes
2021-09-01 14:29:57 -04:00
Goober5000
7e9121ed8e
use blocks instead of goto; avoids skipping over initialization
2021-08-29 22:56:37 -04:00
Goober5000
f0712cfb41
rewrite XSTR to be more robust
...
The old XSTR parsing code was a bit of a mess and did not even properly enforce its format. These new routines enforce the actual XSTR format and warn when it is malformed, which is helpful for catching table errors as early as possible. This fixes #3627 and also catches mismatched quotes and other common XSTR errors. No more wondering why comments are being mysteriously parsed instead of ignored!
2021-08-29 21:47:15 -04:00
Kiloku
15e1de386c
Exposes Outer Radius and Inner Radius to the Lua API in the weaponclass object type.
2021-08-29 14:47:46 -03:00
Goober5000
af8422cf7b
confirm cancel in Event Editor
...
This syncs up the Close and Cancel behavior. In both cases, if there are any changes, FRED will display a prompt.
2021-08-26 16:32:18 -04:00
Asteroth
39a16019e3
Single target multilock missiles should use targeted_subsys ( #3618 )
...
* use targeted_subsys if available
2021-08-24 19:45:34 -04:00
Asteroth
bbca518524
no chase cam slewing during hyperspace ( #3620 )
2021-08-24 19:44:07 -04:00
Goober5000
bb28c37829
Merge pull request #3616 from Goober5000/look_at_updates
...
fixes to look_at and intrinsic rotation
2021-08-22 22:57:26 -04:00
Goober5000
ad2335cfbf
fixes to look_at and intrinsic rotation
...
1) Make sure the `PM_FLAG_HAS_INTRINSIC_ROTATE` flag is only set after submodels pass validation and checking
2) Maintain compatibility with old models that used `$look_at` with the submodel number instead of name
2021-08-22 22:09:18 -04:00
Allen A. Babb
7bf7bf5c1d
Merge pull request #3617 from z64555/fix/axis_backups_move_too_much
...
Fixes a typo in controlconfig that causes an issue with std::move.
2021-08-22 16:18:20 -05:00
z64555
99b7c89883
Fixes a typo that caused an issue for some builds when trying to move the axis binding backups into the bindings during the exit state of the controls config menu.
2021-08-22 15:39:20 -05:00
Goober5000
370419b1a2
Merge pull request #3610 from Goober5000/some_ai_profiles_fixes
...
some ai_profiles fixes
2021-08-21 21:40:46 -04:00
Goober5000
17d1924897
make CI happy
2021-08-21 20:18:08 -04:00
Goober5000
a351e72895
some ai_profiles fixes
...
1) Several AI profiles options were getting reset on every iteration through the loop. They should only be reset when the profile is initially created.
2) Keeping track of AI hits on the player ship was added by Sushi in 9246a2f74d and needs to be guarded by a flag. This flag has been enabled for mods that set the required FSO version.
2021-08-21 19:53:46 -04:00
Asteroth
cd4c6e483a
add a few mor cases for checking targeting restrictions ( #3605 )
2021-08-20 16:11:18 -04:00
Goober5000
4dad58af6e
CI fixes
2021-08-20 11:53:32 -04:00
Goober5000
91789c2251
add functional-when
2021-08-19 23:30:52 -04:00
Goober5000
03531a7932
make a distinction between perform-actions-bool-first and perform-actions-bool-last, and deprecate perform-actions
2021-08-18 23:59:17 -04:00
Asteroth
82c36b1c59
fix shockwave rotation ( #3604 )
2021-08-18 14:55:14 -04:00
Asteroth
47f84846e3
fix collision retiming to never be in the future ( #3599 )
2021-08-12 17:21:22 -04:00
Goober5000
2fe789f87b
Merge pull request #3595 from Goober5000/ship_logging
...
improve logging of ship creation and cleanup
2021-08-11 16:17:09 -04:00
BMagnu
f850725c14
Merge pull request #3597 from Baezon/fix-poof-density
...
Fix for 'anemic' poofs
2021-08-12 01:12:26 +09:00
Goober5000
344eb5a7ed
Merge pull request #3596 from Goober5000/fix_fs1_import
...
fix icon on FS1 mission import
2021-08-11 12:07:24 -04:00
Goober5000
10b357172a
improve and expand logging
2021-08-11 02:50:07 -04:00
Asteroth
4892ac7b01
unused param
2021-08-11 00:07:56 -04:00
Asteroth
4474b0087d
comments
2021-08-10 23:41:35 -04:00
Goober5000
ee1b6263ba
fix icon on FS1 mission import
...
The SD Demon doesn't use the support ship icon anymore, and hasn't since FSPort switched from FS2-style icons to FS1-style icons.
2021-08-10 23:26:47 -04:00
Baezon
73ced78633
fix poof density
2021-08-10 21:44:02 -04:00
Goober5000
50266c5065
Merge pull request #3580 from JohnAFernandez/qtFRED-CommandBrief-Dialog
...
qtFRED Command Breifing
2021-08-10 13:55:53 -04:00
JohnAFernandez
00f4797b45
qtFRED Command Breifing
...
Adds a fully functioning Command Briefing Dialog to qtFRED
2021-08-09 14:23:23 -04:00
BMagnu
2377b5dff2
Merge pull request #3594 from BMagnu/anim_rework_1_perf
...
Animation Rework Phase 1 Fixes 4 / Performance Issues
2021-08-10 01:33:53 +09:00
Goober5000
f8c41ac377
improve logging of ship creation and cleanup
...
It's useful for *all* ship cleanup to be logged, not just big/huge ships. And by extension, it's also useful for ship creation to be logged.
2021-08-09 01:43:07 -04:00
Birk Magnussen
aee9dc6910
Fixed bad stepAnimations call, added initial-type optimizations
2021-08-09 14:36:57 +09:00
ngld
2e5a6871c5
Merge pull request #3593 from Goober5000/wrap_no-float16
...
add a version guard for MSVC compiler bug fix
2021-08-08 11:29:11 +02:00
Goober5000
535b0857b6
add a version guard for MSVC compiler bug fix
...
Per ngld's suggestion, this adds a version check around the disabling of the qfloat16 overloads.
Follow-up to #3557 .
2021-08-07 19:19:02 -04:00
Allen A. Babb
2fa7ddc552
Merge pull request #3481 from MageKing17/bugfix/mainhall-misc-apng-animations
...
Fix APNG misc mainhall animations.
2021-08-07 13:09:37 -05:00
BMagnu
a6f821daee
Merge pull request #3592 from Baezon/type-5-targetless-turrets
...
Handle turret fired type 5 beams without targets properly
2021-08-08 01:47:10 +09:00
Baezon
360198b99f
handle turret fired beams without targets properly
2021-08-07 12:20:11 -04:00
Asteroth
7fe62aabcd
Add some chase view Improvements ( #3571 )
...
* improve chase view cam
* fix comment
* comment description of acceleration
2021-08-05 11:09:08 -04:00
Goober5000
d2859f4979
Merge pull request #3585 from Goober5000/dynamic_fred_poofs
...
handle nebula poofs dynamically in FRED
2021-08-04 16:58:52 -04:00
Goober5000
643a87a7f1
Merge pull request #3586 from Goober5000/fred_and_teams_and_mantis_2053
...
ships, wings, etc. can share names with teams
2021-08-04 16:42:09 -04:00
Goober5000
d1d78c980e
Merge pull request #3564 from Goober5000/turn_off_wireframe
...
add Draw Outlines on Selected Ships option
2021-08-04 02:12:21 -04:00
Goober5000
148df94e50
use original intent of colors
2021-08-04 01:42:42 -04:00
Goober5000
d443e9e7d0
might as well fix this too
2021-08-03 22:23:04 -04:00
Goober5000
e1bbbf9f9a
ships, wings, etc. can share names with teams
...
Partial revert of Mantis #2053 :
http://scp.indiegames.us/mantis/view.php?id=2053
The patch was speculative and there was never a confirmed bug. By contrast, there are plenty of existing missions that use Unknown as a ship, wing, or jump node name and work just fine.
2021-08-03 22:06:57 -04:00
Goober5000
fdafe21684
handle nebula poofs dynamically in FRED
...
Inspired by #3584 , this properly saves and restores any number of nebula poofs handled by the game. FRED will only display checkboxes for the first six, since it still uses the static UI, but everything else is handled behind the scenes.
2021-08-03 21:21:42 -04:00
BMagnu
7ccd13bbce
Merge pull request #3584 from BMagnu/fred_poof_clear
...
FRED: Don't clear poof flags for poof 7 and after
2021-08-04 09:41:56 +09:00
Birk Magnussen
9f45f49ec1
Only clear settable poof bitflags
2021-08-04 00:57:07 +09:00
BMagnu
6b5124a8ad
Merge pull request #3582 from BMagnu/anim_rework_1_fixes_3
...
Animation Rework Phase 1 Fixes #3
2021-08-03 11:15:46 +09:00
Birk Magnussen
1187ebbc2c
GCC Warnings
2021-08-02 23:33:26 +09:00
Birk Magnussen
d92fab80ef
Find turrets by sip name (since index can change) and make pointers shared
2021-08-02 22:35:41 +09:00
BMagnu
1b9dd78233
Merge pull request #3507 from Baezon/poof-overhaul
...
Overhaul nebula poof system
2021-08-02 18:35:40 +09:00
Baezon
ebb5ed9ba6
review tweaks
2021-08-01 13:08:11 -04:00
BMagnu
dabdc871a6
Merge pull request #3579 from BMagnu/anim_rework_1_fixes_2
...
Animation Rework Phase 1 Fixes #2
2021-08-01 14:39:38 +09:00
Birk Magnussen
77a255af63
GCC Warnigns
2021-07-30 18:05:46 +09:00
Birk Magnussen
45c904c25e
Fixed memory issue and turret-specific animation handling cases
2021-07-30 17:08:24 +09:00
BMagnu
3d0bd54980
Merge pull request #3578 from BMagnu/anim_rework_1_fixes_1
...
Anim Rework Phase 1 Fixes
2021-07-30 03:27:39 +09:00
Birk Magnussen
7228244f0c
Add forced animation start mode
2021-07-29 20:46:37 +09:00
Birk Magnussen
f0f5679731
Fix flipped turret values
2021-07-29 20:21:01 +09:00
Asteroth
1306a23fd4
Merge pull request #3568 from Baezon/fix-turret-flags-no-parse-object
...
Move some flag setting to subsys_set()
2021-07-28 03:15:58 -04:00
Goober5000
f067a19583
Merge pull request #3576 from Goober5000/override_all_briefing_icons
...
allow custom briefing icons to always override standard icons
2021-07-28 00:40:42 -04:00
Goober5000
8ad52cd8e0
Merge pull request #3577 from notimaginative/fix_cmdline_password_bug
...
fix error with -password cmdline option
2021-07-28 00:40:22 -04:00
Taylor Richards
a27976bf9a
fix error with -password cmdline option
2021-07-27 19:41:01 -04:00
Goober5000
deefbf0860
allow custom briefing icons to always override standard icons
...
Adds the `$Custom briefing icons always override standard icons:` option to game_settings.tbl. Implements #3575 .
2021-07-27 14:16:58 -04:00
Goober5000
c0f9ad7b3c
Merge pull request #3574 from Goober5000/fix_time_to_goal
...
fix Time To: Unknown on the HUD
2021-07-25 18:17:25 -04:00
Goober5000
482cc7d7a6
fix Time To: Unknown on the HUD
...
PR #3064 inadvertently caused all goals to display Time To: Unknown, even though time was only supplied for docking and waypoints. This restores the original behavior where the Time To: line simply wasn't displayed.
2021-07-25 15:29:24 -04:00
JohnAFernandez
18754fafc1
Force Portable Initial Changes ( #3562 )
...
Allows us to at least try to use a file path with a unicode character
Typo
Fixup
Update osapi.cpp
2021-07-25 14:18:45 -04:00
Baezon
d05b3fa637
handle beam free all in subsys_set
2021-07-25 11:15:01 -04:00
Goober5000
a26367db5f
qtfred support
2021-07-24 14:15:06 -04:00
Goober5000
e3617169ca
add Draw Outlines on Selected Ships option
...
This option is helpful because the mesh outlines will often obscure important information like submodel names and turret weapons.
2021-07-24 14:15:06 -04:00
Goober5000
3c487f81f3
Merge pull request #3570 from Goober5000/weapon_list_type_fix
...
fix WEAPON_LIST_TYPE parsing for -1
2021-07-24 14:12:33 -04:00
Goober5000
878dd4b313
this makes sense too
2021-07-23 20:59:37 -04:00
Goober5000
74d95f01bc
fix WEAPON_LIST_TYPE parsing for -1
...
When an empty string is encountered in the weapon list, it's valid, but the -1 should actually be stored, not skipped.
This bug was preventing ship weapons from being explicitly set to None.
2021-07-23 20:52:29 -04:00
BMagnu
226d51c214
Merge pull request #3500 from BMagnu/anim_rework_1
...
Animation Overhaul: Phase 1
2021-07-23 23:59:26 +09:00
Asteroth
9855062732
Merge pull request #3567 from Baezon/fix-null-parse-object
...
Fix a nullptr bug with change_ship_type
2021-07-23 01:01:08 -04:00
Birk Magnussen
5709e24e9a
save by PMI id not PMI*, rename 'time' variable
2021-07-23 13:17:11 +09:00
JohnAFernandez
13c410e864
Remove extra AI Profiles call ( #3566 )
...
This function has to be called on game/FRED/qtFRED start, and does nothing once it is called. So there is no reason for it to be hear on mission close.
2021-07-22 22:51:11 -04:00
Birk Magnussen
5f4729bddb
Remove Variable Shadowing
2021-07-23 04:38:23 +09:00
Baezon
65fa916cba
move some flag setting to subsys_set
2021-07-22 15:29:22 -04:00
Birk Magnussen
473acced54
Apply new initial animations for techroom instances
2021-07-23 04:27:43 +09:00
Birk Magnussen
b58b60b555
Fix Constructor Order
2021-07-23 03:31:06 +09:00
BMagnu
9c3b90f403
Merge branch 'master' into anim_rework_1
2021-07-23 03:18:32 +09:00
Birk Magnussen
3b0e02545e
Move Animations from ship* to pmi*
2021-07-23 03:12:54 +09:00
Baezon
9e6e1ef123
clang tidy
2021-07-22 12:00:00 -04:00
Baezon
2e4e9855bc
ensure p_objp is not null
2021-07-22 01:59:26 -04:00
Asteroth
9adc89a5a2
Merge pull request #3441 from Baezon/ballistic-beams
...
Add support for ballistic beams
2021-07-21 15:58:09 -04:00
Goober5000
8faa521df9
Merge pull request #3565 from Goober5000/fix_briefing_icon_override
...
fix briefing icons changing to ships unexpectedly
2021-07-21 12:33:59 -04:00
Baezon
a3513c38b6
Merge branch 'master' into ballistic-beams
2021-07-21 02:59:33 -04:00
Goober5000
15901e430f
fix briefing icons changing to ships unexpectedly
...
If the briefing icon doesn't actually show a ship, then don't use the ship icon override.
2021-07-20 23:21:11 -04:00
Asteroth
37584f576c
Merge pull request #3561 from Baezon/no-generic-debris-for-subsystems
...
Minor improvement for generic debris on subsystems
2021-07-19 19:55:44 -04:00
Baezon
3863d9b5a9
dont use generic debris for subsystems
2021-07-17 20:20:54 -04:00
Goober5000
5318fba077
Merge pull request #3558 from Goober5000/qtfred_menu_update
...
Qtfred menu update
2021-07-17 19:54:06 -04:00
Asteroth
d187a6ae99
Merge pull request #3555 from Baezon/firepoints-burst-shots
...
Add "num firepoints for burst shots" flag
2021-07-17 19:40:04 -04:00
Asteroth
30b35b483b
Merge pull request #3556 from Baezon/audiostream-set-volume
...
Add setVolume function for audio_stream objects
2021-07-17 19:39:33 -04:00
Goober5000
f7f0c2ba21
Merge pull request #3559 from Goober5000/training_message_preservation
...
Training message preservation
2021-07-17 00:10:51 -04:00
Goober5000
f1362a694d
Merge pull request #3560 from Goober5000/log_lcl_weirdness
...
log when missions are skipped due to XSTR mismatch
2021-07-17 00:09:34 -04:00
Baezon
db55349f70
some extra safety and warning for super huge numbers of poofs
2021-07-16 22:30:39 -04:00
Baezon
2d84fdf5c6
Merge remote-tracking branch 'upstream/master' into poof-overhaul
2021-07-16 22:29:56 -04:00
Goober5000
5e7a6ece52
log when missions are skipped due to XSTR mismatch
...
As a follow-up to #2343 , users might wonder why their mission isn't showing up in the tech room, so log a friendly message.
2021-07-16 22:17:36 -04:00
Goober5000
ff62ea010e
training messages have additional idiosyncrasies
2021-07-16 22:09:11 -04:00
Goober5000
a14a746a4f
don't pre-empt training messages before they finish playing
2021-07-16 20:56:33 -04:00
Goober5000
d4c0c45595
whoops
2021-07-16 00:09:37 -04:00
Goober5000
06eaeca9d7
add Move Ships When Undocking menu option
2021-07-15 23:50:20 -04:00
Goober5000
dd5c92a910
move the show teams code to the right spot and remove the todo
2021-07-15 23:49:27 -04:00
Goober5000
2de1776308
reorder misc menu and fix a couple captions
2021-07-15 23:13:12 -04:00
Goober5000
833b51e423
sync shortcut keys to what they are in FRED
2021-07-15 22:46:57 -04:00
Goober5000
726d66d0ad
add the Highlight Selectable Subsystems menu item
2021-07-15 22:17:05 -04:00
Goober5000
c7e2b3c78f
add the Clone Marked Objects menu item
2021-07-15 22:15:26 -04:00
Goober5000
97a93162f8
Merge pull request #3557 from Goober5000/qtbug_72073
...
work around MSVC 2015 and 2017 compiler bug
2021-07-15 00:03:51 -04:00
Goober5000
1fa270ad66
work around MSVC 2015 and 2017 compiler bug
...
This macro bypasses a compiler bug where MSVC can't distinguish the division symbol. See https://bugreports.qt.io/browse/QTBUG-72073
2021-07-14 20:13:11 -04:00
Baezon
5b316a562d
clarifying comments
2021-07-14 00:22:46 -04:00
Baezon
9c14717b81
use macro version of true/false return
2021-07-14 00:14:08 -04:00
Baezon
0b8bbb3f47
add set volume for audio streams
2021-07-13 15:29:07 -04:00
Goober5000
314833ae61
Merge pull request #3554 from Goober5000/fred_turret_info
...
FRED turret info
2021-07-11 21:39:46 -04:00
Goober5000
4a4d07872a
Merge pull request #3553 from Goober5000/loop_mission_tweak
...
fix campaign loop in certain cases
2021-07-11 16:10:39 -04:00
Goober5000
fdc33d8ab5
some fixes
2021-07-11 03:52:01 -04:00
Goober5000
c0430f0b55
add menu option to display info for all turrets
2021-07-11 03:42:24 -04:00
Goober5000
0d2d94a49b
display weapons along with turrets
2021-07-11 03:33:43 -04:00
Goober5000
4f46fff48c
fix campaign loop in certain cases
...
If the loop mission and the next mission are the same, then don't show the campaign loop screen. This prevents the campaign from getting into a campaign loop state if it shouldn't, and also allows campaign loops to be conditionally accessible.
2021-07-11 00:49:09 -04:00
Goober5000
1b1d864c59
Merge pull request #3552 from Baezon/fix-secondary-range-check
...
Fix a secondary range bug from AI multilock
2021-07-09 15:21:32 -04:00
Baezon
f1ddfafdf3
fix a bug from ai multilock
2021-07-09 01:55:35 -04:00
Baezon
3481032ae5
add num_firepoints_burst_shots flag
2021-07-08 17:08:56 -04:00
Asteroth
3a4e5d75a3
move the event flag reset to the top of the function to avoid restting anything we just applied ( #3551 )
2021-07-07 03:44:17 +00:00
PhantomHoover
84b25b52d7
Be smarter about when we try to run scripting hooks: don't even bother trying if no scripts are even registered to run on them. ( #3538 )
2021-07-02 22:50:53 -04:00
Taylor Richards
f2d3aaaf20
Merge pull request #3544 from notimaginative/fix_gtrack_packet_size
...
bump tracker packet sizes to match server
2021-06-29 00:57:24 -04:00
JohnAFernandez
ffbcdab9da
Remove Buggy Function and Let Debris End Naturally ( #3540 )
...
* Remove Buggy Function and Let Debris end natrually
Removes this retail function that was actually perpetually postponing the death of debris at long distances instead of removing them. Debris lifetime is suitably short for the small, non-hull pieces (only a few seconds), while large pieces are supposed to be permanent. It also culls based on player position, which is not the correct approach, since the camera can be free from the player ship.
* Remove Vestigial Variables
These variables are no longer checked for anything now that we allow debris to go through its lifetime.
2021-06-28 08:11:10 -04:00
Goober5000
8db2f374f2
Merge pull request #3545 from Goober5000/fix_3539
...
fix 3539
2021-06-28 00:58:48 -04:00
Goober5000
46959276f5
fix 3539
...
If a bad token is found in a string list, just advance the parser until the next token or EOLN.
2021-06-27 21:24:44 -04:00
Taylor Richards
d5afd8d79b
bump tracker packet sizes to match server
...
- allow for size of IPv6 game list packet (fixes #3543 )
These larger packet sizes aren't required for
FS2/FS2_Open, but just keeps the code in sync.
2021-06-27 13:43:19 -04:00
Goober5000
2a8064a3e9
Merge pull request #3536 from Goober5000/lua_sexp_help
...
allow characters in SEXP help
2021-06-26 17:41:01 -04:00
Goober5000
9741b36442
allow characters in SEXP help
...
Certain characters (especially the semicolon) couldn't be used in SEXP help. By using the same character replacement as in briefings and messages, now they can.
2021-06-25 22:38:31 -04:00
PhantomHoover
0fe59e10ad
Inline matrix multiplication ops for performance improvements ( #3535 )
2021-06-25 22:19:42 -04:00
Asteroth
e287c575ce
Merge pull request #3534 from Baezon/bugfix-initial-shield-strength
...
Initialize `n_quadrants` before setting shield strength
2021-06-25 14:24:01 -04:00
Asteroth
b14a27cdff
fix model point shield handling for mini target shields ( #3531 )
2021-06-25 00:44:39 -04:00
Baezon
63b0f0a373
bug fix initialize n_quadrants before setting shield strength
2021-06-24 18:44:25 -04:00
Asteroth
c464a1cd4c
Merge pull request #3532 from Baezon/bugfix-ai-multilock-no-dumbfire
...
Bugfix with ai multilock and no dumbfire
2021-06-24 18:28:50 -04:00
Asteroth
6889ee856f
Merge pull request #3533 from Baezon/bugfix-shield-hit-delay
...
Initialize shield regen hit delay
2021-06-24 18:28:29 -04:00
Baezon
292f1547c4
initialize shield regen hit delay
2021-06-24 17:38:00 -04:00
PhantomHoover
a687fe0aef
Reimplement matrix3 multiplication based on a common overloaded operator ( #3470 )
2021-06-24 17:26:51 +00:00
Baezon
31fa21bbf1
bugfix ai multilock and no dumbfire
2021-06-24 01:29:11 -04:00
Asteroth
be6a7f552a
Merge pull request #3443 from Baezon/trails-optimize
...
Optimize trail rendering
2021-06-23 16:59:51 -04:00
Baezon
93da6616f7
Merge remote-tracking branch 'upstream/master' into trails-optimize
2021-06-23 16:04:13 -04:00
Asteroth
4aeaabf337
Merge pull request #3529 from Baezon/shield-regen-hit-delay
...
Add shield regen hit delay
2021-06-23 16:02:15 -04:00
Asteroth
589071ac46
Merge pull request #3183 from Baezon/ai-multilock
...
Add AI support for multilock
2021-06-23 02:15:07 -04:00
wookieejedi
ccf0e7eb04
Merge pull request #3510 from wookieejedi/add-extra-script-sound-enums
...
Add More Options to Scripted Persistent Sounds
2021-06-22 18:37:20 -04:00
Baezon
adb7d9d195
review tweaks
2021-06-22 16:46:13 -04:00
BMagnu
7a2a4b6640
Merge pull request #3526 from BMagnu/luasexp_subcat_fix
...
Allow non-unique sexp subcategories
2021-06-22 22:52:10 +09:00
Goober5000
e4f9ca05c5
clang
2021-06-22 02:05:26 -04:00
Taylor Richards
0160fac2ff
Refactor hud escort list to be less crazy ( #2922 )
...
* refactor hud escort list to be less crazy
- don't keep rebuilding list
- add and remove ships more efficiently
- better handling of player ships in multi (fixes #1674 )
* fix sorting issues
- incomplete priority sort
- reversed alpha sort
* fix additional sorting issue
* improve safety check in list sort function
* add safety checks to hud_add_ship_to_escort()
this wasn't meant to be used outside of the module so
it was not really safe to use with sexps previously
* remove entries properly in hud_add_remove_ship_escort()
2021-06-22 01:34:06 -04:00
Goober5000
cc2d06d37c
correctly handle non-looping sounds when they have finished playing
2021-06-22 01:24:39 -04:00
wookieejedi
c5b29c62c6
incorporate feedback
...
More modifications are still needed though, so keeping in draft status
2021-06-22 00:11:28 -04:00
Baezon
8e2d93211c
add shield regen hit delay
2021-06-21 21:01:51 -04:00
Joshua Glatt
eca6647dbf
Fix leaking of game objects and memory in F3 lab ( #3512 )
2021-06-21 17:12:51 -07:00
Goober5000
b6e214a4d4
Merge pull request #3528 from Goober5000/language_sexp
...
add is-language
2021-06-21 15:57:03 -04:00
Goober5000
841a4b8cea
add is-language
...
Checks whether the game is running in the specified language. Since the fiction viewer doesn't use XSTR-style localization, this SEXP can be used to display different stages for different languages.
2021-06-21 15:00:28 -04:00
m!m
19bc18cb32
Merge pull request #3525 from asarium/build/ccacheTest
...
Use ccache to speed up some PR builds
2021-06-21 17:50:49 +02:00
Goober5000
823c76ec22
Merge pull request #3064 from z64555/feature/time_to_goal
...
Feature/time to goal
2021-06-21 11:48:05 -04:00
Goober5000
a75ad91518
Merge pull request #3469 from Goober5000/external_submodel_offset
...
Add external weapon model angle offset
2021-06-21 11:17:00 -04:00
Birk Magnussen
bdefb55ec9
Allow non-unique sexp subcategories
2021-06-21 15:16:17 +09:00
Baezon
00f7f13371
Merge remote-tracking branch 'upstream/master' into ballistic-beams
2021-06-20 22:09:16 -04:00
Baezon
1441cc8e85
review tweaks for ballistic beams
2021-06-20 21:50:11 -04:00
Goober5000
a8a9127d81
Merge pull request #3504 from Goober5000/tstring_check_fix
...
maintain a copy of the default translations to check against untranslated strings
2021-06-20 21:25:32 -04:00
Joshua Glatt
028168d395
Add in-game options menu options for lightshafts and bloom ( #3501 )
...
* Add in-game options menu options for lightshafts and bloom
* move impl of new PostProcessingManager functions to .cpp file
2021-06-20 21:04:34 -04:00
Taylor Richards
7dae8940d7
support opening of web urls on PXO screens ( #3485 )
...
* support opening of web urls on PXO screens
(copied out of icculus.org version)
* add delay before allowing more clicks on links
* fix clang-tidy issues
2021-06-20 20:58:55 -04:00
Asteroth
814d44c986
Add weapon optimum range for AI fighters ( #3457 )
...
* add weapon optimum range
* review tweaks
2021-06-20 20:52:02 -04:00
Asteroth
99fb2c00ab
fix shooter scaling offsets ( #3521 )
2021-06-20 18:30:09 -04:00
m!m
f7c3ab85d3
Merge pull request #3524 from asarium/build/removeDeprecatedCMakeStuff
...
Remove usage of deprecated CMake module
2021-06-20 18:27:14 +02:00
asarium
d03a1007df
Use ccache to speed up some PR builds
...
This sets up ccache to speed up some builds. I hope this also works with
forks since I don't know if those are allowed to use the main repo
cache.
2021-06-20 14:24:11 +02:00
asarium
b6fe676072
Remove usage of deprecated CMake module
...
Also removed all checks for C++11 support since we only support
compilers that have this already.
2021-06-20 12:56:20 +02:00
Goober5000
07f4f4716b
handle clang
2021-06-20 02:47:19 -04:00
Asteroth
30e48c1b03
Merge pull request #3511 from Baezon/beam-attenuation-bugfix
...
Bugfix for beam attenuation damage
2021-06-20 02:31:48 -04:00
Asteroth
352fd3cdfc
Merge pull request #3514 from Baezon/negative-hull-repair-kill
...
Properly handle death due to negative hull repair rate
2021-06-20 02:31:38 -04:00
Goober5000
1becca7cbe
accommodate mismatches
2021-06-20 00:45:39 -04:00
Goober5000
07312ff4c0
add code for actually rotating the external models
2021-06-20 00:45:38 -04:00
Goober5000
f9c73e81f2
add code for loading external model angle offset from POF file
2021-06-20 00:45:34 -04:00
Goober5000
e2585a9a0e
change secondary_point_reload_pct to be dynamic and to not rely on MAX_SLOTS
2021-06-19 23:23:53 -04:00
Goober5000
d6c65d5139
Merge pull request #3489 from Goober5000/POF_version_adjustment
...
add some more sophisticated POF version handling
2021-06-19 23:14:00 -04:00
Goober5000
c3551f4361
Merge pull request #3520 from Baezon/downgrade-parse-severity
...
Restore original error handling of stuff_int_list
2021-06-19 21:43:32 -04:00
Goober5000
d787bd7c6f
Merge pull request #3522 from EatThePath/fix-hook-conditions-i-broke
...
Moved script initialization to take place after all table loads
2021-06-19 21:42:47 -04:00
Baezon
7dd454f563
review changes
2021-06-19 18:39:35 -04:00
Goober5000
f1deee8566
Merge pull request #3354 from Goober5000/gs_state_invalid
...
actually use GS_STATE_INVALID
2021-06-19 17:49:38 -04:00
David Gibson
b24289e918
Moved script initialization to take place after all table loading to facilitate script condition caching.
2021-06-19 12:34:16 -05:00
Baezon
94b1d11f47
restore original error handling of sutff_int_list
2021-06-19 02:58:20 -04:00
Goober5000
c541ac91db
Merge pull request #3513 from the-maddin/qt-checked-list-3
...
Rewrite of CheckedDataListModel
2021-06-19 00:37:40 -04:00
the-maddin
eb6f7fb013
Fix some clang stuff
2021-06-18 23:10:56 +02:00
Baezon
d2c24efeff
properly handle death due to negative hull repair rate
2021-06-18 16:50:55 -04:00
Goober5000
318fed546f
Merge pull request #3509 from BMagnu/briefing_shadows
...
Add shadow map generation for briefing
2021-06-18 15:54:29 -04:00
the-maddin
474f225672
be explicit for msvc
...
(cherry picked from commit 97e2028337265a5529d0b0a5fb76bb52e1a4ab37)
2021-06-18 20:33:34 +02:00
the-maddin
14337c22b0
Rewrite CheckedDataListModel
...
for better flexibility & efficiency
2021-06-18 20:21:28 +02:00
Baezon
647334f4ff
redundant fwd declaration
2021-06-17 18:39:46 -04:00
wookieejedi
03d51ba400
appease clangtidy
2021-06-17 17:23:01 -04:00
Baezon
3767758ae5
bugfix beam attenuation damage
2021-06-17 17:10:35 -04:00
wookieejedi
def814fa4e
fix typo
2021-06-17 17:01:53 -04:00
wookieejedi
11c5af39d8
Add More Options to Scripted Persistent Sounds
...
This adds two new enums to persistent sounds which can be utilized by scripts.
1. OS_PLAY_ON_PLAYER, which allows persistent sounds to play on the player's ship.
2. OS_LOOPING_DISABLED, which allows the scripter to set the sound to play once and not have to then call `removeSound` later. Very handy for playing an assigned sound once with one line.
Tested and everything works as expected.
2021-06-17 16:58:25 -04:00
Birk Magnussen
c6b75d3561
Add forgotten Animation Instancing
2021-06-18 04:09:03 +09:00
Goober5000
866a7c40df
Merge pull request #3497 from JohnAFernandez/fix-pause-locking
...
fix missiles locking during pause
2021-06-17 14:58:48 -04:00
Goober5000
5076066627
Merge pull request #3508 from Goober5000/enum_bitops
...
add bitwise operations with enums
2021-06-17 14:53:37 -04:00
Goober5000
70546b68a5
add bitwise operations with enums
...
This adds `EnumAND` and `EnumOR` which will return new enums based on the specified operations. These are handy for enums that correspond to bit fields, such as those used for object persistent sounds.
2021-06-17 14:17:16 -04:00
Baezon
a6084ba707
change from radians to degrees
2021-06-17 14:04:47 -04:00
Baezon
27650ef45d
proper poof toggling support
2021-06-17 13:15:07 -04:00
Birk Magnussen
4f5fb48f79
Add shadow map generation for briefing
2021-06-17 14:45:54 +09:00
Goober5000
c1d2920526
Merge pull request #3506 from Goober5000/enhance_bitops
...
some bitwise operation enhancements
2021-06-16 12:17:38 -04:00
Baezon
90558a5858
Merge branch 'master' into poof-overhaul
2021-06-16 03:26:58 -04:00
Birk Magnussen
390f979b7c
Small parse improvement + english fixes
2021-06-16 13:51:55 +09:00
wookieejedi
7258861791
Merge pull request #3505 from wookieejedi/add-save-as-shortcut
...
Add Keyboard Shortcut for `Save As` in FRED
2021-06-15 20:15:22 -04:00
Goober5000
76b944e01d
fix tests
2021-06-15 19:53:28 -04:00
Goober5000
8006baec65
Merge pull request #3498 from JohnAFernandez/fix-scripts-crashing-with-bad-mission-data-when-pressing-esc
...
Add Menu and Mission resetting to scripting state.
2021-06-15 18:15:01 -04:00
Goober5000
443e148869
some bitwise operation enhancements
...
Allow AND and OR to take up to 10 arguments. Deprecate addBit and replace with setBit, and add unsetBit.
2021-06-15 17:56:49 -04:00
wookieejedi
f9265301af
Add Keyboard Shortcut for Save As in FRED
...
Finally got around to adding in the `Ctrl+Shit+S` shortcut for Save As in FRED. Tested and works as expected.
2021-06-15 16:03:02 -04:00
Birk Magnussen
bd6dae97a7
Fixed Code for GCC and C++11
2021-06-16 02:10:30 +09:00
JohnAFernandez
74c6b0c3cb
Add escape character for < and > in html output ( #3499 )
2021-06-15 12:51:40 -04:00
Goober5000
3685a78ea9
make clang happy, and fix a bug in the English handling
2021-06-15 12:40:41 -04:00
Birk Magnussen
d0948e67e3
Tidy up some new code into separate functions
2021-06-15 13:27:08 +09:00
JohnAFernandez
3660761d7c
Add Menu and Mission resetting to scripting state.
2021-06-14 23:16:10 -04:00
JohnAFernandez
e6579fca09
fix missiles locking during pause
2021-06-14 22:37:32 -04:00
Goober5000
da0459feeb
Merge pull request #3494 from Baezon/adjust-waypoint-turnrate
...
Bugfix for waypoint turnrate
2021-06-14 15:07:25 -04:00
Goober5000
b428899d5b
Merge pull request #3496 from Goober5000/ui_cutscene
...
add a scripting function for playing cutscenes in the UI
2021-06-14 14:25:31 -04:00
Goober5000
00ec3431b7
add a scripting function for playing cutscenes in the UI
...
Implements `common_maybe_play_cutscene` as a scripting function. Partial fix for #3367 .
2021-06-14 13:48:31 -04:00
Goober5000
353d66c17d
maintain a copy of the default translations to check against untranslated strings
...
Bug #3471 occurs because the game only keeps a translation table for the current language. Since the mission list needs to compare untranslated strings against English strings, this adds a duplicate table for English. However, it only keeps strings that are NAME_LENGTH or less, because the comparison only needs to be run against mission names.ssss
Fixes #3471 .
2021-06-14 02:43:28 -04:00
Goober5000
84ceae724c
Merge pull request #3493 from Goober5000/objsnd_bugfix
...
fix to #3476
2021-06-13 19:27:36 -04:00
Joshua Glatt
c47518ec6e
karajorma's SEXP containers, Part 3: 'Add/Modify Container' FRED dialog ( #3463 )
2021-06-13 15:16:27 -07:00
Baezon
76c9583e45
bugfix for waypoint turnrate
2021-06-13 16:33:57 -04:00
Goober5000
131fadfab3
fix to #3476
...
The default sound position should be the zero-vector, not nullptr. Also, this adds a bit of extra type safety.
2021-06-13 15:35:44 -04:00
Goober5000
74233c029c
Merge pull request #3487 from Goober5000/move_engine_sound
...
center the persistent sound by default
2021-06-13 00:18:47 -04:00
Goober5000
c1d8834d81
make clang happy
2021-06-11 18:46:03 -04:00
Goober5000
7b69c10e56
add some more sophisticated POF version handling
...
This adds additional version definitions so that features can be added which support both the aligned and non-aligned POF formats.
2021-06-11 17:53:56 -04:00
Goober5000
c0bb5bc8eb
Merge pull request #3326 from Shivansps/arm_fixes_v2
...
POF 2118 and SLC2 support
2021-06-11 17:43:28 -04:00
m!m
2e56b3ca61
Merge pull request #3382 from asarium/build/readdClang9
...
Fix missing clang-9 binary in build image
2021-06-11 21:51:12 +02:00
asarium
3c3f79bc8f
Fix missing clang-9 binary in build image
2021-06-11 20:54:09 +02:00
Goober5000
462a234e81
Merge pull request #3488 from Goober5000/model_version_warning
...
add warning for supported POF file versions
2021-06-11 11:33:26 -04:00
Goober5000
eaf14760c4
add warning for supported POF file versions
...
With several upcoming POF format enhancements (byte alignment, external weapon rotation, submodel translation) it makes sense to warn users if they happen to load an unsupported POF file.
2021-06-11 10:40:21 -04:00
Birk Magnussen
a9e5505a7c
Added Comments, light refactoring
2021-06-11 13:39:55 +09:00
Asteroth
1525b520d7
Merge pull request #3483 from Baezon/better-damage-type-handling
...
Improve damage type handling when dealing damage
2021-06-10 18:53:39 -04:00
Goober5000
1843f76d04
center the persistent sound by default
...
The assumed location of a ship's "EngineSnd" is at its rearmost extent, which is fine for ships with engines, but not suitable for stationary objects such as space stations and comm nodes. If the ship doesn't have an "engine" subsystem, place the persistent sound in the center.
2021-06-10 18:44:46 -04:00
Goober5000
41cf0b3d52
Merge pull request #3486 from Goober5000/3476_followup
...
small followup fix for #3476
2021-06-10 17:11:33 -04:00
Goober5000
990b5a3908
small followup fix for #3476
...
Missed changing the argument type when I changed from int to enum.
2021-06-10 16:38:41 -04:00
Asteroth
e4661b00b1
Add Type 5 beams ( #2817 )
...
* wip
* basics are working
* turret case is handled
* better fighter beam handling
* missing commit?
* handle missile spawn
* clean up, commenting and ssb handling
* random in sphere and per burst rot counts for "share random" flag
* clean up, clarity and comments
* accidental whitespace changes
* bugfix
* NULL -> nullptr
* more efficiency/clarity
* review tweaks and bugfixes
2021-06-09 18:53:53 -04:00
Baezon
4457471ec5
Merge remote-tracking branch 'upstream/master' into better-damage-type-handling
2021-06-09 17:24:11 -04:00
Goober5000
128107ea43
Merge pull request #3476 from Goober5000/script_obj_sound
...
add scripting functions to control sounds assigned to objects
2021-06-09 16:00:53 -04:00
Asteroth
c840d3e032
Add No_shield_damage_from_ship_collisions flag ( #3480 )
...
* add All_ships_take_hull_damage_from_collisions flag
* rename flag and apply flag to debris and asteroid hits
2021-06-09 15:49:35 -04:00
Goober5000
35a09527e5
another #include
2021-06-09 11:52:00 -04:00
Goober5000
20e5f35fb4
include definitions
2021-06-09 11:16:17 -04:00
Goober5000
d217873281
update flags with enums
2021-06-09 10:44:40 -04:00
Baezon
37c5041c03
improve damage type handling when dealing damage
2021-06-09 03:30:52 -04:00
Birk Magnussen
fb657c081c
Turret fix
2021-06-09 16:04:59 +09:00
Birk Magnussen
7945baa751
Fix turret detection
2021-06-09 15:56:28 +09:00
Birk Magnussen
e9a2ff0ebf
Fix proper duration handling of segments and full anims
2021-06-09 15:03:46 +09:00
Asteroth
4328b66a28
fix offset initialization ( #3468 )
2021-06-09 01:38:09 -04:00
Asteroth
11c5bcda74
Merge pull request #3479 from Baezon/improve-particle-alpha
...
Improve particle alpha handling for small particles
2021-06-08 18:21:52 -04:00
MageKing17
43f9a48cb9
Get a pointer to the generic_anim.
...
Whoops.
2021-06-08 13:30:21 -07:00
MageKing17
c6e79a61ea
Add current_frame safety check to main_hall_mouse_release_region().
...
There's a similar safety check for opening doors, so we should check here as well.
2021-06-08 12:28:59 -07:00
MageKing17
5d58d9ca7a
Reset APNG misc animations properly ( fixes #3399 ).
...
Changes the `current_frame` checks in generic.cpp so that the last frame can actually be reached (allows the mainhall code to tell the misc animation has finished), and adds a `generic_anim_reset()` function that gets called instead of manually setting `current_frame` and `anim_time` to 0. This should fix #3399 .
2021-06-08 12:27:15 -07:00
Birk Magnussen
384b2e20c7
Integrate Initial Type animations
2021-06-08 21:28:15 +09:00
Birk Magnussen
20e742ed61
Generate Animations for initial-type animations
2021-06-08 14:45:35 +09:00
Baezon
29846e2101
make particle alpha distance fade be based in part on radius
2021-06-07 20:50:12 -04:00
Goober5000
a1635cdd76
Merge pull request #3301 from Baezon/beam-substitution
...
Implement substitution for beams
2021-06-07 11:59:34 -04:00
Goober5000
c80144ce44
Merge pull request #3473 from jg18/sexp-container-1-fixes
...
A few small fixes to SEXP container definition
2021-06-07 11:23:16 -04:00
Fabian Woltermann
6e11f356ea
Merge pull request #3477 from Baezon/fix-accel-weapon-cull
...
Fix collision culling for accelerating weapons... again
2021-06-07 14:58:14 +02:00
Joshua Glatt
7e4190b97e
add any() and none() for ContainerType
2021-06-06 19:41:14 -07:00
Goober5000
65e65b01b6
Merge pull request #3478 from Goober5000/fix_subsystem_stricmp
...
fix bug in subsystem_stricmp
2021-06-06 14:42:17 -04:00
Joshua Glatt
f3773388b9
make ContainerType's '&' overload return ContainerType instead of bool
2021-06-06 11:35:54 -07:00
Goober5000
b05132a64f
fix bug in subsystem_stricmp
...
Here's a bug that's been around ever since version 3.6. If the subsystem names were not essentially the same, the function wouldn't do the expected string comparison.
2021-06-06 13:59:51 -04:00
Baezon
6c399ccace
fix accelerating weapons culling
2021-06-06 12:23:02 -04:00
Goober5000
373a8b940a
add scripting functions to assign and remove sounds on objects
2021-06-05 20:03:35 -04:00
Joshua Glatt
b4d0db8846
finish implementing bitwise operations for ContainerType
2021-06-05 16:42:55 -07:00
Goober5000
9c0575f173
Merge pull request #3060 from EatThePath/range-aware-secondary-selection
...
Range aware secondary selection
2021-06-05 19:23:12 -04:00
Goober5000
64f5ad925b
Merge pull request #3466 from Baezon/weapon-no-collide
...
Add "no collide" for weapons
2021-06-05 19:22:52 -04:00
Goober5000
81b06fec41
Merge pull request #3475 from MageKing17/bugfix/superfluous-child-warning
...
Remove superfluous warning about missing "child" flag.
2021-06-05 19:22:46 -04:00
Goober5000
3c553665aa
remove the 'main' argument from obj_snd_assign
2021-06-05 17:40:58 -04:00
MageKing17
f252473b84
Remove superfluous warning about missing "child" flag.
...
If a weapon has "inherit parent target" but not "child", a Warning will be generated. However, there is no dependency between the two flags; the weapon will function as the modder presumably expects. The Warning even seems to indicate this, by saying "No changes in behavior will occur" (as opposed to other similar warnings, which generally indicate that a flag will be ignored). Since the situation being warned about does not actually cause any issues, the Warning is entirely superfluous. As such, I've removed it outright.
2021-06-05 13:05:40 -07:00
Goober5000
1caf54e909
Merge pull request #3472 from Goober5000/deprecate_script_eval
...
deprecate script-eval
2021-06-04 21:44:27 -04:00
Birk Magnussen
6aecc4660d
Add forced caching of submodelID
2021-06-04 15:52:08 +09:00
Birk Magnussen
c915bfd474
Appropriate refactoring of ModelAnimationSubSYSTEM -> model
2021-06-04 15:48:05 +09:00
Birk Magnussen
bd2356600f
Actually use new constructor
2021-06-04 15:42:31 +09:00
Birk Magnussen
9c6cc422ac
Improve Code. Operate on Submodels, not subsystems.
2021-06-04 15:36:32 +09:00
Joshua Glatt
7bd74b2a7b
A few small fixes to SEXP container definition
2021-06-03 21:45:16 -07:00
Asteroth
9d5eeb6e08
Merge pull request #3461 from Baezon/random-homing-target-acquisition
...
Add random homing target acquisition
2021-06-03 20:10:21 -04:00
Goober5000
5ffc05fa85
deprecate script-eval
...
The script-eval SEXP evaluates all arguments as individual script commands, which is not ideal because most FREDders expect the arguments to be concatenated. Since the script-eval-block SEXP handles its arguments this way, it makes sense to hide the script-eval SEXP in FRED to prevent confusion.
2021-06-03 19:07:28 -04:00
MageKing17
8ae77e0356
Fix calling split_str() with a maximum line length of 0. ( #3465 )
...
Commit 6c2ebab01c (#3439 ) added a `max_line_length` argument to `split_str()`, but one call had the extra argument added in the wrong spot, and so a previously-pointless-but-harmless `ignored_char` of 0 became a `max_line_length` of 0, resulting (ultimately) in an exception in the unicode code when the iterator tried to decrement at the beginning of a ship's description. This gets rid of the argument entirely, rather than reordering them, because ignoring null characters doesn't really do anything anyway.
I've also added `Assertion`s to check `max_line_length` that should prevent this specific problem from occurring again in the future.
2021-06-03 15:30:34 -04:00
Birk Magnussen
a113897c88
Fix some startup logic
2021-06-03 16:51:57 +09:00
Birk Magnussen
4ee04f2492
Fix oversight for ModelAnimationSubsystem
2021-06-03 16:51:56 +09:00
Birk Magnussen
093a471602
Beginnings of new System
2021-06-03 16:51:48 +09:00
Asteroth
22be402de5
remove glowpoint 'depth' ( #3455 )
2021-06-02 12:54:10 -04:00
Asteroth
84133c42a8
fix ai_aims_from_center flag ( #3467 )
2021-06-02 12:53:45 -04:00
Joshua Glatt
df1c518c3b
Validate user-provided values passed to Random::next() ( #3464 )
...
* Validate user-provided values passed to Random::next()
* return low value on invalid range
* call LuaError() instead of Warning() in rand32() script function
2021-06-02 12:52:30 -04:00
Asteroth
8ac4c54d43
actually limit based on player like the comment says ( #3460 )
2021-06-01 22:23:14 -04:00
Asteroth
1445e778f0
Add volume effects ( #3446 )
2021-06-01 22:20:42 -04:00
Asteroth
2b6041f766
uncouple launch sound from loop sound ( #3450 )
2021-06-01 22:19:30 -04:00
Baezon
59d30157d8
add no collide for weapons
2021-05-31 22:50:00 -04:00
Joshua Glatt
552201884b
karajorma's SEXP containers, Part 1: Definition, parsing, and saving ( #3449 )
2021-05-31 09:15:48 -07:00
Baezon
e053d06a5f
add random homing target acquisition
2021-05-30 22:24:24 -04:00
David Gibson
f677767846
added safety check assert as requested.
2021-05-30 19:32:23 -05:00
David Gibson
9b35a4e653
Nullpointer and variable name fixes for range aware selection, and moved default weapon max range into a define.
2021-05-30 19:32:23 -05:00
David Gibson
6c0bfd4df5
Tied range aware secondary selection to an aiprofiles flag
2021-05-30 18:58:46 -05:00
David Gibson
102bc28424
Added functionality to get_available_secondary_weapons to screen weapons by range. Controlling flag to be added.
2021-05-30 18:58:46 -05:00
David Gibson
081e34815c
corrected misleading comment on get_subsystem_pos
2021-05-30 18:58:46 -05:00
Baezon
6cf5553147
review tweaks
2021-05-30 16:55:50 -04:00
Asteroth
80f4f1abde
add weapon ambient sound ( #3452 )
2021-05-30 16:02:24 -04:00
Taylor Richards
2e30674823
Merge pull request #3386 from notimaginative/add_firewall_status
...
add firewall status
2021-05-30 10:15:43 -04:00
ngld
448d0457c8
Merge pull request #3454 from ngld/feat/betterPofParserErrors
2021-05-30 01:31:19 +02:00
JohnAFernandez
9d7acbcc9d
Update Function Name and comment to describe what it actually is ( #3451 )
...
Change find_player_id to find_player_index, since that is what it does
2021-05-29 19:21:36 -04:00
ngld
c8cee4cdb1
Provide better error messages for invalid vec3ds in POF files.
2021-05-30 00:21:09 +02:00
the-maddin
21aa608eb6
whitespace cleanup ( #3453 )
...
replace spaces with tabs to fix
-Wmisleading-indentation
2021-05-29 21:59:44 +00:00
Goober5000
d6a0d9fb02
Merge pull request #3447 from the-maddin/qt-checked-list-2
...
qtFred: improvements to my checked list
2021-05-28 22:55:56 -04:00
Asteroth
edcdbd02b6
fix bug where shields could be pierced ( #3448 )
2021-05-28 11:10:18 -04:00
Asteroth
d49e24fa0c
Add healing weapons ( #2873 )
...
* basic proof of concept: healing weapons
* implement healing weapons
* remove unused parameter
* travis
* more travis
* endless travis
* earlier multi client return
* update find_submodel_instance_world_point
* review tweaks
2021-05-25 23:03:20 -04:00
the-maddin
e74ebe6b84
fix type warning
2021-05-26 00:56:54 +02:00
the-maddin
c197755c0e
Improve CheckedDataListModel
...
Add text coloring support
Add contains/add functions
Row construction efficiency fixes
Whitespace cleanup
2021-05-26 00:06:41 +02:00
Goober5000
ec4de81a79
Merge pull request #3370 from Goober5000/hud_gauge_parameter_type
...
Hud gauge parameter type
2021-05-24 17:58:05 -04:00
Asteroth
c10d6ececf
optimize motion debris rendering ( #3444 )
2021-05-24 17:42:16 -04:00
BMagnu
6c2ebab01c
Fix erroneous line break generation for non-ASCII string and high resolutions ( #3439 )
...
* Added a byte limit for line length in split function
* Fix call error
* Ádd missing limits import
* Change hardcoded values into defines
* Cleanup default argument
2021-05-24 17:38:58 -04:00
JohnAFernandez
9a682ea32f
Fix ai update danger weapon and Add guardrails for other checks ( #3387 )
...
* Make sure incoming index is valid.
* Some Extra Guardrails
* One more guardrail
* Fix Typos
Nonsense not nonesense
2021-05-24 21:30:41 +00:00
Goober5000
a5f501b58a
Merge pull request #3350 from Baezon/fog-setup-fixes
...
Some fixes to nebula fog set up
2021-05-24 16:07:11 -04:00
Asteroth
5f8cdb37bd
'const vel' is the important quality here, not 'laser' ( #3442 )
2021-05-22 22:48:56 -04:00
JohnAFernandez
f998215b07
Fix AI targeting itself during EMP ( #3431 )
...
To keep the AI code from going crazy, we should keep the AI from targeting itself during/after EMP
2021-05-22 22:37:36 -04:00
Baezon
106b16d5eb
initialize variables
2021-05-22 21:17:23 -04:00
Asteroth
61faa3fa9a
improve numerical pecision ( #3440 )
2021-05-21 23:36:17 -04:00
Baezon
3a960db633
optimize trail drawing
2021-05-21 18:23:35 -04:00
Baezon
b89d395578
unused variable
2021-05-21 17:23:38 -04:00
Baezon
f33b42085e
add support for ballistic beams
2021-05-21 14:57:23 -04:00
BMagnu
87f449415f
Self-Shadow on 3D-Cockpits ( #3437 )
...
* Improve wookieejedi's cockpit shadows
* Rename stray bool
* Make shadow's eye pos explicit
* Tidy up stub declaration
* Add configurable shadows + requests by m!m
* make variable lowercase
2021-05-21 08:15:20 +00:00
wookieejedi
a59bb99fc6
Merge pull request #3435 from wookieejedi/expose-shadow-values
...
Expose Shadow Cascade Distances
2021-05-18 22:20:47 -04:00
wookieejedi
ca6cc21be8
incorporate feedback/extra checks
2021-05-18 09:04:56 -04:00
the-maddin
b52ab8bd4e
gcc11: add missing include ( #3434 )
2021-05-18 01:27:31 -04:00
Asteroth
a5a2f9e3df
add extra check for nullptr ( #3433 )
2021-05-18 01:11:59 -04:00
wookieejedi
40840ee3f9
specify as float tuple
2021-05-17 17:56:48 -04:00
wookieejedi
76af0129f3
Expose Shadow Cascade Distances
...
The shadows distances were tuned/added by swifty with the following logic:
`// these cascade distances are a result of some arbitrary tuning to give a good balance of quality and banding.`
Mods, especially TCs, may have very different sized ships compared to FS, and as such desire more precise control over shadow cascade distances.
This PR exposes those values with settings in the `game_settings.tbl`.
PR is tested and works as expected.
2021-05-17 17:17:55 -04:00
Goober5000
f91d3dbe17
Merge pull request #3421 from Goober5000/fix_add_data_for_variables
...
fix add-data for variable names
2021-05-17 11:53:02 -04:00
Goober5000
5ad373502c
Merge pull request #3428 from z64555/fix/issue_3427
...
Fix/issue 3427
2021-05-16 23:22:17 -04:00
Goober5000
37c9ecd0e3
fix add-data for variable names
...
This properly handles variable additions by calling the replace-variable code on the new variable node immediately after the variable is added. It's a bolted-on hack but it's the simplest way to fix the issue. A better fix would be to completely redesign the way the sexp tree handles variables (and everything, really) but that would be a major undertaking.
Fixes #3298 .
2021-05-16 23:15:19 -04:00
Tyler Blount
b92cbaff64
Merge pull request #3432 from the-maddin/qtfred-win-fixes
...
Qtfred win fixes
2021-05-16 18:12:31 -06:00
the-maddin
ed69a1584b
qtfred/win32: Later SCP_mspdbcs_Cleanup (fix crash on shutdown)
2021-05-16 18:25:57 +02:00
the-maddin
789243ea06
qtfred: Replace '/' with platform specific
...
separator
2021-05-16 18:25:57 +02:00
Fabian Woltermann
2701b557b8
Merge pull request #3426 from The-E/feature/disable_reflect_maps_in_lab
...
Add an option to switch off reflect maps in the lab
2021-05-14 11:35:11 +02:00
z64555
b4fe5c9cbe
* Use temp vars for readibility.
...
* when using gr_printf_menu, Use format string and va_list instead of the buffer string directly
2021-05-13 16:55:02 -05:00
z64555
f1ee621624
Use menu resolution instead of screen width for positioning the "Conflict!" message.
2021-05-13 13:24:21 -05:00
z64555
bcf87e8a02
When overriding a key, the key should first load in the default binding so that legacy ccfg.tbl's can toggle a modifier (shift or alt) without corrupting the bind.
2021-05-13 13:10:04 -05:00
Fabian Woltermann
3d6fe919da
Add a flag to the Lab's render settings to allow Reflect maps to be toggled on or off
2021-05-13 16:02:49 +02:00
Goober5000
2e272cce2d
Merge pull request #3360 from EatThePath/stricmp-begone
...
Remove string comparisons and switch to vector in script conditions
2021-05-10 19:58:20 -04:00
Asteroth
309bfd7825
better beam index warning ( #3376 )
2021-05-10 18:17:15 -04:00
Goober5000
308794801c
Merge pull request #3423 from Goober5000/xstr_id_buf_bump
...
bump the buffer holding the XSTR id
2021-05-08 17:42:00 -04:00
the-maddin
0b26662755
Qtfred runtime fixes ( #3418 )
...
* qtfred: fix crash on shutdown
run shutdown code sooner (lastWindowClosed) to
avoid deallocating invalid glsync
* qtfred: Fix blurry sky background and startup
warning
Only render when window surface is exposed, ensure
first correct frame is rendered asap.
* fix msvc warning
initialize variable
* Clarify comment
2021-05-08 21:31:08 +00:00
Goober5000
8fe55fa659
bump the buffer holding the XSTR id
...
Turns out some mods really do use XSTR ids higher than 9999. This bumps the capacity from 4 digits to 7 digits.
Fixes #3422 .
2021-05-08 16:35:56 -04:00
Goober5000
9f1e556031
Merge pull request #3420 from Goober5000/fix_3419
...
remove unneeded warning
2021-05-08 02:13:32 -04:00
Goober5000
d77554767d
remove unneeded warning
...
As pointed out in #3419 , subsystems can in fact have 0% maximum hull.
Fixes #3419 .
2021-05-07 22:35:13 -04:00
Goober5000
52e2cda4a0
Merge pull request #3416 from Goober5000/fix_3413
...
use the proper range check
2021-05-05 22:31:36 -04:00
Goober5000
3a888906c5
use the proper range check
...
The ship index was being checked against the weapon limit.
Fixes #3413 .
2021-05-05 21:34:42 -04:00
MageKing17
638a25ea0d
Merge pull request #3415 from Goober5000/update_version
...
bump version to 21.3.x
2021-05-05 17:16:58 -07:00
Goober5000
6d60647a2a
bump version to 21.3.x
2021-05-05 19:35:26 -04:00
Goober5000
cd2e69eb3b
Merge pull request #3411 from the-maddin/qt-checked-list
...
QtFred: Model for ListView of checkboxes
2021-05-05 17:37:03 -04:00
Goober5000
e92ba1849b
Merge pull request #3410 from the-maddin/qtfred-fix-warnings-05-21
...
Fix some qtfred warnings
2021-05-05 17:33:52 -04:00
Taylor Richards
ce9a0d5e08
add new popup type to handle mission/table validation ( #3380 )
...
* add new popup type to handle mission/table validation
* fix error handling when popup gets canceled
* use bool and get rid of Int3()
* use proper Game_mode check to test for standalone
2021-05-05 00:53:57 -04:00
Asteroth
d971f34ee2
make all asinf and acosf safe ( #3384 )
2021-05-05 00:53:24 -04:00
JohnAFernandez and Asteroth
47f6d2b368
Add guardrails to object cleanup during object creation ( #3371 )
...
* Prevent Crashes from Weapons being deleted during the collision process
This puts in some safety checks to keep FSO from crashing while doing collision detection when close to the object limit.
* Remove Problematic Assertions and INT3's
Keeps FSO from crashing when low on Object slots from failed weapon and beam creations.
* Simplify Code with a good suggestion
Co-authored-by: Asteroth <[email protected] >
Co-authored-by: Asteroth <[email protected] >
2021-05-05 00:52:11 -04:00
Joshua Glatt
144d484c85
Replace rand() calls with a Random class ( #3332 )
2021-05-04 18:26:06 -07:00
the-maddin
3c809a9bb5
Fix qtfred runtime warning
...
Initialize QApplication before call to
QCoreApplication::applicationDirPath as requested
in warning
2021-05-04 17:05:00 +02:00
the-maddin
1c1ee910fb
Create model for ListView of Checkboxes
...
which contain additional undisplayed data. For
example the initialShips/initialWeapons lists,
which refer to the internal indices of player
ships/weapons.
2021-05-04 15:19:10 +02:00
the-maddin
6f2e707f5a
Fix qtfred deprecations
2021-05-04 12:49:28 +02:00
the-maddin
3a427d923b
Fix deprecation warning
...
(cherry picked from commit ffa0ac90b8769ba3ac6575fdc2aaad34b195e85e)
2021-05-04 12:48:53 +02:00
Goober5000
a663a7d916
Merge pull request #3408 from Goober5000/for_sexps_known_fix
...
tweak short-circuiting on the for-* sexps
2021-05-03 11:41:05 -04:00
Goober5000
42d96d967e
Merge pull request #3397 from Goober5000/handle_weapon_none
...
handle weapon "None" properly
2021-05-03 11:40:54 -04:00
Goober5000
a3c5186635
add missing newlines in several mprintf statements ( #3409 )
...
Fixes #3407 , and I used a regex search to find what I hope are all other examples.
2021-05-02 23:53:40 -04:00
Joshua Glatt
cf7fa02e6d
Fix variable replacement in text in briefings and debriefings ( #3385 )
...
* fix variable replacement in briefings/debriefings
* remove unused local variables
* multi server-side cleanup
* add client-side text replacement in multi
2021-05-02 20:46:56 -07:00
Goober5000
72aa1eebc9
tweak short-circuiting on the for-* sexps
...
If the `for-players` collection has no valid arguments, don't short-circuit, just to be on the safe side.
Don't short-circuit at all for the `for-ship-*` sexps, because ships can arrive and depart.
2021-04-29 23:52:21 -04:00
Goober5000
28f60df7fa
Merge pull request #3406 from MageKing17/bugfix/avoid-negative-lookup-in-loadout
...
Avoid negative lookup when parsing loadouts.
2021-04-25 19:00:44 -04:00
MageKing17
bed18012d6
Avoid negative lookup when parsing loadouts.
...
#3271 changed the logic of `stuff_token_list()` in such a way that the supplied index being used to access an array was no longer skipped if it was invalid; naturally, this means that this warning was now being inevitably followed up by an out-of-bounds array access. Adding a `!skip_this_entry` check should hopefully fix the problem while still allowing the loadout count parsing code below it to run, which was presumably the reason the `continue` statement was replaced with the `skip_this_entry` variable in the first place. Fixes #3405 .
2021-04-25 11:10:55 -07:00
Goober5000
d43f30053d
Merge pull request #3404 from scp-fs2open/revert-3400-apng_fix
...
Revert "Fix APNG Animation Framecounter"
2021-04-24 22:43:40 -04:00
MageKing17
76dccbe07d
Revert "Fix APNG Animation Framecounter"
2021-04-24 18:53:52 -07:00
Goober5000
3eafcde138
Merge pull request #3403 from MageKing17/bugfix/avoid-shiphit-negative-array-access
...
Avoid out-of-bounds array access if killed by a parentless weapon.
2021-04-24 21:13:38 -04:00
Goober5000
ca7065df46
Merge pull request #3400 from BMagnu/apng_fix
...
Fix APNG Animation Framecounter
2021-04-24 18:39:39 -04:00
Goober5000
cedf66cb31
Merge pull request #3402 from Baezon/fix-edge-checks
...
Fix fov_edge_checks
2021-04-24 18:39:32 -04:00
Baezon
03a3fbdc1c
fix fov edge checks
2021-04-24 17:10:20 -04:00
MageKing17
9c6661e0e8
Avoid out-of-bounds array access if killed by a parentless weapon.
...
While there's code to avoid accessing the parent object of a parentless beam, there's no equivalent code to avoid accessing the parent object of a parentless weapon. This fixes this inconsistency.
2021-04-24 13:11:35 -07:00
Birk Magnussen
6bea921fbe
Add short explanation
2021-04-24 23:04:00 +09:00
Birk Magnussen
79f5eda0d6
Fix APNG Animation Framecounter
2021-04-24 16:00:09 +09:00
Baezon
4e4c8449fd
Merge remote-tracking branch 'upstream/master' into poof-overhaul
2021-04-22 00:06:03 -04:00
Baezon
7980891b48
overhaul poof handling
2021-04-22 00:05:22 -04:00
Goober5000
3aa61dfccb
Merge pull request #3396 from Goober5000/is_visible_tweak
...
make is-ship-visible default to the first player
2021-04-20 00:00:31 -04:00
Goober5000
a6a7482467
handle weapon "None" properly
...
If the secondary weapon selection is None, the ammo count will be based on an incorrect weapon. So guard against that.
Fixes #3393 .
2021-04-19 23:38:08 -04:00
Tyler Blount
0febfb3545
Merge pull request #3394 from JohnAFernandez/Fix-that-annoying-fred-freezes-when-open-too-long-bug
...
Keep Fred from freezing
2021-04-19 21:18:48 -06:00
Goober5000
e1c8f5d2ed
make is-ship-visible default to the first player
...
To be more user-friendly, and to accommodate buggy retail missions, make the one-argument version of `is-ship-visible` default to the first player in multiplayer mode.. Also, change the warning to an mprintf.
2021-04-19 23:04:27 -04:00
Goober5000
6ce2a445fe
retail -> builtin
2021-04-19 22:28:29 -04:00
Goober5000
96ae629ec6
qtfred
2021-04-19 22:28:29 -04:00
Goober5000
1b9577eb85
add OPF_CUSTOM_HUD_GAUGE and apply it to relevant sexps
2021-04-19 22:28:29 -04:00
Goober5000
beeb18b46c
Merge the argument list for OPF_HUD_GAUGE and OPF_HUD_GAUGE_NAME. Call it OPF_RETAIL_HUD_GAUGE.
2021-04-19 22:28:29 -04:00
JohnAFernandez
44343f8d1e
Put a bandaid on Fred freezing
...
Could be because of variable overflows or from `thistime` somehow being much smaller than `lasttime`.
Hard to find the root cause, but manually setting the memory to bad values will no longer cause the freezing with this patch.
2021-04-19 22:00:46 -04:00
Taylor Richards
424c69d1e5
Merge pull request #3379 from notimaginative/fix_chat_error_handling
...
address issues with error handling in chat_api
2021-04-18 19:46:39 -04:00
JohnAFernandez
6d1354f1f6
Explicitly check that the type is a ship. ( #3389 )
...
Not all ships in the ships array are ships (if they were turned into observers), so we need to explicitly check that they are ships.
2021-04-18 05:11:30 +00:00
Tyler Blount
d5c4f3e5c7
Merge pull request #3348 from TRBlount/fix/display_name_regression
...
Strip hashes from explicitly defined display names in tables.
2021-04-17 23:03:54 -06:00
JohnAFernandez
89bd64f4ab
Make sure the Netgame state is set to prevent a crash ( #3339 )
...
If the client tries to respawn a player when the server is trying to end the game it will lead to a crash on the client side. This sets the client's game to the correct state when an end game packet is received and adds extra checks before respawning.
2021-04-17 23:49:54 -04:00
Tyler Blount
417739665c
Strip hashes from explicitly defined ship and weapon display names
2021-04-17 17:07:41 -06:00
Taylor Richards
11f2920b4f
add variant of game update packet to tell PXO we want firewall status
2021-04-17 17:47:15 -04:00
Taylor Richards
9e4ab292ac
fix game announcement issue causing first firewall check to fail
2021-04-16 18:35:46 -04:00
Taylor Richards
51addab005
add notification for PXO firewall test
2021-04-16 18:34:48 -04:00
MageKing17
e236a79773
Make an invalid variable name throw an error. ( #3373 )
...
There were a few assertions in the SEXP code that would trip if an invalid variable name were specified in a SEXP, but nothing that actually stopped a Release build from performing an out-of-bounds array access if someone made a typo in notepad. Since, as far as I could tell, everything should go through `get_sexp_text_for_variable()` first, I changed its `Assert()` into an `Error()` that should hopefully ensure that we avoid ever doing anything with `Sexp_variables[-1]`.
2021-04-14 21:26:11 -04:00
JohnAFernandez
d523f0aef3
Make Sure Special Shield Hitpoint Max Gets Transferred ( #3383 )
...
Since the shield strength of the ships is being copied, you need to copy the special shield hitpoints, too, just like for hull.
2021-04-14 21:07:31 -04:00
Taylor Richards
697c009fb3
address issues with error handling in chat_api:
...
- detect server connection error messages before blindly
moving to user login (crash fix)
- detect read errors and fail accordingly (crash fix)
- allow server disconnect to run even if we aren't connected (cleanup & reset)
2021-04-12 12:59:04 -04:00
JohnAFernandez
1f918fd4c6
Allow Fred to Edit and Allow Command briefs in FRED ( #3372 )
...
* Allow Fred to Edit and Allow Command briefs in FRED
They are currently allowed in the game, but not being allowed in Fred was an oversight of mine.
* Allow Command brief saving in qtFRED
2021-04-11 13:50:25 -04:00
Asteroth
3ea7a6d1ba
Merge pull request #3369 from Baezon/cull-generic-debris
...
Properly cull generic debris
2021-04-10 21:44:56 -04:00
David Gibson
743989525b
Implemented index caching for hooks refering to ship or weapon info objects.
2021-04-10 20:41:22 -05:00
David Gibson
5bca1417c2
Vectorized the hook condition lists and began chaching information inside the hook at creation to avoid string comparisons in play. CHC_VERSION, CHC_STATE, and CHC_APPLICATION converted.
2021-04-10 20:18:29 -05:00
Baezon
633cd88e83
modernize use nullptr
2021-04-10 19:38:18 -04:00
Baezon
7431aba995
properly cull generic debris
2021-04-09 21:35:26 -04:00
JohnAFernandez
328bebe83a
Fix event parsing by setting flags to zero before loading. ( #3363 )
2021-04-07 23:41:14 -04:00
Goober5000
94e4f3d4cd
Merge pull request #3362 from Baezon/no-ship-subsys-lookup
...
Remove unecessary ship_get_subsys in model_rotate_gun
2021-04-06 10:48:09 -04:00
Baezon
b57573c439
remove unecessary ship-get-subsys
2021-04-06 02:24:05 -04:00
Goober5000
0b1d1eed56
Merge pull request #3357 from notimaginative/fix_briefing_music_reset
...
Only close common_select when we should
2021-04-05 23:52:35 -04:00
Goober5000
123feba557
Merge pull request #3353 from Goober5000/escape_exclamation
...
make double-character consolidation reusable, and reuse it
2021-04-05 23:50:39 -04:00
Taylor Richards
8c64d73a18
Merge pull request #3358 from notimaginative/fix_main_hall_sounds_in_multi
...
fix main hall sounds/music not getting stopped on multi clients
2021-04-04 08:19:43 -04:00
Taylor Richards
e156f15561
fix main hall sounds/music not getting stopped on multi clients
2021-04-03 11:08:28 -04:00
Taylor Richards
3e1d89ba53
only close common_select when we should
2021-04-03 10:22:11 -04:00
Asteroth
4f7bad2a5c
Merge pull request #3347 from Baezon/fireball-lod-fix
...
Make fireballs default to 1 LOD
2021-04-02 16:01:39 -04:00
Goober5000
dd621e8904
Merge pull request #3351 from PhantomHoover/feature/profile-script-hooks
...
Add profiling trace for scripting hooks
2021-04-02 15:07:17 -04:00
Goober5000
396d2c55a9
make double-character consolidation reusable, and reuse it
...
This moves the ## to # escape sequence logic from `mission_process_alt_types` to its own function where it can be used elsewhere (such as for ship class and weapon class display names that need to do the same thing). Also, this introduces a !! escape sequence for exclamation points that is needed for exclamation points to be used in scripts, as @naomimyselfandi pointed out.
2021-04-02 00:16:19 -04:00
Goober5000
8f5064b353
actually use GS_STATE_INVALID
...
Make `gameseq_get_state` return GS_STATE_INVALID if the stack is invalid.
With this change, the check for stack validity can be removed in `gr_flip`.
2021-04-02 00:11:45 -04:00
Phantom Hoover
782f6f100d
Add profiling trace for scripting hooks
2021-04-01 11:54:09 +01:00
Baezon
6ec1f45997
neb fog set up fixes
2021-04-01 02:17:49 -04:00
Baezon
4f76c441d6
default to 1 lod
2021-03-31 18:00:00 -04:00
Asteroth
a2bd895b7b
Merge pull request #3344 from Baezon/fix-huge-targeting-regression
...
Fix regression with huge/small only targeting
2021-03-31 16:47:17 -04:00
JohnAFernandez
a4cf53694d
Merge pull request #3346 from JohnAFernandez/Fix-3007
...
Add a safety check to the $On Frame: Hook
2021-03-31 16:46:11 -04:00
JohnAFernandez
6bd7a43e3d
Add a safety check to the $On Frame: Hook
...
So #3007 is a larger bug than just trying to access the player's target. The real problem is that the game state is not changed from `GS_STATE_GAME_PLAY` during the mission load when restarting the mission. So the script thinks it's in the mission, tries to access the target and then crashes. But this won't be the only bug. Any script that tries to access data on Frame will run into possible problems on mission restart.
2021-03-31 15:25:38 -04:00
Baezon
fffc0ebf8b
fix name of class #3344
2021-03-30 22:03:25 -04:00
Goober5000
f2426de80b
Merge pull request #3340 from Goober5000/num_valid_arguments_fix
...
make num-valid-arguments work for the for-* sexps
2021-03-30 19:32:26 -04:00
Goober5000
27f6088117
make num-valid-arguments work for the for-* sexps
...
This adds a hook into the for-* handlers to return the number of valid arguments. Fixes a bug reported on Discord.
2021-03-30 18:51:24 -04:00
Goober5000
30c76f36ce
Merge pull request #3342 from Goober5000/message_list_saving
...
modify saving of edited messages
2021-03-30 18:42:39 -04:00
Goober5000
35094851f2
modify saving of edited messages
...
Instead of saving based on the m_cur_msg index, which may have been reset to -1, save on the most recent positive index. This should keep track of modified text and dropdowns even when m_cur_msg is set to -1 when the message list loses focus.
Fixes #3308 .
2021-03-30 17:32:02 -04:00
Fabian Woltermann
b562cf822e
Merge pull request #3345 from Baezon/fix-strafing-bug
...
My kingdom for a semicolon!
2021-03-30 09:15:42 +02:00
Baezon
62942557d5
typo
2021-03-30 00:19:53 -04:00
Baezon
4d68bed436
fix huge targeting regression
2021-03-29 22:42:50 -04:00
Asteroth
19d5b8e68e
Merge pull request #3329 from PhantomHoover/feature/split-profile-columns
...
Split frame profile trace into two onscreen columns if needed
2021-03-29 15:34:55 -04:00
Goober5000
9dc50706a7
Merge pull request #3309 from Baezon/turret-alt-math-fix
...
Update Turret_alt_math for moving subsystems
2021-03-28 18:06:05 -04:00
Goober5000
f2a0e35959
Merge pull request #3333 from Goober5000/no_xstr_entry_suppress
...
log missing XSTR strings only once
2021-03-28 15:17:24 -04:00
JohnAFernandez
e637eea2fb
Merge pull request #3337 from JohnAFernandez/Interpolation-Bug
...
Fix a rare but eventual crash in the interpolation code.
2021-03-28 10:00:47 -04:00
Fabian Woltermann
f3e3769056
Merge pull request #3266 from The-E/fix/3250_dynamic_nebula_detail
...
Make nebula poof detail settings partially dynamic
2021-03-28 13:18:26 +02:00
JohnAFernandez
e218f687a9
Fix a rare but eventual crash in the interpolation code.
...
I don't know when this was introduced but the bug is extremely obvious once someone hit the crash. It should just be using the timestamp that the packet was received, not trying to put that timestamp into a vector whose index is server frame numbers.
2021-03-28 05:07:27 -04:00
Baezon
5e10fccdbf
Merge remote-tracking branch 'upstream/master' into turret-alt-math-fix
2021-03-27 21:12:30 -04:00
Goober5000
12672d0c2b
Merge pull request #3310 from Baezon/fix-fov-edge-checks
...
Fix Fov_edge_checks
2021-03-27 17:22:37 -04:00
Goober5000
de7081fbb3
Merge pull request #3335 from Goober5000/missing_hud_gauge_warning
...
change reticle log statements to warnings
2021-03-27 15:19:47 -04:00
Goober5000
d73e4d4dec
change reticle log statements to warnings
...
Most guages in hud_guages.tbl will display a Warning if they can't be loaded, but the reticle is an exception - it only prints a log statement. This PR changes it to be consistent with the rest of the HUD gauges.
Fixes #3090 .
2021-03-27 14:19:59 -04:00
Fabian Woltermann
aeefcb4657
Remove an unused constant
2021-03-27 16:23:35 +01:00
Fabian Woltermann
023dcfca76
Use the screen size as the break value, remove it from the Neb detail settings
2021-03-27 16:22:20 +01:00
Fabian Woltermann
c6e9f954f0
Use the screen size as the break_* value
2021-03-27 16:11:26 +01:00
Fabian Woltermann
961d5eb171
Use bitmap height * 2 to make sure only completely off-screen poofs are culled
2021-03-27 16:11:26 +01:00
Fabian Woltermann
1a66c97c2e
After loading the nebula poofs, resize the break_x and break_y values so they are equal to the largest poof bitmap in use.
...
Also reduce the break alpha value by 90% for all detail levels.
2021-03-27 16:11:26 +01:00
Goober5000
00e2c2ad52
log missing XSTR strings only once
...
The "No XSTR entry in strings.tbl for index %d" message was previously printed to the log every time the string was accessed, which for commonly-used strings will clutter up the log. This makes the message only appear once per missing index.
2021-03-26 23:22:06 -04:00
JohnAFernandez
8991fc67cd
Merge pull request #3331 from JohnAFernandez/Fix-Multi-Gamestate-Bug
...
Check for these states
2021-03-26 20:47:40 -04:00
JohnAFernandez
7641abf41c
Check for these states
...
Because GS_STATE_MULTI_MISSION_SYNC is actually shared for a few different multi screens.
2021-03-26 20:18:39 -04:00
Phantom Hoover
871f7a822e
Split frame profile trace into two onscreen columns if needed
2021-03-26 20:33:01 +00:00
m!m
ca66664eac
Merge pull request #3327 from Shivansps/over_alloc_fix
...
fix over alloc to store lz4 offsets
2021-03-26 18:33:21 +01:00
m!m
4c1b3551b4
Merge pull request #3328 from ngld/fix/keep_stdout
...
Add FSO_KEEP_STDOUT env var to skip the AttachConsole() call
2021-03-26 18:32:34 +01:00
Asteroth
07d47cb984
Merge pull request #3319 from Baezon/add-fog-color
...
Allow for setting of nebula fog color explicitly
2021-03-25 21:20:55 -04:00
Allen A. Babb
ce9ee8c264
Merge pull request #3324 from z64555/fix/issue_3322
...
Fixes #3322
2021-03-25 18:43:15 -05:00
ngld
8039650248
Add FSO_KEEP_STDOUT env var to skip the AttachConsole() call
...
Fixes #3317
2021-03-26 00:03:51 +01:00
Shivansps
cd2b578a1b
fix over alloc to store offsets
2021-03-25 19:57:48 -03:00
Shivansps
052879b3e4
POF 2118 and SLC2 support
2021-03-25 19:13:12 -03:00
z64555
85ec8251e3
When in bind mode, identify mouse as CID_JOY0 instead of CID_MOUSE. Fixes #3322 .
2021-03-25 09:41:37 -05:00
JohnAFernandez
7e51a13c3a
Merge pull request #3296 from Shivansps/compressed-files
...
LZ4 Compressed files Support
2021-03-25 07:08:06 -04:00
Baezon
538b2c6c95
handle lab and use empty string #3319
2021-03-24 13:25:16 -04:00
wookieejedi
d3a70e8ed6
Merge pull request #3320 from wookieejedi/disable-spew-whole-ship
...
Add `no impact debris` for whole ship
2021-03-24 00:56:09 -04:00
Baezon
9dc68849d6
unused variable
2021-03-23 23:59:05 -04:00
wookieejedi
b6bab87601
restore original comment
2021-03-23 23:44:03 -04:00
wookieejedi
b8d868f828
restore comment
2021-03-23 23:43:31 -04:00
wookieejedi
01e6a57aaa
remove un-needed section
2021-03-23 23:41:57 -04:00
wookieejedi
e0fe9227aa
clarify whitespace
2021-03-23 23:21:40 -04:00
Baezon
803751959a
rename variable for no shadowing
2021-03-23 23:20:11 -04:00
wookieejedi
9597b5962e
clarify ship override for subsystems debris
2021-03-23 23:16:59 -04:00
wookieejedi
792f74b33e
Add no impact debris flag for entire ship model
...
Previously `no impact debris` flag was only an option for use on subsystems. This PR adds that flag for the entire ship. It also turns off the impact spew of debris for all subsystems if enabled on the ship.
2021-03-23 23:04:08 -04:00
Baezon
5181e71dab
Add explicit fog color
2021-03-23 22:57:54 -04:00
JohnAFernandez
3d0e0f80ae
One more hiccup
2021-03-23 20:31:04 -04:00
JohnAFernandez
251125913a
How many mistakes is it now? No idea.
2021-03-23 20:31:04 -04:00
JohnAFernandez
89d2d6ed46
Fix missile indicators not going away
...
Add the should be dead flag, in order to properly make the missiles go away, and not just detonate.
2021-03-23 20:31:04 -04:00
JohnAFernandez
06f198afc1
Forgot one
2021-03-23 20:31:04 -04:00
JohnAFernandez
19a289539a
More Whitepsace and Dealing with Crazy old CI
2021-03-23 20:31:04 -04:00
JohnAFernandez
c14653b391
Whitespace Adjustments
2021-03-23 20:31:04 -04:00
JohnAFernandez
2527bf31c7
Upgrade velocity compression in OO packet
...
Previously, the velocity could be off by up to 1 m/s. This gives that packing function one more byte to work with, so that we have a lot more accuracy to work with.
2021-03-23 20:31:04 -04:00
JohnAFernandez
184107283a
Properly Set net_signatures for wing ships
...
Previously wing ships were being given a net signature that was one too large.
2021-03-23 20:31:04 -04:00
JohnAFernandez
42c19cdfee
Fix Missile Syncing Between Server and Client
2021-03-23 20:31:04 -04:00
JohnAFernandez
3830534978
Fix implementation of multi_pack_unpack_desired_vel_and_desired_rotvel
2021-03-23 20:31:04 -04:00
JohnAFernandez
48eef6566d
Multi Version bump for 21_2
...
since many of the fixes and features require a multi bump.
2021-03-23 20:31:04 -04:00
the-maddin
b253442545
Add -pilot cmdline flag ( #3316 )
...
* Cmdline parsing for `-pilot "<name>"`
Add cmdline parameter `-pilot` with required
argument name and export name as global var
`Cmdline_pilot`.
* Expose to scripting `isAutoselect`
Setting `-pilot` flag sets `ui.isAutoselect()` true
(as does `-benchmark_mode`).
* Skip pilot selection
and call `player_finish_select` with the given
player instead.
* More useful error message on pilot load error
Also display callsign
* Add pilot name as scripting variable
* Don't expose pilot flag to launchers
* make stored flag param `const`
2021-03-22 21:14:57 +00:00
Baezon
26314c9b97
Merge remote-tracking branch 'upstream/master' into poof-overhaul
2021-03-22 00:37:17 -04:00
Baezon
5ebb12e47c
overhaul poof system
2021-03-22 00:35:31 -04:00
JohnAFernandez
1d5e9794d6
Merge pull request #3263 from BMagnu/fix_unicode_stringstbl
...
Fix strings.tbl in unicode mode
2021-03-21 17:41:55 -04:00
Asteroth
b7a9f545fd
Merge pull request #3304 from BMagnu/weapon_penetrate_flag
...
Add pierce ship weapon flag
2021-03-21 15:12:45 -04:00
JohnAFernandez
9541e244d1
Make sure objects and ships get cleared if leaving mission sync ( #3314 )
...
This properly clears ships if you are leaving the sync state for any other state besides the gameplay state.
2021-03-21 14:54:32 -04:00
Asteroth
f12d202afe
Merge pull request #3278 from Baezon/exponential-fog
...
Switch to exponential fog and other nebula visibility improvements
2021-03-20 16:45:24 -04:00
Goober5000
507a5f1de8
Merge pull request #3312 from Goober5000/per_mission_chase_view
...
add mission flag for starting missions in chase view
2021-03-20 15:36:11 -04:00
Baezon
3810b039f5
Merge remote-tracking branch 'upstream/master' into exponential-fog
2021-03-20 10:39:41 -04:00
Baezon
827754d6de
minor fixes
2021-03-20 02:31:47 -04:00
Goober5000
d455e17e34
add mission flag for starting missions in chase view
...
Follow-up to #3305 . Some mods may want one or two missions to start in chase view without having every single mission default to chase view. So this adds a mission flag (with FRED and qtFRED support) that will enable this on a per-mission basis.
2021-03-20 00:21:27 -04:00
Baezon
7a7999ca56
Merge remote-tracking branch 'upstream/master' into poof-overhaul
2021-03-19 20:43:17 -04:00
Shivansps
db360820a9
fix build check
2021-03-19 20:51:09 -03:00
Baezon
804a222041
unused variable
2021-03-19 19:44:11 -04:00
Shivansps
6dab1e464f
Merge branch 'compressed-files' of https://github.com/Shivansps/fs2open.github.com into compressed-files
2021-03-19 20:21:02 -03:00
Shivansps
86c45309e8
requested changes and simplified if on random access function
2021-03-19 20:20:58 -03:00
Birk Magnussen
4f4690a482
Fix Names and spawn on destruct
2021-03-20 03:52:54 +09:00
Baezon
1ca60e1d2f
fix fov_edge_checks
2021-03-19 11:48:15 -04:00
JohnAFernandez
420c7ec171
Play directive completion sounds for clients ( #2900 )
...
* Allow Text to show failure on Clients
Function was accidentally returning false before sending an update on failure.
* Play directive sounds for clients
This adds a short client version of the function that initiates the directive completion sound.
* forgot to remove a failed experiment
2021-03-19 05:39:05 -04:00
Birk Magnussen
011f7e4d6c
Change flag to Table entry
2021-03-19 18:30:39 +09:00
Asteroth
8b94e58596
Merge pull request #3284 from Baezon/fix-rand-circle-sphere-bias
...
Fix probability distribution of vm_vec_random_in_circle/sphere
2021-03-19 02:23:31 -04:00
Asteroth
b304ccbe96
Merge pull request #3305 from Strygon/chaseviewtest
...
Adding "Start missions in Chase View by default" flag in game_settings.tbl
2021-03-19 02:23:08 -04:00
Baezon
eb538ffba8
update turret_alt_math for moving subsystems
2021-03-19 02:13:20 -04:00
JohnAFernandez
5bb934119c
Limit instances of Client Collisions to Avoid Instant Death ( #3164 )
...
* Limit instances of Client Collisions to Avoid Instant Death
* Set timestamps correctly (take 2)
* Handle server check the same everywhere
* Clearer Logic Here
2021-03-18 17:24:08 -04:00
Fabian Woltermann
8c7a8e42b2
Merge pull request #3307 from The-E/fix/3206_submodel_property_parsing
...
Fix for #3306
2021-03-18 17:29:10 +01:00
Fabian Woltermann
9a06e0727c
Make sure we check for any carriage return characters that may sneak in too
2021-03-18 16:52:15 +01:00
Strygon
08603009fb
removed the redundancy
2021-03-17 20:40:02 +01:00
JohnAFernandez
609ed4ed94
Remove the fireball limit ( #3224 )
...
* Remove the fireball limit
* Handle Feedback
(Without the main PC, so really hoping I don't do any typos)
2021-03-17 14:21:06 -04:00
Strygon
3ab9f85a7a
ditto
2021-03-17 17:50:19 +01:00
Strygon
45db675c35
Renaming the bool
2021-03-17 17:49:43 +01:00
Strygon
5b01a68352
Adding a few forgotten parts of the ChaseViewDefault code
2021-03-17 17:39:27 +01:00
Strygon
67cc6a66eb
Adding ChaseView Flag functionality
...
This is where the game would put the player into chaseview/third person if the flag for it is set in game_settings.tbl
2021-03-17 17:38:32 +01:00
Strygon
842c84da7d
Adding the actual flag for default chase view
2021-03-17 17:36:25 +01:00
Strygon
6598c25fda
Adding support for Chase View flag
2021-03-17 17:35:39 +01:00
Birk Magnussen
2a73fb340f
Add pierce ship weapon flag
2021-03-17 17:39:04 +09:00
Baezon
edee63491d
Merge remote-tracking branch 'upstream/master' into poof-overhaul
2021-03-17 00:46:38 -04:00
Goober5000
d716433848
Merge pull request #3300 from Baezon/fix-flak-substitute-assert
...
Fix assert with combining flak and non-flak using substitute
2021-03-17 00:34:14 -04:00
Baezon
5bd351d42a
initial poof overhaul
2021-03-16 11:33:34 -04:00
Shivansps
ad60240eb6
Updated comment header. Feature Complete.
2021-03-16 10:11:48 -03:00
Baezon
29b03cd49f
implement beam substitution
2021-03-15 23:16:05 -04:00
Shivansps
f8df97b489
fix seek_end on comp_fseek
...
This where causing the pcx issues
2021-03-15 23:59:39 -03:00
Asteroth
95235b353b
Merge pull request #2885 from Baezon/expose-huge-small-targeting
...
Expose ability to be targeted by 'huge' and 'small only' weapons
2021-03-15 22:32:22 -04:00
Shivansps
d5feddfb8a
fixed comp_fseek return
2021-03-15 20:08:58 -03:00
Baezon
ce1907c52a
flak should use normal mflash methods
2021-03-15 18:30:47 -04:00
JohnAFernandez
895dbdddb8
Merge pull request #3295 from Goober5000/spacebar_popup
...
add text to context popup
2021-03-15 09:44:00 -04:00
Baezon
f5e32fa1a2
Merge remote-tracking branch 'upstream/master' into exponential-fog
2021-03-15 02:27:22 -04:00
Shivansps
9fa3baa458
fix typo
2021-03-14 23:43:22 -03:00
Shivansps
4b3760dfb4
more build fixes
2021-03-14 21:17:07 -03:00
Shivansps
142d586a1c
and even more build check fixes
2021-03-14 20:29:26 -03:00
Shivansps
95103dfcb8
more build check fixes
2021-03-14 19:57:04 -03:00
Shivansps
f50ea26051
Change CI struct name to upper case
2021-03-14 19:36:20 -03:00
Shivansps
983dd0b6ca
changes for build check errors
2021-03-14 19:21:13 -03:00
Shivansps
3bdc5e0c27
Merge branch 'master' into compressed-files
2021-03-14 17:57:53 -03:00
Baezon
643cb6a2be
update scripting functions
2021-03-14 15:37:43 -04:00
MageKing17
2348d4db64
Merge pull request #3297 from MageKing17/bugfix/sexp-ammo-safety-regression
...
Fix ammo safety regressions.
2021-03-14 11:45:04 -07:00
MageKing17
77534926c8
Comment clarification.
2021-03-14 11:16:54 -07:00
Shivansps
ba6a471054
comment debug statements
2021-03-14 14:55:20 -03:00
MageKing17
47c409a3d5
Fix ammo safety regressions.
...
When various SEXP functions related to ammo were consolidated back in June (in commit 54409ec928 ), certain safety catches meant to avoid having too much ammo or the wrong ammo capacity after changing weapons were lost. This commit adds code that should be functionally equivalent.
2021-03-14 10:43:06 -07:00
Shivansps
ce44e3522b
updated header
2021-03-14 14:35:04 -03:00
Goober5000
593fbdbf21
add text to context popup
...
The Space Bar is a valid shortcut, so indicate as such. Fixes #3289 .
2021-03-14 12:47:15 -04:00
Shivansps
c1b87bc2b6
Add missing CAP to comp goal position.
...
It should not be needed but at least this stops crashing when you use a unsupported format in compression (like, audio and pcx)
2021-03-14 13:34:13 -03:00
Shivansps
1f164dbb64
Removed isCompressed from compression_info
2021-03-14 11:12:00 -03:00
Shivansps
1275cbfd83
Proper lz4 reference and added position checks
...
LZ4 moved to lib folder and added cmakelists.
Added several position check to match cfilearchive ones for compressed files.
Changed header check to int.
2021-03-14 10:47:11 -03:00
Goober5000
69be3c8f35
Merge pull request #3293 from Goober5000/hotkey_range_check
...
simple hotkey range check
2021-03-14 00:04:14 -05:00
Goober5000
85fc1f7cea
simple hotkey range check
...
This prevents the message from firing if the wing index is -1 which would cause an array underflow. Fixes #3280 .
2021-03-13 23:15:16 -05:00
Goober5000
59a5a343c8
Merge pull request #3291 from Baezon/fix-contrail-a_decay_exponent
...
Peoperly initialize alpha decay exponent for contrails
2021-03-13 22:14:38 -05:00
Baezon
a3ce01f250
properly initialize a_decay_exponent
2021-03-13 20:33:54 -05:00
Shivansps
20cccdbf20
Updated Implementation
...
Moved the compression functions to separated files, added dynamic blocksize support for LZ4 and a decoder buffer to make sure every block is only read from file and decoded only once.
2021-03-13 17:15:04 -03:00
Asteroth
4b64c43ef8
Merge pull request #3274 from Baezon/shooter-damaging-weapons
...
Add shooter damaging weapons
2021-03-13 15:03:52 -05:00
Asteroth
4307d12762
Merge pull request #3285 from Baezon/fix-fit-and-set-obj-facing
...
Bugfix for FIT with set-object-facing
2021-03-13 14:59:52 -05:00
Asteroth
0d3d336d65
Merge pull request #3287 from Baezon/fix-aburn-trail
...
Properly initialize trail alpha exponents for afterburner trails
2021-03-13 14:59:24 -05:00
Shivansps
077338086a
Improved implementation
...
Model load and tech room now works, it crashes at mission load.
2021-03-12 19:58:49 -03:00
Birk Magnussen
0b2ee5f76b
Modify other file reading method for new encoding conversion
2021-03-13 07:50:41 +09:00
Baezon
256a047fab
fix rand circle and sphere probability distribution
2021-03-12 16:13:52 -05:00
Baezon
222799b1a1
initialize trail alpha exponents for aburn trails
2021-03-12 16:03:50 -05:00
Fabian Woltermann
649fe7e3ce
Merge pull request #3286 from Baezon/fix-to-the-fixed-fog
...
Fix for nebula fogging distance
2021-03-12 10:54:50 +01:00
Baezon
2e5e25dc09
revert #2222 and fix comment
2021-03-11 23:28:23 -05:00
Shivansps
3f9218e671
1st attempt at implementation
...
I just dumped everything into cfilearchive to avoid a fight with the includes that i cant win for now.
It dosent work, DDS utils complains about DDS filecode.
2021-03-11 20:51:28 -03:00
Birk Magnussen
3003d0589d
Change validation to own function
2021-03-12 06:34:27 +09:00
Birk Magnussen
4bd15d43da
Fix Warning due to enum class
2021-03-12 06:04:10 +09:00
Birk Magnussen
8df62e99f5
Change Enum to Enum Class
2021-03-12 05:54:25 +09:00
Birk Magnussen
d93c9c4220
Adapt parsing exceptions
2021-03-12 05:45:09 +09:00
Birk Magnussen
1b5fd3c5fd
Move Conversion functions to util/unicode
2021-03-12 05:42:44 +09:00
Baezon
0612a72c2f
fix FIT with set-object-facing
2021-03-11 15:41:55 -05:00
Baezon
22f7ff3443
fix bias from random_circle/sphere
2021-03-11 03:02:24 -05:00
Goober5000
5105f35a31
Merge pull request #3271 from Goober5000/better_parse_lists
...
rewrite stuffing of lists
2021-03-10 19:19:39 -05:00
Goober5000
f025572110
rewrite stuffing of lists
...
Consolidate all the functions which parse lists of data. They're almost the same except for the data itself, so use templates.
As for the templated function which handles the list, boost the robustness by adding additional checking and error messages.
2021-03-10 18:50:12 -05:00
Goober5000
ed2cc47093
Merge pull request #3269 from Goober5000/annotation_fix
...
Various annotation fixes
2021-03-10 18:49:39 -05:00
Goober5000
4486b9ee10
Merge pull request #2923 from z64555/controls3
...
Controls3 - Primary/Secondary Bindings
2021-03-10 15:53:52 -05:00
Asteroth
e8603e1617
Merge pull request #3247 from Baezon/better-subsys-attacking
...
Add improved subsystem attacking
2021-03-10 12:21:53 -05:00
Goober5000
f67860a502
Merge pull request #3283 from Goober5000/fix_isdigit_type
...
fix character type for isdigit
2021-03-10 11:37:54 -05:00
Goober5000
497a0e0805
fix character type for isdigit
...
Just like the `std::toupper` and `std::tolower` functions (see PR #3226 ), `std::isdigit` is designed to work with regular `char`, not `unsigned char`.
2021-03-10 10:51:56 -05:00
Goober5000
470a996b11
Merge pull request #3281 from Goober5000/beam_range_fxi
...
a few turret fixes
2021-03-09 23:09:59 -05:00
Goober5000
5bb9f427b4
a few turret fixes
...
This correctly calculates the turret position from the center (zero position) of its submodel instead of using the offset from the main model.
This patches a few more parts of the code and also adds a missing locale argument.
2021-03-09 22:39:13 -05:00
Goober5000
52df877ed9
Merge pull request #3276 from Goober5000/special_arg_fix
...
add small fix from SEXP containers PR
2021-03-09 21:43:28 -05:00
Shivansps
8292d8c44a
Revert "Merge branch 'arm_fixes'"
...
This reverts commit 2ee128cd88 , reversing
changes made to a2b349855e .
2021-03-09 20:44:43 -03:00
Asteroth
0eefd352d9
Merge pull request #3264 from Baezon/32-poofs
...
Increase max nebula poofs to 32
2021-03-08 14:44:26 -05:00
Baezon
cf2e3e8641
lightning even with 0 poofs
2021-03-08 10:50:27 -05:00
Baezon
78c79ac88d
debug clean up
2021-03-08 01:37:00 -05:00
Baezon
6e54ed3dfc
more exponential fog
2021-03-08 00:09:42 -05:00
Baezon
f60d2d8e30
comment changes
2021-03-07 23:06:30 -05:00
Goober5000
a12a33b189
Merge pull request #3277 from Goober5000/movable_turret_fov_fix
...
Turrets on movable submodels
2021-03-07 21:29:28 -05:00
Baezon
cf3ce54038
comment clarity
2021-03-07 14:20:55 -05:00
Goober5000
483a632c7f
Merge pull request #3243 from Baezon/decouple-asteroids-species
...
Decouple asteroids from species
2021-03-07 13:13:13 -05:00
Goober5000
9a3fc507d6
Merge pull request #3261 from BMagnu/lua_campaignswitch
...
Lua add campaign switch function
2021-03-07 13:10:01 -05:00
z64555
19c0f64736
Upgrade a few Assert()'s into Assertion()'s with error messages
2021-03-07 09:56:21 -06:00
z64555
78ac82d6eb
Replace Int3()'s with UNREACHABLE
...
* control_config_bind_btn uses UNREACHABLE macro when an unknown order is passed to it
2021-03-07 09:20:34 -06:00
Baezon
2dd40bcbd8
typo
2021-03-07 02:00:58 -05:00
JohnAFernandez
5da44a9d72
Merge pull request #3178 from Baezon/generic-debris-enhancement
...
Generic debris expansion and configuration
2021-03-07 00:19:25 -05:00
Goober5000
d75b0f4b4b
additional minor cleanup
2021-03-06 20:03:59 -05:00
z64555
5c9582aefc
Fix bug where "Clear Conflict" button was disabled on Ship tab unless the conflicted items included an axis.
2021-03-06 12:52:48 -06:00
Goober5000
ab478c4a0e
Merge pull request #3275 from Goober5000/uoffset_addendum
...
addendum to u_offset
2021-03-05 22:44:00 -05:00
Goober5000
01daf25fe9
addendum to u_offset
...
This improves PR #3257 by updating the frametime after the beam fires, not before, so that the first frame will always be at offset zero
2021-03-05 22:15:55 -05:00
Goober5000
db73c27a53
add small fix from SEXP containers PR
...
While skimming the differencs in jg18's branch of PR #3253...
https://github.com/jg18/fs2open.github.com/tree/feature/sexp-containers-revised
...I noticed a TODO that is almost certainly a genuine bugfix. As such, it deserves its own PR. The line in question was last modified in 2012 by karajorma, and the bugfix should test for the special-arg in the entire actions tree rather than just the first action.
2021-03-05 22:00:51 -05:00
Baezon
3c53b74e5e
switch to exponential nebula fog
2021-03-04 23:02:24 -05:00
Birk Magnussen
829e0b8b7c
remove bad type modifier
2021-03-04 22:17:16 +09:00
Birk Magnussen
4b60ca467c
Refactor encoding functions
2021-03-04 22:08:50 +09:00
Baezon
d972f353f1
better species name handling and XSTR
2021-03-03 22:05:12 -05:00
Baezon
9c1d1e64cc
better self kill text
2021-03-03 20:22:50 -05:00
Goober5000
abc153e21e
Merge pull request #3273 from NovachenFS2/TranslatedAsteroids
...
Translateable Asteroid Name in Asteroid Fields
2021-03-03 15:26:30 -05:00
Jenna Trassa
9385206e0e
Feedback & lowercase debris code
2021-03-03 20:56:24 +01:00
Goober5000
3674f06400
Merge pull request #3272 from NovachenFS2/AsteroidTimer
...
Translateable Asteroid Impact Time
2021-03-03 14:36:14 -05:00
Goober5000
be780af04d
Merge pull request #3268 from BMagnu/replace-texture-sexp
...
Add replace-texture SEXP
2021-03-03 14:33:21 -05:00
Goober5000
ec1d2e091e
Merge pull request #3262 from Goober5000/enable_multi_for_two_sexps
...
allow two SEXPs to be used in multiplayer that previously couldn't be
2021-03-03 13:59:21 -05:00
Goober5000
106da3c95f
allow two SEXPs to be used in multiplayer that previously couldn't be
...
1) The ship-vanish SEXP (and script function) was already multiplayer-ready
2) The is-ship-visible SEXP was enhanced to add a second argument, which defaults to the player's ship in single-player mode
2021-03-03 13:22:50 -05:00
Jenna Trassa
34649c7543
Translated Asteroid Name in Asteroid Fields
2021-03-03 17:25:37 +01:00
Baezon
0fcfe68164
add self-damaging weapons
2021-03-03 11:08:04 -05:00
Jenna Trassa
8b0e79703a
A translateable Asteroid Impact Time
2021-03-03 14:55:29 +01:00
Baezon
c3c4c21fc2
typo
2021-03-03 02:26:23 -05:00
Birk Magnussen
8471b8e444
Change Preload Error to Warning
2021-03-03 15:48:47 +09:00
Baezon
8a5483db0b
retail name compatability
2021-03-03 01:08:15 -05:00
Baezon
708de001f3
Merge remote-tracking branch 'upstream/master' into decouple-asteroids-species
2021-03-02 19:55:00 -05:00
Birk Magnussen
6cdbb8159b
Change SEXP Syntax, and allow Wings
2021-03-03 06:00:47 +09:00
Goober5000
03dbdf7f09
don't display unmodified annotations
2021-03-02 15:09:28 -05:00
m!m
1561a75b13
Merge pull request #3260 from BMagnu/simulatedspeedoverrides_tb
...
Add scripting API for accessing registered Simulated Speech Overrides
2021-03-02 17:51:49 +01:00
Goober5000
aff1ad40f3
better handling of unexpected characters that come after numbers
2021-03-02 11:31:16 -05:00
Birk Magnussen
19f48e3a10
Tidy up leftover code
2021-03-02 22:17:06 +09:00
Birk Magnussen
2c27707e00
Add replace-texture SEXP
2021-03-02 22:03:28 +09:00
BMagnu and m!m
9a854a7066
Add change to correct typecast
...
Co-authored-by: m!m <[email protected] >
2021-03-02 17:09:20 +09:00
Asteroth
897492e228
Merge pull request #3257 from BMagnu/beam_reset_offset
...
Add flag for beams to track uoffset individually
2021-03-02 03:08:02 -05:00
Asteroth
72d7b1bc9c
Merge pull request #3259 from BMagnu/lssm_warpeffect
...
Added flag to select the warp effect type of LSSM's
2021-03-02 03:07:43 -05:00
Goober5000
14a8db0dda
check for all possible strings
2021-03-01 21:01:01 -05:00
Goober5000
258ffdf56d
a token consisting of a single + or - is not a valid number
2021-03-01 21:00:48 -05:00
Baezon
bd5f709e14
must be 32 bits!!!
2021-03-01 12:14:13 -05:00
Baezon
b6c29e3ffd
increase max poofs to 32
2021-03-01 12:00:37 -05:00
Birk Magnussen
b45cb19f3c
Add changes to the parse exceptions to work with utf8 encoding
2021-03-02 00:05:12 +09:00
Birk Magnussen
e30c919286
Add encoding conversion helpers
2021-03-02 00:03:36 +09:00
Goober5000
c4374d11a9
replace world_to_turret_matrix
2021-03-01 00:02:44 -05:00
Goober5000
3b1aac26e8
remove most of turret_matrix stuff
2021-02-28 23:41:56 -05:00
Birk Magnussen
bbc0f08541
Fix Warpout being affected as well. Fix Messages. Fix Init
2021-03-01 13:36:05 +09:00
Goober5000
d4c6c3e145
turret_norm should now be calculated properly
2021-02-28 21:48:15 -05:00
Goober5000
66b7b011c9
Merge pull request #3256 from Goober5000/switch_sexp
...
add switch and functional-switch operators
2021-02-28 18:00:59 -05:00
Birk Magnussen
2233d2eb9b
Reflect used player object
2021-03-01 01:32:13 +09:00
Birk Magnussen
e9b2047769
Add function to switch campaign
2021-03-01 01:27:14 +09:00
Birk Magnussen
781aa5c638
Fix warning
2021-03-01 00:55:05 +09:00
m!m
b5212d69e4
Merge pull request #3258 from BMagnu/lua_file_cleanup
...
Changed File not closed error to a warning and automatic file close
2021-02-28 16:44:58 +01:00
Birk Magnussen
03eb74e616
Add scripting API for accessing registeres sso's
2021-03-01 00:32:42 +09:00
Birk Magnussen
f0d5c5a499
Remove redundant close
2021-03-01 00:13:49 +09:00
Birk Magnussen
335f2476f9
Added flag to select the warp effect type of lssm's
2021-03-01 00:06:15 +09:00
Birk Magnussen
530916e0fa
Changed File not closed error to a warning and automatic file close
2021-02-28 23:47:07 +09:00
Birk Magnussen
b4791b3b10
Add flag for beams to track uoffset individually
2021-02-28 14:40:25 +09:00
Baezon
4bdb9165ea
bugfix
2021-02-27 22:33:21 -05:00
Goober5000
8d4976dd95
add switch and functional-switch operators
...
Like the C equivalent, these SEXPs allow one action to be taken, or one value to be returned, based on a numeric expression.
2021-02-27 21:56:51 -05:00
m!m
e393503eb2
Merge pull request #3244 from the-maddin/default_volume_issue
...
Set default volume on audiostream creation
2021-02-27 22:41:03 +01:00
JohnAFernandez
9c4d8f175b
Merge pull request #3255 from Baezon/bugfix-trail-texture
...
Properly initialize trail texture stretch
2021-02-27 14:31:12 -05:00
m!m
002b8a69b1
Merge pull request #3251 from asarium/fix/actionsCompile
...
Add a CMake platform check for proper non-copyable type support
2021-02-27 20:08:05 +01:00
Baezon
529ba78c04
review tweak
2021-02-27 13:48:26 -05:00
Baezon
772eaa634a
properly initialize texture stretch
2021-02-27 13:41:24 -05:00
asarium
7c909c6d69
Fix Visual Studio compilation around non-copyable type
...
This works around a compiler bug present in most older versions of MSVC
where it absolutely wanted to use a deleted copy constructor even if a
move constructor was available.
This just moves the relevant code into the default constructor.
2021-02-27 19:39:29 +01:00
JohnAFernandez
a22f44ce01
Merge pull request #3187 from Baezon/swarm-cleanup
...
Give swarm missile handling a well-deserved makeover
2021-02-27 00:01:58 -05:00
JohnAFernandez
09671d9907
Merge pull request #3245 from Baezon/disabled-repair-fix
...
Bugfix for disabled fighters interupting their own support calls
2021-02-26 23:59:03 -05:00
Goober5000
da4b6b2f67
Merge pull request #3252 from Goober5000/main_hall_parsing_fix
...
when we're finished parsing a main hall, the next main hall should be a new one
2021-02-26 21:55:13 -05:00
the-maddin
c0f351d92e
fix indents
2021-02-27 00:01:08 +01:00
m!m
8700645d21
Merge pull request #3067 from asarium/lua/fullTypeCoverage
...
Add full type coverage for return types and variables
2021-02-26 23:06:55 +01:00
Goober5000
3fe59717c5
when we're finished parsing a main hall, the next main hall should be a new one
...
With modular tables, we might have modified an entry in the middle of the vector, in which case the next index would be an existing main hall. If the next modular table then created a brand new main hall, it would overwrite that entry. This makes sure the code always assumes the next main hall will come at the end of the list.
2021-02-26 16:47:05 -05:00
asarium
0fb712ed39
Add full type coverage for return types and variables
...
This introduces type parsing for all types used within the scripting
documentation. This improves the generated JSON output and also
validates new code via the unit test.
2021-02-26 22:37:37 +01:00
the-maddin
003fa68582
Remove leftover default setting
2021-02-26 22:23:46 +01:00
Baezon
e3acb2c56b
ai fighter support
2021-02-25 23:45:42 -05:00
Baezon
789f78aefd
Merge remote-tracking branch 'upstream/master' into expose-huge-small-targeting
2021-02-25 23:36:59 -05:00
Baezon
ec323a3960
combine flags
2021-02-25 23:15:29 -05:00
Baezon
86d01a3b0f
Merge remote-tracking branch 'upstream/master' into disabled-repair-fix
2021-02-25 21:22:18 -05:00
Baezon
a685b6f051
Merge remote-tracking branch 'upstream/master' into better-subsys-attacking
2021-02-25 21:20:51 -05:00
Goober5000
2ac85f3172
Merge pull request #3246 from Goober5000/back_inserter_include
...
add missing #include
2021-02-25 15:14:48 -05:00
Goober5000
18a15eed29
add missing #include
...
On some setups the hierarchy of #include files doesn't catch an <iterator>, so #include it explicitly.
2021-02-25 13:45:07 -05:00
m!m
413633855f
Merge pull request #3248 from asarium/build/fixQt
...
Force aqt to a known good version
2021-02-25 19:11:01 +01:00
asarium
ac5eb11c39
Force aqt to a known good version
...
There was another break in that package so this should hopefully make
our builds more stable.
2021-02-25 18:37:44 +01:00
m!m
ca5ab260c9
Merge pull request #3242 from asarium/feature/actionExpression
...
Add dynamic expression support for actions
2021-02-25 18:17:34 +01:00
Baezon
80ba3b9e9c
Merge remote-tracking branch 'upstream/master' into better-subsys-attacking
2021-02-25 02:30:18 -05:00
Baezon
81c771b8ea
clean up
2021-02-25 02:13:02 -05:00
Baezon
d86723ef07
bugfix disabled fighters calling for support
2021-02-24 16:10:04 -05:00
asarium
d589234648
Some final changes
2021-02-24 18:04:19 +01:00
the-maddin
26aab09b8e
Update scripting documentation audio_stream:play()
...
to reflect what the implementation actually does.
2021-02-24 02:16:01 +01:00
JohnAFernandez
55b8f3f642
More cleanup and Int3() refactors ( #2744 )
...
* Clean Up ai_attack_object()
There was an unused parameter, and no one has added subsystem targeting (at least to this function) in the past 20 years, so it's time to remove it and make it more readable. Probably better to adjust that behavior somewhere else anyway.
Also changes an Int3() into
* More Int3 cleaning
Refactor a few Int3()'s in the AI code
* Feedback on is_ignore_object_sub
* Feedback, remove duplicate check, add documentation to preserve why it was there
2021-02-23 19:51:43 -05:00
the-maddin
063854384f
Set sane default volumes on audiostream creation.
...
Looking throughthe code, it appears that
sound volumes are typically set when calling
the "play" function for in-engine uses of sounds.
No default values were, in fact, set explicitly at
creation, so they were initialized to 0.0f.
Scripting documentation, however, refers to
default volumes per type where no volume is
passed. New engine functionality should also
be able to rely on this.
I'm setting sane values found in other
parts of the sound system at stream creation,
to be used or overwritten later.
2021-02-24 01:45:05 +01:00
the-maddin
9ffcd780e9
Deduplicate stream creation code
2021-02-24 01:45:05 +01:00
the-maddin
4125d0bdba
Fix stream slot leak
...
A wrong stream type could lead to a stream handle
being marked as used although no stream is created
2021-02-24 01:44:10 +01:00
the-maddin
af29243157
Merge remote-tracking branch 'refs/remotes/upstream/master'
2021-02-23 20:52:40 +01:00
Fabian Woltermann
659d68e9b9
Merge pull request #3167 from EatThePath/cylinder-only-tube-lights
...
Cylinder only tube lights
2021-02-23 19:11:22 +01:00
m!m
3d856b77d9
Merge pull request #3229 from the-maddin/master
...
Scripting&Sound: Load sound from memory
2021-02-23 17:57:32 +01:00
Baezon
f447fd4e23
unused variables
2021-02-23 01:13:08 -05:00
Baezon
8088cf0ab4
ints to floats
2021-02-23 00:53:10 -05:00
Baezon
a69046000e
cast to int
2021-02-23 00:12:29 -05:00
Baezon
881da211a2
misc tweaks
2021-02-22 23:23:49 -05:00
Baezon
622a28236e
decouple species from asteroids
2021-02-22 22:55:34 -05:00
the-maddin
d0edab2c74
Better instance preparation; no MIN macro
2021-02-23 00:47:13 +01:00
Martin Merget
c715cf5c65
Merge remote-tracking branch 'refs/remotes/upstream/master'
2021-02-23 00:04:54 +01:00
z64555
1fca306fc9
Address clang-tidy issues.
2021-02-22 14:24:26 -06:00
asarium
02b1e38cd7
Add variables concept to expressions
...
This also includes the necessary setup work for using "position" and
"direction" in action expressions.
2021-02-22 18:39:06 +01:00
asarium
851a7663a8
Rework actions to use definitions
...
This introduces action definitions which can then be instantiated to
form actual actions with expressions as their parameters.
2021-02-22 18:02:22 +01:00
asarium
bcaa7934c6
Allow implicit conversion from int to float
...
This is generally a safe operation and will make the system a bit easier
to use.
2021-02-22 18:02:22 +01:00
asarium
1d6052e81e
Rework function handling
2021-02-22 18:02:22 +01:00
asarium
a5a91b5acf
Add Action expressions
...
This is a parser for a very simple language to allow for execution of
dynamic expressions with return values for use as action parameters. The
only "dynamic" part this currently supports are random ranges but more
features are planned for the future.
2021-02-22 18:02:22 +01:00
asarium
aa7ea238b9
Update GTest
2021-02-22 18:02:22 +01:00
m!m
8b23ccdf2e
Merge pull request #3061 from asarium/feature/actionSystem
...
Add dynamic action programming system
2021-02-22 18:00:58 +01:00
Baezon
5004f6ab32
Merge remote-tracking branch 'upstream/master' into ai-multilock
2021-02-21 22:15:31 -05:00
Baezon
adea41e690
clarity edits
2021-02-21 21:56:34 -05:00
Baezon
d463db3742
Merge remote-tracking branch 'upstream/master' into generic-debris-enhancement
2021-02-21 21:31:59 -05:00
Martin Merget
4305aed38d
Factor out duplicate creation/opening code
2021-02-22 01:39:55 +01:00
z64555
f51502e4ae
Make qtFred and Fred changes consistent with each other.
2021-02-21 18:16:55 -06:00
the-maddin
34eed12988
Extract shared code from AudioStream::Create and CreateMem
...
Also cleaned up control flow on failure as far as used macros allow.
2021-02-22 00:58:41 +01:00
the-maddin
60775e73b5
Fix MSVC builds v2
2021-02-21 22:30:17 +01:00
the-maddin
e55b246756
Fix MSVC builds
2021-02-21 22:14:39 +01:00
the-maddin
438f48c835
Fix compiler/type issue
2021-02-21 21:51:34 +01:00
asarium
8f88801646
Add dynamic action programming system
...
This system adds the code necessary for letting content creators specify
complex events by specifying a simple, program-like sequence of
operations that will be executed by the engine when a certain event is
triggered.
2021-02-21 21:29:02 +01:00
the-maddin
afc9e8132a
renamed memfile functions & struct
2021-02-21 20:53:52 +01:00
the-maddin
371aaa1107
Moved, documented and renamed struct MemFileCursor
2021-02-21 20:46:55 +01:00
the-maddin
ab7e6cbbe1
add LuaErrors for invalid input, fix off-by-one
2021-02-21 20:37:02 +01:00
m!m
340edd5ec0
Merge pull request #3239 from asarium/build/updateBuildImage
...
Update Linux build image and make consistent
2021-02-21 14:36:27 +01:00
asarium
88e6469fb4
Update Linux build image and make consistent
...
For some reason the last update of the PR pipeline did not update the
other workflows as well so we had some minor inconsistencies.
This should hopefully fix the nightly build issues for real this time.
2021-02-21 14:02:32 +01:00
BMagnu
fd60dd342f
Add vanish Lua function to some objects ( #3238 )
...
* Add vanish function to some objects
* Modify vanish function return. Modify fireball access
* Remove dedunant check for ship vanish
2021-02-21 11:59:49 +00:00
Asteroth
dcd38539c2
Merge pull request #3237 from Baezon/fix-turret-inaccuracy
...
Bugfix to turret_inaccuracy
2021-02-21 00:19:39 -05:00
Baezon
70265c6f63
bugfix turret inaccuracy
2021-02-20 23:41:30 -05:00
JohnAFernandez
19b3f85eea
Merge pull request #3220 from Baezon/turret-inaccuracy
...
Add turret-set-inaccuracy SEXP
2021-02-20 21:07:47 -05:00
JohnAFernandez
873ec133b4
Merge pull request #3204 from Baezon/icons-parsing-overhaul
...
Overhaul briefing icon parsing
2021-02-20 20:57:47 -05:00
Goober5000
88f6312fd8
Merge pull request #3234 from Goober5000/sim_hull_scripting
...
add SimHitpointsLeft
2021-02-20 16:51:11 -05:00
Goober5000
69c1398368
add SimHitpointsLeft
2021-02-20 16:13:14 -05:00
m!m
043b1d34c8
Merge pull request #3232 from asarium/fix/linuxNightly
...
Try to fix linux nightly builds
2021-02-20 21:34:51 +01:00
m!m
1226c894ed
Merge pull request #3233 from asarium/build/githubRegistry
...
Store standalone image on GitHub
2021-02-20 21:34:40 +01:00
asarium
0fb7143f12
Store standalone image on GitHub
...
Docker Hub is going into a weird direction with their rate limits and
the GitHub Container Registry is better in that regard.
Old images will stay in Docker Hub for the time being though.
2021-02-20 18:34:25 +01:00
Fabian Woltermann
57c593f74e
Merge pull request #3231 from Goober5000/fix_eval_numeric_sexp
...
fix mn.evaluateNumericSEXP
2021-02-20 14:54:53 +01:00
asarium
cf3faa35cd
Try to fix linux nightly builds
...
The default Python version appears to be too recent so let's try to have
this action use the python package that is installed in our build image.
2021-02-20 14:44:01 +01:00
Goober5000
2429b99184
fix mn.evaluateNumericSEXP
...
This is a follow-up to #2687 . The final implementation of evaluateNumericSEXP different from the testing implementation in a small but crucial way that prevented it from actually working. Since it used `eval_num`, it didn't evaluate the specified SEXP node but rather the CAR (first element) of the node list. This fixes that by putting the node in a temporary SEXP list so that `eval_num` will look in the right place.
2021-02-20 01:40:55 -05:00
Shivansps
2ee128cd88
Merge branch 'arm_fixes'
2021-02-19 21:02:53 -03:00
Shivansps
a2b349855e
Merge pull request #1 from scp-fs2open/master
...
Update fork
2021-02-19 20:53:22 -03:00
Baezon
0f451e6190
more comments
2021-02-19 10:45:32 -05:00
the-maddin
366a96bdd4
Expose audiostreams from memory to LUA
...
Allow scripts to play any LUA binary string containing valid WAV data.
Useful for TTS data passed in via LUASockets.
2021-02-19 01:22:24 +01:00
the-maddin
8770ad74f8
Add support for audiostream from in-memory sound
2021-02-19 01:19:05 +01:00
the-maddin
68d5467e2a
Add support for in memory sound
2021-02-19 01:16:39 +01:00
the-maddin
ac2fa61f6e
Add support for in-memory sound
...
Using the memory backend, treat sound in memory like sound in cfiles.
2021-02-19 01:14:40 +01:00
the-maddin
2060a1dabe
Add backend for in-memory audio
...
FFmpegContext can now also hold a cursor over a vector of bytes instead of a cfile to store sound data in it.
Appropriate creation, reading seeking functions included.
2021-02-19 01:10:43 +01:00
Fabian Woltermann
b561156f09
Merge pull request #3226 from Goober5000/tocase
...
additional case functions and checks
2021-02-18 14:08:34 +01:00
Goober5000
f3bca4384f
additional case functions and checks
...
This refactors the tolower/toupper code to use standards-conformant logic, and also adds some helpful utility functions. Regular tolower/toupper must be supplied a value that can be represented as `unsigned char`, but the std:: functions are a bit more robust.
2021-02-18 04:23:08 -05:00
Fabian Woltermann
c00ff88a5a
Merge pull request #3223 from Goober5000/case_insensitive_ships
...
make the ship lookup case insensitive
2021-02-18 09:10:57 +01:00
Goober5000
866b64ff8d
maybe this works better
2021-02-17 12:12:17 -05:00
Goober5000
3acd74e894
make the ship lookup case insensitive
...
Does what it says on the tin. Fixes #3221 .
2021-02-17 11:31:45 -05:00
Goober5000
ffa6e594e7
Merge pull request #3222 from Goober5000/perform_actions_documentation
...
add clarification
2021-02-16 19:27:30 -05:00
Goober5000
39f9df11f7
add clarification
2021-02-16 18:35:11 -05:00
Baezon
a606f2cafa
modernize-use-auto
2021-02-16 10:52:56 -05:00
Baezon
592855c35d
NULL -> nullptr
2021-02-16 02:27:11 -05:00
Baezon
3797171fb0
Merge remote-tracking branch 'upstream/master' into turret-inaccuracy
2021-02-16 02:23:45 -05:00
Baezon
028e40a43b
add turret-set-inaccuracy sexp
2021-02-16 02:21:54 -05:00
Goober5000
36ea4c225b
Merge pull request #3219 from Goober5000/model_instance_in_fred
...
add model instance support to FRED rendering
2021-02-15 09:33:55 -05:00
Goober5000
24df0efb6e
add model instance support to FRED rendering
...
This changes FRED to properly initialize a model instance on ship creation and also use that instance when rendering the ship. This prevents destroyed submodels from appearing. Fixes #3212 .
2021-02-15 08:34:12 -05:00
Fabian Woltermann
db2eba92d5
Merge pull request #3213 from Goober5000/message_list_chain
...
add send-message-chain
2021-02-15 10:50:05 +01:00
Fabian Woltermann
dd0bb3ceca
Merge pull request #3214 from Goober5000/fix_event_editor_closing
...
fix event editor closing on key press
2021-02-15 10:15:18 +01:00
Fabian Woltermann
f9da8c7db2
Merge pull request #3217 from Goober5000/fix_event_editor_delete
...
fix event node deletion behavior
2021-02-15 10:14:51 +01:00
Goober5000
82a93e9e47
fix event node deletion behavior
...
The defensive coding in #3191 against illegal cut/delete operations was a little too defensive. This properly allows deletion of events when necessary, and it still guards against a Cut operation being improperly called due to a shortcut key press.
Fixes #3216 .
2021-02-14 17:12:22 -05:00
z64555
754f0ea876
Removed unused local variable.
2021-02-14 10:33:49 -06:00
z64555
9145922cb1
Fix default_item to use default_bindings.
2021-02-14 09:59:36 -06:00
z64555
47e19207f9
Merge branch 'master' into controls3
...
Resolved Conflicts:
code/controlconfig/controlsconfig.cpp
code/controlconfig/controlsconfig.h
2021-02-14 09:48:55 -06:00
Goober5000
41f9dbb003
fix event editor closing on key press
...
Restores the MFC functions that were taken out in #3073 . These functions appeared redundant, but they were actually necessary to intercept the MFC handling of Enter and Escape. In addition to fixing that behavior, this PR also adds some clarifying comments and renames some functions to prevent confusion.
2021-02-14 01:32:03 -05:00
Goober5000
c067651498
add send-message-chain
...
Implements send-message-chain as described in issue #3185 . Also fixes the default argument for message priority, and mirrors the default argument fix to qtFRED.
2021-02-14 00:23:57 -05:00
JohnAFernandez
2361152399
Merge pull request #3211 from JohnAFernandez/Messaging_Switch_to_Normal
...
Make "Normal" the default option for Messages
2021-02-13 23:28:47 -05:00
JohnAFernandez
0318e3f851
Make "Normal" the default option for Messages
...
Moves messages to the more suitable default of normal. Also adds clarifying documentation.
2021-02-13 15:56:09 -05:00
Goober5000
d21f7b8915
Merge pull request #3208 from PhantomHoover/fix/misc-rand-sizes
...
Properly fix static_rand()'s range and account for this in functions that were misusing it
2021-02-13 14:32:18 -05:00
Phantom Hoover
640640b4b4
Properly fix static_rand()'s range and account for this in functions that were misusing it
2021-02-13 16:06:47 +00:00
Fabian Woltermann
f87cf7df23
Merge pull request #3207 from Baezon/waypoint-complete-fit-bugfix
...
Fix for waypoint completion with FIT
2021-02-13 17:01:25 +01:00
Asteroth
616e6a9bc0
Merge pull request #3180 from Baezon/split-collision-light-width
...
Split beam width for collision purposes and lighting purposes
2021-02-13 02:15:17 -05:00
Goober5000
303787d97c
Merge pull request #3206 from Goober5000/retail_hybrid_translation_behavior
...
restore retail behavior of XSTR
2021-02-12 17:48:23 -05:00
MageKing17
db2bd97669
Merge pull request #3205 from MageKing17/bugfix/controlconfigoverride-default-preset
...
If the first #ControlConfigOverride isn't named, use "default".
2021-02-12 14:29:01 -08:00
Baezon
5e38f3c0d4
fit waypoint bugfix
2021-02-12 11:12:24 -05:00
Goober5000
1e756d1a67
restore retail behavior of XSTR
...
This is a follow-up to #2390 . Retail used a weird hybrid approach where internal strings were translated but external strings were not. This restores that behavior by adding another language, LCL_RETAIL_HYBRID, which is the default. The game can still be run in completely untranslated or completely translated mode.
All three modes have been tested and translate strings, or not, as expected. The `$Use tabled strings for the default language:` flag has also been tested and still works.
2021-02-11 19:47:12 -05:00
Baezon
ec274d58db
clang-tidy
2021-02-10 21:49:49 -05:00
Baezon
682c15d6b1
clang-tidy curse you
2021-02-10 21:41:37 -05:00
MageKing17
29fbebde16
If the first #ControlConfigOverride isn't named, use "default".
...
This causes it to replace the first preset in the list, which more closely approximates the old behavior.
2021-02-10 17:58:08 -08:00
JohnAFernandez
bd7450c4e6
Merge pull request #3198 from Baezon/landmark-logging
...
Add 'landmark' logging
2021-02-10 20:40:40 -05:00
Baezon
b843a5be3a
clean up
2021-02-10 18:15:48 -05:00
Baezon
be44e287ee
overhaul brief icon parsing
2021-02-10 17:36:37 -05:00
Goober5000
af16a6bc42
Merge pull request #3191 from Goober5000/fred_indents_and_colors
...
Additional FRED features
2021-02-10 09:45:07 -05:00
Fabian Woltermann
6b7429ab5d
Merge pull request #3192 from Baezon/turret-forced-target
...
Add turret-set-forced-target SEXP
2021-02-10 11:39:16 +01:00
Fabian Woltermann
d4be72c49b
Merge pull request #3203 from JohnAFernandez/Really-fix-hud-config-crash
...
Actually fix radar range turning to -1 after hud gauge config
2021-02-10 11:36:30 +01:00
JohnAFernandez
86308bbf34
Actually fix radar range turning to -1 after hud gauge config
...
Problem was caused by negative array index write in this section of code.
2021-02-10 00:05:27 -05:00
Goober5000
3d6124c7ad
Merge pull request #3144 from Goober5000/fix_look_at
...
reimplement look_at
2021-02-09 21:48:52 -05:00
Baezon
6357c2a856
clang tidy
2021-02-07 23:40:14 -05:00
Allen A. Babb
0f1c5e0a42
Merge pull request #3201 from z64555/unhide_chocolate
...
Unhide chocolate - Revert default-disable of controls unusable with retail data.
2021-02-07 17:02:32 -06:00
z64555
cb692b22ba
Add note comment to the CCI_builder. Controls that don't work in retail should be default disabled, but this relies on the coders making them to get it set the first time.
2021-02-07 14:23:44 -06:00
z64555
0b03c3f672
Add me to the cool kids club. Wait, no, not that one.
2021-02-07 14:15:35 -06:00
z64555
15d3dde5fa
Unhide non-retail controls by default. Even though retail data can't make use of most of them, some mods may count on their visibility.
2021-02-07 14:06:27 -06:00
Baezon
24947b64d7
split light and collision width
2021-02-06 22:00:45 -05:00
Goober5000
61bb44d07b
Merge pull request #3200 from wookieejedi/test-rotation-fix
...
Fix Bug with Reading Turret Rotation Axes
2021-02-06 14:44:07 -05:00
Goober5000
aa3eb4d42c
Merge pull request #3199 from Goober5000/vecmat_projecc
...
add useful function
2021-02-06 14:19:36 -05:00
wookieejedi
2cdc74264c
Fix Bug with Reading Turret Rotation Axes
...
Multipart turrets that have no rotation specified in PCS don't have `movement_type` assigned properly within `modelread.cpp`, which eventually leads to a fatal crash. This two line fixe properly specifies the `movement_type` and fixes the crash. Tested and confirmed. Thanks to @Goober5000 for the assistance and troubleshooting.
2021-02-06 13:59:23 -05:00
Goober5000
dd92a0f0bb
add vm_vec_is_normalized and use it in several places
2021-02-06 13:46:54 -05:00
Goober5000
e699d991d1
add useful function
2021-02-06 00:19:57 -05:00
wookieejedi
ede8c6a172
Merge pull request #3197 from wookieejedi/expose-countermeasure-firewait
...
Expose Additional Countermeasure Options to Modders
2021-02-06 00:08:36 -05:00
JohnAFernandez
ba9205cd35
Make sure to pull from the bounds of the vector.
2021-02-05 23:40:24 -05:00
Baezon
b7bd8d6fbb
moar tweaks
2021-02-05 15:28:14 -05:00
Baezon
7015818ea5
review tweaks
2021-02-05 12:56:03 -05:00
wookieejedi
c831235cd3
add warnings
2021-02-05 11:39:50 -05:00
Baezon
a6b19706eb
'landmark' logging
2021-02-05 03:49:39 -05:00
wookieejedi
de17df207a
specify values for AI and use multipliers for fail and succeed
2021-02-04 22:38:06 -05:00
wookieejedi
5116471d8d
simplify logic
2021-02-04 13:40:23 -05:00
wookieejedi
e01bd28e79
Expose Additional Countermeasure Options to Modders
...
This PR provides modders with additional options to alter countermeasure values. Previously, countermeasures had a fixed, hardcoded fire wait time of 333 milliseconds, regardless of what `$Fire Wait:` was specified. Also, the AI would wait a fixed delay between firing of failed countermeasure launches and successful countermeasure launches. For successful launches the AI would double the fire wait. Also, Friendly ships would only use a fixed constant value for countermeasure firing chance, and not the value based on their class specific AI profile.
This PR exposes those values with the following options:
• Add main AI table flag: `Friendly Ships Use AI Profile Countermeasures Firing Chance`. This will allow Friendly ships to use their AI class profile countermeasure firing chance instead of the default fixed value from main AI table.
• Add value in CM section of weapons table: Countermeasures use fire wait time `+Use Fire Wait`. This is a boolean that allows the countermeasure’s fire wait to actually use what is specified in the `$Fire Wait:` section of that weapon.
• Add value in CM section weapons table: `+Fail Delay Equals Fire Wait`. The delay between failed countermeasure launches is set to use the fire wait value.
• Add value in CM section weapons table: `+Successful Launch Delay Multiplier`. This allows modders to set the value that is multiplied to fire wait for successful countermeasure launches.
2021-02-04 13:12:02 -05:00
Asteroth
994e42a27d
Merge pull request #3175 from Baezon/trail-decay-exponent
...
Non-linear Trail decay and Texture stretch
2021-02-04 12:09:22 -05:00
wookieejedi
74c9139c1c
Merge pull request #3195 from wookieejedi/fix-retail-cap-ship-speed
...
Fix speed differential for retail cap ships
2021-02-03 19:26:19 -05:00
wookieejedi
1d7070cf12
add claryifying parentheses
2021-02-03 18:18:04 -05:00
JohnAFernandez
19c19f1262
Remove the Unused Just_updated Flag
...
This flag is vestigal. It was likely used in the FS1 codebase and then was not removed by the rushed FS2 multi team. Whether or not an object uses physics_sim is determined earlier in `multi_oo_is_interp_object()`
2021-02-03 18:00:16 -05:00
wookieejedi
754f4a309c
add deprecation check
2021-02-03 17:46:06 -05:00
Asteroth
83bd14586f
Merge pull request #3179 from Baezon/empty-sound-fix
...
Don't search for empty sound names
2021-02-03 17:41:08 -05:00
wookieejedi
828a993eb6
Fix speed differential for retail cap ships
...
As astuetly determined by @Baezon `the speed differential for retail cap ships is caused by 'ships with no shields can manage ETS', being part of the bugfixes with target version`. This PR adds two flags per Discord suggestion, one for all ships and one for only small ships.
2021-02-03 17:14:39 -05:00
Asteroth
69b319a7d6
Merge pull request #2591 from Baezon/homing-primaries
...
Add homing primaries
2021-02-02 21:48:16 -05:00
Baezon
6414172898
Merge remote-tracking branch 'upstream/master' into homing-primaries
2021-02-02 21:15:05 -05:00
Baezon
e78fccc294
unused variables
2021-02-02 20:49:33 -05:00
Baezon
54f1a86a5a
clena up and finalization of subsys targeting
2021-02-02 20:06:40 -05:00
Baezon
8c387d7507
tentative subsys targeting
2021-02-02 11:31:05 -05:00
Baezon
476e916945
Merge remote-tracking branch 'upstream/master' into turret-forced-target
2021-02-01 22:12:50 -05:00
Asteroth
1d131403d5
Merge pull request #3176 from Baezon/damage-incidence-angle
...
Angle-based damage multiplier
2021-02-01 20:54:20 -05:00
Baezon
e7cab7cb42
clang-tidy dont hurt me no mo
2021-02-01 14:24:44 -05:00
Baezon
7b2c8304ff
typo
2021-02-01 13:25:44 -05:00
Goober5000
b6314feb29
add comment
2021-02-01 02:24:54 -05:00
Goober5000
a124722966
qtfred
2021-02-01 00:46:17 -05:00
Goober5000
47543ac7d4
implement keyboard shortcuts, implement mission saving for bg color
2021-02-01 00:46:17 -05:00
Goober5000
262b45188a
resizable Event Editor
2021-02-01 00:46:17 -05:00
Goober5000
c0446cd03c
color stuff works pretty well
2021-02-01 00:46:17 -05:00
Goober5000
bc37fda89e
reorganize event annotations a bit
...
preliminary work for background color and changing indent
implement a sort-of-working background color change
2021-02-01 00:46:17 -05:00
Goober5000
275a439091
Merge pull request #3190 from Goober5000/quick_annotation_fix
...
mission save bugfix
2021-02-01 00:43:55 -05:00
Goober5000
f475ea4d25
mission save bugfix
...
Somehow during the annotation merge the save got borked. This fixes mission saving.
2021-02-01 00:09:55 -05:00
Goober5000
72d2f9f1a1
reimplement look_at
...
This PR re-implements the look_at feature, which has been broken for many years. A look-at rotation is a type of intrinsic_rotation, just like dumb-rotations. The same code handles both; the only difference is whether submodel_rotate or submodel_look_at is called to apply the actual movement.
The previous look_at parsing code has been optimized by performing the name-to-submodel resolution when the model is actually parsed, instead of when the first look-at rotation is called. This avoids the need to store a name in the submodel struct and also avoids cluttering the look_at function.
This PR is essentially bookkeeping, except for the submodel_look_at method. This method takes advantage of the submodel rotation upgrade and calculates angles in almost the same way as the new turret rotation code. It's much more elegant, much less hackish, and works for all detail levels.
2021-01-31 14:31:40 -05:00
Goober5000
8ab3cf240b
Merge pull request #3189 from Goober5000/fix_compilation_error
...
fix compilation
2021-01-31 14:30:16 -05:00
Goober5000
450900d2b5
fix compilation
...
Quick hotfix due to two branches being merged that were both compatible with master but not with each other.
2021-01-31 13:57:12 -05:00
Goober5000
68b6795d5a
Merge pull request #3079 from Goober5000/stuff_number
...
convert float parsing to use strtof
2021-01-31 13:18:27 -05:00
Goober5000
868715867d
Merge pull request #3056 from Goober5000/model_rotation_arbitrary_axis
...
Allow submodels to rotate around an arbitrary axis
2021-01-31 13:17:27 -05:00
Baezon
9b7cc77b55
revert multi compatability :(
2021-01-31 13:11:27 -05:00
Baezon
d3355b0783
experimental multi compatability
2021-01-31 12:29:25 -05:00
m!m
6f382ce0d9
Merge pull request #3188 from asarium/fix/stdApiCrash
...
Fix crash in server REST API when omitting framecap
2021-01-31 17:02:19 +01:00
asarium
dbfb5b9d34
Fix crash in server REST API when omitting framecap
...
Since the return value of the json library is null in that case it
crashed the server when no value was specified.
2021-01-31 16:08:33 +01:00
Allen A. Babb
b3edc683fc
Merge pull request #2907 from z64555/feature/controls2
...
Controls 0, 1, and 2 - Vectorize Controls_config, Refactor Control Presets, and Use Undosys for undo/redo actions done in the Controls configuration menu.
2021-01-30 10:04:58 -06:00
Asteroth
f1ff6ebf55
Merge pull request #2870 from Baezon/armor-types-beam-weapon
...
Use armor/damage types for beam-weapon damage
2021-01-30 02:33:13 -05:00
Baezon
f95e51b047
dont search for empty names
2021-01-30 00:05:17 -05:00
wookieejedi
213d20f7ef
Merge pull request #3177 from Baezon/better-missile-avoid
...
Improved missile avoidance
2021-01-29 22:47:01 -05:00
Goober5000
a10e456de3
Merge pull request #3073 from Goober5000/fred_comments
...
Fred comments
2021-01-29 17:38:31 -05:00
Goober5000
5187ea5041
Revert "Disable Qt projects since downloads are broken"
...
This reverts commit 4aa33c7b3e from PR #3160 .
2021-01-29 16:57:05 -05:00
z64555
9b42819dce
Address Clang-Tidy issues.
2021-01-29 15:09:54 -06:00
z64555
c1d1a965c6
Think I got all of the index swapped. *Scrolls right* oh.
2021-01-29 04:40:58 -06:00
Baezon
89a8cbcbae
review tweaks
2021-01-29 01:04:15 -05:00
z64555
b97e804123
Address signed/unsigned complaint.
2021-01-28 23:54:44 -06:00
Asteroth
e0dd807bb4
Merge pull request #3145 from EatThePath/fix-type-d-beam-pulse-lighting
...
Stop including tube lights between anti-fighter beam pulses
2021-01-29 00:39:27 -05:00
Baezon
888c14aeaf
flip max and min
2021-01-28 23:45:06 -05:00
Baezon
ab64183981
Merge remote-tracking branch 'upstream/master' into generic-debris-enhancement
2021-01-28 22:57:42 -05:00
Baezon
055784dcff
clean up swarm missiles
2021-01-28 22:33:01 -05:00
Baezon
4b3a1a8d84
unused variables
2021-01-28 20:39:29 -05:00
Baezon
91be428596
missing '$'
2021-01-28 20:27:36 -05:00
Baezon
0c0a9e4f26
typo
2021-01-28 20:24:54 -05:00
z64555
d6672d01cf
Don't count an item in the reset check if the item is disabled.
...
* Remove errant Assert()
* Drop leading whitespace of preset $Name field
* Fix do_reset behavior due to incorrect default binding check. Fix is possibly a backport.
* When $Text is specified for a bind item, set the XStr index to 0.
2021-01-28 19:16:07 -06:00
Goober5000
43ae0e3575
qtfred
2021-01-28 19:59:20 -05:00
Goober5000
2be4818d24
tweak parsing since we want to read annotations generally
2021-01-28 19:17:08 -05:00
Goober5000
9bebdbb575
rename event_comment to event_annotation
2021-01-28 18:56:15 -05:00
Goober5000
04cf220f2d
comment capability for FRED
...
Add FRED comments. These aren't the typical source-code style comments that are embedded in mission or table files; these are regular strings that are stored as mission data. You might think of them as annotations. Right-click on any node in the event tree and click on Edit Comment to add one. The tree node will then show a different icon and the comment will be visible as a tooltip when you mouse over the node text.
2021-01-28 18:25:19 -05:00
Goober5000
61c7cc2856
Merge pull request #3141 from JohnAFernandez/Hud-config-screen-is-weird
...
Make sure the Hud_config_inited is reset when the screen is exited.
2021-01-28 14:29:29 -05:00
Baezon
824c537bd2
Merge remote-tracking branch 'upstream/master' into ai-multilock
2021-01-28 12:25:35 -05:00
Asteroth
d1f0f5002f
Merge pull request #2775 from Baezon/burst-seed
...
Implement Beam Flags and some adjustments to burst handling
2021-01-28 11:51:30 -05:00
Baezon
d3d016602d
rename beam_flags -> beam_info_flags
2021-01-28 02:46:40 -05:00
Baezon
f9e44f545e
ignore empty sounds
2021-01-27 23:31:38 -05:00
Baezon
52f57df064
NULL -> nullptr
2021-01-27 23:25:19 -05:00
Baezon
61931520d1
Merge remote-tracking branch 'upstream/master' into generic-debris-enhancement
2021-01-27 23:06:45 -05:00
Baezon
229dd4c63c
clean up
2021-01-27 20:59:01 -05:00
Baezon
7515422979
clarity parentheses
2021-01-27 20:14:33 -05:00
Baezon
eb1d748907
safety
2021-01-27 17:25:28 -05:00
Baezon
b87d3c65a0
Merge remote-tracking branch 'upstream/master' into better-missile-avoid
2021-01-27 15:11:08 -05:00
Baezon
8d841fa1cc
clean up
2021-01-27 14:48:41 -05:00
Goober5000
537c4b6f24
Merge pull request #3172 from BMagnu/hotfix_keynames
...
Fix special char hex codes for utf8
2021-01-27 13:52:15 -05:00
Goober5000
f9a6c86cad
Merge pull request #3162 from Goober5000/ship_create_display_name
...
default display names for script/sexp-created ships
2021-01-27 13:40:16 -05:00
Goober5000
db466048ea
Merge pull request #3168 from Goober5000/debris_colgroup_check
...
add collision group checks to debris
2021-01-27 13:40:05 -05:00
m!m
6952b58846
Merge pull request #3174 from asarium/build/bumpVersion
...
Bump version
2021-01-27 19:12:45 +01:00
Baezon
284ad2941c
Merge remote-tracking branch 'upstream/master' into better-missile-avoid
2021-01-27 12:53:24 -05:00
Baezon
76d295d2bc
Merge remote-tracking branch 'upstream/master' into damage-incidence-angle
2021-01-27 12:47:55 -05:00
Baezon
66c38c43c6
clean up
2021-01-27 12:43:32 -05:00
asarium
2161ab563d
Bump version
2021-01-27 17:55:37 +01:00
Baezon
6cd5510bd1
clean up
2021-01-27 10:49:32 -05:00
Birk Magnussen
25cca192db
Switch Key Names from internal encoding to unicode in utf8 mode
2021-01-26 19:09:20 +09:00
Birk Magnussen
e6067f756a
Fix special char hex codes for utf8
2021-01-26 13:53:25 +09:00
Goober5000
6d9e9a2e3d
add collision group checks to debris
...
Collision groups were checked between ships, weapons, and beams, but not debris. This adds debris.
2021-01-24 01:07:11 -05:00
David Gibson
373d119f1a
modernize nullptr for tidy
2021-01-23 21:58:47 -06:00
David Gibson
7cb2338325
removed now-superflous element counting loop from gr_opengl_deferred_lighting_finish
2021-01-23 21:10:54 -06:00
David Gibson
ddcc94b0da
Extended the tube light cylinder volumes for deferred lighting to encompass the end cap spheres, removed those spheres, and adjusted the shader handling of tube lights to account for this.
2021-01-23 20:56:07 -06:00
David Gibson
9a866434b8
Removed the end light volumes from the defered lighting setup for tubelights.
2021-01-23 17:31:12 -06:00
Goober5000
37e92e01b6
default display names for script/sexp-created ships
...
Now that the hash truncation logic is part of the ship display name, ships created by script or sexp should check this as well.
2021-01-22 23:06:48 -05:00
m!m
60047116fd
Merge pull request #3160 from asarium/ci/disableQt
...
Disable Qt projects since downloads are broken
2021-01-22 16:54:54 +01:00
asarium
4aa33c7b3e
Disable Qt projects since downloads are broken
2021-01-22 16:26:44 +01:00
m!m
373dbeb63f
Merge pull request #3159 from Baezon/previous-bank-fix
...
Fix a bug with previous_bank and ship class swapping
2021-01-21 22:06:30 +01:00
m!m
361cc76c30
Merge pull request #3154 from Goober5000/redo_3149
...
fix a rare crash in the tech room
2021-01-21 21:47:53 +01:00
Baezon
3f27183d6d
also reset previous bank
2021-01-21 01:04:13 -05:00
Baezon
4e5c74d729
add trail alpha decay exponent
2021-01-19 22:44:08 -05:00
Goober5000
3d976f53b4
fix a rare crash in the tech room
...
The tech room loop checked that all the lines could fit in the available screen real estate, but it didn't check to see that the number of lines was less than the array capacity. Normally this never happened, but certain mods which use smaller fonts will overflow the limit. This adds a proper bounds check and also increases the bounds so that more of the smaller lines can be used.
2021-01-17 11:21:41 -05:00
m!m
e5af389803
Merge pull request #3150 from scp-fs2open/revert-3149-fix_techroom_crash
...
Revert "fix a rare crash in the tech room"
2021-01-17 17:14:30 +01:00
m!m
ba0f2e7f83
Revert "fix a rare crash in the tech room"
2021-01-17 11:55:59 +01:00
Goober5000
f0987a4ad1
Merge pull request #3149 from Goober5000/fix_techroom_crash
...
fix a rare crash in the tech room
2021-01-17 02:15:55 -05:00
Goober5000
61dd4356f0
fix a rare crash in the tech room
...
The tech room loop checked that all the lines could fit in the available screen real estate, but it didn't check to see that the number of lines was less than the array capacity. Normally this never happened, but certain mods which use smaller fonts will overflow the limit. This adds a proper bounds check and also increases the bounds so that more of the smaller lines can be used.
2021-01-17 01:21:52 -05:00
David Gibson
d9895455cd
Addressed feedback and tidy issues with AA beam pulse lighting fixes
2021-01-15 13:09:43 -06:00
Baezon
d9a7e786b5
Merge remote-tracking branch 'upstream/master' into burst-seed
2021-01-15 12:52:25 -05:00
David Gibson
40e7ce012e
=Added some important brackets I negligently omitted
2021-01-15 00:28:59 -06:00
David Gibson
31227c659a
added a check in beam_move_all_post() to avoid adding tube lights when anti-fighter beams are between pulses. Also added documenting comments to beam_type_b_get_status
2021-01-14 23:59:13 -06:00
JohnAFernandez
679f7f20d7
Switch the correct ammo variable.
...
The previous pr was supposed to fix what ammo capacity the ship was reloaded to, but instead it was changing how much ammo was in the magazine.
2021-01-14 09:23:52 -05:00
JohnAFernandez
ff9b2fd6cd
Make sure the Hud_config_inited is reset when the screen is exited.
2021-01-13 21:20:27 -05:00
Fabian Woltermann
a939a73c14
Merge pull request #3139 from z64555/hud_config
...
More safety checks for the HUD_config struct
2021-01-13 22:20:43 +01:00
Goober5000
487aad8bbe
a bit of cleanup and reorganization/simplification
2021-01-13 14:01:34 -05:00
Goober5000
554bbb884d
remove angles from the submodel instance
2021-01-13 14:01:34 -05:00
Goober5000
020f14fb51
allow rotating submodels to rotate around an arbitrary axis
2021-01-13 14:01:28 -05:00
Goober5000
98e501acc7
remove the orientation field for submodels
...
Change the `orientation` field to `frame_of_reference` and remove it from submodel instance calculations.
2021-01-13 13:52:48 -05:00
Goober5000
3f5ad1239d
Merge pull request #3140 from Goober5000/techroom_update
...
make model_set_up_techroom_instance a bit more robust
2021-01-13 13:51:47 -05:00
z64555
4e715352c9
Increment int strikes per CSG warning, as done in PLR code
...
* Use ReleaseWarnring instead of Warning
* Use correct upper boundry check logic on HUD_config::mail_color
2021-01-13 12:48:24 -06:00
Goober5000
5f538fa514
make model_set_up_techroom_instance a bit more robust
...
Follow-up to #3137 . I missed two important details in the first implementation: the triggered animation needs to be an "initial position" type, and `model_update_instance` needs to be run on all subobjects, not just turrets.
This should really fix #3123 . I still can't see the destroyed collector, but the Rahu no longer flickers when it spins around.
2021-01-13 13:17:31 -05:00
Goober5000
506ba911d0
Merge pull request #3137 from Goober5000/tech_room_instance
...
properly use model instances for tech room and briefing popups
2021-01-13 11:03:25 -05:00
z64555
f44cfa06c8
Adds more safety checks for PLR and CSG reading for the HUD_config structure.
...
* Adds a #define for the HC_color array size
* Doxy's the HUD_config struct
2021-01-12 23:12:20 -06:00
Goober5000
eeb6f5b091
properly use model instances for tech room and briefing popups
...
These two situations mostly relied on the obsolete model code which didn't include model instances. Data for submodel positions and for whether a submodel is blown off are now stored exclusively in model instances, not the model itself.
This fixes #3124 .
2021-01-12 23:15:37 -05:00
Fabian Woltermann
18cb07dc72
Merge pull request #3134 from EatThePath/tube-light-attenuation-recalc
...
Properly recalculate tube light attenuation
2021-01-11 20:28:19 +01:00
JohnAFernandez
3a4df0d89a
Send them to Github instead of Mantis
2021-01-11 14:06:03 -05:00
JohnAFernandez
d33f9db1f0
Move Standalone Running statement to after the init of Debug Statements
2021-01-11 14:05:01 -05:00
JohnAFernandez
75b26ef94b
Fix unfocused multi interpolation inaccuracies ( #3129 )
...
Remove One Source of Client and Server having Different Timing
Multiplayer *must not* have its time affected by being in the background, because their clocks will come out of sync and movement from an out of focus multiplayer instance will appear to move in slow motion. This fixes the timing discrepancy by only doing os_sleep when unfocused when in single player.
2021-01-11 14:04:23 -05:00
JohnAFernandez
398f4d9053
Remove Unused ClientDamage Commandline Option ( #3132 )
...
This option was likely part of an attempt to fix multi that never went anywhere. We now have rollback, which is on by default.
2021-01-11 14:02:52 -05:00
David Gibson
069947e397
Added a recalculation of tube light attenuation in fragment shader after proper distance is determined. fixes slash beam and penetration lighting issues
2021-01-11 11:55:45 -06:00
Fabian Woltermann
580d67eca7
Merge pull request #3133 from Baezon/slow-weapon-collide-fix
...
Fix collision culling for slow/accelerating weapons
2021-01-11 09:15:53 +01:00
Baezon
4bf93e08df
fix collision culling for slow weapons
2021-01-11 00:45:42 -05:00
Fabian Woltermann
6c475130d1
Merge pull request #3126 from The-E/fix/ambient_light_in_lab
...
When setting the ambient factor in the lab, recalculate ambient lighting
2021-01-10 20:11:13 +01:00
Fabian Woltermann
6f0dec4169
When setting the ambient factor in the lab, recalculate ambient lighting
2021-01-10 19:44:24 +01:00
Goober5000
3b99402a0a
Merge pull request #3121 from Goober5000/background_warning
...
make FRED validate all backgrounds, not just the active one
2021-01-10 09:21:45 -05:00
Fabian Woltermann
6c6ade116f
Merge pull request #3120 from Goober5000/fix_3101
...
fix 3101
2021-01-10 12:43:47 +01:00
Fabian Woltermann
4f6c834587
Merge pull request #3122 from Baezon/glowpoint-timing-fix
...
Fix a bug with glowpoint timing
2021-01-10 12:42:42 +01:00
Baezon
c486843e5f
fix a bug with glowpoint timing
2021-01-10 03:11:25 -05:00
Goober5000
ec93ac4c0e
fix 3101
...
Always update the ship class and loadout information in a ship's parse object, even if it is present at mission start.
2021-01-10 01:53:14 -05:00
Goober5000
2307d05086
make FRED validate all backgrounds, not just the active one
...
The background validation checks are somewhat convoluted, and misleading with multiple backgrounds, so this PR disables the standard main-background check if FRED is running. It then adds a new FRED-specific background check that covers all backgrounds.
Additionally, this PR fixes a bug in an error message in `stars_get_first_valid_background`.
Fixes #3116 .
2021-01-10 01:48:43 -05:00
Goober5000
d3d48ee6fa
Merge pull request #3093 from Baezon/script-target-bracket-fix
...
Fix a crash with scripted targeting brackets
2021-01-08 18:13:44 -05:00
Baezon
ac7bdbf269
fix bug in scripted targeting brackets
2021-01-08 17:30:28 -05:00
Goober5000
ddf00588d6
Merge pull request #3076 from Goober5000/hash_stuff
...
preprocess alt names before mission start
2021-01-08 16:03:10 -05:00
Goober5000
365ba2029e
remove temporary function
2021-01-08 09:53:11 -05:00
Goober5000
02cdb106ba
convert number parsing to use atoi and strtof
...
One small detail that was overlooked in PR #3021... KeldorKatarn's old code used `strtod` while the new code used `stuff_float`. This wouldn't be a problem except that a couple MVP models use annoyingly formatted floats like 8.9e-08. So I decided to convert `stuff_float` to use `strtof` and do some more upgrades while I was at it.
2021-01-08 09:25:25 -05:00
m!m
85a2a8f11e
Merge pull request #3092 from Goober5000/strtof_patch
...
interim patch for get_user_vec3d_value
2021-01-08 10:47:42 +01:00
Goober5000
e76fdea8b9
interim patch for get_user_vec3d_value
...
As described in #3079 , the old parsing of fvec and uvec used strtod and some POFs rely on this format. This is a quickfix that uses the new parsing method for only `get_user_vec3d_value`.
2021-01-07 18:08:27 -05:00
Goober5000
726ce953c7
Merge pull request #3089 from Goober5000/fix_submodel_debris
...
de-parent live debris
2021-01-07 15:24:49 -05:00
JohnAFernandez
a545a4ec27
Merge pull request #3087 from Baezon/lock-restriction-safety
...
Safety for lock restriction handling
2021-01-07 15:01:31 -05:00
Fabian Woltermann
fc0662a9c4
Merge pull request #3080 from JohnAFernandez/Vectorize-Tech-Lists
...
Vectorize tech lists
2021-01-07 15:16:09 +01:00
JohnAFernandez
e5685ded86
Keep the lists from being cleared early by removing unneeded the loops.
2021-01-07 00:33:21 -05:00
JohnAFernandez
226cbf1204
The true fix, check the correct value
2021-01-07 00:32:52 -05:00
Goober5000
043466309a
de-parent live debris
...
It appears that live debris is not supposed to have a parent submodel; see the retail NTF Boadicea. This removes the parent from any live debris that might have it.
This should fix #3078 .
2021-01-07 00:02:49 -05:00
Baezon
766624600d
update name
2021-01-06 18:04:59 -05:00
Baezon
dab9a41f45
remove redundant check
2021-01-06 17:45:32 -05:00
m!m
51d8ab13d8
Merge pull request #3088 from EatThePath/fix-empty-secondaries-locking
...
off-by-one fix in early exit update_aspect_lock_information()
2021-01-06 23:25:53 +01:00
Baezon
b93d30e12b
unused variable
2021-01-06 14:46:44 -05:00
David Gibson
945db25578
corrected off-by-one issue in the early exit condition of update_aspect_lock_information()
2021-01-06 13:46:05 -06:00
Baezon
67de007ecb
lock restrictions safety
2021-01-06 14:28:27 -05:00
JohnAFernandez
e9a9b3b978
Merge pull request #3085 from Baezon/docking-collision-bugfix
...
Safety for check_for_docking_collision
2021-01-06 14:03:00 -05:00
Baezon
e10522a2c7
safety for check_for_docking_collision
2021-01-06 13:18:27 -05:00
JohnAFernandez
9f33b432fc
Simply this check
2021-01-05 00:07:07 -05:00
JohnAFernandez
7a0578a797
Ok CI, I'll use nullptr
2021-01-04 22:14:36 -05:00
JohnAFernandez
b81825326c
Signed Vs Unsigned
...
AKA C'Mon CI!
2021-01-03 21:54:31 -05:00
JohnAFernandez
b8c2c975c0
Change to a pointer
...
So that we can release bitmaps and animations properly.
2021-01-03 21:36:50 -05:00
JohnAFernandez
dc0272e664
Fixes Part 1
2021-01-03 20:56:30 -05:00
JohnAFernandez
3e329d64dd
Check the correct value in the animation code
2021-01-03 15:15:51 -05:00
JohnAFernandez
882ac2b1a1
Possibly Fix Memory Corruption Issue
...
Remove Unused Var
2021-01-03 15:14:11 -05:00
Goober5000
b3153df6be
preprocess alt names before mission start
...
For compatibility purposes some mods want alt names to truncate at the hash symbol. But we can't actually do that at mission load,
since we have to save them again in FRED. So this commit processes the names just before the mission starts.
To further complicate things, some mods actually want the hash to be displayed. So this commit introduces the double-hash as an escape sequence for a single hash.
2021-01-02 14:31:59 -05:00
z64555
bc8e16b37b
Address change requst.
2021-01-01 22:41:43 -06:00
z64555
79e4c9b4e3
Satisfy change requests
2021-01-01 19:14:20 -06:00
z64555
70969c4475
Address requests by Goober5000
2020-12-31 15:39:21 -06:00
z64555
ecbb6a12f8
update feature to use eval_ship() instead of sexp_get_ship_from_node()
2020-12-31 14:58:33 -06:00
z64555
218059ffbb
Merge branch 'add_ai_seconds_to_waypoint_sexp' of https://github.com/tcrayford/fs2open.github.com into feature/time_to_goal
2020-12-31 13:15:35 -06:00
Baezon
c65ae50b81
version 1 of generic debris enhancements
2020-12-17 01:58:00 -05:00
Baezon
95de0c6833
version 1 of ai multilock
2020-12-14 20:41:06 -05:00
Baezon
ab2c08392e
in-progress
2020-12-14 04:29:55 -05:00
z64555
89a2c4dbcb
Missed another break.
2020-12-12 14:47:15 -06:00
z64555
2cd557e483
Expletives and default breaks.
2020-12-12 14:20:07 -06:00
z64555
e5df64ab75
Address uninitialized variable issue.
2020-12-12 12:20:54 -06:00
z64555
52b0b19d11
Update qtFred sexp_tree::get_listing_opf_keypress
2020-12-12 11:39:47 -06:00
z64555
36a2355e86
Address exceedingly frivolous signed/unsigned mismatch errors.
2020-12-11 17:44:45 -06:00
z64555
351e8e0c44
Address short/int size mismatches.
2020-12-11 15:59:31 -06:00
z64555
91e0d8f578
QoL: Highlight/select the found key, be it primary or secondary, should the search mode find it.
2020-12-11 12:41:46 -06:00
z64555
f8f26e3b23
Fix bug where search mode wouldn't detect joy buttons correclty.
...
* Fix bug where joy hats were ignored.
2020-12-11 12:41:46 -06:00
z64555
873a3c3442
Fix bug with displaying joy button text
...
* Fix a number of warnings
2020-12-11 12:41:46 -06:00
z64555
1318b814d3
Fix out-of-bounds error due to axis controls index.
2020-12-11 12:41:45 -06:00
z64555
4c8f5f789c
Grey out empty/unbound items
...
* Joy axis bindings now use the same color logic as the keys and buttons
2020-12-11 12:41:45 -06:00
z64555
b9b922b235
Fix bug where int conflict wasn't incremented for unselected items.
...
* Fix color highlighting of mouse-over lines
* Fix color highlighting of selected bindings
* Fix bug when trying to select an item while the selected line is an axis control
* Allow user to select an empty item
* Expand hitbox of items so players aren't required to click exactly on the text to select it.
2020-12-11 12:41:45 -06:00
z64555
716b4a3205
Moves the listbox draw function out of do_frame()
...
* Adjusts listbox positioning and widths of the binding columns for better display.
* Adds DCF tools to adjust the text positioning in the listbox
2020-12-11 12:41:44 -06:00
z64555
3c592b799f
Fix bug where the "disallowed key" popup would spam you, blocking you from doing a meaningful bind.
2020-12-11 12:41:44 -06:00
z64555
c8c8a8d896
Fix bug where unbound items were flagged as conflicted.
...
* Fix bug where Cc_lines was accessed after being cleared. (Incorrectly assumed control_config_cancel_exit() was an exit point)
2020-12-11 12:41:43 -06:00
z64555
12b19a32bd
Fix bug where unbound joy buttons would persist as a valid binding.
2020-12-11 12:41:43 -06:00
z64555
40e114351c
Miscellaneous fixes to allow building.
...
* declare CCB before CC_bind.
* update various functions to use new binding aggregate classes.
2020-12-11 12:41:43 -06:00
z64555
704c600ef0
update control_config_clear()
2020-12-11 12:41:42 -06:00
z64555
5dde26fc33
Update check_control_used() to use primary and secondary.
2020-12-11 12:41:42 -06:00
z64555
cb5f80b0d5
Complete refactor of control_config_do_frame()
...
* Add textify method to CC_bind
* Replace string printing of key and joy bindings with primary and secondary bindings.
2020-12-11 12:41:42 -06:00
z64555
32636968bd
Refactor browse mode in control_config_do_frame()
...
* Allow joy button presses to dismiss help overlay while in browse mode
* Refactor selected item cycling
2020-12-11 12:41:41 -06:00
z64555
e546a75c6b
Fix possible bug where joy btn was ignored in bind mode
...
* Refactor search mode in control_config_do_frame()
* Dismiss help overlay in search mode when joy button is pressed
* Fix possible bug where nav buttons were not reset in search mode
2020-12-11 12:41:41 -06:00
z64555
9b0aab3f82
replace CCI::joy_id and ::key_id with ::primary and ::secondary (through inheritance of CCB)
...
* Add convenience methods to CCB
* Convert CC_bind into a class and define convenience methods
* Set underlying type of enum CID to short
* controlconfigdefaults.tbl: Should the CCI be disabled by an override, clear its binding.
* Control config menu: Should the help overlay be active during bind mode, dismiss it, don't bind anything, and stay in bind mode (fixes inconstant behavior)
* Refactor bind mode handling in control_config_do_frame()
2020-12-11 12:41:40 -06:00
z64555
7f2baec387
Remove Control_config::key_default and ::joy_default, redirect calls to the default presets
2020-12-11 12:41:40 -06:00
z64555
392148f84b
Fix crash in unit tests due to uninitialized Control_config vector.
2020-12-11 12:33:45 -06:00
z64555
577ae95026
Use ints instead of size_t because CI said so.
2020-12-11 07:40:42 -06:00
z64555
968d76431f
Missing an amp.
2020-12-11 07:40:42 -06:00
z64555
c2408839d1
Fix out of bounds error due to dynamic containers cleared at wrong spot.
2020-12-11 07:40:41 -06:00
z64555
a03af2e4a9
Re-enables the undo feature in the controls config menu.
2020-12-11 07:40:41 -06:00
z64555
aec7589b94
Tweak Undo_item::save to correctly save a reference as a pointer
...
* Remove two uncessary Assets. operator new should throw an exception should it fail.
* Move template functions into .h. This resolves instancing problems when trying to define them in a .cpp
* Add Undo_system::empty() and ::empty_redo() for checking if an ::undo() or ::redo() is possible.
2020-12-11 07:40:41 -06:00
z64555
e1974d1b57
Fix potential issue where Undo_stacks delete tracked items when going out of scope, even after the items were passed onto an Undo_system
2020-12-11 07:40:40 -06:00
z64555
bc7809de43
Undo_system::save_stack() now ignores empty stacks passed to it. No need to check for stack size before saving.
...
* Implement Undo_stack::size()
* Spellcheck in undosys.h
2020-12-11 07:40:40 -06:00
z64555
f23a72e228
Minor changes
2020-12-11 07:40:40 -06:00
z64555
45a45a4eff
Remove licensing.
2020-12-11 07:40:39 -06:00
z64555
7e9ce1c9f7
Initial draft of the instruction documentation
...
Fix two typos
Adds Undo_system::clear()
Whoops! Can't just simply clear the stacks,gotta clean stuff off the heap first.
2020-12-11 07:40:39 -06:00
z64555
dce37d529c
Adds ability to save a stack of undo operations as a single undo-op within the system
2020-12-11 07:40:39 -06:00
z64555
f528b3caa5
Changes the system so that the undo() and redo() functions return references to the changed item and its container (if it was specified at launch). This should allow client code to quickly find and access it on its end by comparing pointer values.
...
Since the pair is returned instead of the size of the undo/redo stacks, stack size information has been moved to their own getter functions.
2020-12-11 07:40:38 -06:00
z64555
492320f8d3
z64555's Undo system! This is a generic undo system, so you can save any single item type (not C arrays) and do undo/redo stuff on them.
2020-12-11 07:40:38 -06:00
z64555
636b4b12e4
Vectorize control_config::Conflicts
2020-12-11 07:40:14 -06:00
z64555
93c96b8943
Re-enable display of current selected preset.
2020-12-11 07:40:14 -06:00
z64555
d1f94c7b92
Fix overwrite check.
...
Add check for cfile open correctly.
2020-12-11 07:40:13 -06:00
z64555
74ffcb2db8
Print "NONE" instead of "-1" For unbound keys.
2020-12-11 07:40:13 -06:00
z64555
c7112fd897
Adds function to write controlconfigdefaults.tbl using the default preset at time of call.
...
* Adds DC function 'write_ccd' to write the .tbl
* Adds DC function 'load_ccd' to reload the .tbl
2020-12-11 07:40:13 -06:00
z64555
1bb9ed8832
Remove unused variable for catch clause.
2020-12-11 07:40:13 -06:00
z64555
23f85da586
Move typedef after the declaration of the struct it uses.
2020-12-11 07:40:12 -06:00
z64555
f163f56c10
Cleanup controlsconfig.h and refactor some loops.
2020-12-11 07:40:12 -06:00
z64555
9c03e8c069
Remove dead comment.
2020-12-11 07:40:12 -06:00
z64555
92a76c05ee
Adds ability for mod devs to change the naming of a control as it shows up in the config menu.
...
* Presets start from a clean slate, while Overrides inherite from hardcode defaults
2020-12-11 07:40:11 -06:00
z64555
730ab835a8
Add #ControlConfigPreset section to controlconfigdefault.tbl and allow multiple sections in the .tbl
...
* This is a section that only configures the bindings for a preset. Allowing mod devs to add presets instead of just the overrides
* Added ability to resume parsing should a Binding not be found
2020-12-11 07:40:11 -06:00
z64555
ef89a4aa38
Refactor and cleanup control_config_common_load_overrides.
...
* Mod devs now have the option to override hardcoded defaults
2020-12-11 07:40:11 -06:00
z64555
f9474cf773
Refactor defaults.
...
* Hardcoded default bindings are now a preset
* rename controls_config_init_bindings() to control_config_common_init_bindings() for consistancy
2020-12-11 07:40:10 -06:00
z64555
96382b47e2
Initial work on presets and default keybinds. Defaults will be moved into a preset instead of lingering in the bindings vector, this may cause issues with training messages that reference controls by default keybinds.
2020-12-11 07:40:10 -06:00
z64555
99dfdf07a2
Refactor control_config_list_prepare()
...
Default Disable Non-retail controls
Expand CC_lines buffer to include NUM_JOY_AXIS_ACTIONS
2020-12-11 07:39:30 -06:00
z64555
62fa76d65e
Fix wrong reference to array size.
...
Init Cc_lines, which is now dynamic
De-init Cc_lines and Control_config_backup when closing the menu.
2020-12-11 07:39:30 -06:00
z64555
1a482cab4a
Remove Joy_table declaration for later PR..
2020-12-11 07:39:30 -06:00
z64555
ec61af7e1c
Revert obliteration of magic number.
2020-12-11 07:39:29 -06:00
z64555
d8d4e9ed2c
Disable Presets and Undo capabilities. Only reset_all was spared.
...
* Revert Joy_axis_action_index changes. Feature to be added later
* Strip out most of the preset and undo capability. Only the backup ability survived.
2020-12-11 07:39:29 -06:00
z64555
38df849e6e
Change Control_config array to an SCP_vector
...
* Hardcoded bindings are done at run-time instead of assignment
* Created a map that should retain backward compatibility with controlconfigdefaults.tbl and playerfiles, since a reorganization of the controls in the code is planned and would break compatibility.
2020-12-11 07:39:28 -06:00
Baezon
d06eedf13c
testing
2020-12-10 18:49:05 -05:00
Baezon
a3d3be11fb
initial testing version
2020-12-10 18:41:36 -05:00
Baezon
be76cd727a
implement turret-forced-target
2020-12-08 00:07:23 -05:00
Baezon
641cf48073
implement damage incidence angle
2020-12-01 12:37:22 -05:00
Baezon
2dbaf53e49
no more travis wooo
2020-11-20 14:10:27 -05:00
Baezon
849b4c57b6
no warning
2020-11-20 12:03:34 -05:00
Baezon
de0933e1b9
expose targeting sizes
2020-11-20 12:03:34 -05:00
Baezon
8c9a6d049e
use armor types for beam-weapon damage
2020-11-06 23:40:02 -05:00
Baezon
799fa27d36
clarity comment
2020-10-02 23:14:45 -04:00
Baezon
01cd5a34b9
travis
2020-10-02 12:04:45 -04:00
Baezon
9b3905a4bb
v1
2020-10-02 02:53:13 -04:00
Shivansps
1239ec47e3
Smart pointers and disabled some messages
...
Added smart pointers to bsp_in, bsp_out, sldc_tree and slc2_tree as requested.
I also changed the #error to #pragma message in a attempt to remove the false positive error.
Also did minor code indent fixes-
2020-08-30 13:45:43 -03:00
Shivansps
eb1814e303
SLC2 and POF version 2118 support
...
Changed SLDC system to SLC2, this replaced the char at the beginning of the node for an int in order for the tree to be aligned.
Added BSP_Defpoints data alignment and SLDC to SLC2 conversion for pof version < 2118.
2020-08-27 20:10:29 -03:00
Baezon
b4ec1b32ba
better subtype determiner
2020-08-05 01:54:47 -04:00
Baezon
27544e781a
Revert "no homing when out of range"
...
This reverts commit eebfb7eadb .
2020-07-23 21:12:51 -04:00
Baezon
eebfb7eadb
no homing when out of range
2020-07-23 12:30:28 -04:00
Baezon
e6938bd14d
verison 1
2020-07-22 23:48:53 -04:00
Tom Crayford
6ce29b5c6a
add seconds-to-goal
...
returns the number of seconds between a designated ship and its goal.
Uses `ship_return_seconds_to_goal`, but only returns 0 in the invalid
cases.
2019-09-23 11:12:18 +01:00
Tom Crayford
bc99331d47
refactor ship_return_time_to_goal to be more general
2019-09-22 22:00:13 +01:00