Skip to navigation


Drawing ships: SHIP_SPLINTER

[Elite-A, Ship blueprints K]

Name: SHIP_SPLINTER [Show more] Type: Variable Category: Drawing ships Summary: Ship blueprint for a splinter Deep dive: Ship blueprints
Context: See this variable in context in the source code References: This variable is used as follows: * XX21 uses SHIP_SPLINTER

The ship blueprint for the splinter is supposed to reuse the edges data from the escape pod, but there is a bug in Elite-A that breaks splinters. The edges data offset is negative, as it should be, but the offset value is incorrect and doesn't even point to edge data - in the Tube version, it points into the middle of the Thargoid's vertex data, while in the disc version it points to a different place depending on the structure of the individual blueprint file. In all cases the offset is wrong, so splinters in Elite-A appear as a random mess of lines. The correct value of the offset should be: SHIP_ESCAPE_POD_EDGES - SHIP_SPLINTER split into the high byte and low byte, as it is in the disc version.
.SHIP_SPLINTER EQUB 0 + (11 << 4) \ Max. canisters on demise = 0 \ Market item when scooped = 11 + 1 = 12 (Minerals) EQUW 16 * 16 \ Targetable area = 16 * 16 \ --- Mod: Code removed for Elite-A: ------------------> \EQUB LO(SHIP_ESCAPE_POD_EDGES - SHIP_SPLINTER) \ Edges from escape pod \ --- And replaced by: --------------------------------> IF _RELEASED OR _SOURCE_DISC EQUB &5A \ This value is incorrect (see above) ELIF _BUG_FIX EQUB LO(SHIP_ESCAPE_POD_EDGES - SHIP_SPLINTER) \ Edges from escape pod ENDIF \ --- End of replacement ------------------------------> EQUB LO(SHIP_SPLINTER_FACES - SHIP_SPLINTER) + 24 \ Faces data offset (low) EQUB 25 \ Max. edge count = (25 - 1) / 4 = 6 EQUB 0 \ Gun vertex = 0 EQUB 22 \ Explosion count = 4, as (4 * n) + 6 = 22 EQUB 24 \ Number of vertices = 24 / 6 = 4 EQUB 6 \ Number of edges = 6 \ --- Mod: Code removed for Elite-A: ------------------> \EQUW 0 \ Bounty = 0 \ --- And replaced by: --------------------------------> EQUW 1 \ Bounty = 1 \ --- End of replacement ------------------------------> EQUB 16 \ Number of faces = 16 / 4 = 4 EQUB 8 \ Visibility distance = 8 \ --- Mod: Code removed for Elite-A: ------------------> \EQUB 20 \ Max. energy = 20 \ --- And replaced by: --------------------------------> EQUB 16 \ Max. energy = 16 \ --- End of replacement ------------------------------> EQUB 10 \ Max. speed = 10 \ --- Mod: Code removed for Elite-A: ------------------> \EQUB HI(SHIP_ESCAPE_POD_EDGES - SHIP_SPLINTER) \ Edges from escape pod \ --- And replaced by: --------------------------------> IF _RELEASED OR _SOURCE_DISC EQUB &FE \ This value is incorrect (see above) ELIF _BUG_FIX EQUB HI(SHIP_ESCAPE_POD_EDGES - SHIP_SPLINTER) \ Edges from escape pod ENDIF \ --- End of replacement ------------------------------> EQUB HI(SHIP_SPLINTER_FACES - SHIP_SPLINTER) \ Faces data offset (low) EQUB 5 \ Normals are scaled by = 2^5 = 32 EQUB %00000000 \ Laser power = 0 \ Missiles = 0 .SHIP_SPLINTER_VERTICES \ x, y, z, face1, face2, face3, face4, visibility VERTEX -24, -25, 16, 2, 1, 3, 3, 31 \ Vertex 0 VERTEX 0, 12, -10, 2, 0, 3, 3, 31 \ Vertex 1 VERTEX 11, -6, 2, 1, 0, 3, 3, 31 \ Vertex 2 VERTEX 12, 42, 7, 1, 0, 2, 2, 31 \ Vertex 3 .SHIP_SPLINTER_FACES \ normal_x, normal_y, normal_z, visibility FACE 35, 0, 4, 31 \ Face 0 FACE 3, 4, 8, 31 \ Face 1 FACE 1, 8, 12, 31 \ Face 2 FACE 18, 12, 0, 31 \ Face 3 EQUB 7 \ This byte appears to be unused