Server log problems
#1

This is my server log and is supposed to be automatic alternative maps loading alternatively and all things and also maps are in the GM, so why does it say "fs load" and load failed etc. though in my server.cfg I didn't add any FSs and also why the first map says loaded and other maps say load failed although the map loads and the objects are created and everything works, so why does it say loaded in first map and other says load failed even though I don't have any FSs added
Код:
[07:05:49] [part] Bryan_Wolf has left the server (1:1)
[07:05:49] [part] Dan_Honnington has left the server (0:1)
[07:05:12] [kill] Bryan_Wolf killed Dan_Honnington Shotgun
[07:04:39] [death] Dan_Honnington died 54
[07:04:26] [kill] Bryan_Wolf killed Dan_Honnington Shotgun
[07:03:31] [death] Dan_Honnington died 255
[07:03:31] Suicide human works!
[07:03:17] Finished Selecting teams
[07:03:17] Selected humans
[07:03:17] Selected humans
[07:03:05]   Filterscript 'floatingshipszma.amx' load failed.
[07:03:05] Map ID 5's Information Has Been Loaded.
[07:03:05]   Filterscript 'floatingshipszma.amx' loaded.

[07:03:05] --------------------------------------
[07:03:05]  floatinhships Loaded
--------------------------------------
[07:03:05] 
[07:03:05] loading Map /Maps/5.ini
[07:03:05]   Filterscript 'campoutzma.amx' unloaded.
[07:02:58] [kill] Bryan_Wolf killed Dan_Honnington Chainsaw
[07:02:58] Zombie killed human works
[07:02:58] Suicide human works!
[07:01:40] [death] Bryan_Wolf died 255
[07:01:40] Suicide human works!
[07:01:36] Finished Selecting teams
[07:01:36] Selected humans
[07:01:36] Selected humans
[07:01:24]   Filterscript 'campoutzma.amx' load failed.
[07:01:24]   Filterscript 'campoutzma.amx' loaded.

[07:01:24] --------------------------------------
[07:01:24]  Campoutzma Loaded
--------------------------------------
[07:01:24] 
[07:01:24] Map ID 4's Information Has Been Loaded.
[07:01:24] loading Map /Maps/4.ini
[07:01:24]   Filterscript 'dillmorezma.amx' unloaded.
[07:01:15] [kill] Dan_Honnington killed Bryan_Wolf Chainsaw
[07:01:15] Zombie killed human works
[07:01:15] Suicide human works!
[07:00:15] [death] Dan_Honnington died 255
[07:00:15] Suicide human works!
[07:00:01] Finished Selecting teams
[07:00:01] Selected humans
[07:00:01] Selected humans
[06:59:50]   Filterscript 'dillmorezma.amx' load failed.
[06:59:50] Map ID 3's Information Has Been Loaded.
[06:59:50]   Filterscript 'dillmorezma.amx' loaded.

[06:59:50] --------------------------------------
[06:59:50]  dillmorezma Loaded
--------------------------------------
[06:59:50] 
[06:59:50] loading Map /Maps/3.ini
[06:59:50]   Filterscript 'lvhoodzma.amx' unloaded.
[06:59:43] [kill] Bryan_Wolf killed Dan_Honnington Chainsaw
[06:59:43] Zombie killed human works
[06:59:43] Suicide human works!
[06:58:20] [death] Bryan_Wolf died 255
[06:58:20] Suicide human works!
[06:57:50] Finished Selecting teams
[06:57:50] Selected humans
[06:57:50] Selected humans
[06:57:38]   Filterscript 'lvhoodzma.amx' load failed.
[06:57:38]   Filterscript 'lvhoodzma.amx' loaded.

[06:57:38] --------------------------------------
[06:57:38]  lvhoodzma Loaded
--------------------------------------
[06:57:38] 
[06:57:38] Map ID 2's Information Has Been Loaded.
[06:57:38] loading Map /Maps/2.ini
[06:57:38]   Filterscript 'lshoodzma.amx' unloaded.
[06:57:28] [kill] Dan_Honnington killed Bryan_Wolf Chainsaw
[06:57:28] Zombie killed human works
[06:57:28] Suicide human works!
[06:56:40] [death] Dan_Honnington died 255
[06:56:40] Suicide human works!
[06:56:03] Finished Selecting teams
[06:56:03] Selected humans
[06:56:03] Selected humans
[06:55:52]   Filterscript 'lshoodzma.amx' load failed.
[06:55:52]   Filterscript 'lshoodzma.amx' loaded.

[06:55:52] --------------------------------------
[06:55:52]  hoodzma Loaded
--------------------------------------
[06:55:52] 
[06:55:52] Map ID 1's Information Has Been Loaded.
[06:55:52] loading Map /Maps/1.ini
[06:55:52]   Filterscript 'lsbeachzma.amx' unloaded.
[06:52:59] [join] Bryan_Wolf has joined the server (1:62.65.221.107)
[06:52:59] Incoming connection: 62.65.221.107:22734
[06:50:33] Finished Selecting teams
[06:50:33] Selected humans
[06:50:32]   Filterscript 'lsbeachzma.amx' loaded.

[06:50:32] --------------------------------------
[06:50:32]  lsbeachzma Loaded
--------------------------------------
[06:50:32] 
[06:50:32] Map ID 0's Information Has Been Loaded.
[06:50:32] loading Map /Maps/0.ini
[06:50:29] Dan_Honnington|b97786274fc2662701308223a8cdbdb6071c5f29|237|1|3|0|3|0|0|1|11|32|18|3|41.233.139.9
[06:50:25] [join] Dan_Honnington has joined the server (0:41.233.144.109)
[06:50:24] Incoming connection: 41.233.144.109:19283
[06:50:02] Number of vehicle models: 0

[06:50:02] ----------------------------------
[06:50:02] ...|| ZOMBIE APOCALYPSE ||... Loaded with version of 1.0
----------------------------------
[06:50:02] 
[06:50:02]  
[06:50:02]  ======================================= 
[06:50:02]  |                                     | 
[06:50:02]  |        By Alex "******" Cole        | 
[06:50:02]  |        YSI version 1.04.0000        | 
[06:50:02]  |                                     | 
[06:50:02]  ======================================= 
[06:50:02]  

[06:50:02]   Loaded 0 filterscripts.
[06:50:02] ---------------
[06:50:02] Filterscripts
[06:50:02] 

[06:50:02]  Loaded 3 plugins.
[06:50:02]   Loaded.

  > MySQL plugin R6 successfully loaded.

[06:50:02] 
[06:50:02]  Loading plugin: mysql.so
[06:50:02]   Loaded.

[06:50:02]  ===============================

[06:50:02]    0.3d-R2 500 Players "dnee"

[06:50:02]    © 2009 Alex "******" Cole

[06:50:02]       sscanf plugin loaded.     

[06:50:02]  ===============================

[06:50:02] 
[06:50:02]  Loading plugin: sscanf.so
[06:50:02]   Loaded.

*** Streamer Plugin v2.6.1 by Incognito loaded ***

[06:50:02] 
[06:50:02]  Loading plugin: streamer.so
[06:50:02] --------------
[06:50:02] Server Plugins
[06:50:02] 
[06:50:02] filterscripts = ""  (string)

v0.3x, ©2005-2013 SA-MP Team
----------------------
SA-MP Dedicated Server

----------
Loaded log file: "server_log.txt".
----------
Thank you in advance.
Reply
#2

Show us your server.cfg
Reply
#3

Here it is
Код:
echo Executing Server Config...
lanmode 1
rcon_password XXXXXX
maxplayers 10
port 7777
hostname ... || ZOMBIE APOCALYPSE || ...
gamemode0 zma
filterscripts 
plugins streamer.so sscanf.so mysql.so 
announce 1
query 1
chatlogging 0
weburl (Website Under Construction)
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
bind XX.XX.XXX.XX
Reply
#4

im guessing your loading them from a script ?
and the script is loading them more then 1 time by the looks of it.
Loop ?
Reply
#5

Yes I load them from a script, but I am not sure is it loading it more than one time and I am not really sure is it a loop or not ? but I use these, can they be a problem in loading twice ?
pawn Код:
stock LoadFilterScript(filename[])
{
    new string[128];
    format(string, sizeof(string), "loadfs %s", filename);
    SendRconCommand(string);
    return 1;
}

stock UnloadFilterScript(filename[])
{
    new string[128];
    format(string, sizeof(string), "unloadfs %s", filename);
    SendRconCommand(string);
    return 1;
}
Reply
#6

not enought !!!
how do these stock get called ? where from ?
how the FS itself gets loaded ?
Reply
#7

I think maybe this is what you need, these are the codes which loads the objects and vehicles from the scriptfiles
pawn Код:
stock LoadStaticObjectsFromFile(filename[])
{
    new File:file_ptr, line[256], modelid, Float:SpawnX, Float:SpawnY, Float:SpawnZ, Float:SpawnRotX, Float:SpawnRotY, Float:SpawnRotZ, objects_loaded;
    file_ptr = fopen(filename, io_read);
    if(!file_ptr) return printf("ERROR! Failed To Load Objects From The File %s (File Doesn't Exist In Scriptfiles Directory)!", filename);
    while(fread(file_ptr, line) > 0)
    {
        sscanf(line, "dffffff", modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ);
        CreateDynamicObject(modelid, SpawnX, SpawnY, SpawnZ, SpawnRotX, SpawnRotY, SpawnRotZ);
        objects_loaded++;
    }
    fclose(file_ptr);
    printf("Loaded %d objects from: %s", objects_loaded, filename);
    return objects_loaded;
}

stock LoadStaticVehiclesFromFile(const filename[])
{
    new File:file_ptr;
    new line[256];
    new var_from_line[64];
    new vehicletype;
    new Float:SpawnX;
    new Float:SpawnY;
    new Float:SpawnZ;
    new Float:SpawnRot;
    new Color1, Color2;
    new index;
    new vehicles_loaded;

    file_ptr = fopen(filename,filemode:io_read);
    if(!file_ptr) return 0;

    vehicles_loaded = 0;

    while(fread(file_ptr,line,256) > 0)
    {
        index = 0;
        index = token_by_delim(line,var_from_line,',',index);
        if(index == (-1)) continue;
        vehicletype = strval(var_from_line);
        if(vehicletype < 400 || vehicletype > 611) continue;
        index = token_by_delim(line,var_from_line,',',index+1);
        if(index == (-1)) continue;
        SpawnX = floatstr(var_from_line);

        index = token_by_delim(line,var_from_line,',',index+1);
        if(index == (-1)) continue;
        SpawnY = floatstr(var_from_line);

        index = token_by_delim(line,var_from_line,',',index+1);
        if(index == (-1)) continue;
        SpawnZ = floatstr(var_from_line);

        index = token_by_delim(line,var_from_line,',',index+1);
        if(index == (-1)) continue;
        SpawnRot = floatstr(var_from_line);
        index = token_by_delim(line,var_from_line,',',index+1);
        if(index == (-1)) continue;
        Color1 = strval(var_from_line);

        index = token_by_delim(line,var_from_line,';',index+1);
        Color2 = strval(var_from_line);

        CreateVehicle(vehicletype,SpawnX,SpawnY,SpawnZ+1,SpawnRot,Color1,Color2,15);

    //  AddStaticVehicle(vehicletype,SpawnX,SpawnY,SpawnZ+1,SpawnRot,Color1,Color2);
        vehicles_loaded++;
    }
    fclose(file_ptr);
    printf("Loaded %d vehicles from: %s",vehicles_loaded,filename);
    return vehicles_loaded;
}

stock token_by_delim(const string[], return_str[], delim, start_index)
{
    new x=0;
    while(string[start_index] != EOS && string[start_index] != delim) {
      return_str[x] = string[start_index];
      x++;
      start_index++;
    }
    return_str[x] = EOS;
    if(string[start_index] == EOS) start_index = (-1);
    return start_index;
}
also these stocks which loads the maps
pawn Код:
stock LoadMap(Mapid)
{
    new Map_file[64];
    format(Map_file, sizeof(Map_file), "/Maps/%d.ini", Mapid);
    if(fexist(Map_file))
    {
        printf("loading Map %s", Map_file);
        INI_ParseFile(Map_file, "load_Map_%s", .bExtra = true, .extra = Mapid);
        return 1;
    }
    return 0;
}

stock LoadNewMap()
{
    new file[64];
    mapid %= MAX_MAP_FILES;
    format(file, sizeof(file), "/Maps/%d.ini", mapid);
    if(!fexist(file)) return printf("[NOTICE] File Bugged.");
    LastMapStarted = mapid;
    mapid++;
    return mapid-1;
}
Reply
#8

i see no connection with this and the previous stock! do you know what your doing ?
Reply
#9

Actually, I cannot fully understand you, but I only post the stocks that are related to the maps and objects which is obviously related to the errors, so I think that yes the map is loading twice, but when I add the the first map (which loads successfully) in the "filterscripts" in the server.cfg then the log says "load failed".
Reply
#10

So which thing EXACTLY do you need ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)