Hi,

So I've started a new mod project and when I started the game in debug 
mode I got 3 errors:
The client was missing 1)CWeaponHopwire(or something like that) class; 
2)Some class to do with hl2 survival and 3)CWeaponOldManHarpoon class.

I managed to fix the first two by digging up the files from the client 
side and adding them to the Client project. However, whatever I do I 
can't find anything to do with harpoon on the client files, and it seems 
like that's what I'm missing. Here's the log from the source console:

    ] map test_map_1
    ---- Host_NewGame ----
    CreateEvent: event 'game_init' not registered.
    Spawn Server: test_map_1
    execing skill_manifest.cfg
    execing skill.cfg
    Set Gravity 600.0 (0.250 tolerance)
    CGameEventManager::AddListener: event 'ragdoll_dissolved' unknown.
    PrecacheScriptSound 'Hud.Hint' failed, no such sound script entry
    Error reading weapon data file for: weapon_oldmanharpoon
    Invalid file size for motd.txt
    Created class baseline: 4 classes, 922 bytes.
    Game started

    Half-Life 2
    Map: test_map_1
    Players: 1 / 1
    Build: 3575
    Server Number: 1

    Initializing renderer...
    Level unlit, setting 'mat_fullbright 1'
    DataTable warning: No matching RecvTable for SendTable
    'DT_WeaponOldManHarpoon'.
    Client missing DT class CWeaponOldManHarpoon
    Host_EndGame: CL_ParseClassInfo_EndClasses: CreateDecoders failed.

    Dropped [TIP]peppers from server (Disconnect by user.)

And my src\game\client\hl2\c_weapon__stubs_hl2.cpp since that seems to 
be the only reference to harpoon on the client side (the important bit 
is marked with bold)

    //========= Copyright © 1996-2005, Valve Corporation, All rights
    reserved. ============//
    //
    // Purpose:
    //
    
//=============================================================================//

    #include "cbase.h"
    #include "c_weapon__stubs.h"
    #include "basehlcombatweapon_shared.h"
    #include "c_basehlcombatweapon.h"

    // memdbgon must be the last include file in a .cpp file!!!
    #include "tier0/memdbgon.h"

    STUB_WEAPON_CLASS( cycler_weapon, WeaponCycler, C_BaseCombatWeapon );

    STUB_WEAPON_CLASS( weapon_binoculars, WeaponBinoculars,
    C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_bugbait, WeaponBugBait,
    C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_flaregun, Flaregun, C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_annabelle, WeaponAnnabelle,
    C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_gauss, WeaponGaussGun, C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_cubemap, WeaponCubemap, C_BaseCombatWeapon );
    STUB_WEAPON_CLASS( weapon_alyxgun, WeaponAlyxGun,
    C_HLSelectFireMachineGun );
    STUB_WEAPON_CLASS( weapon_citizenpackage, WeaponCitizenPackage,
    C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_citizensuitcase, WeaponCitizenSuitcase,
    C_WeaponCitizenPackage );

    #ifndef HL2MP
    STUB_WEAPON_CLASS( weapon_ar2, WeaponAR2, C_HLMachineGun );
    STUB_WEAPON_CLASS( weapon_frag, WeaponFrag, C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_rpg, WeaponRPG, C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_pistol, WeaponPistol, C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_shotgun, WeaponShotgun,
    C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_smg1, WeaponSMG1, C_HLSelectFireMachineGun );
    STUB_WEAPON_CLASS( weapon_357, Weapon357, C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_crossbow, WeaponCrossbow,
    C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_slam, Weapon_SLAM, C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_crowbar, WeaponCrowbar,
    C_BaseHLBludgeonWeapon );
    #ifdef HL2_EPISODIC
    STUB_WEAPON_CLASS( weapon_hopwire, WeaponHopwire,
    C_BaseHLCombatWeapon );
    STUB_WEAPON_CLASS( weapon_proto1, WeaponProto1, C_BaseHLCombatWeapon );
    #endif
    *#ifdef HL2_LOSTCOAST
    STUB_WEAPON_CLASS( weapon_oldmanharpoon, WeaponOldManHarpoon,
    C_WeaponCitizenPackage ); //tried to comment this, no luck.
    #endif*
    #endif


    Thank you for yout help,
    Gustavo Lira

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to