Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
LOP 1.45
Author: Remcon
Submitted by: Remcon
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Users Online
CommonCrawl, Yahoo!, Bing, DotBot

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » Implementing AFKMUD Board Sni...
Forum Rules | Mark all | Recent Posts

Implementing AFKMUD Board Snipper to SWRFUSS
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 May 27, 2009, 10:11 pm
Go to the top of the page
Go to the bottom of the page

Walldo
Fledgling
GroupMembers
Posts6
JoinedMay 25, 2009

Snippet obtained from http://www.mudbytes.net/index.php?a=files&s=viewfile&fid=1021

Long story short, beginner coder looking to get his feet wet by sticking in random snippets, etc. etc. etc.

I am looking to insert a snippet of AFKMUD's Global Board System into a clean install of SWRFUSS. I've run into two problems.

2. In mud.h, locate and remove the following lines:

Locate the following:

SUB_PROJ_DESC, SUB_NEWS_POST, SUB_NEWS_EDIT,

Below that line, add:

SUB_BOARD_TO, SUB_BOARD_SUBJECT,
SUB_BOARD_STICKY, SUB_BOARD_TEXT, SUB_BOARD_CONFIRM, SUB_BOARD_REDO_MENU,
SUB_EDIT_ABORT,


I haven't found anything like NEWS_POST in any /src file, let alone in mud.h What is different between swrfuss and smaug in this regard?

7. In mapout.c, add the following to the includes list:

#include "boards.h"

Then in do_mapout, locate and remove:

STRFREE( ch->pnote->date );


SWRFUSS just straight up does not have a mapout.c Any thoughts?

Thank you in advance for contributions comments and thoughts :cool:
       
Post is unread #2 May 28, 2009, 2:53 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Stick the mud.h part after SUB_RESTRICTED in the Character Substates list.

And obviously since SWRFUSS does not have a mapout.c file you can skip that part :)

I'll be curious to see how well that performs for you since it doesn't appear many people have actually used it.
       
Post is unread #3 May 28, 2009, 10:25 am   Last edited May 28, 2009, 10:41 am by Walldo
Go to the top of the page
Go to the bottom of the page

Walldo
Fledgling
GroupMembers
Posts6
JoinedMay 25, 2009

It seems like the snippet isn't just for AFKMUD's board system, but has a lot to do with AFKMUD's project setup. At the moment I am focusing just on the board system so I stripped out all the project stuff I can find but if I get the boards up and functioning, I might go back and revisit the project setup.

That worked beautifully Sampson, thank you. Now to wade through the sea of errors from trying to compile boards.c

Whole lot of undeclared functions and 'dereferencing pointer to incomplete type'

I'll post more as the solutions reveal themselves (if they do!)
       
Post is unread #4 May 28, 2009, 11:34 am
Go to the top of the page
Go to the bottom of the page

tphegley
Magician
GroupMembers
Posts176
JoinedMay 21, 2006

I would think that it probably needs updated to the const char.
       
Post is unread #5 May 28, 2009, 1:56 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Walldo said:

It seems like the snippet isn't just for AFKMUD's board system, but has a lot to do with AFKMUD's project setup.


That's because the project system in Smaug is intimately tied to the board system, so they more or less had to be overhauled at the same time. Could be that wasn't actually the case though, that was Xorith's baby and the end result was what he said needed to be done. I never really took a deep look into how the original project code worked.

tphegley said:

I would think that it probably needs updated to the const char.


Almost certainly does, none of the old snippets have ever been updated for that and probably should be at some point.
       
Post is unread #6 May 28, 2009, 7:07 pm
Go to the top of the page
Go to the bottom of the page

Walldo
Fledgling
GroupMembers
Posts6
JoinedMay 25, 2009

Heh. Alright, first up:

boards.c:2046: error: dereferencing pointer to incomplete type


Line 2046 in boards.c:

for( pnote = board->first_note; pnote; pnote = pnote->next )


I think that error comes from BOARD_DATA junk not being in mud.h The directions with the snippet do say to remove struct and extern BOARD_DATA but that information is found in boards.h and board.c.
       
Post is unread #7 May 28, 2009, 7:45 pm
Go to the top of the page
Go to the bottom of the page

David Haley
Sorcerer
GroupMembers
Posts903
JoinedJan 29, 2007

If you need BOARD_DATA to be defined, and it's in boards.h, you should be including boards.h.
       
Post is unread #8 Jun 14, 2009, 2:48 am   Last edited Jun 14, 2009, 6:16 am by Andril
Go to the top of the page
Go to the bottom of the page

Andril
Magician
GroupMembers
Posts147
JoinedJun 9, 2009

I've recently installed this snippet myself. Not using SWRFUSS but a modified SWR 1.0 with a bunch of the FUSS fixes. To get it up and running, more or less, I ripped out the projects stuff seeing as how we're using a custom projects system. As far as the board_data stuff, I just pretty much moved everything from boards.h into mud.h because some of the stuff for boards was being used elsewhere and, even including boards.h in other places, it was still not cooperating...

I was initially having trouble with writing notes and stuff as well due to problems with CON_BOARD. There's nothing in the instructions telling us idiots that we need to add
case CON_BOARD:
	board_parse( d, cmdline );
	break;

in the game_loop function in comm.c. :) I put it after the case for CON_EDITING myself..

I've managed to get everything working except for listing notes and reading replies myself.

Here's hoping you don't have as many issues as I did/do Walldo :)

P.S.
I removed all my error stuff because I didn't want to hijack your thread Walldo. Guess I should have thought of that earlier...
I'll maybe post my issues in another one a little later...

P.P.S.
Oh ya. The issue I was having with stuff being in board.h came from the fact that it was dealing with extended bitvectors. To get that stuff to work would have required including mud.h in boards.h. But I also had to include boards.h in mud.h and I was, apparently, getting what looked like a nasty feedback loop, if you can call it that, so moving everything from boards.h to mud.h was the only thing I could think of that fixed the problem..
       
Post is unread #9 Jun 15, 2009, 8:26 pm
Go to the top of the page
Go to the bottom of the page

Metsuro
Apprentice
GroupMembers
Posts68
JoinedSep 2, 2006

Hey, if you guys get it updated and working mind giving me a chat, I was myself kinda interested in using this but... im not the best person to try and convert something I know little about heh...
       
Post is unread #10 Jun 25, 2009, 4:04 pm
Go to the top of the page
Go to the bottom of the page

Walldo
Fledgling
GroupMembers
Posts6
JoinedMay 25, 2009

Thanks for all the help, everyone, I have been making great progress on all of this. I have a quick question that is more a theoretical than anything; would it be possible to convert the way data is stored to some sort of SQL database to interface with the web?
       
Post is unread #11 Jun 25, 2009, 4:34 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Walldo said:

I have a quick question that is more a theoretical than anything; would it be possible to convert the way data is stored to some sort of SQL database to interface with the web?


Possible, yes, and something I had at one time planned to try and do. Only I was leaning in the direction of integration with an existing forum that's already on the web. Which likely would have been interfacing with a QSFP install already on a website somewhere.

AFKMud already has code to query a DB. Someone would just need to modify the board code to use a DB instead of the existing flat file system.
       
Pages:<< prev 1 next >>