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, 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 ➜ SMAUG ➜ Compiling the server ➜ I'm creating a new object

I'm creating a new object

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


Pages: 1  2 

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #15 on Wed 19 Jul 2006 02:44 PM (UTC)
Message
You should be careful about the messages it gives you; they are very important and the slightest detail could mean the success or failure of a project. It also makes it much easier to help if we know exactly what happened.

You want the Platform SDK from the MSDN site. (msdn.microsoft.com) Go in Visual C++ > Downloads > Microsoft Products and SDKs and get the Platform SDK. It'll take a while to download and install but if you want to do Windows development you'll most probably need it.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Kingsmill   USA  (78 posts)  Bio
Date Reply #16 on Wed 19 Jul 2006 02:49 PM (UTC)
Message
Well, next time I royaly screw something up I'll remember to copy&paste everything that pops up into a notepad doc...

T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress.
Top

Posted by Kingsmill   USA  (78 posts)  Bio
Date Reply #17 on Wed 19 Jul 2006 06:14 PM (UTC)
Message
I am away from my computer now but I managed to start the installation so it installs while I'm away.

T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #18 on Wed 19 Jul 2006 10:17 PM (UTC)
Message
On the page from which you downloaded the Area Editor source, it says "The source uses MFC (Microsoft Foundation Class) libraries ...".

Your error messages are referring to MFC include files:


Cannot find missing dependency 'afxres.h'
Cannot find missing dependency 'afxres.rc'
Cannot open include file: 'afxwin.h': No such file or directory


There files are part of the MFC libraries - I cannot supply those, for one thing that would not be permitted by Microsoft, for another you need a lot of other files as well (such as the libraries to link against).

I was wondering whether this Visual Studio 2005 Express Edition (which I had not previously heard about) supports MFC, so I went to their forum page:

http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=126606&SiteID=1&PageID=1

This is what I found:




>> I would like to ask: Can I develop MFC applications in Visual C++ Express?

> Unfortunately no, you need Visual Studio Standard or higher to develop MFC applications.
>
> Thanks,
> Dan Fernandez
> Product Manager





According to this page:

http://msdn.microsoft.com/vstudio/howtobuy/default.aspx

Visual Studio 2005 Standard Edition full version retails for $US 299.00.

I doubt if you will be able to compile the Area Editor with any "free tool", I am sorry, but I paid for the Visual Studio (years ago) to develop the program. I am happy to make the source code available, as I have done, but you will need to purchase the Visual Studio 2005 Standard Edition (or equivalent product) to compile it yourself.

I compiled it myself under Microsoft Visual C++ compiler version 6.0, it is possible you will be able to find a cheap copy of that, as that is years old (1994-1998 according to the About box).

I'm not sure I would spend $299 just to be able to compile the Area Editor to make a minor change. Perhaps there is another way of achieving the same result?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #19 on Wed 19 Jul 2006 10:50 PM (UTC)
Message
Just in case it matters, I just tested the source and it compiled correctly without any problems. This was using MSC++ .NET.

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

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #20 on Wed 19 Jul 2006 10:55 PM (UTC)
Message
A lot of schools have MS Visual Studio available for relatively cheap or even free, but only for students. You mentioned going to school in the near future, I think, so that might be another option.

You could always try Googling for them, I suppose, if you're really desperate, but I would suggest going with what Nick said and seeing if there's another way for you to achieve the same result.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by Kingsmill   USA  (78 posts)  Bio
Date Reply #21 on Wed 19 Jul 2006 11:51 PM (UTC)
Message
Would I be able to edit the smaug code directly to make this object type available ?
Or would I have to edit something else, or would it just flat out not be posible until I get into school again ?

T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress.
Top

Posted by Nick Gammon   Australia  (23,158 posts)  Bio   Forum Administrator
Date Reply #22 on Thu 20 Jul 2006 12:14 AM (UTC)
Message
Quote:

... if I can't change the editor I'd like to change the smaug server itself or the area file itself, ...


If you want to add a new object type to the MUD, then you need to change the smaug server.

I strongly suggest you carefully read this page:

http://www.gammon.com.au/smaug/howtocompile.htm

You seem to be confused about the difference between the source files, the object files, the executable, the area files, and what each one does. That page tries to explain all that.

I should point out that if you change the server a lot, the Area Editor may no longer be useful for editing the area files. However you can always edit the area files "by hand", that is with a text editor.

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Kingsmill   USA  (78 posts)  Bio
Date Reply #23 on Fri 21 Jul 2006 03:40 PM (UTC)
Message
If I were to edit act_obj.c would I have to create my new item in the middle or the end of the file ?
I plan to do this:
-create an item a "ring"
-make it have both the charges/max charges that wands and staves have but also have three spells instead of one
-and if I have enough time make it be sacrificable

T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #24 on Fri 21 Jul 2006 03:45 PM (UTC)
Message
I'm confused, I think.

What does creating a new object have to do with coding? Unless you want to create a new item type?

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

Posted by Kingsmill   USA  (78 posts)  Bio
Date Reply #25 on Fri 21 Jul 2006 03:55 PM (UTC)
Message
Oh, I'm sorry, yes I am creating a new item type, I forgott to specify.
I am creating a ring that will be worn on either finger r or l, it will have everything I mentioned before and I don't think I could make a new item type without coding.

T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress.
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #26 on Fri 21 Jul 2006 03:56 PM (UTC)
Message
Yes, Kingsmill, I think you need to be clear on the differences between building online using the in-game building controls, and then what's in the coding, etc. I would suggest looking through building guides; Herne's seems to be fairly good. (It's also the only one I really know about...)

It sounds like what you're doing can for the most part be done strictly in-game. Not sure about having three spells, though.

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.


67,855 views.

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

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.