Author Topic: Multiple "Wrong index 19066 for surface set BIGOBS.PCK"  (Read 1653 times)

Offline Bee

  • Sergeant
  • **
  • Posts: 10
    • View Profile
Multiple "Wrong index 19066 for surface set BIGOBS.PCK"
« on: December 13, 2022, 03:33:54 am »
So, if I simply delete the lines all is fine. And that's how I would use the modded file, but I am keeping everything within the modded file to try and identify issues prior to. This error comes up upon loading:

[12-12-2022_17-20-35]   [ERROR]   During linking rulesets of items:
Error for 'CALCINITE_WEAPON': Wrong index 19066 for surface set BIGOBS.PCK
Error for 'DEEP_ONE_WEAPON': Wrong index 19072 for surface set BIGOBS.PCK
Error for 'HALLUCINOID_WEAPON': Wrong index 19068 for surface set BIGOBS.PCK
Error for 'STR_BIODRONE_MELEE_WEAPON': Wrong index 19073 for surface set BIGOBS.PCK
Error for 'STR_LOBSTERMAN_MELEE_WEAPON': Wrong index 19070 for surface set BIGOBS.PCK
Error for 'STR_TRIBIO_SONIC_WEAPON': Wrong index 19067 for surface set BIGOBS.PCK
Error for 'STR_TRISCENE_MELEE_WEAPON': Wrong index 19069 for surface set BIGOBS.PCK
Error for 'TENTACULAT_WEAPON': Wrong index 19071 for surface set BIGOBS.PCK
Error for 'XARQUID_WEAPON': Wrong index 19067 for surface set BIGOBS.PCK
Error for 'ZOMBIE_WEAPON': Wrong index 19074 for surface set BIGOBS.PCK

Here are the lines in the modded file, but they are IDENTICAL to the vanilla ruleset. I am only including them for reference.

Code: [Select]
   - type: STR_BIODRONE_MELEE_WEAPON
    bigSprite: 73
    meleeSound: 26
    strengthApplied: true
    damageType: 7
    accuracyMelee: 100
    tuMelee: 15
    battleType: 3
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
  - type: HALLUCINOID_WEAPON
    bigSprite: 68
    meleeSound: 26
    strengthApplied: true
    damageType: 7
    accuracyMelee: 100
    tuMelee: 15
    battleType: 3
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
  - type: STR_LOBSTERMAN_MELEE_WEAPON
    specialUseEmptyHand: true
    specialUseEmptyHandShow: true
    bigSprite: 70
    meleeSound: 42
    strengthApplied: true
    damageType: 7
    accuracyMelee: 100
    tuMelee: 15
    battleType: 3
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
  - type: CALCINITE_WEAPON
    bigSprite: 66
    meleeSound: 16
    strengthApplied: true
    damageType: 7
    accuracyMelee: 100
    tuMelee: 15
    battleType: 3
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
  - type: DEEP_ONE_WEAPON
    bigSprite: 72
    bulletSprite: 8
    fireSound: 40
    hitSound: 41
    power: 100
    damageType: 8
    accuracyAuto: 50
    accuracySnap: 75
    accuracyAimed: 110
    tuAuto: 35
    tuSnap: 30
    tuAimed: 60
    battleType: 1
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
    arcingShot: true
    hitAnimation: -1
  - type: STR_TRISCENE_MELEE_WEAPON
    bigSprite: 69
    handSprite: 41
    meleeSound: 44
    strengthApplied: true
    damageType: 7
    accuracyMelee: 100
    tuMelee: 15
    battleType: 3
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
  - type: STR_TRIBIO_SONIC_WEAPON
    weight: 3
    bigSprite: 67
    floorSprite: 29
    handSprite: 40
    fireSound: 36
    hitSound: 31
    hitAnimation: 46
    power: 110
    damageType: 5
    accuracySnap: 86
    accuracyAimed: 100
    tuSnap: 30
    tuAimed: 60
    battleType: 1
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    bulletSprite: 8
    recover: false
    vaporColor: 3
    vaporDensity: 30
  - type: XARQUID_WEAPON
    weight: 3
    bigSprite: 67
    floorSprite: 29
    handSprite: 40
    fireSound: 37
    hitSound: 31
    hitAnimation: 46
    power: 130
    damageType: 5
    accuracySnap: 75
    accuracyAimed: 100
    tuSnap: 30
    tuAimed: 60
    battleType: 1
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    bulletSprite: 8
    recover: false
    vaporColor: 3
    vaporDensity: 30
  - type: TENTACULAT_WEAPON
    bigSprite: 71
    meleeSound: 42
    strengthApplied: true
    damageType: 7
    accuracyMelee: 100
    tuMelee: 15
    battleType: 3
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false
    zombieUnit: STR_ZOMBIE
  - type: ZOMBIE_WEAPON
    bigSprite: 74
    meleeSound: 42
    strengthApplied: true
    damageType: 7
    accuracyMelee: 100
    tuMelee: 15
    battleType: 3
    fixedWeapon: true
    invWidth: 2
    invHeight: 3
    clipSize: -1
    recover: false

If I delete these lines all is well. And, again, the final mod would not include these lines since they are identical to the vanilla ruleset. But I am trying to figure out why the error occurs with the lines included, and not when they are omitted. Compare tools show no errors / differences in syntax (spacing etc.). This error occurs when this is the only mod file turned on.

Thank you.

* I get the same error even if I copy over the vanilla rulset as is, and add it to the mod folder (obviously with the proper file structure etc.). /sigh
« Last Edit: December 13, 2022, 04:18:12 am by Bee »

Online Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 9093
    • View Profile
Re: Multiple "Wrong index 19066 for surface set BIGOBS.PCK"
« Reply #1 on: December 13, 2022, 08:56:44 am »
If you use images from other mods (yes, xcom1 and xcom2 are mods), you need to copy the image declarations too (extraSprites).
Only OG images don't need to be copied.

Or you can cross-reference images from other mods using the following syntax: https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Negative_indices_and_cross-referencing_other_mods

Offline Bee

  • Sergeant
  • **
  • Posts: 10
    • View Profile
Re: Multiple "Wrong index 19066 for surface set BIGOBS.PCK"
« Reply #2 on: December 13, 2022, 10:00:16 am »
If you use images from other mods (yes, xcom1 and xcom2 are mods), you need to copy the image declarations too (extraSprites).
Only OG images don't need to be copied.

Or you can cross-reference images from other mods using the following syntax: https://www.ufopaedia.org/index.php/Ruleset_Reference_Nightly_(OpenXcom)#Negative_indices_and_cross-referencing_other_mods

Easy enough. Thank you.