Menu

#2028 Reproducable Crash calling Sprites >= 65

Crash
open
None
5
2018-11-25
2018-11-25
No

Using the 2018-07-30 build, I am able to cause a consistent crash when calling any sprite above number 64. Using the Magic Leggings test system in my Conquests mod, I can call any sprite, including new ones.

Numbers 0-64 work fine, either displaying the sprite, or doing nothing if one does not exist.
Numbers 65+ cause the engine to crash, with no details in stderr.txt.

This does not immediately impact my mod work, since there are about 10 unused sprite numbers in Silver Seed. But as best practice I prefer to keep my new graphics after original canon content.

1 Attachments

Discussion

  • Knight Captain

    Knight Captain - 2018-11-25

    Set gflag 2 to able to double-click the magic leggings.

    Reproducible not Reproducable.

     

    Last edit: Knight Captain 2018-11-25
  • Marzo Sette Torres Junior

    There is no limit on Exult on how high sprites (or shapes, in general) can go[1]. You can just add more shapes to the shapes files, and they will just work. The crash does not happen if you add enough sprites to sprites.vga to get to 65 or more.

    I agree that it should not crash outright; and this is a bug. But there is not an actual bug preventing using sprites above 64.

    [1] Well, I think there is one, but it is much higher than 64, and can be easily removed if it becomes an issue.

     
  • Marzo Sette Torres Junior

    • assigned_to: Marzo Sette Torres Junior