Fatal error 183 cannot read from file nativevotes

fatal error 183: cannot read from file - отправлено в Counter-Strike: Source: Добрый вечер, хочу спросить может знает кто из-за чего может данная ошибка при компиляция файла? Сразу говорю, в папке инклудов она есть.   При компиляции: C:UsersUserDesktop1compilscriptingmoe.sp(5) : fatal error 183: cannot read from file: secure   В принципе что сказать, раньше вроде как компилировал он без ошибок, и ничего подобного не выдавал. Сейчас решил мне рассказать что не может прочита...

#1

Person256

    Новичок

  • Пользователь
  • Pip

  • 3 сообщений

Отправлено 20 Сентябрь 2020 — 20:48

Добрый вечер, хочу спросить может знает кто из-за чего может данная ошибка при компиляция файла?
Сразу говорю, в папке инклудов она есть.

При компиляции:
C:UsersUserDesktop1compilscriptingmoe.sp(5) : fatal error 183: cannot read from file: «secure»

В принципе что сказать, раньше вроде как компилировал он без ошибок, и ничего подобного не выдавал.
Сейчас решил мне рассказать что не может прочитать данный файл.

 

Сообщение отредактировал Person256: 20 Сентябрь 2020 — 20:53

  • Наверх


#2


Shvydkov

Отправлено 20 Сентябрь 2020 — 21:55

Добрый вечер, хочу спросить может знает кто из-за чего может данная ошибка при компиляция файла?
Сразу говорю, в папке инклудов она есть.

При компиляции:
C:UsersUserDesktop1compilscriptingmoe.sp(5) : fatal error 183: cannot read from file: «secure»

В принципе что сказать, раньше вроде как компилировал он без ошибок, и ничего подобного не выдавал.
Сейчас решил мне рассказать что не может прочитать данный файл.

 

для использования угловых скобок файл должен находиться в папке includes + иметь расширение .inc. если эти условия не соблюдаются, то используйте полный путь к файлу, относительно компилятора, в кавычках. пример:

#include "includes/secure.sp"

Сообщение отредактировал Shvydkov: 20 Сентябрь 2020 — 21:55

  • Наверх


Author

Message

Member

blackdevil72's Avatar

Join Date: Jun 2010

Location: Bordeaux (France)

Old

04-24-2019

, 12:23

 

Is ti possible to include .sp files?

Reply With Quote

#1


Hello!

First I’ve searched for that quite a lot and don’t seem to have found any answer not in the sourcepawn/sourcemod doc nor on this forum. So if the answer is somewhere out there I’m sorry just please point me to the right direction. Thank a lot.

Cominf fom other language I’ve taken some habit.

For more easy reading and maintainance of my code I want to include various .sp in my main plugin file. Is that possible and how?

I tried to do:

PHP Code:



#include <sourcemod>

#include <myplugin_folder/myplugin_func.sp>

#include <myplugin_folder/myplugin_func2.sp> 




But when I try to compile I always end up with a «fatal error 183 can’t read file».

Thank you again for your help.

__________________


blackdevil72 is offline

Veteran Member

eyal282's Avatar

Old

04-24-2019

, 12:27

 

Re: Is ti possible to include .sp files?

Reply With Quote

#2


I think the file should go into scripting rather than scripting/include when including an .sp file but I am not sure in general as I prefer a large plugin.

__________________

I am available to make plugins for pay.

Discord: Eyal282#1334

eyal282 is offline

Senior Member

Old

04-24-2019

, 12:39

 

Re: Is ti possible to include .sp files?

Reply With Quote

#3


try #include «myplugin_folder/myplugin_func.sp»
instead of #include <myplugin_folder/myplugin_func.sp>

farawayf is offline

AlliedModders Donor

Powerlord's Avatar

Join Date: Jun 2008

Location: Seduce Me!

Old

04-24-2019

, 16:38

 

Re: Is ti possible to include .sp files?

Reply With Quote

#4


Quote:

Originally Posted by farawayf
View Post

try #include «myplugin_folder/myplugin_func.sp»
instead of #include <myplugin_folder/myplugin_func.sp>

I second this.

I like to break large plugins into multiple files based on a separation of concerns.

While it’s not exactly well maintained anymore, the NativeVotes plugin is split into 3 files:

  • main plugin, which houses the main API declarations and general housekeeping
  • data storage functions which back the NativeVote methodmap
  • functions that vary based on the game engine in use

The data storage stuff was originally separate so that I could change out the implementation in a way that would be transparent to plugins that use the NativeVote API.

The third file probably should have been split into multiple different plugins instead and if I ever rewrite said plugin it probably will be, which would also allow it to support non-Valve games too.

__________________

Not currently working on SourceMod plugin development.


Last edited by Powerlord; 04-24-2019 at 16:39.

Powerlord is offline

Veteran Member

ThatKidWhoGames's Avatar

Join Date: Jun 2013

Location: IsValidClient()

Old

04-25-2019

, 13:57

 

Re: Is ti possible to include .sp files?

Reply With Quote

#5


Quote:

Originally Posted by Powerlord
View Post

I second this.

I like to break large plugins into multiple files based on a separation of concerns.

While it’s not exactly well maintained anymore, the NativeVotes plugin is split into 3 files:

  • main plugin, which houses the main API declarations and general housekeeping
  • data storage functions which back the NativeVote methodmap
  • functions that vary based on the game engine in use

The data storage stuff was originally separate so that I could change out the implementation in a way that would be transparent to plugins that use the NativeVote API.

The third file probably should have been split into multiple different plugins instead and if I ever rewrite said plugin it probably will be, which would also allow it to support non-Valve games too.

I second this as well, makes organization so much easier.


Last edited by ThatKidWhoGames; 04-25-2019 at 13:58.

ThatKidWhoGames is offline

Member

blackdevil72's Avatar

Join Date: Jun 2010

Location: Bordeaux (France)

Old

04-25-2019

, 21:43

 

Re: Is ti possible to include .sp files?

Reply With Quote

#6


Thank you every one that is what I was searching for. For the sake of any one searching this in the future here is a short resume of this:

PHP Code:



#include <something> 




Will search .inc files in the «include» folder

PHP Code:



#include <something.sp> 




wilt search .sp files in the «include» folder

PHP Code:



#include "something.sp" 




will search .sp files in the same folder

__________________



Last edited by blackdevil72; 04-25-2019 at 22:19.

blackdevil72 is offline

Senior Member

Join Date: Feb 2012

Location: United States

Old

04-26-2019

, 22:57

 

Re: Is ti possible to include .sp files?

Reply With Quote

#7


includes inside of angle brackets (<this>) should be used for compiler specific inclusion or something like that, this is a c and c++ thing
anything else like externals, go enclosed in quotations like «this.sp»

although im fairly sure it will also include .inc files if you do like #include <includefile>


Last edited by sdz; 04-26-2019 at 22:57.

sdz is offline

  • Команда форума
  • #2

Инклуды Шопа не хватает. Причём путь к ней Вы сами в ошибке и видите.

  • #3

Здравствуйте не компилирует, все нужное закинул.
вот ошибка:

//SourceMod Batch Compiler
// by the SourceMod Dev Team

//// shop_roll.sp
//
// C:UsersmagarDesktopъряхы ЄюЁaddonssourcemodscriptingincludeshop.inc(66) : fatal error 183: cannot read from file: «shop/admin»
//
// Compilation Time: 0,84 sec
// —————————————-

1642483512345.png

Я бы еще из пути кирилические буквы убрал. Малоли что..

  • #5

приложи исходник,что пытаешься скомпилировать

RusJJ

RusJJ

Доброе утро девачьки


  • #6

Поздравляю, проверь его наличие по данному пути теперь…

  • #7

Я ща не могу, только название плагина могу скинуть (

[Shop] Roll 1.2.3​

)

  • #8

Я ща не могу, только название плагина могу скинуть (

[Shop] Roll 1.2.3​

)

Все прекрасно скомпилировалось,панты вы тут колотили

  • shop_roll.smx

    11.3 КБ

    · Просмотры: 2

  • shop_roll.sp

    19 КБ

    · Просмотры: 1

  • #9

Спасибо!

Сообщения автоматически склеены: 18 Янв 2022

Можешь, свой компилятор скинуть, пожалуйста.

  • #11

Все прекрасно скомпилировалось,панты вы тут колотили

Скинь пожалуйста инклуды свои

#include <amxmodx>
#include <reapi>

#define WARMUPTIME     60    // Время вармапа
#define NUM_RR        1    // Кол-во рестартов
#define LATENCY        1    // Задержка между рестартами
#define DHUD_MESSAGE        // Показывать в dhud. Закомментируйте, чтобы был hud
#define GIVE_SHIELD    0    // 0 — выключить; 1 — Щит + deagle; 2 — щит + нож; 3 — щит и с диглом и ножом
#define STOP_PLUGS        // Отключать плагины на время вармапа
#define DM_MODE            // Бесконечный респавн на время вармапа
#define ThFiveHP_ON_KNIFE    // Выдает 35HP игрокам, если оружие — НОЖ

#if defined STOP_PLUGS
    new g_arPlugins[][] =    // Указывать название файлов, например test.amxx
    {
        «reapi_awp_limitter_182.amxx»,
        «amxx_vip_gold.amxx»,
        «weaponrest.amxx»,
        «crux_ansata.amxx»

            }
#endif
new g_szWeapon[32];
new g_iWp;
new HookChain:fwd_NewRound,
#if defined DM_MODE
    HookChain:fwd_Killed,
#endif
    HookChain:fwd_Spawn;
#if defined DHUD_MESSAGE
    #if AMXX_VERSION_NUM < 183
        #include <dhudmessage>
    #endif
#else
    new g_iHudSync;
#endif

public plugin_init()
{
    register_plugin(«Random Weapons WarmUP», «2.5.untested», «neugomon»);

    RegisterHookChain(RG_RoundEnd, «fwdRoundEnd», true);
    DisableHookChain((fwd_NewRound = RegisterHookChain(RG_CSGameRules_CheckMapConditions, «CSGameRules», true)));
    DisableHookChain((fwd_Spawn    = RegisterHookChain(RG_CBasePlayer_Spawn, «CBasePlayer_Spawn_Post», true)));
#if defined DM_MODE    
    DisableHookChain((fwd_Killed   = RegisterHookChain(RG_CBasePlayer_Killed, «CBasePlayer_Killed_Post», true)));

        register_clcmd(«joinclass», «clCmdJoinClass»);
    register_clcmd(«menuselect»,»clCmdJoinClass»);
#endif
#if !defined DHUD_MESSAGE
    g_iHudSync    = CreateHudSyncObj();
#endif
    state warmupOff;
}

public fwdRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay) <warmupOff>
    if(event == ROUND_GAME_COMMENCE)
        EnableHookChain(fwd_NewRound);

        public fwdRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay) <warmupOn>
    return;

public CSGameRules ()
{
    state warmupOn;

        set_member_game(m_bMapHasBuyZone, true);
    BuyZone_ToogleSolid(SOLID_NOT);

        DisableHookChain(fwd_NewRound);
    EnableHookChain(fwd_Spawn);
#if defined DM_MODE    
    EnableHookChain(fwd_Killed);
#endif    
#if defined STOP_PLUGS    
    PluginController(1);
#endif    
    switch((g_iWp = random(5)))
    {
        case 0: formatex(g_szWeapon, charsmax(g_szWeapon), «TMP»);
        case 1: formatex(g_szWeapon, charsmax(g_szWeapon), «UMP45»);
        case 2: formatex(g_szWeapon, charsmax(g_szWeapon), «Scout»);
        case 3: formatex(g_szWeapon, charsmax(g_szWeapon), «Grenade»);
        case 4: formatex(g_szWeapon, charsmax(g_szWeapon), «Knife»);
    }

            set_task(1.0, «ShowTimer», .flags = «a», .repeat = WARMUPTIME);
}
#if defined DM_MODE
public clCmdJoinClass(id) <warmupOff>
    return;

    public clCmdJoinClass(id) <warmupOn>
    if(get_member(id, m_iMenu) == Menu_ChooseAppearance)
        set_task(0.5, «SpawnPlayer», id);
#endif
public CBasePlayer_Spawn_Post(const id)
{
    if(!is_user_alive(id))
        return;

            rg_remove_all_items(id);

        switch(g_iWp)
    {
        case 0:
        {
            rg_give_item(id, «weapon_tmp»);
            rg_set_user_bpammo(id, WEAPON_TMP, 300);
        }
        case 1:
        {
            rg_give_item(id, «weapon_ump45»);
            rg_set_user_bpammo(id, WEAPON_UMP45, 300);
        }
        case 2:
        {
            rg_give_item(id, «weapon_scout»);
            rg_set_user_bpammo(id, WEAPON_SCOUT, 300);
        }
        case 3:
        {
            rg_give_item(id, «weapon_hegrenade»);
            rg_set_user_bpammo(id, WEAPON_HEGRENADE, 512);
        }
        case 4:
        {
        #if GIVE_SHIELD == 2 || GIVE_SHIELD == 3
            rg_give_item(id, «weapon_shield»);
        #endif
            rg_give_item(id, «weapon_knife»);
        #if defined ThFiveHP_ON_KNIFE
            set_entvar(id, var_health, 35.0);
        #endif    
        }    
    }    
}
#if defined DM_MODE
public CBasePlayer_Killed_Post(pVictim)
    set_task(1.0, «SpawnPlayer», pVictim);
#endif    
public ShowTimer()
{
    static timer = -1;
    if(timer == -1) timer = WARMUPTIME;

        switch(—timer)
    {
        case 0:
        {
            state warmupOff;

                        BuyZone_ToogleSolid(SOLID_TRIGGER);
            DisableHookChain(fwd_Spawn);
        #if defined DM_MODE    
            DisableHookChain(fwd_Killed);
        #endif
        #if defined STOP_PLUGS    
            PluginController(0);
        #endif    
        #if NUM_RR > 1        
            set_task(LATENCY, «SV_Restart», .flags = «a», .repeat = NUM_RR);
        #else
            SV_Restart();
        #endif
            timer = -1;
        }
        default:
        {
        #if defined DHUD_MESSAGE
            set_dhudmessage(.red = 135, .green = 206, .blue = 235, .x = -1.0, .y = 0.08, .holdtime = 0.9);
            show_dhudmessage(0, «Разминка на %s!^nРестарт через %d сек», g_szWeapon, timer);
        #else    
            set_hudmessage(135, 206, 235, .x = -1.0, .y = 0.9, .holdtime = 0.9, .channel = -1);
            ShowSyncHudMsg(0, g_iHudSync, «Разминка на %s!^nРестарт через %d сек», g_szWeapon, timer);
        #endif    
        }
    }
}

public SV_Restart()
    set_cvar_num(«sv_restart», 1);
#if defined DM_MODE    
public SpawnPlayer(id)
{
    if(is_user_alive(id))
        return;

            switch(get_member(id, m_iTeam))
    {
        case 1, 2: rg_round_respawn(id);
    }
}
#endif
stock PluginController(stop)
{
    for(new i; i < sizeof g_arPlugins; i++)
    {
        if(stop)pause  («ac», g_arPlugins[i]);
        else    unpause(«ac», g_arPlugins[i]);
    }    
}

stock BuyZone_ToogleSolid(const solid)
{
    new entityIndex = 0;
    while ((entityIndex = rg_find_ent_by_class(entityIndex, «func_buyzone»)))
        set_entvar(entityIndex, var_solid, solid);
}

  Posts   [error][ 183] : Cannot create a file when that file already exists
(Games : S.T.A.L.K.E.R.: Call of Pripyat : Mods : S.T.A.L.K.E.R. Anomaly : Forum : Support : [error][ 183] : Cannot create a file when that file already exists) Locked Thread Options Jun 10 2018

Anchor

As the title says, crashed the game. No fatal error log, only this message in error log after stack trace.

Jun 10 2018

Anchor

As always the same questions from me :)

Is it reproducible? Do you have a save that crashes?

I can’t really do anything without more information. It can literally be anything, the game, the mods, the OS, the drivers, or the computer hardware.

Jun 10 2018

Anchor

This can happen when there is too much saves, try not spamming quick save and/or reduce the number of autosaves (or raise delay) in game option. It’s an old bug present since SoC. Its less frequent now since the save function give different names to savefiles but it can still happen time to time, regardless of game/mod used;
to me, looks like the savefile is «locked» and the game is unable to write in it, but i read here
Metacognix.com
it’s said :

Same error twice in a row Symptom [error][ 183] : Cannot create a file when that file already exists.

Cause This might happen when there are two consecutive exceptions (errors) at the same time. The severity of the error is a function of the previous error. Treatment Determine the first error, and treat that.

Maybe full log can explain more

Jun 10 2018

Anchor

Zoust, that might be it, i’ve made two consecutive quicksaves in short time, and the crash happened. Haven’t got this one in misery or other stalker games, so i assumed it was CoC.Good to know its just inherent bug of the engine and not anomaly fault.

Edited by: PassiveAggressive

Jun 10 2018

Anchor

PassiveAggressive wrote:

i’ve made two consecutive quicksaves in short time, and the crash happened.

for me, there is no need to search further, just avoid double quicksaving in a row and you should be ok

Понравилась статья? Поделить с друзьями:

Читайте также:

  • Fatal error 183 cannot read from file multicolors
  • Fatal error 183 cannot read from file emitsoundany
  • Fatal error 183 cannot read from file dhooks
  • Fatal error 183 cannot read from file colors
  • Fatal error 120 cannot read from file sourcemod

  • 0 0 голоса
    Рейтинг статьи
    Подписаться
    Уведомить о
    guest

    0 комментариев
    Старые
    Новые Популярные
    Межтекстовые Отзывы
    Посмотреть все комментарии