Skip to content

scriptfiles path is incorrect #47

Open
@Disinterpreter

Description

@Disinterpreter

Describe the bug
There is a problem with scriptfiles. Probably my problem is bad reading of the documentation. But I can't work with scriptfiles.

I tried to put scriptfiles into the amx/scriptfiles, and amx-mygamemode/scriptfiles
I tried to move amx into /resources/amx and put file there.
But all my moves didn't work.

To reproduce
Just try to read data from scriptfiles. Or try to launch something like https://github.com/Open-GTO/Open-GTO

Expected behaviour
It must work fine. The files from script files must be available.

Additional context

amx/amx-deps/src/util.cpp

Lines 207 to 219 in 1cb22d5

// Then check if it exists in the main scriptfiles folder
fs::path scriptfilespath = fs::path("mods/deathmatch/resources/amx/scriptfiles") / filename;
if(exists(scriptfilespath))
{
return scriptfilespath.string();
}
// Otherwise default to amx's resource folder - make sure the folder
// where the file is expected exists
fs::path folder = respath;
folder.remove_filename();
create_directories(folder);
return respath.string();

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingcoreThe issue depends from the code of the module.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions