This is a read only copy without any forum functionality of the old Modcraft forum.
If there is anything that you would like to have removed, message me on Discord via Kaev#5208.
Big thanks to Alastor for making this copy!

Menu

Author Topic: [SOLVED] [QUESTION] Vehicle Bug on Water  (Read 3347 times)

Laduguer

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 144
    • View Profile
[SOLVED] [QUESTION] Vehicle Bug on Water
« on: October 06, 2014, 12:28:38 am »
Hey guys!

Lemme describe to you what the issue is:


- We've made a vehicle with a levitation buff on permanently allowing it to act as a boat on water.

- However, when we try and drive it, it behaves erratically and jumps up and down the moment it starts moving on water.

- This bug occurs to everyone except whoever's driving it at the time, for them it appears to sail smoothy.


Here's what it looks like:


http://i.gyazo.com/b156db51deb0cb1966a2206301439797.gif



Possibly it's an issue in communication between the client and the server, maybe we need to do something with the vehicle dbcs, but I haven't got a clue.

Appreciate any help you guys can offer.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Laduguer

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 144
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #1 on: October 06, 2014, 01:12:26 am »
Typical. Confused us for a few hours then as soon as I posted this we solve it.

It was just a problem with the player not having the same buff as the vehicle (water walking).
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #2 on: October 07, 2014, 10:37:51 am »
Would never guess that, thanks, I am going to try to do exactly the same for my project :D.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Ulec

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 63
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #3 on: October 08, 2014, 05:11:11 pm »
Which vehicleID and modelID have you used for it? I require the information if possible :)
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ulec

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 63
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #4 on: November 17, 2014, 12:52:19 am »
Quote from: Laduguer

Just to bump my question since it would be very helpful for me :c
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Laduguer

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 144
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #5 on: November 17, 2014, 03:34:40 am »
Sorry Ulec, I didn't see this.

Unfortunately I can't remember the display ID. It might have been a custom one, in which case it should be easy to implement yourself. The rowboat model is already ingame.

The vehicle was a Salvaged Chopper that had been given a permanent water walking buff through the database.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ulec

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 63
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #6 on: November 17, 2014, 11:06:14 am »
Quote from: "Laduguer"
Sorry Ulec, I didn't see this.

Unfortunately I can't remember the display ID. It might have been a custom one, in which case it should be easy to implement yourself. The rowboat model is already ingame.

The vehicle was a Salvaged Chopper that had been given a permanent water walking buff through the database.

Salvaged Chopper, gotcha. Because the flags and whatnot on those do matter ^^ Thanks a tonne.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Amaroth

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 1219
    • View Profile
    • Amaroth's Tools
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #7 on: November 17, 2014, 10:47:47 pm »
Quote from: "Ulec"
Which modelID have you used for it?
Search WMV for model, search creaturemodeldata.dbc for creature model ID which is using that model path, search creaturedisplayinfo.dbc for displayID which uses that model ID. If you get stuck - that rowboat doesn't have any blizzlike ID and you will have to create it by yourself.:
1. create new row in creaturemodelinfo.dbc containing path to your boat model
2. create new row in creaturedisplayinfo.dbc containing your new model ID
3. create new row in world.creature_model_info for your new NPC DisplayID
4. done.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
English YT tutorial channel. Check it out if you preffer videos over walls of text.:
https://www.youtube.com/AmarothEng

Want to support me for my releases and/or tutorials? You can send donation via Paypal to:
jantoms@seznam.cz

Ulec

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 63
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #8 on: November 18, 2014, 09:17:29 am »
Quote from: "Amaroth"
Quote from: "Ulec"
Which modelID have you used for it?
Search WMV for model, search creaturemodeldata.dbc for creature model ID which is using that model path, search creaturedisplayinfo.dbc for displayID which uses that model ID. If you get stuck - that rowboat doesn't have any blizzlike ID and you will have to create it by yourself.:
1. create new row in creaturemodelinfo.dbc containing path to your boat model
2. create new row in creaturedisplayinfo.dbc containing your new model ID
3. create new row in world.creature_model_info for your new NPC DisplayID
4. done.

I asked it more for the flags, vehicle seats and whatnot used in it for it to be able to float and have you sit on it properly; else the model is pretty standard and easy to find anyway :P
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ulec

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 63
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #9 on: November 20, 2014, 02:24:37 am »
Hmm, I might have a problem with my core. It doesn't work with water walking. My vehicle always either submerses or free hangs in water just like a player depending on the flags with and without levitate/water walking, etc...

Any help, anyone?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Laduguer

  • Registred Member
  • Wiki Incarnate
  • *****
  • Posts: 144
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #10 on: November 20, 2014, 11:59:52 am »
Quote from: "Ulec"
Hmm, I might have a problem with my core. It doesn't work with water walking. My vehicle always either submerses or free hangs in water just like a player depending on the flags with and without levitate/water walking, etc...

Any help, anyone?

Are you using Trinity? If so, make sure you're applying the buff through the creature_template_addon database.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

Ulec

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 63
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #11 on: November 20, 2014, 09:40:03 pm »
Quote from: "Laduguer"
Quote from: "Ulec"
Hmm, I might have a problem with my core. It doesn't work with water walking. My vehicle always either submerses or free hangs in water just like a player depending on the flags with and without levitate/water walking, etc...

Any help, anyone?

Are you using Trinity? If so, make sure you're applying the buff through the creature_template_addon database.

Working, yet given how water walking/levitate etc... work properly within my server the moment I aim down while holding right click the whole vehicle submerges into the water, just as the character alone does with the said buffs. So I need to 'break' those buffs' function in a way it never lets you get underwater. If anyone could help me with that I'd be grateful.


Also how to stop the vehicle working on the ground and changing its speed on water? Messed with speedRun, speedWalk, habitat types and all sorts of other things. Any tips?
« Last Edit: January 01, 1970, 01:00:00 am by Admin »

phantomx

  • Contributors
  • Creator of Worlds
  • *****
  • Posts: 615
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #12 on: November 20, 2014, 09:51:34 pm »
Quote from: "Ulec"
Quote from: "Laduguer"
Quote from: "Ulec"
Hmm, I might have a problem with my core. It doesn't work with water walking. My vehicle always either submerses or free hangs in water just like a player depending on the flags with and without levitate/water walking, etc...

Any help, anyone?

Are you using Trinity? If so, make sure you're applying the buff through the creature_template_addon database.

Working, yet given how water walking/levitate etc... work properly within my server the moment I aim down while holding right click the whole vehicle submerges into the water, just as the character alone does with the said buffs. So I need to 'break' those buffs' function in a way it never lets you get underwater. If anyone could help me with that I'd be grateful.


Also how to stop the vehicle working on the ground and changing its speed on water? Messed with speedRun, speedWalk, habitat types and all sorts of other things. Any tips?

Just make it when mounted on it to require water and then mark the water as a solid while mounted on it and once you get out of the water since it's not water it should dismount you.

Also since it thinks the water is a solid changing the running speed should work.

You could also instead of making it think the water is solid just make the vehicle only allow forward backward and left to right controls.
« Last Edit: January 01, 1970, 01:00:00 am by Admin »
[wimg]http://i.imgur.com/6fxUQL1.gif[/wimg]

Ulec

  • Registred Member
  • Polygonshifter
  • *****
  • Posts: 63
    • View Profile
Re: [SOLVED] [QUESTION] Vehicle Bug on Water
« Reply #13 on: November 21, 2014, 12:06:46 am »
Quote from: "phantomx"
Quote from: "Ulec"
Quote from: "Laduguer"
Quote from: "Ulec"
Hmm, I might have a problem with my core. It doesn't work with water walking. My vehicle always either submerses or free hangs in water just like a player depending on the flags with and without levitate/water walking, etc...

Any help, anyone?

Are you using Trinity? If so, make sure you're applying the buff through the creature_template_addon database.

Working, yet given how water walking/levitate etc... work properly within my server the moment I aim down while holding right click the whole vehicle submerges into the water, just as the character alone does with the said buffs. So I need to 'break' those buffs' function in a way it never lets you get underwater. If anyone could help me with that I'd be grateful.


Also how to stop the vehicle working on the ground and changing its speed on water? Messed with speedRun, speedWalk, habitat types and all sorts of other things. Any tips?

Just make it when mounted on it to require water and then mark the water as a solid while mounted on it and once you get out of the water since it's not water it should dismount you.

Also since it thinks the water is a solid changing the running speed should work.

You could also instead of making it think the water is solid just make the vehicle only allow forward backward and left to right controls.


Okay I can give the vehicle an addon to apply the druid water form buff (a customised version of it, or at least the attributes it uses). But how to make the water solid?

And I'd also need a vehicleID allowing only forward/backward/left/right movement yet also with the appropriate seats. Or I'll have to edit the seat positions in which is really tedious :c
« Last Edit: January 01, 1970, 01:00:00 am by Admin »