Author Topic: [BUG?] broken md2 model crashes game  (Read 1855 times)

Toolwut

  • Stingray
  • Posts: 60
[BUG?] broken md2 model crashes game
« on: April 16, 2020, 10:59:24 AM »
Not sure how motivated you are in terms of handling unlikely stuff like this but md2 models where the header information regarding size and offsets of lumps is too large crashes my dp client (using wine on linux) so maybe same happens for windows clients or even servers. If someone ever happens to have a map containing such a model on his server that might cause some trouble. In case I'll ever finish my blender exporter people might start producing tons of those broken model files

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: [BUG?] broken md2 model crashes game
« Reply #1 on: April 17, 2020, 03:18:52 AM »
I kind of feel like it's the responsibility of the server admin to at least test content before uploading to a server.

Toolwut

  • Stingray
  • Posts: 60
Re: [BUG?] broken md2 model crashes game
« Reply #2 on: April 17, 2020, 03:42:16 AM »
Okay. Just thought that it might cause some trouble when someone experiments with new models and doesn't get info towards what causes crashes.

Also, I think I've seen the same happening with bsp files where the header doesn't contain right offset information.

jitspoe

  • Administrator
  • Autococker
  • Posts: 18802
Re: [BUG?] broken md2 model crashes game
« Reply #3 on: April 22, 2020, 01:17:42 AM »
Yeah, bad data can make the game crash.  It should be kind of obvious if you just tried to load a new map or whatever what the problem is.