Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
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
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, DotBot

Members: 0
Guests: 11
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,387
627
MargoThurb
Today's Birthdays
whisperedecho (34)
Related Links
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

Txzeenath Txzeenath 1.0 221 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 <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.

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

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


Rating: | Download | Comments(0)
User Comments For: In-Game SVN Changelog