Jump to content

[Help] Implementing Vehicles


Recommended Posts

Ok I'll tryit again thank you!

Ok Anti I've given the sql's another try and now I get the green arrow but can't use the vehicle, this only happens in Ulduar on 10man, 25 man is unpopulated for some reason....

On my serv i able to successfully uses all vehicles witch situated in ulduar.

May be something happened when you had creating your core. Try to rebuild it.

And try to delete all WoW caches.

Link to comment
Share on other sites

  • Replies 604
  • Created
  • Last Reply

Top Posters In This Topic

On my serv i able to successfully uses all vehicles witch situated in ulduar.

May be something happened when you had creating your core. Try to rebuild it.

And try to delete all WoW caches.

Wel i can't switch seats and i also cleaned the cache:( , justcloned the reposity re added the whole sql data still can't switch seat

Link to comment
Share on other sites

Confirmed. I have updated my local repo to last rev and obtained the bug. I'll look at it... May be tommorow.

An little update to add here if you try to use 28782 with the related quest the server crsahes

Revision: * * 9025 *
Date 19:12:2009. Time 12:43 
//=====================================================
*** Hardware ***
Processor: AMD Phenom(tm) II X4 940 Processor
Number Of Processors: 4
Physical Memory: 4192728 KB (Available: 1767916 KB)
Commit Charge Limit: 12577380 KB

*** Operation System ***
Windows Vista or Windows Server 2008 Professional (Version 6.1, Build 7100)

//=====================================================
Exception code: C0000005 ACCESS_VIOLATION
Fault address:  00000001400095A5 01:00000000000085A5 E:\\MaNGOS\\mangosd.exe

Registers:
RAX:0000000000000030
RBX:0000000000000000
RCX:0000000000000000
RDX:0000000000000000
RSI:000007FFEFF58CC0
RDI:00000001402C0930
R8: 0000000000000000
R9: 8000000000000000
R10:000007FFEDF64000
R11:0000000000000000
R12:0000000000000000
R13:0000000000000000
R14:0000000000000000
R15:00000000094DD670
CS:RIP:0033:00000001400095A5
SS:RSP:002B:00000000094DDC30  RBP:00000000
DS:002B  ES:002B  FS:0053  GS:002B
Flags:00010297

Call stack:
Address   Frame     Function      SourceFile
00000001400095A5  00000000094DDC40  Creature::GetPetAutoSpellOnPos+35  e:\\kara\\src\\game\\creature.h line 584
0000000140613E28  00000000094DE1B0  PetAI::UpdateAI+7C8  e:\\kara\\src\\game\\petai.cpp line 204
000000014031F6D2  00000000094E9390  Creature::Update+5E2  e:\\kara\\src\\game\\creature.cpp line 444
000000014033D91A  00000000094EB3F0  Vehicle::Update+2A  e:\\kara\\src\\game\\vehicle.cpp line 72
00000001401058D5  00000000094EB480  MaNGOS::ObjectUpdater::Visit+F5  e:\\kara\\src\\game\\gridnotifiersimpl.h line 47
00000001401057CD  00000000094EB4F0  VisitorHelper<MaNGOS::ObjectUpdater,Creature>+1D  e:\\kara\\src\\framework\\gamesystem\\typecontainervisitor.h line 65
000000014010482D  00000000094EB520  VisitorHelper<MaNGOS::ObjectUpdater,Creature,TypeList<Corpse,TypeNull> >+1D  e:\\kara\\src\\framework\\gamesystem\\typecontainervisitor.h line 71
00000001401040A0  00000000094EB550  VisitorHelper<MaNGOS::ObjectUpdater,Player,TypeList<Creature,TypeList<Corpse,TypeNull> > >+30  e:\\kara\\src\\framework\\gamesystem\\typecontainervisitor.h line 72
000000014010384D  00000000094EB580  VisitorHelper<MaNGOS::ObjectUpdater,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeNull> > > >+1D  e:\\kara\\src\\framework\\gamesystem\\typecontainervisitor.h line 95
00000001400FE3F8  00000000094EF660  Map::Visit<MaNGOS::SingleThreaded<ACE_RW_Thread_Mutex>::Lock,MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeNull> > > > >+168  e:\\kara\\src\\game\\map.h line 660
00000001400F6A98  00000000094EF750  Cell::Visit<MaNGOS::SingleThreaded<ACE_RW_Thread_Mutex>::Lock,MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeNull> > > > >+88  e:\\kara\\src\\game\\cellimpl.h line 48
00000001400D5A95  00000000094EFB40  Map::Update+5C5  e:\\kara\\src\\game\\map.cpp line 647
00000001402C66BF  00000000094EFC30  MapManager::Update+19F  e:\\kara\\src\\game\\mapmanager.cpp line 266
000000014029A702  00000000094EFE00  World::Update+732  e:\\kara\\src\\game\\world.cpp line 1689
000000014003E9B5  00000000094EFE40  WorldRunnable::run+A5  e:\\kara\\src\\mangosd\\worldrunnable.cpp line 61
00000001402C0953  00000000094EFEB0  ACE_Based::Thread::ThreadTask+23  e:\\kara\\src\\shared\\threading.cpp line 186
000007FEEA21157B  00000000094EFEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
00000000735B2FDF  00000000094EFF20  _endthreadex+47
00000000735B3080  00000000094EFF50  _endthreadex+E8
000000007767542D  00000000094EFF80  BaseThreadInitThunk+D
00000000778BBE51  00000000094EFFD0  RtlUserThreadStart+21

This is the code in the src at line marked with <====

void Vehicle::Update(uint32 diff)
{
   Creature::Update(diff);
   InstallAllAccessories();  <=========

   if(despawn)
   {
       m_spawnduration -= diff;
       if(m_spawnduration < 0)
           Dismiss();
       despawn = false;
   }

   if(m_regenTimer <= diff)
   {
       RegeneratePower(getPowerType());
       m_regenTimer = 4000;
   }
   else
       m_regenTimer -= diff;
}

Till yerstaday's patch worked partialy after you was clicked to enter in vehicle instantly umounted you down and you losed the movement crontrols over your character until you reloged

And the 28670 can't fly is acting like you don't have movement control over him :(

Link to comment
Share on other sites

fix for spell's

-------------------------------------------------------------unit.cpp-------------------------------------------------------------

@@Line 8403@@

// common faction based case (CvC,PvC,CvP)

return tester_faction->IsHostileTo(*target_faction);

}

+bool Unit::IsInPartyWith(Unit const *unit) const

+{

+ if(this == unit)

+ return true;

+

+ const Unit *u1 = GetCharmerOrOwnerOrSelf();

+ const Unit *u2 = unit->GetCharmerOrOwnerOrSelf();

+ if(u1 == u2)

+ return true;

+

+ if(u1->GetTypeId() == TYPEID_PLAYER && u2->GetTypeId() == TYPEID_PLAYER)

+ return ((Player*)u1)->IsInSameGroupWith((Player*)u2);

+ else

+ return false;

+}

+bool Unit::IsInRaidWith(Unit const *unit) const

+{

+ if(this == unit)

+ return true;

+

+ const Unit *u1 = GetCharmerOrOwnerOrSelf();

+ const Unit *u2 = unit->GetCharmerOrOwnerOrSelf();

+ if(u1 == u2)

+ return true;

+

+ if(u1->GetTypeId() == TYPEID_PLAYER && u2->GetTypeId() == TYPEID_PLAYER)

+ return ((Player*)u1)->IsInSameRaidWith((Player*)u2);

+ else

+ return false;

}

-------------------------------------------------------------unit.h-------------------------------------------------------------

@@Line 1019@@

bool IsHostileToPlayers() const;

bool IsFriendlyTo(Unit const* unit) const;

+ bool IsInRaidWith(Unit const* unit) const;

+ bool IsInPartyWith(Unit const* unit) const;

@@Line 1243@@

Unit* GetCharmerOrOwner() const { return GetCharmerGUID() ? GetCharmer() : GetOwner(); }

Unit* GetCharmOrPet() const { return GetCharmGUID() ? GetCharm() : (Unit*)GetPet(); }

- Unit* GetCharmerOrOwnerOrSelf()

- {

- if(Unit* u = GetCharmerOrOwner())

- return u;

-

- return this;

- }

+Unit* GetCharmerOrOwnerOrSelf() const

+ {

+ if(Unit* u = GetCharmerOrOwner())

+ return u;

+

+ return (Unit*)this;

+ }

-------------------------------------------------------------spell.cpp-------------------------------------------------------------

@@line 5109@@SpellCastResult Spell::CheckPetCast(Unit* target)

if(_target) //for target dead/target not valid

{

if(!_target->isAlive())

return SPELL_FAILED_BAD_TARGETS;

+ if(!IsValidSingleTargetSpell(_target))

+ return SPELL_FAILED_BAD_TARGETS;

- if(IsPositiveSpell(m_spellInfo->Id))

- {

- if(m_caster->IsHostileTo(_target))

- return SPELL_FAILED_BAD_TARGETS;

- }

- else

- {

- bool duelvsplayertar = false;

- for(int j = 0; j < 3; ++j)

- {

- //TARGET_DUELVSPLAYER is positive AND negative

- duelvsplayertar |= (m_spellInfo->EffectImplicitTargetA[j] == TARGET_DUELVSPLAYER);

- }

- if(m_caster->IsFriendlyTo(_target) && !duelvsplayertar)//some spells not work with this

- {

- return SPELL_FAILED_BAD_TARGETS;

- }

- }

}

//cooldown

if(((Creature*)m_caster)->HasSpellCooldown(m_spellInfo->Id))

return SPELL_FAILED_NOT_READY;

}

sLog.outDebug("CheckPetCast_OK");

// NOTE : this is done twice, also in spell->prepare(&(spell->m_targets));

return CheckCast(true);

}

+bool Spell::IsValidSingleTargetEffect(Unit const* target, Targets type) const

+{

+ switch(type)

+ {

+ case TARGET_CHAIN_DAMAGE:

+ return !m_caster->IsFriendlyTo(target);

+ case TARGET_SINGLE_FRIEND:

+ case TARGET_AREAEFFECT_PARTY:

+ return m_caster->IsFriendlyTo(target);

+ case TARGET_SINGLE_PARTY:

+ return m_caster != target && m_caster->IsInPartyWith(target);

+ case TARGET_SINGLE_FRIEND_2:

+ return m_caster->IsInRaidWith(target);

+ }

+ return true;

+}

+

+bool Spell::IsValidSingleTargetSpell(Unit const* target) const

+{

+ for(int i = 0; i < 3; ++i)

+ {

+ if(!IsValidSingleTargetEffect(target, Targets(m_spellInfo->EffectImplicitTargetA)))

+ return false;

+ // Need to check B?

+ //if(!IsValidSingleTargetEffect(m_spellInfo->EffectImplicitTargetB, target)

+ // return false;

+ }

+ return true;

+}

-------------------------------------------------------------spell.h-------------------------------------------------------------

@@Line 347@@

SpellCastResult CheckCast(bool strict);

SpellCastResult CheckPetCast(Unit* target);

+ bool IsValidSingleTargetEffect(Unit const* target, Targets type) const;

+ bool IsValidSingleTargetSpell(Unit const* target) const;

Test it!

Link to comment
Share on other sites

server crashes, then i accepting quest into realm of shadows

Revision: * * 9025 7c01548e2ecf9259d4a2c38fc6ab6428da3209e7
Date 20:12:2009. Time 15:42 
//=====================================================
*** Hardware ***
Processor: Intel(R) Core(TM)2 CPU          6300  @ 1.86GHz
Number Of Processors: 2
Physical Memory: 1046956 KB (Available: 69928 KB)
Commit Charge Limit: 2518648 KB

*** Operation System ***
Microsoft Windows XP Professional Service Pack 3 (Version 5.1, Build 2600)

//=====================================================
Exception code: C0000005 ACCESS_VIOLATION
Fault address:  00408059 01:00007059 D:\\server\\server\\mangos\\mangosd.exe

Registers:
EAX:00000000
EBX:73B3B218
ECX:0000002C
EDX:0000002C
ESI:00000000
EDI:0087B740
CS:EIP:001B:00408059
SS:ESP:0023:07F0E5B4  EBP:07F0E5C0
DS:0023  ES:0023  FS:003B  GS:0000
Flags:00010297

Call stack:
Address   Frame     Function      SourceFile
00408059  00000000  Creature::GetPetAutoSpellOnPos+29
0086DDCD  00000000  PetAI::UpdateAI+5ED
006540C5  00000000  Creature::Update+505
0066A372  00000000  Vehicle::Update+22
004C3A7F  00000000  MaNGOS::ObjectUpdater::Visit+6F
004C3A02  00000000  VisitorHelper<MaNGOS::ObjectUpdater,Creature>+12
004C2FB0  00000000  VisitorHelper<MaNGOS::ObjectUpdater,Creature,TypeList<Corpse,TypeNull> >+10
004C2A33  00000000  VisitorHelper<MaNGOS::ObjectUpdater,Player,TypeList<Creature,TypeList<Corpse,TypeNull> > >+23
004C2490  00000000  VisitorHelper<MaNGOS::ObjectUpdater,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeNull> > > >+10
004BDCE2  00000000  Map::Visit<MaNGOS::SingleThreaded<ACE_RW_Thread_Mutex>::Lock,MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeNull> > > > >+102
004B8616  00000000  Cell::Visit<MaNGOS::SingleThreaded<ACE_RW_Thread_Mutex>::Lock,MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeNull> > > > >+56
0049EF04  00000000  Map::Update+374
00613938  00000000  MapManager::Update+128
005F7D1B  00000000  World::Update+77B
00430A8E  00000000  WorldRunnable::run+8E
0087B759  00000000  ACE_Based::Thread::ThreadTask+19
00A914D4  00000000  __WSAFDIsSet+FFFFFFFFFFFCC45C
78543433  00000000  _endthreadex+44
785434C7  00000000  _endthreadex+D8
7C80B729  00000000  GetModuleFileNameA+1BA

Call stack:
Address   Frame     Function      SourceFile
7C90E514  00000000  KiFastSystemCallRet+0
7C802542  00000000  WaitForSingleObject+12
00A49C64  00000000  __WSAFDIsSet+FFFFFFFFFFF84BEC
00AB64DA  00000000  __WSAFDIsSet+FFFFFFFFFFFF1462
00AB269F  00000000  __WSAFDIsSet+FFFFFFFFFFFED627
0061061A  00000000  WorldSocketMgr::Wait+4A
73D69D04  00000000  0000:00000000 
73D69D04  00000000  0000:00000000 
6C696146  00000000  

Link to comment
Share on other sites

its hand made fix ....i cant make .patch file, make this changes in Microsoft Visual Studio

Well and many more

10>..\\..\\src\\game\\Spell.cpp(5201) : error C2039: 'IsInPartyWith' : is not a member of 'Unit'
10>        e:\\kara\\src\\game\\Unit.h(900) : see declaration of 'Unit'
10>..\\..\\src\\game\\Spell.cpp(5203) : error C2039: 'IsInRaidWith' : is not a member of 'Unit'
10>        e:\\kara\\src\\game\\Unit.h(900) : see declaration of 'Unit'

Link to comment
Share on other sites

Well

10>..\\..\\src\\game\\Spell.cpp(5201) : error C2039: 'IsInPartyWith' : is not a member of 'Unit'
10>        e:\\kara\\src\\game\\Unit.h(900) : see declaration of 'Unit'
10>..\\..\\src\\game\\Spell.cpp(5203) : error C2039: 'IsInRaidWith' : is not a member of 'Unit'
10>        e:\\kara\\src\\game\\Unit.h(900) : see declaration of 'Unit'

-------------------------------------------------------------unit.h-------------------------------------------------------------

@@Line 1019@@

bool IsHostileToPlayers() const;

bool IsFriendlyTo(Unit const* unit) const;

+ bool IsInRaidWith(Unit const* unit) const;

+ bool IsInPartyWith(Unit const* unit) const;

make this

Link to comment
Share on other sites

-------------------------------------------------------------unit.h-------------------------------------------------------------

@@Line 1019@@

bool IsHostileToPlayers() const;

bool IsFriendlyTo(Unit const* unit) const;

+ bool IsInRaidWith(Unit const* unit) const;

+ bool IsInPartyWith(Unit const* unit) const;

make this

Yes i can confirm they work thank you

Link to comment
Share on other sites

I patches whit walhalla.patch make some correct modification for script but it crash on beginning enter one player work perfectly until this code:

Character Send Initial Spells

Sending Action Buttons for "317' spec '0'

Action Buttons '317' spec '0' Sent

Creating player data for himself 317 and ....................CRASH (No error code nothing else)

Maybe someone have this problem or give me an idea where is wrong

Thank you ! Regards Sundry!

Link to comment
Share on other sites

An little update to add here if you try to use 28782 with the related quest the server crsahes

Revision: * * 9025 *
Date 19:12:2009. Time 12:43 
//=====================================================
*** Hardware ***
Processor: AMD Phenom(tm) II X4 940 Processor
Number Of Processors: 4
Physical Memory: 4192728 KB (Available: 1767916 KB)
Commit Charge Limit: 12577380 KB

*** Operation System ***
Windows Vista or Windows Server 2008 Professional (Version 6.1, Build 7100)

//=====================================================
Exception code: C0000005 ACCESS_VIOLATION
Fault address:  00000001400095A5 01:00000000000085A5 E:\\MaNGOS\\mangosd.exe

Registers:
RAX:0000000000000030
RBX:0000000000000000
RCX:0000000000000000
RDX:0000000000000000
RSI:000007FFEFF58CC0
RDI:00000001402C0930
R8: 0000000000000000
R9: 8000000000000000
R10:000007FFEDF64000
R11:0000000000000000
R12:0000000000000000
R13:0000000000000000
R14:0000000000000000
R15:00000000094DD670
CS:RIP:0033:00000001400095A5
SS:RSP:002B:00000000094DDC30  RBP:00000000
DS:002B  ES:002B  FS:0053  GS:002B
Flags:00010297

Call stack:
Address   Frame     Function      SourceFile
00000001400095A5  00000000094DDC40  Creature::GetPetAutoSpellOnPos+35  e:\\kara\\src\\game\\creature.h line 584
0000000140613E28  00000000094DE1B0  PetAI::UpdateAI+7C8  e:\\kara\\src\\game\\petai.cpp line 204
000000014031F6D2  00000000094E9390  Creature::Update+5E2  e:\\kara\\src\\game\\creature.cpp line 444
000000014033D91A  00000000094EB3F0  Vehicle::Update+2A  e:\\kara\\src\\game\\vehicle.cpp line 72
00000001401058D5  00000000094EB480  MaNGOS::ObjectUpdater::Visit+F5  e:\\kara\\src\\game\\gridnotifiersimpl.h line 47
00000001401057CD  00000000094EB4F0  VisitorHelper<MaNGOS::ObjectUpdater,Creature>+1D  e:\\kara\\src\\framework\\gamesystem\\typecontainervisitor.h line 65
000000014010482D  00000000094EB520  VisitorHelper<MaNGOS::ObjectUpdater,Creature,TypeList<Corpse,TypeNull> >+1D  e:\\kara\\src\\framework\\gamesystem\\typecontainervisitor.h line 71
00000001401040A0  00000000094EB550  VisitorHelper<MaNGOS::ObjectUpdater,Player,TypeList<Creature,TypeList<Corpse,TypeNull> > >+30  e:\\kara\\src\\framework\\gamesystem\\typecontainervisitor.h line 72
000000014010384D  00000000094EB580  VisitorHelper<MaNGOS::ObjectUpdater,TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeNull> > > >+1D  e:\\kara\\src\\framework\\gamesystem\\typecontainervisitor.h line 95
00000001400FE3F8  00000000094EF660  Map::Visit<MaNGOS::SingleThreaded<ACE_RW_Thread_Mutex>::Lock,MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeNull> > > > >+168  e:\\kara\\src\\game\\map.h line 660
00000001400F6A98  00000000094EF750  Cell::Visit<MaNGOS::SingleThreaded<ACE_RW_Thread_Mutex>::Lock,MaNGOS::ObjectUpdater,TypeMapContainer<TypeList<Player,TypeList<Creature,TypeList<Corpse,TypeNull> > > > >+88  e:\\kara\\src\\game\\cellimpl.h line 48
00000001400D5A95  00000000094EFB40  Map::Update+5C5  e:\\kara\\src\\game\\map.cpp line 647
00000001402C66BF  00000000094EFC30  MapManager::Update+19F  e:\\kara\\src\\game\\mapmanager.cpp line 266
000000014029A702  00000000094EFE00  World::Update+732  e:\\kara\\src\\game\\world.cpp line 1689
000000014003E9B5  00000000094EFE40  WorldRunnable::run+A5  e:\\kara\\src\\mangosd\\worldrunnable.cpp line 61
00000001402C0953  00000000094EFEB0  ACE_Based::Thread::ThreadTask+23  e:\\kara\\src\\shared\\threading.cpp line 186
000007FEEA21157B  00000000094EFEF0  ?invoke@ACE_OS_Thread_Adapter@@UEAAKXZ+5B
00000000735B2FDF  00000000094EFF20  _endthreadex+47
00000000735B3080  00000000094EFF50  _endthreadex+E8
000000007767542D  00000000094EFF80  BaseThreadInitThunk+D
00000000778BBE51  00000000094EFFD0  RtlUserThreadStart+21

This is the code in the src at line marked with <====

void Vehicle::Update(uint32 diff)
{
   Creature::Update(diff);
   InstallAllAccessories();  <=========

   if(despawn)
   {
       m_spawnduration -= diff;
       if(m_spawnduration < 0)
           Dismiss();
       despawn = false;
   }

   if(m_regenTimer <= diff)
   {
       RegeneratePower(getPowerType());
       m_regenTimer = 4000;
   }
   else
       m_regenTimer -= diff;
}

Till yerstaday's patch worked partialy after you was clicked to enter in vehicle instantly umounted you down and you losed the movement crontrols over your character until you reloged

And the 28670 can't fly is acting like you don't have movement control over him :(

I found what caused that crash marked with <======

bool Vehicle::Create(uint32 guidlow, Map *map, uint32 phaseMask, uint32 Entry, uint32 vehicleId, uint32 team, const CreatureData *data)
{
   SetMap(map);
   SetPhaseMask(phaseMask,false);

   CreatureInfo const *cinfo = sObjectMgr.GetCreatureTemplate(Entry);
   if(!cinfo)
   {
       sLog.outErrorDb("Creature entry %u does not exist.", Entry);
       return false;
   }

   Object::_Create(guidlow, Entry, HIGHGUID_VEHICLE);

   if(!UpdateEntry(Entry, team, data))
       return false;

   if(!vehicleId)
   {
       CreatureDataAddon const *cainfo = GetCreatureAddon();
       if(!cainfo)
           return false;
       vehicleId = cainfo->vehicle_id;
   }
   if(!SetVehicleId(vehicleId))
       return false;

   LoadCreaturesAddon();

   m_regenHealth = false;
   m_creation_time = getMSTime();

   SetFloatValue(UNIT_FIELD_HOVERHEIGHT, 1.0f);
   //RemoveMonsterMoveFlag(MONSTER_MOVE_WALK);

   //Notify the map's instance data.
   //Only works if you create the object in it, not if it is moves to that map.
   //Normally non-players do not teleport to other maps.
   if(map->IsDungeon() && ((InstanceMap*)map)->GetInstanceData())
   {
       ((InstanceMap*)map)->GetInstanceData()->OnCreatureCreate(this);
   }

   if(m_vehicleInfo->m_powerType == POWER_TYPE_STEAM)
   {
       setPowerType(POWER_ENERGY);
       SetMaxPower(POWER_ENERGY, 100);
       SetPower(POWER_ENERGY, 100);
   }
   else if(m_vehicleInfo->m_powerType == POWER_TYPE_PYRITE)
   {
       setPowerType(POWER_ENERGY);
       SetMaxPower(POWER_ENERGY, 50);
       SetPower(POWER_ENERGY, 50);
   }
   else
   {
       for (uint32 i = 0; i < MAX_VEHICLE_SPELLS; ++i)
       {
           if(!GetVehicleData()->v_spells[i])
               continue;

           SpellEntry const *spellInfo = sSpellStore.LookupEntry(GetVehicleData()->v_spells[i]);
           if(!spellInfo)
               continue;

           if(spellInfo->powerType == POWER_MANA)
               break;

           if(spellInfo->powerType == POWER_ENERGY)
           {
               setPowerType(POWER_ENERGY);
               SetMaxPower(POWER_ENERGY, 100);
               SetPower(POWER_ENERGY, 100);
               break;
           }
       }
   }

              InstallAllAccessories();    <=======

   return true;
}

So i comented that and the crash has gone

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use