View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0000759 | FSSCP | FRED | public | 2006-01-29 20:58 | 2006-02-04 07:59 |
| Reporter | bfobar | Assigned To | Goober5000 | ||
| Priority | normal | Severity | major | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Summary | 0000759: Hostile ships won't attack. | ||||
| Description | On the 1/27 CVS build and several previous builds I have been experiencing a problem with hostiles. I set up a mission with 2 capital ships ordered to attack eachother and beam-free both, and only the friendly ships shoots. If I go back into fred and change the friendly cap to hostile, the hostile to friendly, again only the friendly ship shoots, so I know it's not the beam-free-all sexp. Hostile also will not shoot at alpha 1. | ||||
| Additional Information | If I select the "all teams at war" box, everything shoots at everyone. Both capital ships shoot eachother, and both shoot at alpha 1, including the friendly. Also, it seems that alpha1 (player's ship) does not default to the friendly team. If I set another ship to friendly, set it as the player's ship, set alpha1 to friendly, and then set it back as the player's ship. This sees to force it to be friendly. Otherwise I get a "Ships of wing alpha are on different teams" error message. This leads me to guess that the hostile not attacking problem relates to who is on which team or something. Also if I run the fred error checker after every change, I get no errors reported until after I save the game to a file, and it is always giving the error "Alpha1 should be renamed alpha 2" (or 3 or 4 depending on wing size) here's my command line for FS2 \fs2_open_r-P420060127.exe -mod FSO, ,mediavps -spec -glow -jpgtga -mipmap -nomotiondebris -2d_poof -cache_bitmaps -missile_lighting -dualscanlines -targetinfo -orbradar -rearm_timer -nobeampierce -ship_choice_3d -3dwarp -warp_flash -snd_preload -env -alpha_env -fps Here's my command line for fred: \fred2_open_r-P420060127.exe -fredhtl -jpgtga | ||||
| Tags | No tags attached. | ||||
|
|
As a further test, I used retail fred2 just now to build a mission with identical parameters. In retail, the ships behave as intended. They slug it out and only the hostile ship shoots at me, and theres no weird team error messages during construction. edited on: 01-29-06 17:48 |
|
|
I'm attaching the fs.log file I got after running a fred debug build. It crashed to desktop on my trying to save the mission. It also gave this wad of spew: Assert: num != -1 File: c:\fs2_open\code\mission\missionparse.cpp Line: 4093 [This filename points to the location of a file on the computer that built this executable] Call stack: ------------------------------------------------------------------ fred2_open_d-P420060127.exe 004d8846() fred2_open_d-P420060127.exe 004da74d() fred2_open_d-P420060127.exe 004db692() fred2_open_d-P420060127.exe 00428936() fred2_open_d-P420060127.exe 00428329() fred2_open_d-P420060127.exe 008cdab0() fred2_open_d-P420060127.exe 008cd7cb() fred2_open_d-P420060127.exe 008b8fcc() fred2_open_d-P420060127.exe 008b9605() fred2_open_d-P420060127.exe 008cf06f() fred2_open_d-P420060127.exe 008cbd1e() fred2_open_d-P420060127.exe 00434f41() fred2_open_d-P420060127.exe 008ef2bd() fred2_open_d-P420060127.exe 008b2b69() fred2_open_d-P420060127.exe 008ee01e() ------------------------------------------------------------------ |
|
|
This problem may have been fixed in the most recent CVS (the All Teams At War part was, at least). Try a more recent build. |
|
|
I tried the 1/30 cvs builds. I have figured out the problem I think. When a ship is first placed, retail FRED has the default team to "Friendly". This version has the default team to " " (as in it's a blank field.) I have been habitually setting the ships I want friendly (green radar guys) to "Friendly" and the ships I want to attack (red radar guys) to "Hostile". This causes the game to think alpha 1 is on a different team. (team " "). That pisses off the wing editor and error checkers. If I place the friendly units and leave them on team " ". there are no errors, and the friendly cap ships shoot the hostiles, and the hostiles shoot the friendlies as intended. However, "Hostile" ships with attack orders will not attack ships of the "Friendly" Team. This is wonky and I think that Friendly should be the player & company team default, and hostiles should be shooting friendlies with none of this blank team business. |
|
|
I can confirm that the last CVS build not afflicted by this bug was 2006-01-09. Everything since has this. The problem is in what FRED displays in the IFF window in the ships editor. If you leave it blank, save the mission, then open it in the text editor, it'll be set as "friendly". If you set it to "friendly" it'll set it to "hostile". If you set it as "hostile", the mission text will display it as "neutral". If you set it to "neutral", the text editor will display it as "Trator". It you set it to "trator" or "unknown" it'll set it blank, and your ships will vanish from the screen as soon as you save the mission. You can still access them, and they'll reappear as soon as you select one of the ships from the ships editor, but they'll come back as "friendly", which of course means "Hostile". This bug is definitely a major bug, because it screws up anything saved under it. Fortunately, missions with proper IFF done under previous builds, won't have any problems when played by an FSO build with this bug, it'll just display weird in FRED. |
|
|
Ah. The infamous off-by-one error. Thanks, TP, now I know exactly where to look. :) |
|
|
The odd thing was that nothing that I selected resulted in "unknown" being generated. |
|
|
Fixed in CVS. |
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2006-01-29 20:58 | bfobar | New Issue | |
| 2006-01-29 21:19 | bfobar | Note Added: 0004549 | |
| 2006-01-29 22:48 | bfobar | Note Added: 0004555 | |
| 2006-01-29 22:48 | bfobar | Note Edited: 0004549 | |
| 2006-01-30 07:22 | Goober5000 | Note Added: 0004556 | |
| 2006-01-31 07:41 | bfobar | Note Added: 0004581 | |
| 2006-02-01 06:06 | Goober5000 | Status | new => assigned |
| 2006-02-01 06:06 | Goober5000 | Assigned To | => Goober5000 |
| 2006-02-03 21:00 | The Trivial Psychic | Note Added: 0004643 | |
| 2006-02-03 21:15 | Goober5000 | Note Added: 0004644 | |
| 2006-02-04 05:37 | The Trivial Psychic | Note Added: 0004645 | |
| 2006-02-04 07:59 | Goober5000 | Status | assigned => resolved |
| 2006-02-04 07:59 | Goober5000 | Resolution | open => fixed |
| 2006-02-04 07:59 | Goober5000 | Note Added: 0004646 |