Login
User Name:

Password:



Register

Forgot your password?
do_owhere recursive
Author: Khonsu
Submitted by: Khonsu
Changes list / Addchange
Author: Khonsu
Submitted by: Khonsu
6Dragons mp3 sound pack
Author: Vladaar
Submitted by: Vladaar
AFKMud 2.2.3
Author: AFKMud Team
Submitted by: Samson
SWFOTEFUSS 1.5
Author: Various
Submitted by: Samson
Users Online
DotBot, Google, AhrefsBot

Members: 0
Guests: 32
Stats
Files
Topics
Posts
Members
Newest Member
489
3,792
19,646
597
Aileenutz

Today's Birthdays
There are no member birthdays today.
Files
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 Last Updated

Txzeenath Txzeenath 1.0 481 30.00 KB Feb 1, 2011

Description
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 (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.

ex.
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

=========================================================================


Revisions: 0
Rating: | Download | Comments(0)