More realistic boat travel - should it be done

Send your ideas and suggestions here.

Moderator: Board moderators

techolous
Regular
Posts: 77
Joined: Thu Jun 17, 2004 2:41 am
Location: Eastern Coast of the United States

Post by techolous »

Aaron wrote:what about a magic carpet or djini bottle? you can pick them up, and then drop them and get in, or trap people and bind them to the lamp. unless of course they blow their way out...
Right now im just talking about boats and such that travel a semi-fixed course, by themself, or when a player pays for it.

In the future, row boats, and other similar things could possibly be carried by players. However the two known bugs would have to be fixed.

Bugs that i know affect transports:
  • Transports being applied while in a player's inventory causes a crash.

    When a transport with a player inside gets picked up, things can get really weird, and crash. The player(s) in the transport just see the screen of where they where picked up. Additionaly any attempted movement by players in the transport, or the transport being applied crashes the server. Finaly, a clone of the player is left inside the transport if the server crashes(from what i heard).
To solve the first one, add a check to prevent an object from being placed inside the inventory of an object which it holds. You may want to add a special case afterwards, so transports are automaticly droped, and a more specific message is given to the player.

One way to fix the second bug, which would limit the flexibility of transports in the future, but would be easier to implement; would be just to check if an object being placed inside an inventory is a transport and contains a player, or set the transport to "nopickup 1" when someone is inside it (keep in mind that items can be droped, and left inside transports).
Basilisk
Luser
Posts: 30
Joined: Mon Feb 06, 2006 6:20 am

Post by Basilisk »

is it possible to convert the transport to another object, when it goes from being a mode of transportation, to being an item that can be carried?
techolous
Regular
Posts: 77
Joined: Thu Jun 17, 2004 2:41 am
Location: Eastern Coast of the United States

Post by techolous »

Basilisk wrote:is it possible to convert the transport to another object, when it goes from being a mode of transportation, to being an item that can be carried?
Just have to make sure that the transport is on the ground, before progressing through the rest of the code for it.
Boot
Newbie
Posts: 9
Joined: Fri Jul 21, 2006 3:50 am

?

Post by Boot »

what if you were to make it so transports could be picked up, and adapt the code around it :?:
techolous
Regular
Posts: 77
Joined: Thu Jun 17, 2004 2:41 am
Location: Eastern Coast of the United States

Post by techolous »

Boot wrote:what if you were to make it so transports could be picked up, and adapt the code around it Question
Before it forked, cat2 (an other server) gave a few players pickupable boats. When these boats where applied while inside a player's inventory, the server crashed. This is still the case.

Transports are technically a container that players get placed into. When the player applies the boat while it is one's inventory (technically another container), the server tries to put them inside of the transport, which they are still holding. Thus creating a abnormal situation, where the code tries to place the player and his inventory which includes the boat into itself. This causes an error which crashes the server.

If one of the coders took some time handle odd attempts with containers in the code, you may eventually see pickupable boats in the game.

Keep in mind that all current developers are volunteers.

edit: fixed quote
Last edited by techolous on Sat Sep 09, 2006 7:20 pm, edited 1 time in total.
Boot
Newbie
Posts: 9
Joined: Fri Jul 21, 2006 3:50 am

Post by Boot »

techolous wrote:Transports are technically a container that players get placed into. When the player applies the boat while it is one's inventory (technically another container), the server tries to put them inside of the transport, which they are still holding. Thus creating a abnormal situation, where the code tries to place the player and his inventory which includes the boat into itself. This causes an error which crashes the server.
why not change transports to portals to a room/dungoen and thentweak the code so you can enter portals in your invontary, I don't think it will take much
Post Reply