Quake2Sharp icon indicating copy to clipboard operation
Quake2Sharp copied to clipboard

correct folder path for resource

Open constantin-ukr opened this issue 2 years ago • 2 comments

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!

constantin-ukr avatar Nov 13 '23 20:11 constantin-ukr

@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.

xenoken avatar May 20 '24 16:05 xenoken

@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.

It's easier to just add two lines: image

MRafStudio avatar Nov 24 '24 01:11 MRafStudio