Jump to content

[Help] Implementing Vehicles


Recommended Posts

  • Replies 604
  • Created
  • Last Reply

Top Posters In This Topic

DELETE FROM `creature_template_addon` WHERE `entry` IN (28670, 28312, 32629, 28319, 32627, 28094, 29929, 28782);

I think this query should be added to vvv_vehicle_test_data.sql before adding new values to creature_template_addon. The reason for this: if you revert structure changes for `creature_template_addon` and then again try to run vvv_vehicle_test_data.sql, the queries like "INSERT IGNORE INTO creature_template_addon" won't work. -_-

Link to comment
Share on other sites

Someone can fix the compilation for last rev? :)

in 8386 i've got error "not declared" on MovementHandler.cpp

ty :)

@@ -591,16 +591,14 @@ void WorldSession::HandleRequestVehicleSwitchSeat(WorldPacket &recv_data)
    if(!vehicleGUID)                                        // something wrong here...
        return;

    if(Vehicle *vehicle = ObjectAccessor::GetVehicle(vehicleGUID))
    {
-        CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+1);
        uint64 guid = 0;
        if(!recv_data.readPackGUID(guid))
            return;

-        CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+1);
        int8 seatId = 0;
        recv_data >> seatId;

        if(guid)
        {
@@ -642,16 +640,14 @@ void WorldSession::HandleChangeSeatsOnControlledVehicle(WorldPacket &recv_data)
    {
        MovementInfo mi;
        ReadMovementInfo(recv_data, &mi);
        //_player->m_movementInfo = mi;

-        CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+1);
        uint64 guid = 0;
        if(!recv_data.readPackGUID(guid))
            return;

-        CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+1);
        int8 seatId = 0;
        recv_data >> seatId;

        if(guid)
        {

Link to comment
Share on other sites

@@ -591,16 +591,14 @@ void WorldSession::HandleRequestVehicleSwitchSeat(WorldPacket &recv_data)
    if(!vehicleGUID)                                        // something wrong here...
        return;

    if(Vehicle *vehicle = ObjectAccessor::GetVehicle(vehicleGUID))
    {
-        CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+1);
        uint64 guid = 0;
        if(!recv_data.readPackGUID(guid))
            return;

-        CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+1);
        int8 seatId = 0;
        recv_data >> seatId;

        if(guid)
        {
@@ -642,16 +640,14 @@ void WorldSession::HandleChangeSeatsOnControlledVehicle(WorldPacket &recv_data)
    {
        MovementInfo mi;
        ReadMovementInfo(recv_data, &mi);
        //_player->m_movementInfo = mi;

-        CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+1);
        uint64 guid = 0;
        if(!recv_data.readPackGUID(guid))
            return;

-        CHECK_PACKET_SIZE(recv_data, recv_data.rpos()+1);
        int8 seatId = 0;
        recv_data >> seatId;

        if(guid)
        {

Just removing? woohoo... Thanks

I'll compile tonight again! :)

Link to comment
Share on other sites

my base is a 320 branch.

After i create a new repository with the rastikzzz branch, i use winmerge to compare all my sources and update 320 branch with vehicules functions (all of these)

next i update 320 branch manualy to last revision

then i create my own alterac patch on these project (but my sources don't touch neither the vehicle's function nor the vehicle implementation.

Either i have a bad patch or i have forget some lines in my code but i don't think because actualy the differences are between raztikk rev of mangos and mine.

i think the spell packet is wrong now for vehicles in 3.2.0x .

But vehicle i think the spawn bug is normal, i look after the code when i go back home and i'll try to find the error.

Link to comment
Share on other sites

I have small problem.

If i use 81_anticheat.patch from KAPATEJIB comulative pack, all is ok.

If i use "git pull git://github.com/rastikzzz/mangos.git master", all is ok.

and problem is :

Id i use 81_anticheat.patch from KAPATEJIB comulative pack and "git pull git://github.com/rastikzzz/mangos.git master", give me error.

Are two different patches, but affects some rows at the same position.

can you help me someone please ?

Link to comment
Share on other sites

Rastkizz:

I have compiled the new release and got the following errors:

2>------ Build started: Project: game, Configuration: Release Win32 ------

2>Compiling...

2>MovementHandler.cpp

2>..\\..\\src\\game\\MovementHandler.cpp(616) : error C3861: 'CHECK_PACKET_SIZE': identifier not found

2>..\\..\\src\\game\\MovementHandler.cpp(621) : error C3861: 'CHECK_PACKET_SIZE': identifier not found

2>..\\..\\src\\game\\MovementHandler.cpp(667) : error C3861: 'CHECK_PACKET_SIZE': identifier not found

2>..\\..\\src\\game\\MovementHandler.cpp(672) : error C3861: 'CHECK_PACKET_SIZE': identifier not found

2>Build log was saved at "file://d:\\Mangos Compile\\vehiclebranchcore_rev8411\\rastikzzz-mangos-19f7414dc1ff127431c0c882f6489703341ed253\\win\\VC90\\game__Win32_Release\\BuildLog.htm"

2>game - 4 error(s), 0 warning(s)

3>------ Build started: Project: mangosd, Configuration: Release Win32 ------

3>Linking...

3>LINK : fatal error LNK1181: cannot open input file '.\\game__win32_release\\game.lib'

3>Build log was saved at "file://d:\\Mangos Compile\\vehiclebranchcore_rev8411\\rastikzzz-mangos-19f7414dc1ff127431c0c882f6489703341ed253\\win\\VC90\\mangosd__Win32_Release\\BuildLog.htm"

3>mangosd - 1 error(s), 0 warning(s)

4>------ Build started: Project: script, Configuration: Release Win32 ------

4>Linking...

4>LINK : fatal error LNK1181: cannot open input file 'mangosd.lib'

4>Build log was saved at "file://d:\\Mangos Compile\\vehiclebranchcore_rev8411\\rastikzzz-mangos-19f7414dc1ff127431c0c882f6489703341ed253\\win\\VC90\\script__Win32_Release\\BuildLog.htm"

4>script - 1 error(s), 0 warning(s)

Do you have any idea what is the problem? Or is there any fix for this?

Thanks in advance!

EDIT:

Should I create another merge with rev8411? Some of the files missing from VC90.

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