Page 1 of 3

more on swim under water

PostPosted: Thu Jun 24, 2004 1:11 am
by MastaMappa
This post leads me to believe that there is definately a packet sent to allow the client to go under water, but now I think it is sent on zone in, rather than your actual attempt to dive. Smallhorse, what ya think?

From the Herald:

I don't know why this one amuses me, but it does:

TRIALS OF ATLANTIS WORLD NOTES

- All of the monsters in Hibernia's version of Oceanus Boreal will now spawn correctly underwater (once killed). You will need to kill the floating version to spawn the underwater version. Players will also be able to submerge again.

PostPosted: Thu Jun 24, 2004 6:21 am
by Smallhorse
Yes this is what I thought ... the diving is allowed/prevented by a packet or some bits in a packet. However this packet is not sent when you dive down ... it must be sent at some other time indeed ...

PostPosted: Thu Jun 24, 2004 3:21 pm
by skal
It's sent in the 0x20 packet (former 0x88, it's the SendPlayerPositionAndObjectID in DoL):

last 2 bytes are set to 0x00 in DoL, they should be:

first one: 0x80 if diving allowed, 0x00 if not allowed
second (and last) one:0x08 <- always set to that, not sure if it's used

---

when player is diving, bit 10 of the word after ID in packet 0xa9 (former 0x01) is set (same WORD as the one giving speed and strafing info).

PostPosted: Fri Jun 25, 2004 5:42 am
by Smallhorse
thanks skal! ...

PostPosted: Fri Jun 25, 2004 11:14 pm
by zjovaz
Yes it is the first bit of the byte that is next to the last byte that set the diving.

You should also include the packet 0xF3 (It sends a window with a proceeding bar).

I have not figured what packet the client sends to the server (I have not tried to find it till now ).:D

PostPosted: Fri Jul 02, 2004 2:16 pm
by MastaMappa
ok, so "we" got the info... has this made it into the code yet?

PostPosted: Fri Jul 02, 2004 5:18 pm
by Smallhorse
Nope it has not, but should come soon if some of us can divide some time into this ...

PostPosted: Fri Jul 02, 2004 7:54 pm
by Akira
Diving should be set to zones. So in zones.ini there should be a property like swimming=1. If this property is not set it is 0 on default. This should be zone related also, not region.

Just a hint, I think you were going to do this anyhow, but keep in mind that you can onyl set it on new frontier zones and TOA zones. I dont know what will happen if you set it on other zones since there is no artwork for underwater there. Possably it will work and jsut show you swimming below the water but there will be no graphics or anything for the ground or anything I believe

PostPosted: Sat Jul 03, 2004 6:32 am
by Smallhorse
Can anyone give me a list of diving-enabled zones?

PostPosted: Sat Jul 03, 2004 12:53 pm
by Zoni
its on all toa zones

PostPosted: Sat Jul 03, 2004 1:07 pm
by Smallhorse
Oki doki ... let's see if we can't manage this :)

PostPosted: Sat Jul 03, 2004 8:27 pm
by Akira
Just a hint, I think you were going to do this anyhow, but keep in mind that you can onyl set it on new frontier zones and TOA zones.


:-p

PostPosted: Mon Jul 05, 2004 12:52 am
by MastaMappa
Diving should be set to zones. So in zones.ini there should be a property like swimming=1. If this property is not set it is 0 on default. This should be zone related also, not region.


I disagree with Akria, this should be on region NOT zone, you dont want problems with static state variables when crossing zone boundaries under water.

you can use the current flags expansion=2 and frontiers=1 (as found in zones.mpk)

PostPosted: Mon Jul 05, 2004 8:11 am
by LightBringer
Some player on Promise (1.70 plus frontiers) look like swimming into the air, when they press dive key. (and other strange grafical problem)

PostPosted: Mon Jul 05, 2004 8:18 am
by skal
Diving works everywhere (even standard zones have underwater graphics, quite bare though), but is only enabled in ToA zones, cause the initial SI/standard clients were not able to dive (not coded in client, think they added it later in SI one but not sure). i did my tests at mag mell (connacht/standard hib) and that worked fine. one thing that need a bit of testing though is volcanus zone (muspellheim too), as water there is lava, might not be a good idea to dive into lava :p