[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Boats? BOATS?!?!?

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Boats? BOATS?!?!?
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by GregS   (15 posts)  [Biography] bio
Date Sun 31 Jul 2005 08:13 AM (UTC)  quote  ]
Message
BOATS! WAGONS! HORSES!

I've yet to see a good implementation of any.

[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Tue 19 Jul 2005 10:58 PM (UTC)  quote  ]
Message
While it strips a little freedom, I would probably only allow landing and specific ports, which would have their own coords.

To each his own, though. Doesnt really matter as long as it works.

~Nick Cash
http://www.nick-cash.com
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 19 Jul 2005 08:23 PM (UTC)  quote  ]
Message
Quote:
Supposing you use a coordinate system, you could just specify what was at which coordinates. Every island/landmass would have different ones.
That doesn't seem quite right, though - a landmass has multiple landing points. I suppose you could fake it by making a landing point be a specific beach and not allowing random landing (not necessarily a bad idea) but for fairly large landmasses or even islands you'd have to go in and specify a whole lot of landing points if you wanted it to be realistic. But if you mean generated in the sense of rooms, then yes, that makes sense. I would 'generate' it by hand much like overland maps are rendered, and let ships navigate that space.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Gadush   (92 posts)  [Biography] bio
Date Tue 19 Jul 2005 08:04 PM (UTC)  quote  ]
Message
Longbow -
Seems like you might have luck with modifying Mount command.
Create a mount that looks like a boat for small boats (rowboat, canoe, etc.) and make an if check for entering the water with it or leaving the water. When leaving the water, force a dismount. Change the mount message to something like "[PCname] climbs into a [boatname]"
Then the player can move the boat just like riding a horse.
If they go to leave a water area, force the dismount with a message like "[PCname] climbs out of a [boatname]"
That sort of thing.

For bigger ships, make the actual ship a room, or even a couple of rooms (top deck, belowdeck). This room is only accessible at certain times in certain locations. Have a creature named "A schooner" or whatever, that spawns on the water near a dock, with a message like, "A schooner arrives in port." or whatnot. At the time when the boat is in port, allow the command to 'enter schooner'. This will jump the player to the ship area(s). Until the ship leaves port the player can 'exit schooner' and be jumped back to the dock. Once the ship despawns (message like "A schooner sets sail.") any player in the schooner area cannot exit until the schooner creature spawns into the next port of call.
All this stuff might not be that much actual help to you, just some ideas on vehicles. It would be possible to require a ticket to enter any ship as well.
Gadush
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Tue 19 Jul 2005 03:01 PM (UTC)  quote  ]
Message
Quote:

Oh, right. I was thinking that since an ocean is much more constrained than space, with islands and coasts etc., at least that much would have to be specified one way or another. I'm not sure the planet paradigm would smoothly transfer for that kind of thing, and some amount of building work would have to be done setting it up.


Supposing you use a coordinate system, you could just specify what was at which coordinates. Every island/landmass would have different ones.


Quote:

I am wanting to add vehicles to my mud as well. Want to have some seige engines and wagons etc. Been looking over swr code trying to figure out how to port it over to smaug.


You would probably do better to write your own and use ideas from SWR if you get stuck.

~Nick Cash
http://www.nick-cash.com
[Go to top] top

Posted by Kraevin   USA  (7 posts)  [Biography] bio
Date Tue 19 Jul 2005 10:02 AM (UTC)  quote  ]
Message
I am wanting to add vehicles to my mud as well. Want to have some seige engines and wagons etc. Been looking over swr code trying to figure out how to port it over to smaug.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 19 Jul 2005 01:43 AM (UTC)  quote  ]
Message
Oh, right. I was thinking that since an ocean is much more constrained than space, with islands and coasts etc., at least that much would have to be specified one way or another. I'm not sure the planet paradigm would smoothly transfer for that kind of thing, and some amount of building work would have to be done setting it up.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Tue 19 Jul 2005 01:39 AM (UTC)  quote  ]
Message
Depends on what you mean by generated. I meant I don't want the code to generate rooms for people to traverse through via boat.

~Nick Cash
http://www.nick-cash.com
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Tue 19 Jul 2005 12:43 AM (UTC)  quote  ]
Message
Isn't that basically what a generated ocean would be?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Tue 19 Jul 2005 12:26 AM (UTC)  quote  ]
Message
Like I said, relatively the same way SWR has ships in space. Use coordinates for the boat instead of rooms. If you really wanted it (say your mud was based on boating or something) you could easily warp SWR's ships into boats.

So yeah, just use coordinates or some other system rather than actual rooms.

~Nick Cash
http://www.nick-cash.com
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 18 Jul 2005 10:42 PM (UTC)  quote  ]
Message
Well, Longbow, one reason you might find it hard to port is that it might be in Java and/or C++ and/or Lua. :-) The other reason is that the data structures will be so completely different that porting just isn't an option. I imagine that it's always a valuable learning experience to look at code, but as far as short-term gain is concerned it wouldn't be useful at all.

Whiteknight:
Quote:
and I'd rather not make an ocean area by hand or have it generated.
Sounds to me like you're stuck, then - with no ocean made by hand and no generated ocean, how are you going to have a boat in the ocean? :-)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Nick Cash   USA  (626 posts)  [Biography] bio
Date Mon 18 Jul 2005 09:52 PM (UTC)  quote  ]
Message
My boating system would be a bit more complex. You wouldnt be able to carry your boat, you'd have to leave it in the port. When you get in you can walk around (supposing its big enough) and what not, but you have to be in a certain navigation room to see the heading.

I imagine that "driving" the boat would be a bit more like SWR (only in 2 dimensions of course) or some other kooky system, as typing, "sail north" would be annoying, and I'd rather not make an ocean area by hand or have it generated.

~Nick Cash
http://www.nick-cash.com
[Go to top] top

Posted by Longbow   (102 posts)  [Biography] bio
Date Mon 18 Jul 2005 09:46 PM (UTC)  quote  ]
Message
So much of what I find is useless to smaug programmers. :( Oftentimes the codebases just ain't easily ported...sniff.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Mon 18 Jul 2005 09:36 PM (UTC)  quote  ]
Message
I've been thinking of a while about implementing boats as "portable rooms" of sorts - in fact, vehicles in general would be implemented as portable rooms. BabbleMUD will have this feature, at least, but that is so far from stock SMAUG as to be entirely useless to SMAUG programmers.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Longbow   (102 posts)  [Biography] bio
Date Mon 18 Jul 2005 09:34 PM (UTC)  quote  ]
Message
Well, I'd appreciate all the snippet sites I can get. See, I'm learning as I go and one of the ways I do is by examining the code of the various sites. Unfortunately most of these are down and I lose the opportunity to get much wisdom and much code. :(
Sides, if I got an error I can just post it here, like I've been doing for the last half-year. :)


Godbless,
Longbow
[Go to top] top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


4,765 views.

This is page 1, subject is 2 pages long: 1 2  [Next page]

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]