View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0002116 | FSSCP | math-related | public | 2010-02-09 23:26 | 2010-02-13 09:00 |
| Reporter | FUBAR-BDHR | Assigned To | Wanderer | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | resolved | Resolution | fixed | ||
| Product Version | 3.6.11 | ||||
| Summary | 0002116: Null vec3d can occur if fireball.tbl explosion occurs at player ship location | ||||
| Description | Testing a modification to explosion-effect sexp I got a Null vec3d while testing damage. I had placed the ship at the same place as the explosion-effect for the test. Problem is around line number 8583: case OBJ_SHIP: ship_apply_global_damage( objp, NULL, &origin, t_damage ); vec3d force, vec_ship_to_impact; vm_vec_sub( &vec_ship_to_impact, &objp->pos, &origin ); vm_vec_copy_normalize( &force, &vec_ship_to_impact ); vm_vec_scale( &force, (float)max_blast ); ship_apply_whack( &force, &vec_ship_to_impact, objp ); break; Probably just need to do a sanity check. Guessing Wanderer could fix this in about 2 seconds. I've given him lots of practice. | ||||
| Additional Information | 3.6.11 r5895. Only happens if the ship and explosion are at the exact same coordinates. I had them both at 0,0,1000. Attaching mission. It will get you the crash but also cause additional warnings due to feeding it invalid options (I was testing giving it bad data). The error occurs immediately and that event has all valid data so you won't hit the bad data before the null vec3d. Just expect the warnings if you continue. | ||||
| Tags | No tags attached. | ||||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2010-02-09 23:26 | FUBAR-BDHR | New Issue | |
| 2010-02-09 23:26 | FUBAR-BDHR | File Added: 1special_exp.fs2 | |
| 2010-02-12 11:34 | Wanderer | Status | new => assigned |
| 2010-02-12 11:34 | Wanderer | Assigned To | => Wanderer |
| 2010-02-13 09:00 | Wanderer | Status | assigned => resolved |
| 2010-02-13 09:00 | Wanderer | Resolution | open => fixed |