View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000585 | FSSCP | gameplay | public | 2005-10-11 16:51 | 2007-10-22 03:39 |
| Reporter | The Trivial Psychic | Assigned To | taylor | ||
| Priority | normal | Severity | feature | Reproducibility | N/A |
| Status | resolved | Resolution | fixed | ||
| Platform | AMD-2600+ 1GB DDR400 ATI9600XT | OS | Win98SE | OS Version | SE |
| Summary | 0000585: Feature Request for Weapon Change SEXPs | ||||
| Description | As per WMC's suggestion, I'm posting my feature request for a "change-turret-weapon" sexp, so that a weapon on a specific ship, on a specific turret, and even down to a specific slot, may be changed in-game. Obviously, one should not have the ability to mount a secondary on a primary-designated turret slot using this. I'd also like to request similar sexps for fighter/bomber primaries and secondaries, with the ability to select specific banks, and possibly the quantity of said weapon in the slot, in cases of secondaries, or ballistic primaries. | ||||
| Steps To Reproduce | when -true -change-turret-weapon --GTD Bastion --turret01a --2 (the slot of this turret) --BFGreen when -true -change-ship-primary --Alpha 5 --1 (primary bank number) --Maxim --2000 (optional quantity number. In this example, Maxim is ballistic) "Change-ship-secondary" would opperate virtually identical to this. The question is, when the designer is selecting the weapon, should it be done via right-click, or string entry ONLY? If its done via right-click, should the program automatically display ONLY those weapons which the ship is allowed to carry, and perhaps those only mountable on the selected bank (in cases of bank-specific loadouts)? This would certainly be more convenient, but since the weapons loadout section in the ships editor doesn't restrict, its hardly a major thing if its not done automatically. Its just up to the FREDer to remember what the ship can and can't carry. | ||||
| Tags | No tags attached. | ||||
|
|
Done. :) Should be in the next CVS. |
|
|
Reminder sent to The Trivial Psychic Does this SEXP work for you? If so let us know so we can close this bug report. |
|
|
I gave it a whirl and got it to switch one beam weapon for another. I haven't tested it with secondaries, but it seems to work well enough. |
|
|
Reminder sent to The Trivial Psychic Does this work with secondaries? |
|
|
My first test with secondaries resulted in a CTD. I'll test a little further to see if that's always the case. |
|
|
I've determined the source of the CTD. Is has to do with the fact that the weapon loading system is now set to load only used weapons by default. Clicking the option to disable this under troubleshooting, allows this to work. I need to do another check to make sure whether or not primaries are subject to this or not. Either way, something needs to be implimented to scan the events and make sure any weapons listed from such instances of this sexp be loaded with the rest of the weapons. |
|
|
That should be as simple as editing the preload function in sexp.cpp. It raises another potential issue, though. What happens if you use the www.freespace2.com cheat to select an unused secondary on your own fighter? |
|
|
I beat you to it by about 30 minutes goob. 0000629 |
|
|
I'll make the sexp related change tonight. |
|
|
Preload should be working now, though I didn't actually test it. Make sure it doesn't still CTD in the next CVS build. |
|
|
I tested this under 11/25 build, without the "load all weapons" flag, and it worked, and didn't crash. I'd say that this is working properly now. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2005-10-11 16:51 | The Trivial Psychic | New Issue | |
| 2005-10-12 03:42 | WMCoolmon | Status | new => assigned |
| 2005-10-12 03:42 | WMCoolmon | Assigned To | => WMCoolmon |
| 2005-11-05 04:27 | WMCoolmon | Note Added: 0003755 | |
| 2005-11-05 07:56 | WMCoolmon | Status | assigned => feedback |
| 2005-11-06 05:39 | redmenace | Note Added: 0003766 | |
| 2005-11-14 02:01 | The Trivial Psychic | Note Added: 0003823 | |
| 2005-11-17 21:25 | redmenace | Note Added: 0003882 | |
| 2005-11-19 04:20 | The Trivial Psychic | Note Added: 0003888 | |
| 2005-11-22 22:51 | The Trivial Psychic | Note Added: 0003916 | |
| 2005-11-23 00:25 | Goober5000 | Note Added: 0003917 | |
| 2005-11-23 00:32 | phreak | Note Added: 0003918 | |
| 2005-11-23 00:53 | taylor | Note Added: 0003919 | |
| 2005-11-23 06:44 | taylor | Note Added: 0003924 | |
| 2005-11-28 23:11 | The Trivial Psychic | Note Added: 0003944 | |
| 2005-11-28 23:35 | Goober5000 | Status | feedback => resolved |
| 2007-10-22 03:39 | taylor | Assigned To | WMCoolmon => taylor |
| 2007-10-22 03:39 | taylor | Resolution | open => fixed |