Author Topic: basebits and inticon troubles  (Read 2910 times)

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
basebits and inticon troubles
« on: December 28, 2017, 12:06:16 pm »
I'm trying to get my weapon icons to work in-game but I keep getting a segmentation fault and I don't know what I'm doing wrong.

Code: [Select]
  - type: INTICON.PCK
    files:
      16: Resources/ReaversArmada/Pulse_Cannon_inticon.gif
      17: Resources/ReaversArmada/Plasma_Autocannon_inticon.gif
      18: Resources/ReaversArmada/Light_Fusion_Ball_inticon.gif
      19: Resources/ReaversArmada/Heavy_Fusion_Ball_inticon.gif
  - type: BASEBITS.PCK
    files:
      59: Resources/ReaversArmada/Pulse_Cannon_basebit.gif
      60: Resources/ReaversArmada/Plasma_Autocannon_basebit.gif
      61: Resources/ReaversArmada/Light_Fusion_Ball_basebit.gif
      62: Resources/ReaversArmada/Heavy_Fusion_Ball_basebit.gif

I copied the number sets 16/59 and 17/60 from another mod (AwesomeGuns) which also adds craft weapon icons. I tried it with only 16/59 or 17/60 and neither one works. What am I doing wrong?

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8628
    • View Profile
Re: basebits and inticon troubles
« Reply #1 on: December 28, 2017, 12:19:51 pm »
The code you pasted is correct.... error is somewhere else.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: basebits and inticon troubles
« Reply #2 on: December 28, 2017, 01:46:22 pm »
I found the error. The craft weapons must have sprites 11, 12, 13, 14.

Do any of you know of any mods that use a bunch of craft weapon sprites?

Offline ohartenstein23

  • Commander
  • *****
  • Posts: 1931
  • Flamethrowers fry cyberdisk circuits
    • View Profile
Re: basebits and inticon troubles
« Reply #3 on: December 28, 2017, 02:25:37 pm »
XenoOperations, Piratez, and X-Com Files all use a number of different craft weapons, some shared resources.

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8628
    • View Profile
Re: basebits and inticon troubles
« Reply #4 on: December 28, 2017, 03:22:33 pm »
I found the error. The craft weapons must have sprites 11, 12, 13, 14.

Nah, you can use anything between 0 and 999.

Offline The Reaver of Darkness

  • Commander
  • *****
  • Posts: 1510
    • View Profile
Re: basebits and inticon troubles
« Reply #5 on: January 02, 2018, 03:32:38 am »
What I mean is, they have to have the correct number for their basebit and inticon numbers.