User Name:


Forgot your password?
Vote for Us!
auth_update crash
Dec 23, 2017, 10:15 pm
By Remcon
Dec 18, 2017, 7:21 pm
By Remcon
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
LoP 1.46
Author: Remcon
Submitted by: Remcon
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
Users Online
CommonCrawl, Yandex, Majestic-12

Members: 0
Guests: 7
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 207 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)
User Comments For: In-Game SVN Changelog