Solaestas / Everglow

GNU General Public License v3.0
26 stars 3 forks source link

`MemoryStream` buffer in `ImageReader` is null when reading `LapisLazuliDome_shape.bmp` #278

Open Setnour6 opened 1 month ago

Setnour6 commented 1 month ago

This takes place in the CagedDomain module.

Description

The memory stream object parameter "buffer" that is mentioned in the Read<TPixel>(path) method is supposed to return a path, but instead returns as null. During testing, "Everglow/CagedDomain/Tiles/BronzeLamp_shape.bmp" and other related file paths work, but "Everglow/CagedDomain/Tiles/LapisLazuliDome_shape.bmp" causes a System.ArgumentNullException. image

Reproduction Steps

  1. Open the game through Visual Studio.
  2. Wait until the mod loads
  3. You should get an error

For debugging: Place a Breakpoint on line 55, hover your mouse over path, and click "continue". Repeat that until you get the System.ArgumentNullException, then hover over path to see what file path should have been read.

This happens 100% of the time.