Comments (17)
You didn't copy full error. Can't tell you anything from this log.
from serverredirect.
L 04/30/2020 - 13:54:18: [SM] Exception reported: Failed to auto generate config "cfg/sourcemod/plugin.server_redirect.cfg", make sure the directory has write permission
L 04/30/2020 - 13:54:18: [SM] Blaming: server_redirect.smx
L 04/30/2020 - 13:54:18: [SM] Call stack trace:
L 04/30/2020 - 13:54:18: [SM] [0] ThrowError
L 04/30/2020 - 13:54:18: [SM] [1] Line 62, C:\BasicPawn\LAST COMPILLER\include\glib/convarutils.inc::FillConVarFile
L 04/30/2020 - 13:54:18: [SM] [2] Line 48, C:\BasicPawn\LAST COMPILLER\include\glib/convarutils.inc::AutoExecConfigCustom
L 04/30/2020 - 13:54:18: [SM] [3] Line 179, C:\BasicPawn\LAST COMPILLER\server_redirect.sp::OnPluginStart
L 04/30/2020 - 13:54:18: [SM] Unable to load plugin "server_redirect.smx": Error detected in plugin startup (see error logs)
L 04/30/2020 - 13:54:19: [SM] Exception reported: Array index out-of-bounds (index -1, limit 66)
L 04/30/2020 - 13:54:19: [SM] Blaming: weapons.smx
L 04/30/2020 - 13:54:19: [SM] Call stack trace:
L 04/30/2020 - 13:54:19: [SM] [1] Line 69, tmp/addons/sourcemod/scripting/weapons/hooks.sp::ChatListener
This is all i got, after update to last commit.
from serverredirect.
Read what the actual error says: Failed to auto generate config "cfg/sourcemod/plugin.server_redirect.cfg", make sure the directory has write permission
, can you check your cfg/sourcemod folder?
from serverredirect.
Permissions are okay, checked it.
Also that configuration file already exist.
from serverredirect.
Then probably permissions are different for that cfg file, try deleting it and let plugin recreate it, don't forget to restore all cvar values you set there if there's any.
from serverredirect.
Again same problem:
Server is running under linux.
L 04/30/2020 - 15:44:10: [SM] Exception reported: Failed to auto generate config "cfg/sourcemod/plugin.server_redirect.cfg", make sure the directory has write permission
L 04/30/2020 - 15:44:10: [SM] Blaming: server_redirect.smx
L 04/30/2020 - 15:44:10: [SM] Call stack trace:
L 04/30/2020 - 15:44:10: [SM] [0] ThrowError
L 04/30/2020 - 15:44:10: [SM] [1] Line 62, C:\BasicPawn\LAST COMPILLER\include\glib/convarutils.inc::FillConVarFile
L 04/30/2020 - 15:44:10: [SM] [2] Line 48, C:\BasicPawn\LAST COMPILLER\include\glib/convarutils.inc::AutoExecConfigCustom
L 04/30/2020 - 15:44:10: [SM] [3] Line 179, C:\BasicPawn\LAST COMPILLER\server_redirect.sp::OnPluginStart
L 04/30/2020 - 15:44:10: [SM] Unable to load plugin "server_redirect.smx": Error detected in plugin startup (see error logs)
L 04/30/2020 - 15:44:11: [SM] Exception reported: Array index out-of-bounds (index -1, limit 66)
L 04/30/2020 - 15:44:11: [SM] Blaming: weapons.smx
L 04/30/2020 - 15:44:11: [SM] Call stack trace:
L 04/30/2020 - 15:44:11: [SM] [1] Line 69, tmp/addons/sourcemod/scripting/weapons/hooks.sp::ChatListener
L 04/30/2020 - 15:44:17: Error log file session closed.
EDIT:
Windows server works perfect but linux give me this error.
from serverredirect.
You definitely have something wrong with permissions, works fine for me both on linux or windows. You can also try to remove sourcemod
folder under cfg
and let plugin to create it and see if it helps.
from serverredirect.
All other plugins successfully create new .cfg file except this one, just now tested.
Maybe i should upgrade to last version of sm?
from serverredirect.
Don't think that'll help. There's one more thing you can try, open includes/glib/convarutils.inc
and change line 41 to Format(path, sizeof(path), "cfg\\%s\\plugin.%s.cfg", folder, plname[FindCharInString(plname, '/', true) + 1]);
and test if this helps.
from serverredirect.
L 04/30/2020 - 16:21:10: [SM] Exception reported: Failed to auto generate config "cfg\sourcemod\plugin.server_redirect.cfg", make sure the directory has write permission
L 04/30/2020 - 16:21:10: [SM] Blaming: server_redirect.smx
L 04/30/2020 - 16:21:10: [SM] Call stack trace:
L 04/30/2020 - 16:21:10: [SM] [0] ThrowError
L 04/30/2020 - 16:21:10: [SM] [1] Line 62, C:\BasicPawn\LAST COMPILLER\include\glib/convarutils.inc::FillConVarFile
L 04/30/2020 - 16:21:10: [SM] [2] Line 48, C:\BasicPawn\LAST COMPILLER\include\glib/convarutils.inc::AutoExecConfigCustom
L 04/30/2020 - 16:21:10: [SM] [3] Line 179, C:\BasicPawn\LAST COMPILLER\server_redirect.sp::OnPluginStart
L 04/30/2020 - 16:21:10: [SM] Unable to load plugin "server_redirect.smx": Error detected in plugin startup (see error logs)
Actually nothing changed..
Previous version worked perfect on win and linux based systems.
from serverredirect.
Alright then again I'm returning to the problem with permissions, as I don't see other options for this to behave like this, it basically tries to create file under that path and write to it, nothing really complex.
from serverredirect.
You can also try to change line 59 to File file = OpenFile(path, "w");
in the same file you modified earlier.
from serverredirect.
It works now!
I think that this should be changed in dev branch.
Thank you for help, you are awesome!
from serverredirect.
Alright, thanks to you for pointing to that error, gonna fix it in master branch then too!
from serverredirect.
Can you please also confirm that changing back to /
slashes has no effect. Line 41 in the same file.
from serverredirect.
I'll inform you as soon as test it!
from serverredirect.
Any update on this issue?
from serverredirect.
Related Issues (20)
- Exception reported: Client 21 is not connected HOT 1
- Plugin not loading HOT 7
- Crash on query? HOT 1
- Компиляция плагина HOT 1
- IP is not considered valid if it's a domain name HOT 1
- StringMap.size.get error HOT 2
- Wrong filepath in README.md HOT 1
- Socket is not optional as stated in readme HOT 1
- cfg/sourcemod/plugin.server_redirect.cfg not showing HOT 2
- Support other games? HOT 1
- [Improvement] IP Alias HOT 1
- A2S_INFO challenge HOT 2
- Servers_Menu broken after recent update HOT 2
- Add possibility to filter out common player names (gotvs, replay bots etc)
- how to fix that error for reason HOT 5
- Can't get offset for CBaseServer::RejectConnection HOT 8
- --- HOT 3
- Add gamedata for CS:S HOT 1
- Improvements function Display Name HOT 1
- Error `Can't get response from "XX.XXX.XX:XXXXX", socket timed out` HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverredirect.