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

correct folder path for resource #8

Open
constantin-ukr opened this issue Nov 13, 2023 · 1 comment
Open

correct folder path for resource #8

constantin-ukr opened this issue Nov 13, 2023 · 1 comment

Comments

@constantin-ukr
Copy link

Hello @IceReaper, could you explain in more detail about this point of readme to the project
Method 3 - Running from IDE:

Make sure the baseq2 directory lies in the project root directory.

I had the file from the game and put the folder into the solution(D:\Quake\IceReaper-Quake2Sharp, D:\Quake\IceReaper-Quake2Sharp\Quake2Sharp), into the result of compile (D:\IceReaper-Quake2Sharp\Quake2Sharp\bin\Debug\net6.0) even in user folder (C:\Users\user.Quake2Sharp). But I have the same error file pics/colormap.pcx cannot be found and as the result I get exception
image

Thanks!

@xenoken
Copy link

xenoken commented May 20, 2024

@constantin-ukr As a workaround, In the class Quake2Sharp.qcommon.FS I replaced the line:

FS.fs_userdir = Environment.GetFolderPath(Environment.SpecialFolder.UserProfile) + "/.Quake2Sharp";

with:

FS.fs_userdir = "C:/Quake2Sharp/baseq2";

and copied the contents of baseq2 into that path.

This should be done only if you can't access the .Quake2Sharp folder.

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

No branches or pull requests

2 participants