AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   General (https://forums.alliedmods.net/forumdisplay.php?f=7)
-   -   a bug? get_configsdir() (https://forums.alliedmods.net/showthread.php?t=303709)

DjSoftero 12-18-2017 11:06

a bug? get_configsdir()
 
1 Attachment(s)
hello, so every time I go to my server files via winscp, I find, that from time to time, instead of /addons/amxmodx/configs/ the csgosupplybox.cfg config file appears in random places like so:http://www.part.lt/img/41575590baf0d...7c227f5273.jpg.
At first, I was deleting them, as I thought I accidentally dragged it there, but it`s not the case. I got another one in /addons/amxmodx/data/ and /addons/amxmodx/modules. here is the code:

Spoiler

And i think I have edited original SuperSpawns include file, so use the one provided by me. No minor changes have been made to it.

fysiks 12-18-2017 12:56

Re: a bug? get_configsdir()
 
Have you tried logging the string you get from get_configsdir() to see what it is actually outputting? Log it for a week or two (until you get a rogue file) and compare with your logging.

DjSoftero 12-18-2017 13:43

Re: a bug? get_configsdir()
 
Quote:

Originally Posted by fysiks (Post 2566904)
Have you tried logging the string you get from get_configsdir() to see what it is actually outputting? Log it for a week or two (until you get a rogue file) and compare with your logging.

will do

DjSoftero 12-21-2017 03:03

Re: a bug? get_configsdir()
 
1 Attachment(s)
This is what I have used to log:
PHP Code:

new ConfigFilename[128], map_name[32], readdata[128], lenfoundline
    get_mapname
(map_namecharsmax(map_name))
    
get_configsdir(ConfigFilenamecharsmax(ConfigFilename))
    
log_to_file("addons/amxmodx/logs/CSGO_LOG.txt"ConfigFilename)
    
format(ConfigFilenamecharsmax(ConfigFilename), "%s/%s"ConfigFilenameconfig_name)
    
log_to_file("addons/amxmodx/logs/CSGO_LOG.txt"ConfigFilename

and got these:
Code:

L 12/20/2017 - 11:04:54: addons/amxmodx/data
L 12/20/2017 - 11:04:54: addons/amxmodx/data/csgo_supplybox.cfg

I checked error logs for that date, but there was none.
meta list, running plugins, etc:
Spoiler

HamletEagle 12-21-2017 04:48

Re: a bug? get_configsdir()
 
Not sure why would you ask for help here if you use reamxmodx. You should ask the one who created it.

DjSoftero 12-21-2017 06:03

Re: a bug? get_configsdir()
 
I have always thought I was using latest dev build of amxmodx. Ty for your time. Hope it disappears after this.

edit---

problem is still there. I have used the newest snapshot.
log file:
Code:

L 12/21/2017 - 15:56:40: 20
L 12/21/2017 - 15:56:40: 20/csgo_supplybox.cfg

error log:
Code:

L 12/21/2017 - 15:56:40: Start of error session.
L 12/21/2017 - 15:56:40: Info (map "de_cbble") (file "addons/amxmodx/logs/error_20171221.log")
L 12/21/2017 - 15:56:40: Couldn't write file "cstrike/20/csgo_supplybox.cfg"
L 12/21/2017 - 15:56:40: [AMXX] Displaying debug trace (plugin "csgo_boxes.amxx", version "1.0")
L 12/21/2017 - 15:56:40: [AMXX] Run time error 10: native error (native "write_file")
L 12/21/2017 - 15:56:40: [AMXX]    [0] csgo_boxes.sma::plugin_init (line 73)

amxx version:
Spoiler

PRoSToTeM@ 12-27-2017 19:35

Re: a bug? get_configsdir()
 
Can you also try on HLDS? And can you also log the full content of localinfo?

DjSoftero 12-28-2017 05:05

Re: a bug? get_configsdir()
 
Quote:

Originally Posted by PRoSToTeM@ (Post 2568465)
Can you also try on HLDS? And can you also log the full content of localinfo?

yeah, i can do that, but what do you mean by full content of localinfo?

fysiks 12-28-2017 14:38

Re: a bug? get_configsdir()
 
"localinfo" in a string that contain several pieces of data. So, simply use a really long string when you call get_localinfo().

DjSoftero 12-28-2017 14:42

Re: a bug? get_configsdir()
 
Quote:

Originally Posted by fysiks (Post 2568588)
"localinfo" in a string that contain several pieces of data. So, simply use a really long string when you call get_localinfo().

gotcha


All times are GMT -4. The time now is 09:45.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.