Skip to content

Raise skin limit to 256 + Skin related code cleanup

Fafabis requested to merge Fafabis/Kart-Public:raise-skin-limit-port into next

Backport of STJr/SRB2!1466 (merged) with some additions

Removing WIP from the original merge request to this because i have made it functional.

This could be useful for servers with many characters in mind, and as skins are now allocated dynamically, it's not a waste of memory for servers that won't use all the character slots.

Here's a video recorded by @raphaelgoulart on a server with 211 characters: lotsofchars

Additions:

  • This MR makes the full use of HWR_InitMD2, that previously was executed with no skins loaded.
  • Removes message "Unknown sprite/player skin..." at startup with opengl because it doesn't make sense as you can use models with characters added after startup.
  • Removes all code related with character descriptions (leftover from srb2).

Testing:

Please let me now if anything is wrong.

Edited by Fafabis

Merge request reports