Giter VIP home page Giter VIP logo

Comments (17)

GAMMACASE avatar GAMMACASE commented on July 23, 2024

You didn't copy full error. Can't tell you anything from this log.

from serverredirect.

rajkodev avatar rajkodev commented on July 23, 2024
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.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

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.

rajkodev avatar rajkodev commented on July 23, 2024

Permissions are okay, checked it.
Also that configuration file already exist.

from serverredirect.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

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.

rajkodev avatar rajkodev commented on July 23, 2024

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.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

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.

rajkodev avatar rajkodev commented on July 23, 2024

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.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

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.

rajkodev avatar rajkodev commented on July 23, 2024
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.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

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.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

You can also try to change line 59 to File file = OpenFile(path, "w"); in the same file you modified earlier.

from serverredirect.

rajkodev avatar rajkodev commented on July 23, 2024

It works now!
I think that this should be changed in dev branch.

Thank you for help, you are awesome!

from serverredirect.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

Alright, thanks to you for pointing to that error, gonna fix it in master branch then too!

from serverredirect.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

Can you please also confirm that changing back to / slashes has no effect. Line 41 in the same file.

from serverredirect.

rajkodev avatar rajkodev commented on July 23, 2024

I'll inform you as soon as test it!

from serverredirect.

GAMMACASE avatar GAMMACASE commented on July 23, 2024

Any update on this issue?

from serverredirect.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.