Top Mud Sites Forum Return to TopMudSites.com
Go Back   Top Mud Sites Forum > Mud Development and Administration > MUD Coding
Click here to Register

Reply
 
Thread Tools
Old 10-28-2003, 03:00 PM   #21
Derk
New Member
 
Join Date: Oct 2003
Posts: 19
Derk is on a distinguished road
I have been working with python a lot lately, and quite honestly I hate its documentation. Its detailed.. but at the same time, grr.

I had an iterator that was returned to me from outside of python.. i couldn't find anyway to see how many items were in it... much less to reset it.. it might even be possible...

But you have to deal with junk like

Shrug
Derk is offline   Reply With Quote
Old 10-29-2003, 01:42 PM   #22
Kylotan
Member
 
Join Date: Jun 2003
Location: Nottingham, UK
Home MUD: Abattoir (Smaug)
Home MUD: ex-Jellybean (Smaug)
Home MUD: ex-Dark Chambers (Merc)
Posts: 174
Kylotan is on a distinguished road
Send a message via ICQ to Kylotan Send a message via AIM to Kylotan Send a message via MSN to Kylotan Send a message via Yahoo to Kylotan
Kylotan is offline   Reply With Quote
Old 10-29-2003, 05:02 PM   #23
Derk
New Member
 
Join Date: Oct 2003
Posts: 19
Derk is on a distinguished road
Well, when using jython.. and receiving a java Enumeration such as the elements of a Hashtable... Jython automatically converts Enumerations to iterators.

What I did was put every item in the iterator into an array. Which gave me the count and what I really wanted anyway.

Since my engine is multithreaded.. if my python scripts asked for the number of players in the room, and then a list of the players... its possible those things could be different. :/
Derk is offline   Reply With Quote
Old 10-29-2003, 07:01 PM   #24
Kylotan
Member
 
Join Date: Jun 2003
Location: Nottingham, UK
Home MUD: Abattoir (Smaug)
Home MUD: ex-Jellybean (Smaug)
Home MUD: ex-Dark Chambers (Merc)
Posts: 174
Kylotan is on a distinguished road
Send a message via ICQ to Kylotan Send a message via AIM to Kylotan Send a message via MSN to Kylotan Send a message via Yahoo to Kylotan
I've never used Jython and can't really see why it would return all that, but I assume there's a good reason.

If you only wanted the count, wouldn't one of these work?:
myHash.size()
len(myHash)

If not, a simple method of counting the number of elements that an iterator will yield to you is this:

len([x for x in myHash.elements() ])

Basically you make it into a list and grab its length.
Kylotan is offline   Reply With Quote
Old 10-30-2003, 02:11 AM   #25
Derk
New Member
 
Join Date: Oct 2003
Posts: 19
Derk is on a distinguished road
Derk is offline   Reply With Quote
Old 10-30-2003, 07:39 AM   #26
Kylotan
Member
 
Join Date: Jun 2003
Location: Nottingham, UK
Home MUD: Abattoir (Smaug)
Home MUD: ex-Jellybean (Smaug)
Home MUD: ex-Dark Chambers (Merc)
Posts: 174
Kylotan is on a distinguished road
Send a message via ICQ to Kylotan Send a message via AIM to Kylotan Send a message via MSN to Kylotan Send a message via Yahoo to Kylotan
And what do you do if another thread changes the hashtable while you are iterating through it?
Kylotan is offline   Reply With Quote
Old 10-30-2003, 10:57 AM   #27
Derk
New Member
 
Join Date: Oct 2003
Posts: 19
Derk is on a distinguished road
Hehe.. good thing you asked... I was under the impression the impression it wouldn't work this way...

[code] <cl 100.0% el 100.0%> set derk foo bar
foo->bar
<cl 100.0% el 100.0%> exec attributes = player.getAttributes()
<cl 100.0% el 100.0%> exec player.println(attributes.next())
admin
<cl 100.0% el 100.0%> set derk foo foobity
foo->foobity
<cl 100.0% el 100.0%> exec player.println(attributes.next())
Traceback (innermost last);
File "<string>", line 1, in ?
File
"scripts/exec.py", line 1, in ?
File "<string>", line 1, in
?
java.util.ConcurrentModificationException
at
java.util.Hashtable$Enumerator.next(Hashtable.java ;976)[/quote]


Which is interesting, because according to the java api... I am not using a java iterator, but a java enumeration.

Derk is offline   Reply With Quote
Old 01-05-2004, 11:14 PM   #28
Mierza
Member
 
Join Date: Jan 2003
Location: Hope Valley, Perth, Australia.
Posts: 33
Mierza is on a distinguished road
Send a message via MSN to Mierza
Myself and a group of trusted, talented individuals, started designing and creating the 'revolutionary' MUD that I was dreaming of.

Unfortunately, after the game engine was created, and the start of spec sheets and documentation, my lead coder had to leave the project.

Because I don't want to scrap the project (and let down other employees) and because my heart is so set on actually -completing- it, I'm going to have to ask for the help of you experienced coders out there.

So the question I have to ask is, what things will be required in the process of creating, from scratch, this MUD code.

Now, I know earlier on in this topic, people were kind enough to explain ways about creating a MUD from scratch, however there are other things I'm seeking answers to.

For one, we need everything original. Like our game engine, a main client that is realiable and can support alot of features, a java client that is not so heavy and can be accessed from pretty much anyone.

I need the main client to support graphics, kind of like a 'view screen'. Say, where in a normal MUD you'd type 'look at person' and it'd bring up text, I intend ours to also display their character portrait. Same with landscapes and such.

So what steps would be involved in creating a code base like this?

Also, what language/s would be best for such a project? Our former coder and his assistant were using RUBY, and using LUA as well for the ease of world builders.

As you can guess, I'm not very knowledgable when it comes to codeing of any sort.. but that's why I'm asking for some experienced input. Thanks.
Mierza is offline   Reply With Quote
Old 01-06-2004, 12:33 AM   #29
Kylotan
Member
 
Join Date: Jun 2003
Location: Nottingham, UK
Home MUD: Abattoir (Smaug)
Home MUD: ex-Jellybean (Smaug)
Home MUD: ex-Dark Chambers (Merc)
Posts: 174
Kylotan is on a distinguished road
Send a message via ICQ to Kylotan Send a message via AIM to Kylotan Send a message via MSN to Kylotan Send a message via Yahoo to Kylotan
Ok... you have to realise that you're really in the deep end here. Telling you what steps would be involved would be like telling you what steps are involved in making a car. Not only are you requiring a totally new server - maybe a year's dedicated work in itself - but you want a totally new client with features unseen in other clients,which again is quite a lot of work. I'm not sure you quite realise the scope of your demands, which to be fair is quite common among people who don't program. They often say "all I want is X... with Y added" and they don't realise that writing X from scratch took years in the first place and that Y isn't already in X because it's #### hard to code... but anyway.

As for the "What language is best?" question, I thought you said you already had a lot of code written... are you willing to give all that up and start again? Because that seems a bit wasteful. Anyway, if so I would always recommend Python as a coding language to a newbie, but Ruby is very similar. I am dubious about your old coder's decision to incorporate Lua however; that seems pointless given that I'm sure you could get the builders to write scripts in Ruby. Anyway, back to the point; I could write a basic MUD engine in Python in 2 months but I know what I'm doing. If you don't really know what you're doing it's likely to take you years no matter what language you use. Therefore generally the best language to use is 'whatever your coding team wants to use', and finding such a team becomes the priority.
Kylotan is offline   Reply With Quote
Old 01-06-2004, 01:30 AM   #30
Mierza
Member
 
Join Date: Jan 2003
Location: Hope Valley, Perth, Australia.
Posts: 33
Mierza is on a distinguished road
Send a message via MSN to Mierza
We did have code done, including the game engine. We also had a server, etc. But when our coder left, he kinda didn't leave either the code or the documentation for it.

It is a big task, and I never expected it not to be. Pretty much everyone on my team has been working to the original design of our clients and codebase based on the decisions I made with my former coder. His suggestions and advice are where I got my 'demands' from, and was made to believe that they could be accomplished with time and a bit of hard work. I mean, there's no way I'd have thought of wanting our own game engine, I barely know what one does. I think the reasoning for it was something like "We own it's copywrite, we can use it for further games, and creating it will give us more experience." The reasoning for the two clients was like, "We own the copywrite and can use it for further games. Fixing bugs and helping players with technical support will be alot easier. We can support our features more." (Features being audio, video sequences for quests, etc.) -Before critisizing the 'high goals' please remember that when this project was started, these were realistic, and we did have someone who knew the code side of things over and under.

Because I can't ask him anymore about what is involved in all that stuff, I decided to ask here. That way I can employ proficient new coders to do the job. -I don't want to start the coding from scratch. But I also don't want to waste the work of my game designers and some of the artist's work, because of this disruptment either.

If some things are a bit far ahead then I'd appreciate advice on what things. That way I can re-evaluate. As I said earlier, I'm no real coder.. and that's exactly why I'm asking.

I also have no idea about the choice of the RUBY/LUA thing. Most of the reasons for doing things were supposed to be included in the documentation that was also supposed to be provided. But we didn't get that far, ah well. As a team leader, I don't want to just let it fall apart because a member had to leave. Even if we don't have the code anymore, we still have hours and hours worth of designs and art that I don't want to waste.

If you have a better idea of a more realistic coding approach, I'd be glad to discuss our designs more indepth. Hopefully I find a coder willing to help first though and run it by them instead, cuz it's quite involving.
Mierza is offline   Reply With Quote
Old 01-06-2004, 04:19 AM   #31
Netwyrm
New Member
 
Join Date: Aug 2003
Location: San Rafael, CA
Posts: 14
Netwyrm is on a distinguished road
Netwyrm is offline   Reply With Quote
Old 01-06-2004, 07:54 AM   #32
Mierza
Member
 
Join Date: Jan 2003
Location: Hope Valley, Perth, Australia.
Posts: 33
Mierza is on a distinguished road
Send a message via MSN to Mierza
Hey Netwyrm, thanks for your reply!

I'm just curious about how your project turned out, like what things worked for you, and what didn't, etc.

One of my assistant coders specializes in java, so atleast it's good to know I've still got something that can be worked on by him.

As for races, I have about 4, possibly 5. Most of their concept art is already finished. I currently have 3 artists, so the workload of getting art done really isn't a problem. Now the only issue is.. since I guess I'll have to start the code over.. is it realistic for a new coder to come in and do the same job as my former -is it hard to code for the allowance of graphics in a seperate window.

We have this thing where there's the option of a graphical health status bar. Like we have the usual health bars and points for during battle sequences, but we have these way cool outlines that highlight different wounded areas and indicate what kind of injury it is. That's just an extra for RP value and skills.. like doctors are able to asses injuries and help treat them realistically. I really don't want to give these thoughts and efforts up so easily, especially since most of the effort put in was hours of work from dedicated team members. I doubt anyone else in my position would, either.

Uh.. anyway, back on track. Actually, I've not much more to add. Other than I totally agree with you on the thanks part -When I started this topic I didn't think it'd get so big, but the amount of experience and information shared here is awesome to read, and it really helps me learn alot more too.
Mierza is offline   Reply With Quote
Old 01-06-2004, 10:57 AM   #33
Kylotan
Member
 
Join Date: Jun 2003
Location: Nottingham, UK
Home MUD: Abattoir (Smaug)
Home MUD: ex-Jellybean (Smaug)
Home MUD: ex-Dark Chambers (Merc)
Posts: 174
Kylotan is on a distinguished road
Send a message via ICQ to Kylotan Send a message via AIM to Kylotan Send a message via MSN to Kylotan Send a message via Yahoo to Kylotan
Mierza, indeed anything can be accomplished with time and a bit of hard work, but these particular ideas require a bit more than most. As I mentioned before, the best feasibility test for someone who isn't a programmer is to compare the requirements to existing systems. If you're asking for something new that isn't done anywhere, that's a potential problem because there's nearly always a reason it's not been done yet. Or, look at it from the other side; what you're asking for are many of the features in a massively-multiplayer online game... and they usually take large teams of professionals years to produce.

Realistic according to who? Your lead coder who is no longer with you, who spent a year working (as an 'employee' ) and yet didn't leave you code or documentation? If you were paying him, you own that code and those docs. If you weren't, then I still can't see why you didn't arrange to have an up-to-date copy of these things at all times as part of the deal. Definitely something to keep in mind next time around.

You probably also know that you're unlikely to get great coders for your project by posting here. For every 1 coder there are 5 designers such as yourself looking for coders, each of whom thinks they have a great idea. And in some cases, the coder is (or believes they are) that designer and will make their own game instead. So maybe you'll get lucky, or maybe you'll end up with someone who will bail out when it gets tough. Good luck.

Do you have any screenshots or examples of some of these features you mention in action? Like those injury outlines? Or are these still just concepts on paper?

In answer to the questions you posed in your reply to Netwyrm:
"since I guess I'll have to start the code over.. is it realistic for a new coder to come in and do the same job as my former" - well yes... starting from scratch is no harder the second time around, really. You may find some things get finished quicker while others take longer, however.
"is it hard to code for the allowance of graphics in a separate window." - not hard, but time-consuming. You need to develop a protocol for exchanging these graphics and write the interface for displaying them. Java is one platform you could use for this. I personally might use wxWindows. Although I'd also be tempted to see if much of what you want to do can be approximated with MXP so that you can use an existing client such as ZMud for testing and prototyping at least.
Kylotan is offline   Reply With Quote
Old 01-06-2004, 09:20 PM   #34
Mierza
Member
 
Join Date: Jan 2003
Location: Hope Valley, Perth, Australia.
Posts: 33
Mierza is on a distinguished road
Send a message via MSN to Mierza
Mierza is offline   Reply With Quote
Old 01-06-2004, 10:51 PM   #35
Netwyrm
New Member
 
Join Date: Aug 2003
Location: San Rafael, CA
Posts: 14
Netwyrm is on a distinguished road
Netwyrm is offline   Reply With Quote
Old 01-06-2004, 11:30 PM   #36
Mierza
Member
 
Join Date: Jan 2003
Location: Hope Valley, Perth, Australia.
Posts: 33
Mierza is on a distinguished road
Send a message via MSN to Mierza
Wow! Thank's so much Netwrym for your post, I've found it very informative, and encouraging to know that I'm not the only one persuing a dream for a MUD like mine.

As you may guess, from reading the first post of this thread, I too originally wanted to learn to code my own MUD.

However, I was only wanting to learn enough to take an already made codebase and go from there, to learn just enough to get me started.

Ofcourse then others came along, and since my strengths lay mostly in leadership, design, and production, that's where I naturally positioned myself, leaving coders to code, artists to create art, and learning a little about each in the process of putting it all together.

You sure sound like you had some learning experience, alright, hah! But good on you. I get most of my design type experience from the real world, from novels, from movies, etc. Alot also comes from research, and I seriously suggest that people who are interested, do some research and find places like GameDev. The opinions of experienced game designers and programmers alike, can seriously alter the way you view the creation of a MUD.

I like your tips. Especially the one about limiting yourself. I've seen games with thousands of races, and that's great to offer variety for a more simple, traditional mud. However in cases like yours and mine, I agree that where a more complex system is involved, content should be simplified to begin with. I was thinking of like.. 8-9 races when I first started designing, but ended up deciding on 4, possibly 5 original ones.

Thanks for your suggestion about nailing a language, lol. I do intend to learn enough for me to work efficiently as a game designer. Unfortunately there's no way I could code a game to my standards, and have it meet my standards. You yourself said you've been learning for the last few years. Mmm.. I know there has to be a coder out there somewhere that finds it appealing to be involved and challenge themself with an innovative MUD design? Even if this game of mine isn't to go commercial, this is just one step in the rung of a ladder. Either my company will slowly grow, OR quite simply, my team members can take our finished product, and their development steps and show these to potential employers in the future. ~That's what I intend to do, to help me get game design experience to get into the industry (as well as school education, of course) -and I think that has been one major motivation for coders and artists that I know as well.

I have another point to add to your "Always write down what you're thinking."

My point is brainstorm -An initially 'stupid' idea that can be brainstormed, can turn out to be a great concept further along on the track. Getting together with the rest of your development team (or even just some like-minded friends if you're working solo) can be a great source of fun and motivation for progress.

I think your last section of the post, about backups of code, is extremely important. -You were right, I did learn my lesson the hard way, and I hope that other people can read this and learn from my mistake.
Mierza is offline   Reply With Quote
Old 01-07-2004, 05:41 PM   #37
Kylotan
Member
 
Join Date: Jun 2003
Location: Nottingham, UK
Home MUD: Abattoir (Smaug)
Home MUD: ex-Jellybean (Smaug)
Home MUD: ex-Dark Chambers (Merc)
Posts: 174
Kylotan is on a distinguished road
Send a message via ICQ to Kylotan Send a message via AIM to Kylotan Send a message via MSN to Kylotan Send a message via Yahoo to Kylotan
Kylotan is offline   Reply With Quote
Old 01-07-2004, 11:50 PM   #38
Mierza
Member
 
Join Date: Jan 2003
Location: Hope Valley, Perth, Australia.
Posts: 33
Mierza is on a distinguished road
Send a message via MSN to Mierza
Mierza is offline   Reply With Quote
Old 01-08-2004, 06:08 AM   #39
KaVir
Legend
 
KaVir's Avatar
 
Join Date: Apr 2002
Name: Richard
Home MUD: God Wars II
Posts: 2,052
KaVir will become famous soon enoughKaVir will become famous soon enough
In every company I've ever worked at or applied for, software engineers are expected to be able to both design and code (as well as the other parts of the software development lifecycle).

Someone who can code, but not design, is typically referred to as a "".
KaVir is offline   Reply With Quote
Old 01-08-2004, 04:18 PM   #40
Azeroth
Member
 
Join Date: Feb 2003
Posts: 69
Azeroth is on a distinguished road
Send a message via ICQ to Azeroth
I am not even a programmer and I thought that was funny (nice link to the jargon site as well) *chuckle*
Azeroth is offline   Reply With Quote
Reply


Thread Tools


Building a new MUD - Similar Threads
Thread Thread Starter Forum Replies Last Post
The Art of Building Neranz Laverani MUD Builders and Areas 18 08-08-2005 08:13 PM
Mud building Sesshomaru MUD Builders and Areas 1 11-16-2004 11:56 AM
Building a MUD Shlim MUD Builders and Areas 1 08-21-2003 06:22 PM
Building Tocamat MUD Builders and Areas 9 02-22-2003 09:02 PM
Web based building Blobule Advertising for Staff 4 09-18-2002 09:47 AM

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off

All times are GMT -4. The time now is 12:56 PM.


Powered by vBulletin® Version 3.6.7
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Style based on a design by Essilor
Copyright Top Mud Sites.com 2022