Closed mo0nsniper closed 8 years ago
Hi, thanks for the log, but do not use the level 1, it hide several information. May you use the level 16? You just need to run one time the server with it. Basically:
gal_startvote
./**
* This is to view internal program data while execution. See the function 'debugMesssageLogger(...)'
* and the variable 'g_debug_level' for more information. Usage example, to enables several levels:
* #define DEBUG_LEVEL 1+2+4+16
*
* @note when the 'DEBUG_LEVEL_FAKE_VOTES' is activated, usually the voting will be approved
* because it creates also a fake players count. So, do not enable 'DEBUG_LEVEL_FAKE_VOTES'
* if you do not want the map voting starting on an empty server.
*
* 0 - Disables this feature.
*
* 1 - Normal/basic debugging/depuration.
*
* 2 - a) To skip the 'pendingVoteCountdown()'.
* b) Set the vote runoff time to 5 seconds.
* c) Run the NORMAL Unit Tests.
*
* 4 - Run the DELAYED Unit Tests.
*
* 8 - a) To create fake votes. See the function 'create_fakeVotes()'.
* b) To create fake players count. See the function 'get_realplayersnum()'.
*
* 16 - Enable DEBUG_LEVEL 1 and all its debugging/depuration available.
*
* 31 - Enable the levels 1, 2, 4, 8 and 16.
*
* Default value: 0
*/
#define DEBUG_LEVEL 16
Sure, I can set DEBUG 16. But I have set it before and my server crashed so I said I'll stick to 1.
I have set DEBUG 16 and when I entered the command gal_startvote I got the message that Starting vote failed no maps found.
Thank your for doing it. From the log, this are the relevant lines:
L 11/03/2016 - 07:11:11: {22.505 11684 -1230 0} map_populateList(...) Loading the PASSED FILE! mapFilePath: addons/amxmodx/configs/maps_big.ini
L 11/03/2016 - 07:11:11: {22.505 11660 -1230 0} I AM ENTERING ON loadMapFileList(3) | mapFilePath: addons/amxmodx/configs/maps_big.ini
L 11/03/2016 - 07:11:11: {22.505 11400 -1126 104}
L 11/03/2016 - 07:11:11: {22.505 11684 -1126 0} I AM EXITING map_populateList(4) mapCount: 0
Here we may see, it really found you map file, otherwise we would see ( loadMapFileList ) Error ...
.
Then the only possible thing is this code:
stock loadMapFileList( Array:mapArray, mapFilePath[], Trie:fillerMapTrie = Invalid_Trie )
{
LOGGER( 128, "I AM ENTERING ON loadMapFileList(3) | mapFilePath: %s", mapFilePath )
new mapCount;
new mapFile = fopen( mapFilePath, "rt" );
if( mapFile )
{
new loadedMapName[ MAX_MAPNAME_LENGHT ];
while( !feof( mapFile ) )
{
fgets( mapFile, loadedMapName, charsmax( loadedMapName ) );
trim( loadedMapName );
if( loadedMapName[ 0 ]
&& !equal( loadedMapName, "//", 2 )
&& !equal( loadedMapName, ";", 1 )
&& IS_MAP_VALID( loadedMapName ) )
{
if( fillerMapTrie )
{
TrieSetCell( fillerMapTrie, loadedMapName, 0 );
}
#if defined DEBUG
static currentIndex = 0;
if( currentIndex < 100 )
{
LOGGER( 4, "( loadMapFileList ) %d, loadedMapName: %s", ++currentIndex, loadedMapName )
}
#endif
ArrayPushString( mapArray, loadedMapName );
++mapCount;
}
}
fclose( mapFile );
LOGGER( 4, "" )
}
else
{
LOGGER( 1, "( loadMapFileList ) Error %d, %L", AMX_ERR_NOTFOUND, LANG_SERVER, "GAL_MAPS_FILEMISSING", mapFilePath )
log_error( AMX_ERR_NOTFOUND, "%L", LANG_SERVER, "GAL_MAPS_FILEMISSING", mapFilePath );
}
return mapCount;
}
When it is doing fgets
it is not getting anything valid. May you send your file maps_big.ini
?
It could be a problem on the line endings. Which one are you using? You system is Linux or Windows?
I'm using linux, and the file is unix format. I have sent you a copy at your email address.
Hi, I got your email, thanks for the information.
The problem is that you cannot put .bsp
on the maps' name ending, so just remove them from the maps.
As:
de_dust.bsp
de_dust2.bsp
Must to be:
de_dust
de_dust2
Now the new version to be released will write a warning on the server console showing the loaded maps file contents. Do you got it working?
Also, for the development, I Added support to map names ending with .bsp
extension on the voting map list.
Great, It works now. Thanks. I think the .bsp extension was needed for mapchooser4
Hi,
I'm trying to use a custom map file for voting but it doesn't work. I have used gal_vote_mapfile "*" and gal_vote_mapfile "mapcycle.txt" wich works. But using custom files for voting doesn't work. Like: gal_vote_mapfile "addons/amxmodx/configs/maps_big.ini" or gal_vote_mapfile "/addons/amxmodx/configs/maps_big.ini"
The file addons/amxmodx/configs/maps_big.ini exists.
I have compiled the plugin with DEBUG 1 and here is the output: http://pastebin.com/PB1H4rZM
Bellow is my setup: galileo.cfg