Creating a MUD in VB.Net?

7724777566759742369137ccbe53a24c
0
dev_str 101 Apr 04, 2012 at 02:08

Hey everyone,

I have some experience with C++, HTML, and CSS. I’m currently learning some Visual Basic.Net and have been toying around with the idea of making a MUD using VB. Does anyone know if it has been done? I’ve seen my professor show a prototype chat application he had coded, so the chat part of it should be at least semi-doable, I think.

I’m guessing it is possible … though I cannot seem to find many resources about the topic on the internet. I know there are a few codebases using C# out there.

Would anyone be able to point my in the right direction or give me a few tips? If there are no resources involving muds, does anyone have suggestions for a newbie trying to get his feet wet in some VB network programming?

Thanks,
dev_str

2 Replies

Please log in or register to post a reply.

9e6d847e0e0817a8d6d60c653033cc01
0
zynithra 101 Apr 04, 2012 at 09:20

It is entirely possible, and probably has been done to some extent. I’ll try looking for some resources for you - right at this minute I’m pretty busy but I just had to reply when I saw this dear subject. ;)

~~Do you know any other languages?~~ (I just woke up, reading your post completely might have been good before starting to reply).. Might be worth it checking out existing code in functional MUDs to get a grasp of how they have done the networking part. I have been out of the MUD scene for some time, but I have been a developer on several during my free time in the past.

I’m assuming you are doing this from scratch, and sadly I’m not familiar with VB myself, but once you get the packages running, there’s one key to making a MUD work: heartbeat. ;) Think of it as a fast, turn-based game where the turns switch automatically. Every so and so often your game processes all the input from all the players.

As you are familiar with C++, you could maybe check out stuff like LPMud to see how they have made things work. The libraries used to be availible and easy to get working, and naturally they’re all open-source. If my memory serves me right, they use a variant of C called LPC for scripting.

But alas, it has been too many years, I don’t really have any up to date information for you, but I’ll try to dig something up later today. =)

7724777566759742369137ccbe53a24c
0
dev_str 101 Apr 04, 2012 at 14:35

@zynithra

It is entirely possible, and probably has been done to some extent. I’ll try looking for some resources for you - right at this minute I’m pretty busy but I just had to reply when I saw this dear subject. ;)

~~Do you know any other languages?~~ (I just woke up, reading your post completely might have been good before starting to reply).. Might be worth it checking out existing code in functional MUDs to get a grasp of how they have done the networking part. I have been out of the MUD scene for some time, but I have been a developer on several during my free time in the past.

I’m assuming you are doing this from scratch, and sadly I’m not familiar with VB myself, but once you get the packages running, there’s one key to making a MUD work: heartbeat. ;) Think of it as a fast, turn-based game where the turns switch automatically. Every so and so often your game processes all the input from all the players.

As you are familiar with C++, you could maybe check out stuff like LPMud to see how they have made things work. The libraries used to be availible and easy to get working, and naturally they’re all open-source. If my memory serves me right, they use a variant of C called LPC for scripting.

But alas, it has been too many years, I don’t really have any up to date information for you, but I’ll try to dig something up later today. =)

I’ve only taken a semester of C++, so far, but I do have quite a few books on the subject lying around. If VB turns out to be a disaster then I suppose I could always try that. I would still really love to at least attempt it in VB, as my main goal with this project is to get some experience with VB doing something that I would find enjoyable.

Regarding your reference to the heartbeat of a MUD, you are saying I should program the application to check all the input from all players in intervals (say, every second or half a second)? Would it be viable to check each connected user’s input individually? How big is the performance gap between the two options (if I should even be worrying about performance at this stage)?

I’ve done some reading and talked to someone … apparently back in the days of VB 6.0 all network programming was done with WinSock … now it seems to be done with the System.Net Namespace in VB.Net.

Thank you very much for the reply, I appreciate it.