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 ➜ SMAUG coding ➜ Porting SWR Engineering to SMAUG as a crafting class

Porting SWR Engineering to SMAUG as a crafting class

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


Posted by Imake13   USA  (10 posts)  Bio
Date Sun 24 Dec 2006 05:24 AM (UTC)
Message
So I'm a long time smaug/swr builder who has decided to teach himself to code recently. I run smaug and swr on my box with cygwin and build in them. Eventually I want to release both of my area collections as a new stock for both codebases. I'd like to learn to code so I can clean up and customize both codebases as well.

So here is what I am trying to figure out now. I love that you can craft your own items in SWR. I was really suprised when I first got into SMAUG that this wasn't possible. So I have been thinking that it would be cool to port it over to SMAUG. I really have no idea how to do this, and I was curious if either:

a. someone would like to do this and then make it available to the community

b. someone would like to help me do this, keeping in mind im a pretty big newb

or c. someone would like to come and do it for me...


thoughts?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #1 on Sun 24 Dec 2006 05:26 AM (UTC)
Message
Other than some skills, I don't think it's SWR specific. A few constants here and there and you should be good. Try copying the create item function over to Smaug and see what errors you get.

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

Posted by Conner   USA  (381 posts)  Bio
Date Reply #2 on Sun 24 Dec 2006 05:49 AM (UTC)
Message
Alternatively, there are forging/crafting snippets for Smaug floating around out there too. You might check some of the major snippet repositories like www.mudbytes.net for one of them.

-=Conner=-
--
Come test your mettle in the Land of Legends at telnet://tcdbbs.zapto.org:4000
or, for a little family oriented medieval fun, come join us at The Castle's Dungeon BBS at telnet://tcdbbs.zapto.org
or, if you just want information about either, check our web page at http://tcdbbs.zapto.org
Top

Posted by Imake13   USA  (10 posts)  Bio
Date Reply #3 on Sun 24 Dec 2006 10:09 AM (UTC)
Message
well let's see...

for starters:

structure has no member named 'top_level'

and

structure has no member named 'dest_buf_2'


those are the worst... i get about 2 miles of errors involving them.


thoughts?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #4 on Sun 24 Dec 2006 05:45 PM (UTC)
Message
You copied the create item function?

top_level is a level, so replace that with just level. Can you show us the line that has dest_buf_2?

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

Posted by Imake13   USA  (10 posts)  Bio
Date Reply #5 on Sun 24 Dec 2006 08:53 PM (UTC)
Message
i have cygwin... so how do i get a log of my errors? do i just have to type it out?
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #6 on Sun 24 Dec 2006 08:54 PM (UTC)
Message
Right click->Mark, highlight then hit enter. That's how you can copy text.

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

Posted by Imake13   USA  (10 posts)  Bio
Date Reply #7 on Mon 25 Dec 2006 02:47 AM (UTC)
Message
/*
case 1:
if( !ch->dest_buf )
return;
if( !ch->dest_buf_2 )
return;
strcpy( arg, ch->dest_buf );
DISPOSE( ch->dest_buf );
strcpy( arg2, ch->dest_buf_2 );
DISPOSE( ch->dest_buf_2 );
break;

case SUB_TIMER_DO_ABORT:
DISPOSE( ch->dest_buf );
DISPOSE( ch->dest_buf_2 );
ch->substate = SUB_NONE;
send_to_char( "&RYou are interupted and fail to finish your work.\n\r", ch );
return;
*/
}
Top

Posted by Imake13   USA  (10 posts)  Bio
Date Reply #8 on Mon 25 Dec 2006 03:01 AM (UTC)
Message
i commented it out for the sake of trying to compile... but yeah... it's borked.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #9 on Mon 25 Dec 2006 05:05 AM (UTC)
Message
Argh, it's a timed skill? Try commenting out the lines that contain dest_buf_2.

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

Posted by Imake13   USA  (10 posts)  Bio
Date Reply #10 on Mon 25 Dec 2006 05:37 AM (UTC)
Message
i got a core dump and this error when i just commented out those lines.

$ 4 [main] smaug 57536 _cygtls::handle_exceptions: Error while dumping sta
te (probably corrupted stack)
Segmentation fault (core dumped)
$
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #11 on Mon 25 Dec 2006 07:00 AM (UTC)
Message
You mean it compiled? That was pretty easy. So it's crashing when you try to use it now?

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.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.


35,012 views.

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.