Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

help me please fix

Joined
Jul 15, 2013
Messages
43
Reaction score
4
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:
Experienced Elementalist
Joined
May 28, 2017
Messages
225
Reaction score
127
I pretty sure that u have messed up the item category on buying from the ingame store
 
Upvote 0
Joined
Jul 15, 2013
Messages
43
Reaction score
4
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
 
Upvote 0
Joined
Apr 2, 2013
Messages
1,098
Reaction score
4,468
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:
Upvote 0
Back
Top