Fatal error 183 cannot read from file dhooks

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

  • Наверх


Member

Join Date: Jun 2017

Location: Vietnam

Old

01-01-2022

, 09:55

 

Re: [L4D & L4D2] Use Priority Patch (2.3) [12-Sep-2021]

Reply With Quote

#21


Sorry, it just me using your Flashlight plugin and the flashlight model attached to player, when you press E onto your teammate the use animation will play, this plugin fixed it. However, when I look down on my own feet and press E the animation still play, that’s my only question about why my character not get patched +USE ability too.

TBK Duy is offline

Member

Old

01-27-2022

, 09:40

 

Re: [L4D & L4D2] Use Priority Patch (2.3) [12-Sep-2021]

Reply With Quote

#22


hi Silvers. congrats on becoming a plugin approver! ahaha

anyways, i wasn’t sure where to post this, but i think here makes sense. i think (not 100% sure) your hats plugin conflicts with this plugin version by HarryPotter.
basically, when wearing certain hats, the ping function in HarryPotter’s plugin is less likely to work unless you jump or move in a specific way. my guess is the issue is similar to the one that this priority patch plugin fixes? just that HarryPotter’s plugin uses the vocalize menu’s look function instead.
Marttt has a similar plugin which uses [SHIFT] + [E] instead of ‘Look’, which i’ve had no problems with using together with the hats plugin. HarryPotter’s version has more features though, so i’m inclined to using it.

just wondering if there’s anything you can do to fix this? it’s not a big deal though. can just remove some hats/adjust their positions lol.

swiftswing1 is offline

SourceMod Plugin Approver

Silvers's Avatar

Join Date: Aug 2010

Location: SpaceX

Old

01-27-2022

, 10:10

 

Re: [L4D & L4D2] Use Priority Patch (2.3) [12-Sep-2021]

Reply With Quote

#23


Quote:

Originally Posted by swiftswing1
View Post

hi Silvers. congrats on becoming a plugin approver! ahaha

anyways, i wasn’t sure where to post this, but i think here makes sense. i think (not 100% sure) your hats plugin conflicts with this plugin version by HarryPotter.
basically, when wearing certain hats, the ping function in HarryPotter’s plugin is less likely to work unless you jump or move in a specific way. my guess is the issue is similar to the one that this priority patch plugin fixes? just that HarryPotter’s plugin uses the vocalize menu’s look function instead.
Marttt has a similar plugin which uses [SHIFT] + [E] instead of ‘Look’, which i’ve had no problems with using together with the hats plugin. HarryPotter’s version has more features though, so i’m inclined to using it.

just wondering if there’s anything you can do to fix this? it’s not a big deal though. can just remove some hats/adjust their positions lol.

I think the fix would have to come from the ping plugin, ignoring entities that are attached to players when its firing its trace ray, which I assume it does without looking at the code.

__________________

Silvers is offline

Member

Old

01-27-2022

, 20:53

 

Re: [L4D & L4D2] Use Priority Patch (2.3) [12-Sep-2021]

Reply With Quote

#24


Quote:

Originally Posted by Silvers
View Post

I think the fix would have to come from the ping plugin, ignoring entities that are attached to players when its firing its trace ray, which I assume it does without looking at the code.

ahh i guess i was wrong in my assumption then. ok cool, i’ll try posting in the other thread. thanks!

swiftswing1 is offline

Senior Member

KRUTIK's Avatar

Join Date: Feb 2019

Location: Мос

Old

07-06-2022

, 01:10

 

Re: [L4D & L4D2] Use Priority Patch (2.4) [01-Aug-2022]

Reply With Quote

#25


Does not compile to version 1.9
//SourceMod Batch Compiler
// by the SourceMod Dev Team

//// l4d_use_priority.sp
//
// E:Action!addonssourcemodscriptingl4d_use _priority.sp(70) : fatal error 183: cannot read from file: «dhooks»
//
// Compilation aborted.
// 1 Error.
//
// Compilation Time: 0,11 sec
// —————————————-

Press enter to exit …


Last edited by KRUTIK; 07-06-2022 at 01:12.

KRUTIK is offline

SourceMod Plugin Approver

Silvers's Avatar

Join Date: Aug 2010

Location: SpaceX

Old

07-06-2022

, 10:15

 

Re: [L4D & L4D2] Use Priority Patch (2.4) [01-Aug-2022]

Reply With Quote

#26


Quote:

Originally Posted by KRUTIK
View Post

// E:Action!addonssourcemodscriptingl4d_use _priority.sp(70) : fatal error 183: cannot read from file: «dhooks»

You’re missing the DHooks include file to compile with.

@Note: Although 2.4 allows the plugin to work on Windows on L4D1, it’s still producing a crash. I’ve not been able to pinpoint why, again I believe it’s something with the last update. Maybe one day I’ll get this fixed or hopefully Valve update to fix.

__________________

Silvers is offline

Senior Member

ZBzibing's Avatar

Old

11-15-2022

, 05:01

 

Re: [L4D & L4D2] Use Priority Patch (2.4) [01-Aug-2022]

Reply With Quote

#27


Quote:

Originally Posted by Silvers
View Post

You’re missing the DHooks include file to compile with.
@Note: Although 2.4 allows the plugin to work on Windows on L4D1, it’s still producing a crash. I’ve not been able to pinpoint why, again I believe it’s something with the last update. Maybe one day I’ll get this fixed or hopefully Valve update to fix.

Correct, this plug-in cannot be used on L4D1, and it always crashes

__________________

My English needs translation
Functional tests are all from L4D1, and are only keen to solve and fix various bugs of L4D1:

ZBzibing is offline

SourceMod Plugin Approver

Silvers's Avatar

Join Date: Aug 2010

Location: SpaceX

Silvers is offline

#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);
}

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

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

  • Fatal error 183 cannot read from file colors
  • Fatal error 120 cannot read from file sourcemod
  • Fatal error 113 occurred while download
  • Fatal error 111 user error streamer must be included before pickfix
  • Fatal error 111 user error sscanf possibly the pawn version already defined

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

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