|
|
|
|
|
|
|
Welcome! |
 |
|
This page is where we will keep the questions (and answers) that are
asked about the source code. Anybody can post questions here. I will
create categories later and will be moving the questions when they get
answered to their appropiate category.
To add a new question please click on the "Submit a new FAQ" link in the "Knowldege Bases" module below.
Start Posting!
|
|
|
|
Knowledge Base FAQ |
 |
|
|
|
Q. |
What kind of Questions should I post here? |
|
A. |
Any question that you would like an 'Official' Answer to. Or questions
how already implemented systems work, or how to use already implemented
systems
|
|
|
|
Q. |
Can I post questions anonymously?
|
|
A. |
Yes, you can. However if you do register and post a question, we will
be notified automatically. Alternatively, you can just check here to
see if your question got answered.
|
|
|
|
|
|
Knowledge Base |
 |
|
|
|
Q. |
What's the Difference between NPC.vb, Player.vb, and Entity.vb? |
|
A. |
Because of inheritance and polymorphism, which are core concepts in Object Oriented Design, you should know that fundamentally:
Entity.vb is the core module you will use if you want to add bits and pieces for things that affect Character, and NPC's. The basics. Inventory, race, and current room location.
Player.vb is as the name implies specific to the player. It should hold properties and events that affect a player. Their connection time, their IP Address, their Security Roles, and anything that is player oriented.
NPC.vb is the opposite of Player.vb. It should hold things like which AI Brain to use, where it's spawn location is, what scripts to use.
So to sum it up, if you want to add something that affects both players an npc's add it to entity. If you are adding a new tracking mechanism, or player control mechanism add it to player. And if your goal is to extend the NPC object add it to npc.
|
|
|
|
Q. |
Does WheelMUD.NET use a database? |
|
A. |
Yes, it does.
WheelMUD has a hybrid storage system. The MUD Engine specific
settings are stored in the database. Anything related to the
world/Universe created by the admins and builders will be stored in xml
files for easy editing.
|
|
|
|
Q. |
What databases can WheelMUD.NET use? |
|
A. |
WheelMUD uses MS Access by default. It has been tested with MS SQL
Server 7 and 2000. We are planning support for MySQL, Firebird,
Interbase, SQLite, and possibly PostgreSQL.
|
|
|
|
Q. |
How do I broadcast a message to all of the people in the room? |
|
A. |
You first need to create a SensoryMessage, set the appropiate sense
type. Fill all the necessary properties. Next use the room's Broadcast
method by passing it the SensoryMessage object you just created. This
will pass this "message" to anybody who can recieve it.
|
|
|
|
Q. |
Can I setup a trigger for certain actions or messages? |
|
A. |
Yes. The best way to achieve this is to an object that implements the
ISensorySink interface. This will allow this object to recieve all
sensory information broadcasted by the room's sensory channel. Make
sure to make this object invisible if you don't want it to be
interactive.
|
|
|
|
Q. |
How do I color the text sent to the player's screen? |
|
A. |
You first need to use the SendToPlayer method in the Session object.
That method assures that any custom code gets processed correctly. The
SendData method only handles raw text.
In scripts this would usually be sender.SendToPlayer.
|
|
|
|
Q. |
Do you have a list of colors available to WheelMUD? Do you have a table with the tags you use to color text? |
|
A. |
Yes, open the database and look at the ANSI table. That list the escape
code used by VT-100 and the corresponding tag used in WheelMUD. We have
borrowed the embedded color tags from the LPC MudLibs (Nightmare and
Lima).
Here's what comes with the database:

The escape code is what gets sent to the telnet client. The escape code number is encoded correctly before being sent to the telnet client. The tag is what you write in the text you are sending to the player.
|
|
|
|
Q. |
Can I add new text colors to what's already available to WheelMUD? |
|
A. |
Assuming that the Player has a Client that Enables Ansi Color (Most
these days do!) you can add any colors that are available through the
Ansi code.
You Can check out the available codes Here: Ansi @ Wikipedia
Or you can go ahead and develop your own client and if you ensure that
only your client is being used you can use whatever colors you wish to
send.
|
|
Submit New F.A.Q.
|
|
|
|
|
|
|
|
| Portal engine source code is copyright 2002-2009 by DotNetNuke. All Rights Reserved |
|