-
Notifications
You must be signed in to change notification settings - Fork 8
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
scriptfiles path is incorrect #47
Comments
The main problem seems to be that the |
I think it can help. It is latest version adamix's AMX. |
You may find it useful to incorporate the fix from 1325abf |
Ah, it's true, AMX has that SA-MP specific change, I just forgot about it when changing the AMX version. I'll have to put it back in. |
OK, there's a small inconsistency with SA-MP in the previous AMX. SA-MP uses a single path for the scriptfiles of every AMX script, and, for security reasons (to avoid malicious compiled scripts touching the rest of the file system), the natives aren't allowed to go outside this folder. This module's implementation looks on both for an existing file before defaulting to the script's file. Although at first glance SA-MP's approach might seem problematic, it's been the standard an some scripts might rely on it. A script might create a file or database and expect another script to use its contents. With this resources implementation, this wouldn't work. I looked into the current file natives implementation and I noticed it uses a Any comments? |
Thanks @theSpool, resolved in 422b841#diff-f5ac81a5af817525061fa6eafe4ca6eaR140 If you have any better solutions, such as this, feel free to add them I just noticed that, my bad:
|
And where the scriptfiles folder must be now? |
It's unfortunately still hardcoded to |
I don't know what I do incorrect. I build from latest commit. I put scriptfiles. And got an error. (I trying to launch OpenGTO) |
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
, andamx-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
The text was updated successfully, but these errors were encountered: