ProfMobius / Modjam5

Modjam5
1 stars 4 forks source link

[1.0.3] Server crashes when taking photo in non-overworld dimensions #5

Closed QBFreak closed 5 years ago

QBFreak commented 6 years ago

If I take a photo in a dimension other than the Overworld (such as the Nether, or a dimension from Mystcraft) the server crashes with

Description: Exception in server tick loop

I am using the Polaroid camera. I am running Forge forge-1.12.2-14.23.4.2705 My list of mods is a bit long, it's probably best seen in the crash report.

The crash report is attached.

crash-2018-07-10_17.27.12-server.txt

Please let me know if you need further testing to narrow this down.

QBFreak commented 6 years ago

If I had been paying attention to the server output, I would have seen this Photographer player is null, which means we can't produce an item. Sorry :(

I decided to dust off my weak modding skills (ok, so I did a tutorial once), and actually managed to come up with what I believe is a reasonable fix (that is to say, I Googled it :) ). Take a look at QBFreak/Modjam5@4036e35 and see if it looks satisfactory. I tested it both in the Overworld and the Nether. I'll send along a Pull Request so you can implement it if you desire.

QBFreak commented 5 years ago

Hmm. I just rebuilt it from my repo and it seemed to work just fine.

My guess is PTRLib is missing, but that's a guess. If not, can you answer the following?

QBFreak commented 5 years ago

@ItsAnysek Here's the build I was testing with: https://github.com/QBFreak/Modjam5/releases/tag/v1.0.5

DoomRater commented 5 years ago

I hate to mention things not related to the main project, but I'm unable to report issues on QBFreak's build. After updating to your 1.0.5 build, all picture frames are tiny. They used to be quite large, but I can't see anything that has changed between your build and this one to cause a size change.

QBFreak commented 5 years ago

Whoops. Apparently issues can be disabled, and are by default on forked repos. Fixed that.

I also didn't realize that the release on CurseForge is 1.0.3 while I forked and modified 1.0.4. At some point in the middle the hanging frame size was changed. As a stop-gap, I've uploaded a new release, 1.0.3a, that I believe is the same as the release on CurseForge, with the addition of my patch for multi-dimension use.

You can find it here: https://github.com/QBFreak/Modjam5/releases/tag/v1.0.3a