ruarai / CompilePal

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

Failing to pack; Ongoing issue between two computers #101

Closed Servius closed 4 years ago

Servius commented 4 years ago

Describe the bug Having an issue packing assets into the map. Ive attached my logs.

Reading BSP... Initializing pak file... Something broke: System.IO.EndOfStreamException: Unable to read beyond the end of the stream. at System.IO.BinaryReader.FillBuffer(Int32 numBytes) at System.IO.BinaryReader.ReadInt32() at CompilePalX.Compilers.BSPPack.AssetUtils.findMdlMaterials(String path, List1 skins) at CompilePalX.Compilers.BSPPack.PakFile.AddModel(String internalPath, List1 skins) at CompilePalX.Compilers.BSPPack.PakFile..ctor(BSP bsp, List`1 sourceDirectories) at CompilePalX.Compilers.BSPPack.BSPPack.Run(CompileContext context)

Debug.txt debug.log

Additional context https://pastebin.com/R7nfSBwe

Exactol commented 4 years ago

Can you upload any custom models used in the map? Which version of compile pal are you running and for which game?

On Feb 5, 2020, at 6:00 AM, J Mason notifications@github.com wrote:

 Describe the bug Having an issue packing assets into the map. Ive attached my logs.

Reading BSP... Initializing pak file... Something broke: System.IO.EndOfStreamException: Unable to read beyond the end of the stream. at System.IO.BinaryReader.FillBuffer(Int32 numBytes) at System.IO.BinaryReader.ReadInt32() at CompilePalX.Compilers.BSPPack.AssetUtils.findMdlMaterials(String path, List1 skins) at CompilePalX.Compilers.BSPPack.PakFile.AddModel(String internalPath, List1 skins) at CompilePalX.Compilers.BSPPack.PakFile..ctor(BSP bsp, List`1 sourceDirectories) at CompilePalX.Compilers.BSPPack.BSPPack.Run(CompileContext context)

Debug.txt debug.log

Additional context https://pastebin.com/R7nfSBwe

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

Servius commented 4 years ago

Running version .25 and .27 Theres a lot of non-hl2/css models being used but all are used in other maps on Gmod, the game Im trying to compile my maps for.

Servius commented 4 years ago

Im happy to share the vmf and the required resources if that helps your investigation.

Servius commented 4 years ago

Not trying to annoy, gonna tag you to let you know ive responded 👍 @Exactol

Servius commented 4 years ago

@Exactol Gonna assume yes to uploading the models. Will do that now.

Servius commented 4 years ago

https://drive.google.com/file/d/1pK5t0Dc7ARStt1vImv-HeCeXu1GdisX2/view?usp=sharing

Servius commented 4 years ago

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

Exactol commented 4 years ago

Can't recreate the crash on my end, can you try the latest prerelease?

Servius commented 4 years ago

Sure. One moment.

Servius commented 4 years ago

So it was able to complete teh compile and actually pack into it. However, it seems to have selectively chosen to not pack in some materials while some CSS textures/models arent recognized as there. I had someone test it with just the .bsp and css mounted to gmod to test. They were having issues mostly on the ship and a few issues with the CSS props on the planet.

Here are the screens he sent me:

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

Here is the packed .bsp I sent him ^

Servius commented 4 years ago

https://pastebin.com/m545SrYk

Its gotten better but I have one error in the compile. Im using the pack includefolder option to force it to grab everything that is missing from the ship (i hope) and Ive also excludeded one of the 3 directors I was using to keep it as an additional download as required.

This the last error afaik:

Error opening C:\Program Files (x86)\Steam\steamapps\common\GarrysMod\garrysmod\maps\gm_buttes_sandyspace.bsp! (Check for write enable)

Here is the download for the corresponding .bsp : https://drive.google.com/file/d/1dZS5fapgImzh3YMOG6dnLjQMvR_6G_d-/view?usp=sharing It is obvious that it has more packed into it.

Servius commented 4 years ago

So I think everything is solid. Thank you for your help, the pre-release fixed the issue.