AndrewScheidecker / BrickGame

A demo of Minecraft-style voxel rendering in UE4
401 stars 143 forks source link

Cannot open BrickGrid Blueprint #4

Closed jnclark1978 closed 9 years ago

jnclark1978 commented 10 years ago

I have built the custom 4.5.1 and I am using the master BrickGame branch. I registered the custom UE4.5.1 and created project files using it. PIE works fine, but simply double clicking the BrickGrid Blueprint crashes the editor. I read in the forums that this was an issue before you updated the code to 4.5. Is the master not updated? I am not exactly a GitHub master. I donwloaded a Zip from the master branch page, could that be the problem? If not what was the code change required to fix this originally?

AndrewScheidecker commented 9 years ago

Does this happen with the BrickGame-4.5 branch of my UnrealEngine repo (https://github.com/AndrewScheidecker/UnrealEngine/tree/BrickGame-4.5), or with a stock Unreal Engine 4.5.x build? I think the master branch of my UnrealEngine repo is an old version of the engine.

jnclark1978 commented 9 years ago

Oh that might be it. Basically I have the new BrickGame engine, but old BrickGame plugin/game. It all makes sense now. Like I said I get a bit confused using GitHub. When I read you saying that this was an issue that was fixed I knew it was something I was doing wrong.

Ryvar commented 9 years ago

I've seen the same issue with both a clean build of UE 4.5.1 from source and a manual integration of UE 4.5.1 source and only the changed files from your repo. Everything runs fine, but opening the BrickGrid BP triggers an immediate crash. Assumed it was an error on my end, but...

ghost commented 9 years ago

The BrickGrid blueprint is crashing my editor also. I'm able to open all the other BPs (e.g. BrickGameMode, BrickSaveGame, and the more extensive BP_BrickSkySphere) and play the game in the editor.

I'm using the master branch of BrickGame (last authored on Oct 30, 2014): https://github.com/AndrewScheidecker/BrickGame compiled against the modified UE branch "BrickGame-4.5" (last authored on Oct 29, 2014): https://github.com/AndrewScheidecker/UnrealEngine/tree/BrickGame-4.5 (as described in the readme). The configuration was "Development Editor" for each.

The UE4 Crash Reporter gives: ... Fatal error: [File:E:\My Documents\GitHub\AndrewScheidecker\UnrealEngine\Engine\Source\Runtime\CoreUObject\Private\Templates\Casts.cpp] [Line: 11] Cast of NULL to Package failed ...

Thanks for the project btw. It's quite beautiful.

ghost commented 9 years ago

Not really a fix, but if anybody else is having this issue and wants to see (an older version of) the BrickGrid blueprint, I was able to checkout: https://github.com/AndrewScheidecker/BrickGame/tree/77e3a0b (from Apr 2, 2014) and compile it against the appropriate UE (4.0.2, unmodified): https://github.com/EpicGames/UnrealEngine/tree/4.0.2-release

It's not as cool as the master, but everything works.

AndrewScheidecker commented 9 years ago

I'm happy to say that I can reproduce this in stock UE 4.5.1, but not in UE4.6.1 or the UE4.7 preview.

ghost commented 9 years ago

This is great -- I didn't realize the game would compile against the stock UE 4.6.1. This way everything works and I can view all the current blueprints (including BrickGrid) without any issues. The game doesn't look quite as nice without the lighting modifications and I guess it's missing the performance improvements as well, but at least everything is functional. Thanks!