Author Topic: [Solved] Bullet, Explosion, Hit and Geoscape marker image limits in OXCE?  (Read 1619 times)

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
I have a few questions about image limits in OXCE.

(#1)
Is the bulletSprite: BulletSprites.png image still limited to a 35 different projectiles?

(#2)
If bulletSprite: is limited to 35 does reservedSpace: in the metadata.yml increase this limit?

(#3)
When using TFTD do Projectiles and UnderwaterProjectiles each have their own limit of 35 or is it a combined total?

For example would this be 3 out of 35 sprites used or 6 out of the total 35 sprites:

Spoiler:
Code: [Select]
extraSprites:
  - type: Projectiles
    height: 3
    width: 65
    subX: 3
    subY: 3
    files:
      0: Resources/Projectiles_01_Land.png
      35: Resources/Projectiles_02_Land.png
      70: Resources/Projectiles_03_Land.png


  - type: UnderwaterProjectiles
    height: 3
    width: 65
    subX: 3
    subY: 3
    files:
      0: Resources/Projectiles_01_Water.png
      35: Resources/Projectiles_02_Water.png
      70: Resources/Projectiles_03_Water.png


(#4)
Basically the same question but about the hitAnimation: and meleeAnimation: sprites.

Is there a limit and does reservedSpace: raise it?

(#5)
If there is a limit is it the number of hit animation image sets or is it the total number of frames that is the limit?

This is useful to know if hitAnimFrames: and meleeAnimFrames: are going to be used to create longer animations.

(#6)
Geoscape UFO, terror site & base markers. (marker: markerLand: markerCrash: markerIcon:)

Is there a limit to the number of different images that can be used?
« Last Edit: April 11, 2023, 03:24:48 am by The Martian »

Offline Meridian

  • Global Moderator
  • Commander
  • *****
  • Posts: 8974
    • View Profile
Re: Bullet, Explosion, Hit and Geoscape marker image limits in OXCE?
« Reply #1 on: April 10, 2023, 09:18:26 am »
none of these questions is about OXCE, everything here is from OXC


1/ it was never limited to 35 (if anything it was limited to 28, but that's just a default)

2/ reservedSpace increases the number of indices you can use for any sprite sheet including bullet sprites, yes

3/ each have their own indices; examples above are 3 out of 28 (or 105 out of 1000)

4/ same answer

5/ both

6/ theoretically yes, 100000 (corresponding to reservedSpace: 100), practically no

Offline The Martian

  • Commander
  • *****
  • Posts: 754
  • "It implores you to listen to its arguments..."
    • View Profile
Re: Bullet, Explosion, Hit and Geoscape marker image limits in OXCE?
« Reply #2 on: April 11, 2023, 03:19:35 am »
Thank you for taking the time to answer all of that.

I'm glad to hear that the sky is the limit when it comes to additional sprites.


1/ it was never limited to 35 (if anything it was limited to 28, but that's just a default)

I had misunderstood when reading the description in the Ruleset Reference:
Spoiler:

The 35 3x3 images was related to the individual frames of a single projectile not their total number.

« Last Edit: April 11, 2023, 03:28:47 am by The Martian »