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
| Kingsmill
USA (78 posts) Bio
|
| Date
| Sat 15 Jul 2006 05:22 PM (UTC) |
| Message
| I tried to put this in the area editor code but my version of visual c++ didn't like it, however if I can't change the editor I'd like to change the smaug server itself or the area file itself, and I want to know where(I should put code), plus how(I should adapt the code).
This was my code for the area editor:
case ITEM_RING:
{
CString strResult;
if (m_pDoc->skill_name (value[1], true) != "NONE")
strResult += "'" + m_pDoc->skill_name (value[1]) + "' ";
if (m_pDoc->skill_name (value[2], true) != "NONE")
strResult += "'" + m_pDoc->skill_name (value[2]) + "' ";
if (m_pDoc->skill_name (value[3], true) != "NONE")
strResult += "'" + m_pDoc->skill_name (value[3]) + "' ";
if (strResult.IsEmpty ())
strResult = "'NONE'";
return CFormat ("Level %i, max charges: %i, charges: %i, spell(s): %s",
value[0],
value[1],
value[2],
(LPCTSTR) strResult);
}
(Thanks in advance...) |
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 #1 on Sat 15 Jul 2006 09:30 PM (UTC) |
| Message
| Are you compiling SMAUG, or Nick's Area Editor? If the former, what is this 'area editor' you are referring to? If the latter, this should be in the area editor section. :-)
Anyhow, you will need to be more specific than simply saying that VC++ "didn't like it". What was the error message? |
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 #2 on Tue 18 Jul 2006 03:02 AM (UTC) |
| Message
| Yes, I am using the area editor that Nick created,
I believe that I am using too recent of a version.
It gives no errors but gives a couple of warnings,
and I've already gotten rid of the VC++.
I would like to know where to get the right version of VC++
in a trial version... |
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,165 posts) Bio
Forum Administrator |
| Date
| Reply #3 on Tue 18 Jul 2006 06:32 AM (UTC) |
| Message
| Trial version? As in you don't pay for it?
Don't know if there is such a beast. The Area Editor uses MFC libraries so you probably (almost certainly) can't compile it with g++ or the Borland or other compilers.
The modern versions of the Microsoft compilers will probably compile it, possibly after doing some work to bring it up to date.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #4 on Tue 18 Jul 2006 03:21 PM (UTC) |
| Message
| | I used a trial version of vc++ on it and it didn't work... |
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 #5 on Tue 18 Jul 2006 06:06 PM (UTC) |
| Message
| If you go to the Microsoft Development Network (msdn.microsoft.com), they have an "Express" VC++ version that is in fact free and comes with the bells and whistles you need. (The catch is that you're not supposed to use it for commercial software.) Is that the trial version you are referring to?
If you got warnings but no errors, that's probably quite ok. What were the warnings you got? You need to tell us so we can figure out how to help. :-) |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | | Top |
|
| Posted by
| Nick Gammon
Australia (23,165 posts) Bio
Forum Administrator |
| Date
| Reply #6 on Tue 18 Jul 2006 10:05 PM (UTC) |
| Message
| When you create a new thread in this forum (in this section) it says this:
If there is an error, an exact copy of the error message(s) ...
Saying "it didn't work" is not an exact copy of the error message. It is impossible to help you if you don't tell us the message(s). |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | | Top |
|
| Posted by
| Kingsmill
USA (78 posts) Bio
|
| Date
| Reply #7 on Wed 19 Jul 2006 04:11 AM (UTC) |
| Message
| AreaEditor : warning PRJ0041 : Cannot find missing dependency 'afxres.h' for file 'AreaEditor.rc'. Your project may still build, but may continue to appear out of date until this file is found.
AreaEditor : warning PRJ0041 : Cannot find missing dependency 'afxres.rc' for file 'AreaEditor.rc'. Your project may still build, but may continue to appear out of date until this file is found.
AreaEditor : warning PRJ0041 : Cannot find missing dependency 'afxprint.rc' for file 'AreaEditor.rc'. Your project may still build, but may continue to appear out of date until this file is found.
Creating temporary file "i:\areaeditor_source_1.35\areaeditor\Debug\RSP0000018002896.rsp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0600" /D "_AFXDLL" /Gm /EHsc /MDd /Yc"stdafx.h" /Fp".\Debug/AreaEditor.pch" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug\\" /W3 /c /ZI /TP .\StdAfx.cpp
]
Creating command line "cl.exe @i:\areaeditor_source_1.35\areaeditor\Debug\RSP0000018002896.rsp /nologo /errorReport:prompt"
Creating temporary file "i:\areaeditor_source_1.35\areaeditor\Debug\RSP0000028002896.rsp" with contents
[
/Od /D "WIN32" /D "_DEBUG" /D "_WINDOWS" /D "_VC80_UPGRADE=0x0600" /D "_AFXDLL" /Gm /EHsc /MDd /Yu"stdafx.h" /Fp".\Debug/AreaEditor.pch" /Fo".\Debug/" /Fd".\Debug/" /FR".\Debug\\" /W3 /c /ZI /TP .\Socials.cpp
There are the errors, I was wrong there are errors...
|
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 #8 on Wed 19 Jul 2006 04:25 AM (UTC) |
| Message
| Sorry guys but I had uninstalled vc++ when I made this thread and I just got it back...
Thus I did NOT have the errors.
But now I do and I have them posted in the post above.
Thank you for putting up with me. |
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 #9 on Wed 19 Jul 2006 01:32 PM (UTC) |
| Message
| I'm a little confused; are those warnings before or after uninstalling or reinstalling VC++? The more precise you are the more we can help you.
Also I don't see any errors, just several warning messages; are there more messages? |
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 #10 on Wed 19 Jul 2006 02:19 PM (UTC) |
| Message
| i:\areaeditor_source_1.35\areaeditor\stdafx.h(22) : fatal error C1083: Cannot open include file: 'afxwin.h': No such file or directory
BSCMAKE: error BK1506 : cannot open file '.\Debug\AreaEditor.sbr': No such file or directory |
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 #11 on Wed 19 Jul 2006 02:24 PM (UTC) |
| Message
| OK. Could you explain in as much detail as possible what you have done to install VC++, what version, etc.?
You might need to install the Platform SDK if you don't have it already. It should be available on the MSDN site. |
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 #12 on Wed 19 Jul 2006 02:29 PM (UTC) |
| Message
| | I am using the express version of vc++ and when I used it it updated all my area editor files then gave me those errors and warnings. |
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 #13 on Wed 19 Jul 2006 02:31 PM (UTC) |
| Message
| When you say that it updated your area editor files, do you mean that it updated the project files? (Please try to be very specific in these matters.)
Did you install the Platform SDK? You might need that for some of the MFC stuff. |
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 #14 on Wed 19 Jul 2006 02:37 PM (UTC) |
| Message
| I only saw vc++ do it once so my memory isn't great, but it said something about project files...
Which files should I download from the site ? |
T.A.N.S.T.A.F.L.
There Aint No Such Thing As Free Lunch,
From the moon is a harsh mistress. | | 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.
77,294 views.
This is page 1, subject is 2 pages long: 1 2
It is now over 60 days since the last post. This thread is closed.
Refresh page
top