Jump to content

Published game fails to load map


Go to solution Solved by Josh,

Recommended Posts

Posted

I think it might be running out of VRAM. There's a lot of lights in there, and they have their shadow map size set to 1024. I changed the default to 512 some time ago and I thought I updated this map.

Let's build cool stuff and have fun. :)

  • 5 weeks later...
Posted
On 6/30/2025 at 6:59 AM, Dreikblack said:

Just tried clear Lua FPS template - black screen if i publish with "Only include used files".

Confirmed. The ZIP is creates is also only 23 MB...

Let's build cool stuff and have fun. :)

Posted

Notes...

  1. The .map format must be added to the "Always include files" list in the publish dialog.
  2. Model files must be saved with a recent enough version to generate the model's .meta file, which includes a list of material files the model uses.

But still I see on material failing to be included...Investigating more...

Let's build cool stuff and have fun. :)

Posted

I think it is fixed. New build coming soon. I also added a fallback path that will load the model and extract the materials, if the .meta file is missing.

  • Thanks 1

Let's build cool stuff and have fun. :)

Posted

I just tried it with a new project and the gun and bullet holes looked fine.

However, I did notice the train track material is missing.

image.thumb.png.99f5c22c8057e0a21e2be94e47e932e7.png

  • Upvote 1

Let's build cool stuff and have fun. :)

Posted
Just now, Josh said:

I just tried it with a new project and the gun and bullet holes looked fine.

However, I did notice the train track material is missing.

This was caused by an incorrect saved meta file that listed zero materials.

Let's build cool stuff and have fun. :)

Posted

Okay, I found that in your project's main.cpp file, RegisterComponents() has to be called AFTER the block of code that loads all zip files.

Let's build cool stuff and have fun. :)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...