Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, 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.
Due to spam on this forum, all posts now need moderator approval.
Entire forum
➜ MUDs
➜ General
➜ About MUD Game Program 's source code
|
About MUD Game Program 's source code
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
| Posted by
| Prim
(6 posts) Bio
|
| Date
| Mon 21 Mar 2011 01:54 PM (UTC) |
| Message
| |
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #1 on Tue 22 Mar 2011 01:02 AM (UTC) |
| Message
| I'm not sure about how legal it is so I won't give you a direct link. However if you Google "Ron Penton mud game source" you don't have to follow many links before you find someone has put the source up.
I think it used to be on the author's site but I think that might be down now. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Prim
(6 posts) Bio
|
| Date
| Reply #2 on Tue 22 Mar 2011 03:17 AM (UTC) |
| Message
| I already buy that book and have a cd.
I had compile the code of simpleMUD and fixed it when compile have error.
Howeve, betterMUD have more error. It's diffcult to fix all. I just if someone had the betterMUD source code can compile through the g++ 4.4.5. | | Top |
|
| Posted by
| Nick Gammon
Australia (23,173 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Tue 22 Mar 2011 06:10 AM (UTC) |
| Message
| | What are the errors? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Prim
(6 posts) Bio
|
| Date
| Reply #4 on Tue 22 Mar 2011 01:53 PM (UTC) |
| Message
| Thanks for your reply.
I am under ubuntu10.10/g++ 4.4.5
I add lots "typename" in BetterMUD's source code.
I think do it right.
I change the makefile to python2.6 which I have and use now.
Here is a error I do not know why:
database/Database.h->
template< typename entity, typename container >
class Database
{
public:
....
protected:
container m_container;
}; // end class Database
template< typename entity >
class VectorDatabase : public Database< entity, std::vector<entity> >
{
public:
typedef std::vector<entity> container;
typedef typename container::iterator iterator;
entity& get( entityid p_id )
{
if( p_id >= m_container.size() || p_id == 0 )
throw Exception( "Out of bounds error in vector database" );
if( m_container[p_id].ID() == 0 )
throw Exception( "Invalid Item in vector database" );
return m_container[p_id];
}
};
You see here is a base class Database have a member "m_container".
However, G++ give me these:
In member function ‘entity& BetterMUD::VectorDatabase<entity>::get(BetterMUD::entityid)’:
BetterMUD/accessors/../databases/Databases.h:113: error: ‘m_container’ was not declared in this scope
BetterMUD/accessors/../databases/Databases.h:116: error: ‘m_container’ was not declared in this scope
BetterMUD/accessors/../databases/Databases.h:119: error: ‘m_container’ was not declared in this scope
It seems method in VectorDatabase inhert from Database can not find the m_container member.
I am not good at C++, so I do not know how to write the delcare right in the new verson.
Do you know that?
| | Top |
|
| Posted by
| Prim
(6 posts) Bio
|
| Date
| Reply #5 on Tue 22 Mar 2011 01:58 PM (UTC) |
| Message
| supplementary:
I alread do "make libs".
The error apper when I "make bettermud".
final,if I "make link"
link: $(wildcard *.cpp)
$(CXX) $(CFLAGS) *.o /usr/lib/python2.6/config/libpython2.6.a $(LIBS)
I need the libpython2.6.a,but I do not have.
Should I install something else by using "apt-get"?
| | Top |
|
| Posted by
| Prim
(6 posts) Bio
|
| Date
| Reply #6 on Tue 22 Mar 2011 07:46 PM (UTC) |
| Message
| |
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.
26,463 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top