User Name:


Forgot your password?
Vote for Us!
AFKMud 2.2.2
Mar 3, 2019 5:35 pm
By Samson
Nov 28, 2018 12:10 pm
By Keirath
First Immortal
Oct 12, 2018 2:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018 7:31 pm
By joeyfogas
question on overland code
May 31, 2018 12:03 pm
By joeyfogas
SmaugFUSS 1.9.3
Author: Various
Submitted by: Samson
AFKMud 2.2.2
Author: AFKMud Team
Submitted by: Samson
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
Users Online

Members: 0
Guests: 19
Newest Member
Today's Birthdays
There are no member birthdays today.
Related Links
Upload Rules File Index | Search | Recent Uploads
» Root » SmaugFUSS » Smaug Snippets
In-Game SVN Changelog
Author Submitted by Version D/L File Size Date Added

Txzeenath Txzeenath 1.0 243 30.00 KB Feb 1, 2011

This is a set of functions I created for my MUD for generating in-game SVN logs.
Written for SmaugFUSS with AFKMUD Boards installed.

(you must have SVN installed of course to use it, and a valid repository)
It will grab the HEAD rev log, pull the revision # from it, and generate all missing logs from there.
Logs will than be loaded into memory, and posted to a selected noteboard. This was created
for Samson's AFKboards, and calls functions from it. While the function does check for AFKboads,
it may conflict with other modifications or have currently unseen problems.

Changelogs can be viewed in-game by using do_changelog. Which takes an argument of "lowrev" and an optional of "highrev"
Changelog <lowrev> (highrev). There currently is no safety checks to make sure you don't overflow yourself.
So "changelog 1 9000" is probably a bad idea.

This is not what I consider "snippet quality". The commenting is a giant mess, the code is a mess, but it's a good starting point
for anyone looking for this functionality. There ARE bugs in this version that I have fixed in my own copy(for example, loading not incrementing from the proper #).
I only ask that I am credited either in the header, or (if the file is dissected) at the function.

Time stamps on the auto-posting currently do not work properly, as I haven't figured out how to convert DateTime to a proper time_t yet
and don't have the time to do so. The auto-posting wipes the board entirely and posts all of the logs. Things could likely be simplified by
checking for posted notes, matching their "subject", and only posting missing notes. This would also solve the problem of timestamps
always being new.
Auto-posting requires Samson's AFKboards be installed. It is unlikely to work properly with stock boards, but could be adapted

You must have libxml2 and likely libxml2-dev installed. Your makefile must also contain the proper "flags" for linking.

C_FLAGS = -g2 -I/usr/include/libxml2 $(W_FLAGS) $(SOLARIS_FLAG) $(PROF) $(EXPORT_SYMBOLS)
L_FLAGS = $(PROF) $(SOLARIS_LINK) -lz $(NEED_DL) -lxml2

changelog 9
|Revision: 9
|Author: txzeenath
|Date/Time: 2011-01-28T13:10:52.641633Z
|Change Notes:
ran sudo rm -rf /
Deleted root
Changed some stuff
blew up the mud
made unicorns turn green


Rating: | Download | Comments(0)