ruarai / CompilePal

A tool to assist in the compiling of source engine maps
GNU General Public License v3.0
224 stars 25 forks source link

Map has no textures - engine error #88

Closed killer89 closed 1 year ago

killer89 commented 4 years ago

Started to get this engine error yesterday. For some reason the custom content is not packed into the map file after compiling and custom content packing is done, but the map file however seemingly breaks up, and in-game crashes with "map has no textures" - engine error message.

I was using 0.26.4 when the issue started to appear, and downgraded all the way to 0.26.2, with no luck. The game in question was Half-Life 2: Episode Two.

The map compiles and runs normally, if the custom content is not packed into the map file with CompilePal. (Map compiling itself works in CompilePal.)

I tested custom content packaging with pakrat, and it didn't have issues with packing, and the map launched normally in-game.

debug.log

Exactol commented 4 years ago

Can you upload the textures/assets that you are trying to pack?

On Oct 21, 2019, at 9:31 AM, killer89 notifications@github.com wrote:

 Started to get this engine error yesterday. For some reason the custom content is not packed into the map file after compiling and custom content packing is done, but the map file however seemingly breaks up, and in-game crashes with "map has no textures" - engine error message.

I was using 0.26.4 when the issue started to appear, and downgraded all the way to 0.26.2, with no luck.

The map compiles and runs normally, if the custom content is not packed into the map file with CompilePal. I tested custom content packaging with pakrat, and it didn't have issues with packing, and the map launched normally in-game.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

killer89 commented 4 years ago

I did some research, and discovered the reason for the crashing:

Before the crashing started to occur, i had been packing the custom content into the map, and the file size had been around 124mb, which is fine. However yesterday i added a motorcycle model to the map (material files alone are 193mb), and some time later the custom content packaging stopped working and the crash occurred. When i excluded the motorcycle's files from the packaging, the custom content was once again packed normally into the map file, and it didn't crash in-game.

Apparently there is some sort of limit of how big the bsp can be.

Exactol commented 4 years ago

Did compile pal throw any errors when it tried to pack the motorcycle?

On Oct 21, 2019, at 1:05 PM, killer89 notifications@github.com wrote:

 I did some research, and discovered the reason for the crashing:

Before the crashing started to occur, i had been packing the custom content into the map, and the file size had been around 124mb, which is fine. However yesterday i added a motorcycle model to the map (material files alone are 193mb), and some time later the custom content packaging stopped working and the crash occurred. When i excluded the motorcycle's files from the packaging, the custom content was once again packed normally into the map file, and it didn't crash in-game.

Apparently there is some sort of limit of how big the bsp can be.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

killer89 commented 4 years ago

No, it seemingly went alright, however the map's filesize hadn't changed and in-game the map just crashed with that "map has no textures" - engine error.

It wasn't exactly easy thing to track, since that error is not very common. Finding out the cause was pure luck.

edit

I configured CompilePal to ignore the motorcycle's files (both materials and model) with -exludedir, however CompilePal simply closes, when it's about to start packing the custom content. (Map works, but the custom content is not packed into it.)

The map does load normally even with the bike on the map, if i don't pack any of the custom content, though.

Crashlogs folder is empty, so unfortunately there is nothing to send to you.

Exactol commented 4 years ago

CompilePal 026.5.zip Try this and send the debug.log and any crash logs if they appear

killer89 commented 4 years ago

CompilePal crashed again on 0.26.5, when it was about to pack the custom content, excluding the motorcycle with -excludedir.

It's almost like compilepal would ignore the -excludedir command.

debug.log

Exactol commented 4 years ago

Can you upload the motorcycle model?

On Oct 22, 2019, at 7:35 AM, killer89 notifications@github.com wrote:

 CompilePal crashed again on 0.26.5, when it was about to pack the custom content, excluding the motorcycle.

debug.log

— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or unsubscribe.

killer89 commented 4 years ago

https://drive.google.com/file/d/1fKXeAf59TGnu5yamA1F6KiQ5NclIszid/view?usp=sharing

It messes up the custom content packing, and breaks the compiled bsp. Also CompilePal seems to ignore the -excludedir command, which i used on both the motorcycle's material and model directories.

Exactol commented 4 years ago

CompilePal 026.6.zip Try this out

killer89 commented 4 years ago

It seems to be working now.

Cheers. :)

killer89 commented 4 years ago

The crashing fixes in 0.26.6 weren't carried over to 0.27?

I just tried the new version, and the issue is present in it.

Exactol commented 4 years ago

Are you sure you installed correctly? I just tried it and it worked fine. Can you upload your crash/debug logs?

killer89 commented 4 years ago

I extracted the files to a new folder, copied over only the game settings, and compiled / packed content on two maps several times, and it seems to work now.

Apparently 0.26.6 > 0.27 "upgrade installation" didn't work out.

killer89 commented 4 years ago

The issue has started to pop up again. I have tried 0.27.5 and 0.27.6 versions with fresh install. Motorcycle model i sent earlier is again the troublemaker. It haven't been modified.

debug.log

Exactol commented 4 years ago

Is the issue with excluding directories or in-game crashes?

killer89 commented 4 years ago

Latter.

Exactol commented 4 years ago

Hmm, I just tested it in TF2 and it seems to be working fine. Can you send me the bsp after packing?

killer89 commented 4 years ago

Did you try to pack the motorcycle model into it?

Trying to pack it into the map file causes a crash in-game with the same "Map has no textures" - engine error that occurred last year.

I did some more research, and excluded the motorcycle's textures from packing, and the custom assets were then normally packed and the map loaded normally.

It's starting to look like the fixes ("Fixed multiple issues with packing textures in models with multiple bodyparts") you made in 0.27 are somehow broken.

Exactol commented 1 year ago

Closing stale issues, please try the latest prerelease and if the issue is still happening feel free to reopen