Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to "verify" your details, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.
 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Boats? BOATS?!?!?

Boats? BOATS?!?!?

It is now over 60 days since the last post. This thread is closed.     Refresh page


Pages: 1 2  

Posted by Longbow   (102 posts)  Bio
Date Mon 18 Jul 2005 07:28 PM (UTC)
Message
Does anyone understand how to utilize boats? I've looked about and I still don't understand how to implement them. Ideas please...

Godbless,
Longbow
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Mon 18 Jul 2005 07:32 PM (UTC)

Amended on Mon 18 Jul 2005 08:04 PM (UTC) by Zeno

Message
It's quite easy. Make a boat obj and have it in your inventory.

By the way this should be under "Running the server"

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Longbow   (102 posts)  Bio
Date Reply #2 on Mon 18 Jul 2005 08:22 PM (UTC)
Message
Woops, didn't check where I put this one.

Seems to me kind of odd that you'd carry a boat around with you. I mean, wouldn't that be kind of....heavy?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #3 on Mon 18 Jul 2005 08:26 PM (UTC)
Message
Yes, which is why you can set the objects weight. ;)

Myself, I plan to redo the boating code.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Longbow   (102 posts)  Bio
Date Reply #4 on Mon 18 Jul 2005 08:32 PM (UTC)
Message
If you do redo it I'd like a copy.

Thanks,
Longbow
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #5 on Mon 18 Jul 2005 08:45 PM (UTC)
Message
I'll see what I can do, I was thinking about starting a snippet site, but because my MUD isn't near stock it may not, the boating code may not work with stock Smaug.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Longbow   (102 posts)  Bio
Date Reply #6 on Mon 18 Jul 2005 09:34 PM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #7 on Mon 18 Jul 2005 09:36 PM (UTC)
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
Top

Posted by Longbow   (102 posts)  Bio
Date Reply #8 on Mon 18 Jul 2005 09:46 PM (UTC)
Message
So much of what I find is useless to smaug programmers. :( Oftentimes the codebases just ain't easily ported...sniff.
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #9 on Mon 18 Jul 2005 09:52 PM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #10 on Mon 18 Jul 2005 10:42 PM (UTC)
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
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #11 on Tue 19 Jul 2005 12:26 AM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #12 on Tue 19 Jul 2005 12:43 AM (UTC)
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
Top

Posted by Nick Cash   USA  (626 posts)  Bio
Date Reply #13 on Tue 19 Jul 2005 01:39 AM (UTC)
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
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #14 on Tue 19 Jul 2005 01:43 AM (UTC)
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
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.


51,191 views.

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

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.