ruarai / CompilePal

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

Using precompiler: Incorrect new filenamepath is set and passed to VVIS #226

Open zeThijs opened 7 months ago

zeThijs commented 7 months ago

Compile Pal Version v28X Describe the bug Using a precompiler option: something goes wrong passing new vmf name using: "COMPILE_PAL_SET file {filename}" in stdout. VVis gets passed an incorrect pathname (?).

Steps to reproduce In a python script: print(f'COMPILE_PAL_SET file "{vmf_out}"', end="")

Expected behavior The new vmf location is set in compilepal and is correctly used in following compile steps.

What goes wrong In VVIS:

Debug.log debug.log

Exactol commented 5 months ago

Can you try this build? https://www.dropbox.com/scl/fi/izhbxvjcj6knk27ezl00l/Compile-Pal-028.2.zip?rlkey=iiekwopnn2tpbbwdu98nu0erp&dl=0

zeThijs commented 5 months ago

Just tried the new build and the following happened: Valve Software - vvis.exe (Jun 23 2021) 12 threads reading e:\games\gamesinstall\steamlibrary\steamapps\common\nmrih\bin\dynenter\vmfoutput\nmo_downtown_6.vmfValve Software - vbsp.bsp Error opening e:\games\gamesinstall\steamlibrary\steamapps\common\nmrih\bin\dynenter\vmfoutput\nmo_downtown_6.vmfValve Software - vbsp.bsp

Exactol commented 5 months ago

I'm not able to recreate the issue, can you send the full script? Also can you try removing end=""? I suspect the lack of a new line is causing the next line of stdout to be appended to the filename