[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Global Boards

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?
(New message)
Subject: Global Boards
Name:
Your forum user name.
Register forum user name
Password:
Your forum password.
Forgotten password?
Message:
Message to be posted (in English, please).
Forum codes:
Check this if your message uses 'forum codes' or templates (auto-detected for new posts).
Forum codes Templates

Save this message ...


Subject review (reverse sequence)

Pages: 1 2  

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Tue 13 Nov 2007 02:09 AM (UTC)  quote  ]
Message
The gboard snippet should come with instructions.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Rance   (2 posts)  [Biography] bio
Date Mon 12 Nov 2007 10:58 PM (UTC)  quote  ]
Message
Ok I got the cygwin installed. Now...

How to make the changes to add the GBoards? Which file do I have to edit? Which part of the file?

Assume that I'm a newbie (which I partially am) to mud coding in fairness to anyone else who might ask the same question in the future. ^_^
[Go to top] top

Posted by Nick Gammon   Australia  (18,770 posts)  [Biography] bio   Forum Administrator
Date Sun 11 Nov 2007 04:19 AM (UTC)  quote  ]
Message
It's not particularly hard to install the free Cygwin compiler, see:

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

- Nick Gammon

www.gammon.com.au, www.mushclient.com
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Sun 11 Nov 2007 12:46 AM (UTC)  quote  ]
Message
If you don't have a compiler you won't be able to put in any code, including the Gboard snippet.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Rance   (2 posts)  [Biography] bio
Date Sun 11 Nov 2007 12:09 AM (UTC)  quote  ]
Message
Hmmm I have trouble installing boards too...

Sad to say, I'm using the windows version, and I don't have a compiler if ever.

Can anyone advise me how to fix the problem, and if possible, through the current limitations I have? I can only edit things via what I have in windows, and I don't have a compiler for C.
[Go to top] top

Posted by Orik   USA  (182 posts)  [Biography] bio
Date Thu 18 Jan 2007 02:19 AM (UTC)  quote  ]
Message
Yea, they used vnum in note list as an integer so I just set it as that as well. I don't know why they did, I guess I could change it to like nnum for note number or something, but meh...it works..heh. Once I seriously test it all out for any and all bugs, i'll post it if anyone wants it. Basically it's an easy fix for global boards if you don't want to use the smaug board system. I'm thinking about making it to where if they are in a room with a board, they can read that one and post to it, but if they are not in that room it goes to the main global board. We'll see what I come up with.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Thu 18 Jan 2007 02:12 AM (UTC)  quote  ]
Message
Oh. I think we're not using vnum to refer to the same concept. :) But it's cool that you got your system working.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Orik   USA  (182 posts)  [Biography] bio
Date Thu 18 Jan 2007 02:06 AM (UTC)  quote  ]
Message
I set last_read as an integer instead of time. So when it's adding up the vnum's for the notes, I'm checking to see if the number stored in the char's pfile is smaller than the new vnums out there.

So if there were 5 notes for that player, but his pfile had 2 stored in last_read then when he logged in, it would say you have 3 notes. Then when he read them it would update in his pfile so after he's done reading note 5, his pfile now says 5 in last_read.

I've pretty much got all the kinks out and it's working quite well. It updates on note read, and note post and also works correctly in chk_unread.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Thu 18 Jan 2007 01:52 AM (UTC)  quote  ]
Message
if (vnum > ch->pcdata->last_read)
That doesn't make any sense to me. Why are we comparing a vnum to a time? (is last_read a time?)

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Thu 18 Jan 2007 01:25 AM (UTC)  quote  ]
Message
I wouldn't say bugged, but I personally would just write new code for global boards and not change the current board code.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Orik   USA  (182 posts)  [Biography] bio
Date Thu 18 Jan 2007 01:18 AM (UTC)  quote  ]
Message
ah sorry, I've read too many different posts..hehe. But you did say you wouldn't use the old note sytem? Is that because it's buggy or what?
[Go to top] top

Posted by Zeno   USA  (2,867 posts)  [Biography] bio   Moderator
Date Thu 18 Jan 2007 12:37 AM (UTC)  quote  ]
Message
I don't remember saying anything was wrong with board.c or that I made my own.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
[Go to top] top

Posted by Orik   USA  (182 posts)  [Biography] bio
Date Thu 18 Jan 2007 12:13 AM (UTC)  quote  ]
Message
Ok, I figured it out. I used the int vnum from the posts and changed last_read to an int in pc_data.

if (vnum > ch->pcdata->last_read)

I now have global boards and can check everytime I log on to see the new notes I have.

Just curios though, Zeno.

What's wrong with this board.c? Is there memory leaks on it or what? I know you said you didn't like it so you made your own. Could you give me a glimpse of what was wrong so I can fix it? I haven't found anything wrong with it yet.
[Go to top] top

Posted by Orik   USA  (182 posts)  [Biography] bio
Date Wed 17 Jan 2007 11:11 PM (UTC)  quote  ]
Message
Here's where I got the snippet.

http://www.mudmagic.com/codes/server-snippet/1097

I went through that and it never said to set the time anywhere.
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] bio   Moderator
Date Wed 17 Jan 2007 10:29 PM (UTC)  quote  ]
Message
Well, you have to set the time somewhere if you're going to test it against last_read. Somewhere, you need to set some reasonable time for each individual note, as well as making sure it gets loaded and saved to board files. I can't really help much more because I don't know anything about the snippet you're using.

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
[Go to top] 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.


7,222 views.

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

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]