Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implicit path causing generation to not happen #30

Open
Adambean opened this issue Sep 12, 2020 · 2 comments
Open

Implicit path causing generation to not happen #30

Adambean opened this issue Sep 12, 2020 · 2 comments

Comments

@Adambean
Copy link

Adambean commented Sep 12, 2020

I'll try and keep to the point on this. -- I have a folder with all my GoldSrc dev going on, with some folders:

  • compile
  • decompile
  • maps
  • maps\SC
  • many others

I've got resguy in the "compile" folder along with many other compiling tools. When running resguy I'd expect to use something like:

resguy "..\maps\SC\TFC Ports\K_TheGame2\maps\k_thegame2_r.bsp"

The first issue is that resguy implicitly prefixes my path with "maps/", so I get:

ERROR: maps/..\maps\SC\TFC ports\K_TheGame2\maps\k_thegame2_r.bsp not found

To work around that I added my own prefix of ".." to back out of "maps" with:

resguy "..\..\maps\SC\TFC ports\K_TheGame2\maps\k_thegame2_r.bsp"

This finds the map fine and parses what resources it has no problem, but I think my own "maps" folder is confusing it, as I get a stranger error:

Failed to open .res file for writing: maps/....\maps\SC\TFC ports\K_TheGame2\maps....\maps\SC\TFC ports\K_TheGame2\maps\k_thegame2_r.res

@wootguy
Copy link
Owner

wootguy commented Sep 12, 2020

It's meant to be run from the root of a content folder (e.g. svencoop_addon/) since it needs to search in folders other than maps to find file references.

As a workaround you can do:

cd ..\maps\SC\TFC ports\K_TheGame2
copy ..\..\..\..\compile\resguy_default_content.txt .
..\..\..\..\compile\resguy k_thegame2

I'm assuming you have all the models/sounds/etc. in that custom path, too.

I think then there should be an option to set the working directory, so you can do:
resguy k_thegame2 -work_dir="..\maps\SC\TFC Ports\K_TheGame2"
and maybe -work_dir would be implied if giving a path to the map instead of just a map name.

@Adambean
Copy link
Author

Ah OK, I was treating this as a drop in replacement for RESGen, which I'd typically run as part of my compile script rather than from a game's working directory. (Though I guess it has a likeness in that I tell RESGen which folder it can find resources at.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants