help me please fix

Results 1 to 10 of 10
  1. #1
    Member poundkanom is offline
    MemberRank
    Jul 2013 Join Date
    Phisanulauk, PhLocation
    28Posts

    sad help me please fix

    help me please fix
    https://youtu.be/9KNH0DNkPNc

    when using the bandage item on the quick slot bar, then press I to open inventory and move the bandage item on the quick slot bar to any slot already has an item there, the player will disconnect and the other players are around is also disconnect, server no crash, no report logss, client no report log.
    Last edited by poundkanom; 11-08-20 at 12:01 PM.


  2. #2
    Ultimate Member IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    190Posts

    Re: help me please fix

    I pretty sure that u have messed up the item category on buying from the ingame store

  3. #3
    Member poundkanom is offline
    MemberRank
    Jul 2013 Join Date
    Phisanulauk, PhLocation
    28Posts

    Re: help me please fix

    Quote Originally Posted by IKaruzI15 View Post
    I pretty sure that u have messed up the item category on buying from the ingame store
    -- case storecat_UsableItem:
    if(@Category = 28) return 1
    -- case storecat_Food:
    if(@Category = 30) return 1
    -- case storecat_Water:
    if(@Category = 33) return 1
    itemdb.xml
    <Weapon itemID="101261" category="28" upgrade="1" FNAME="Item_bandage_01" Weight="200">
    <Model file="Data/ObjectsDepot/Weapons/Item_bandage_01.sco" AnimPrefix="" muzzlerOffset.x="0" muzzlerOffset.y="0" muzzlerOffset.z="0" />
    <MuzzleModel file="muzzle_asr" />
    <HudIcon file="$Data/Weapons/HudIcons/Item_bandage_01.dds" />
    <Store name="Bandages " icon="$Data/Weapons/StoreIcons/Item_bandage_01.dds" desc="Common bandages which heal minor wounds and stops excessive bleeding." LevelRequired="0" />
    <PrimaryFire bullet="5.45" damage="15" immediate="true" mass="10" decay="50" speed="300" area="0" delay="0" timeout="0" numShells="1" clipSize="1" reloadTime="4" activeReloadTick="2" rateOfFire="20" spread="20" recoil="20" numgrenades="0" grenadename="asr_grenade" firemode="101" ScopeType="default" ScopeZoom="0" />
    <Animation type="assault" />
    <Sound shoot="" reload="" />
    <FPS IsFPS="1" i0="0" i1="0" i2="0" i3="0" i4="0" i5="0" i6="0" i7="0" i8="0" d0="0" d1="0" d2="0" d3="0" d4="0" d5="0" d6="0" d7="0" d8="0" />
    </Weapon>
    <Weapon itemID="101262" category="28" upgrade="1" FNAME="Item_bandage_02" Weight="100">
    <Model file="Data/ObjectsDepot/Weapons/Item_bandage_02.sco" AnimPrefix="" muzzlerOffset.x="0" muzzlerOffset.y="0" muzzlerOffset.z="0" />
    <MuzzleModel file="muzzle_asr" />
    <HudIcon file="$Data/Weapons/HudIcons/Item_bandage_02.dds" />
    <Store name="Bandages DX" icon="$Data/Weapons/StoreIcons/Item_bandage_02.dds" desc="Medical bandages which heal moderate wounds and stops excessive bleeding." LevelRequired="3" />
    <PrimaryFire bullet="5.45" damage="45" immediate="true" mass="10" decay="50" speed="300" area="0" delay="0" timeout="0" numShells="1" clipSize="1" reloadTime="4" activeReloadTick="2" rateOfFire="30" spread="20" recoil="20" numgrenades="0" grenadename="asr_grenade" firemode="101" ScopeType="default" ScopeZoom="0" />
    <Animation type="assault" />
    <Sound shoot="" reload="" />
    <FPS IsFPS="1" i0="0" i1="0" i2="0" i3="0" i4="0" i5="0" i6="0" i7="0" i8="0" d0="0" d1="0" d2="0" d3="0" d4="0" d5="0" d6="0" d7="0" d8="0" />
    </Weapon>
    <Item itemID="101283" category="30" Weight="350">
    <Model file="Data/ObjectsDepot/Weapons/consumables_bag_chips_01.sco" />
    <Store name="Bag of Chips" icon="$Data/Weapons/StoreIcons/consumables_bag_chips_01.dds" desc="A bag of potato chips. Relieves minor hunger. BBQ Flavor!" LevelRequired="0" />
    <Property health="0" toxicity="0" water="-5" food="10" stamina="0" shopSS="1" />
    </Item>
    <Item itemID="101284" category="30" Weight="400">
    <Model file="Data/ObjectsDepot/Weapons/Consumables_Bag_MRE_01.sco" />
    <Store name="Bag MRE" icon="$Data/Weapons/StoreIcons/Consumables_Bag_MRE_01.dds" desc="Meals Ready-to-Eat. Extremely convenient! An MRE can be eaten cold, right out of the pouch but they always taste better hot. Each serving size substantially relieves hunger and thirst" LevelRequired="2" />
    <Property health="15" toxicity="0" water="60" food="100" stamina="0" shopSS="1" />
    </Item>
    <Item itemID="101285" category="30" Weight="220">
    <Model file="Data/ObjectsDepot/Weapons/Consumables_Bag_Oat_01.sco" />
    <Store name="Instant Oatmeal" icon="$Data/Weapons/StoreIcons/Consumables_Bag_Oat_01.dds" desc="A heart warming way to start your day. Classic Maple and Brown Sugar. Relieves a moderate amount of hunger." LevelRequired="0" />
    <Property health="0" toxicity="0" water="5" food="15" stamina="0" shopSS="1" />
    </Item>
    <Item itemID="101286" category="33" Weight="350">
    <Model file="Data/ObjectsDepot/Weapons/Consumables_Coconutwater_01.sco" />
    <Store name="Coconut Water" icon="$Data/Weapons/StoreIcons/Consumables_Coconutwater_01.dds" desc="A bottle of delicious coconut water that when consumed quenches moderate thirst." LevelRequired="0" />
    <Property health="5" toxicity="0" water="55" food="0" stamina="0" shopSS="1" />
    </Item>
    <Item itemID="101288" category="30" Weight="220">
    <Model file="Data/ObjectsDepot/Weapons/Consumables_Bar_Chocolate_01.sco" />
    <Store name="Chocolate Bar" icon="$Data/Weapons/StoreIcons/Consumables_Bar_Chocolate_01.dds" desc="A milk chocolate candy bar. The finest in gourmet chocolate. Each serving size provides minor sustenance." LevelRequired="0" />
    <Property health="0" toxicity="0" water="0" food="10" stamina="0" shopSS="1" />
    </Item>
    database

    101261 Item_bandage_01 28 Bandages Common bandages which heal minor wounds and stops excessive bleeding. 0 0 0 muzzle_asr assault 5.45 15 1 10 300 50 0 0 0 1 5 4 2 20 20 20 0 asr_grenade 101 30 default 0 0 0 0 0 0 0 0 0 0 2000 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 200 0 0 0 0 0 0 0
    101262 Item_bandage_02 28 Bandages DX Medical bandages which heal moderate wounds and stops excessive bleeding. 0 0 0 muzzle_asr assault 5.45 45 1 10 300 50 0 0 0 1 5 4 2 30 20 20 0 asr_grenade 101 30 default 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 100 0 0 0 0 0 0 0
    101283 consumables_bag_chips_01 30 Bag of Chips A bag of potato chips. Relieves minor hunger. BBQ Flavor! 0 0 0 0 0 0 0 0 0 1 0 0 0 -5 10 0 30 0 0 0 0 0 0 0 0 0 0 500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 350 0 0 0 0 0 0 0
    101284 Consumables_Bag_MRE_01 30 Bag MRE Meals Ready-to-Eat. Extremely convenient! An MRE can be eaten cold, right out of the pouch but they always taste better hot. Each serving size substantially relieves hunger and thirst 0 0 0 0 0 0 0 0 0 1 25 0 0 60 100 0 30 0 0 0 0 5 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 400 0 0 0 0 0 0 0
    101285 Consumables_Bag_Oat_01 30 Instant Oatmeal A heart warming way to start your day. Classic Maple and Brown Sugar. Relieves a moderate amount of hunger. 0 0 0 0 0 0 0 0 0 1 0 0 0 5 15 0 30 0 0 0 0 0 0 0 0 0 0 900 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 220 0 0 0 0 0 0 0
    101286 Consumables_Coconutwater_01 33 Coconut Water A bottle of delicious coconut water that when consumed quenches moderate thirst. 0 0 0 0 0 0 0 0 0 1 5 0 0 55 0 0 30 0 0 0 0 0 0 0 0 0 0 1300 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 350 0 0 0 0 0 0 0
    101288 Consumables_Bar_Chocolate_01 30 Chocolate Bar A milk chocolate candy bar. The finest in gourmet chocolate. Each serving size provides minor sustenance. 0 0 0 0 0 0 0 0 0 1 0 0 0 0 10 0 30 0 0 0 0 0 0 0 0 0 0 400 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 220 0 0 0 0 0 0 0
    101289 Consumables_Bar_Granola_01 30 Granola Bar An organic granola bar. Each serving size helps relieve moderate hunger. 0 0 0 0 0 25 0 0 0 1 0 0 0 0 10 0 30 0 0 0 0 0 0 0 0 0 0 400 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 220 0 0 0 0 0 0 0
    101290 Consumables_Can_Pasta_01 30 Can of Pasta A can of delicious Pasta-O's. Fortified with iron and vitamins. Low sugar and low fat. Suitable for Vegetarians. \r\nGluten Free 0 0 0 0 0 0 0 0 0 1 0 0 0 0 35 0 30 0 0 0 0 0 0 0 0 0 0 1200 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 350 0 0 0 0 0 0 0
    I'm sure it's not mistaken

  4. #4
    Ultimate Member IKaruzI15 is offline
    MemberRank
    May 2017 Join Date
    190Posts

    Re: help me please fix

    code issue probably maybe u override it somewhere

  5. #5
    Member bedomeso is offline
    MemberRank
    Sep 2019 Join Date
    51Posts

    Re: help me please fix

    clean source untouched use

  6. #6
    Registered sensore99 is offline
    MemberRank
    Sep 2020 Join Date
    8Posts

    Re: help me please fix

    how did you fix it ?

  7. #7
    Registered sensore99 is offline
    MemberRank
    Sep 2020 Join Date
    8Posts

    Re: help me please fix

    help meeee

  8. #8
    Yuri-BR#3322 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,034Posts

    Re: help me please fix

    here's this how do i fix this problem to @poundkanom:

    In "src\EclipseStudio\Sources\ObjectsCode\AI\AI_PlayerAnim.cpp"

    Search for:
    Code:
    if (draw_weapon)
    {
        ...
    }
    Modify to:
    Code:
    if(draw_weapon)
    {
        world = getWeaponBone(skel, CharMat);
        bool skinned = false;
        r3dSkeleton* wpnSkel = NULL;
        Weapon* wpn = slots_[SLOT_Weapon].wpn;
        if(wpn)
        {
            r3dMesh* msh = wpn->getModel(true, first_person);
            if(msh->IsSkeletal() && wpn->getConfig()->getSkeleton())
            {
                wpn->getAnimation()->Recalc();
                wpn->getAnimation()->pSkeleton->SetShaderConstants();
                wpnSkel = wpn->getAnimation()->pSkeleton;
                skinned = true;
            }
        }
        DrawSlot(SLOT_Weapon, world, dt, skinned, first_person, wpnSkel);
    }
    In "src\EclipseStudio\Sources\ObjectsCode\WEAPONS\Weapon.cpp"

    Search for:
    Code:
    if(g_camera_mode->GetInt()==2 && player->NetworkLocal)
        checkForSkeleton();
    Change for:
    Code:
    //if(g_camera_mode->GetInt()==2 && player->NetworkLocal)
        checkForSkeleton();
    Last edited by Yuri-BR; 20-09-20 at 06:21 AM.
    Want to send me a private message ?
    Click Here

  9. #9
    Registered sensore99 is offline
    MemberRank
    Sep 2020 Join Date
    8Posts

    Re: help me please fix

    no fix bro

  10. #10
    Yuri-BR#3322 Yuri-BR is offline
    DeveloperRank
    Apr 2013 Join Date
    ☣️❤️Location
    1,034Posts

    Re: help me please fix

    Quote Originally Posted by sensore99 View Post
    no fix bro
    you must debug your code to know what is causing the crash, because each case is different, in the case of @poundkanom, what was causing the crash was the skeletal synchronization in fps.

    Last edited by Yuri-BR; 20-09-20 at 04:12 PM.
    Want to send me a private message ?
    Click Here



Advertisement