Skip to content

FAQ & Troubleshooting

Nate River edited this page Dec 27, 2024 · 27 revisions

What's the difference between 2D and 4D hero editors?

2D means 2-directional (left/right), while 4D is 4-directional (left/right/up/down). They contain different sprite collections, although some sprites may be similar. Hero Editor 2D contains more content compared to Hero Editor 4D (while 4D has 3 sprites/projections for each item). Both hero editors have WebGL demos available from their asset pages, so you can try and compare. Both hero editors are compatible with Fantasy Workshop that can generate new equipment from different parts and effects. Also both hero editors are compatible with our monster packs (note that all monsters are 2-directional only). You can't mix sprites from both editors.

Issues with Newtonsoft.Json (missed/duplicated)

  • Go to Project window, use search to find and select Newtonsoft.Json.dll. Then go to Inspector window and check or uncheck Any Platform, then uncheck or check Exclude Platforms, then press Apply and wait a few seconds.
  • If com.unity.nuget.newtonsoft-json@2.0 is already included to your project, find Newtonsoft.Json.dll in the asset folder and exclude it from builds.
  • If com.unity.nuget.newtonsoft-json@2.0 is not included to your project, find Newtonsoft.Json.dll in the asset folder and include it to builds.
  • com.unity.nuget.newtonsoft-json@2.0 may be included by default as a dependency via packages-lock.json in new projects.

The name 'FSB' does not exist in the current context

Import Unity Standalone File Browser (3rd party asset) or just comment all calls to SFB (if you don't need the file picker functionality). SFB only works with Mono Scripting Backend and .NET 4.x.

No eyes in builds

  • Make sure you've set Player Settings > Auto Graphic API.
  • Navigate to Graphics Settings > Always Included Shaders and include GrayPaint shader.
  • Try switching to the Built-in Render Pipeline (the shader tested with it and works 100%).

Compatibility with LWRP/URP (purple eyes)

After enabling LWRP/URP you should fix all user shaders by replacing "LightMode" = "ForwardBase" with "RenderPipeline" = "LightweightPipeline" (or "UniversalPipeline") (update GrayPaint.shader). Refer to GrayPaintLWRP.shader (included, the same folder).

Could not load file or assembly (HeroEditor.dll, HeroEditor.Common)

Update Unity. Set Scripting Backend = IL2CPP and choose .NET 4.x.

UI issues (white rects, missed panels)

Select HeroEditor4D/FantasyHeroes/Atlases/UI.atlas and check Include in Build (if you really need it for your game).