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, Yandex, Bing, Sogou

Members: 0
Guests: 7
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » Smaug Snippets » Various snippets
Forum Rules | Mark all | Recent Posts

Various snippets
< Newer Topic :: Older Topic > SWR ports

Pages:<< prev 1 next >>
Post is unread #1 Feb 12, 2004, 4:49 pm
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

I've recently started making snippets from my code, and one of the things I've done is modify the hotboot snippet to work with SWR, both with the porting it to work with the code, as well as adding SWR support. Since the hotboot code tries to perfectly preserve the state of the mud, I've tried to do that with the SWR aspects, like saving ships and the much greater used add_timer stuff, as well as a few other small SWR specific things.

I would like to post this version on a site me and a few people are collecting new snippets for, however I read the licence, and it said to ask permission before doing so, so here I am...

Anyways, I'd be glad to give you(Samson) a version of it should you want it, but if not, I'd like to have it available.

There are also a couple more, but I haven't looked at them yet(the dlsym stuff, for example, SWR has more spec funds, for example). I'll post about them later.

Thanks for the consideration.
       
Post is unread #2 Feb 13, 2004, 11:42 am
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Sure. If you want to post SWR ports of some or all of our snippets, feel free. I generally don't have issue with this as long as someone asks first before posting them.
       
Post is unread #3 Feb 13, 2004, 10:04 pm
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

I assume that you want the majority of your header in the .txt file left alone. Any specific rules? I was thinking add my own stuff for the license. Not sure how/if you want it
       
Post is unread #4 Feb 15, 2004, 5:46 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Whatever headers are there should remain intact. If a file hasn't got any, then you can presume it doesn't require they be kept. But any headers, such as those found in zipped files with C and H source should remain where they are.
       
Post is unread #5 Feb 15, 2004, 5:53 pm   Last edited Nov 25, 2007, 5:28 pm by Samson
Go to the top of the page
Go to the bottom of the page

Greven
Magician
GroupMembers
Posts204
JoinedMar 5, 2005

To be sure before I release this to anyone, this is what I curretly have:
/*****************************************************************************************
* DDDDD A RRRRRRR K K *
* D D A A R R K K *
* D D A A R R KK K *
* D D A A RRRRRRR K K *
* D D AAAAAAAAA R R K K *
* D D A A R R K K *
* DDDDD A A R R K K *
* *
* *
*W WW W A RRRRRRR RRRRRRR IIIIIIII OOOO RRRRRRR SSSSS *
* W W W W A A R R R R II O O R R S *
* W W W W A A R R R R II O O R R S *
* W W W W A A RRRRRRR RRRRRRR II O O RRRRRRR SSSSS *
* W W W W AAAAAAAAA R R R R II O O R R S *
* W W W W A A R R R R II O O R R S *
* W W A A R R R R IIIIIIII OOOO R R SSSSS *
* *
*****************************************************************************************
* *
* Dark Warrior Code additions and changes from the Star Wars Reality code copyright © *
* 2003 by Michael Ervin, Mark Gottselig, Gavin Mogan *
* *
* Star Wars Reality Code Additions and changes from the Smaug Code copyright © 1997 *
* by Sean Cooper *
* *
* Starwars and Starwars Names copyright© Lucas Film Ltd. *
*****************************************************************************************
* ^ +----- | / ^ ^ | | +- *
* / | | / | /| | | | *
* / +--- |< | / | | | | | *
* /----- | | | v | | | | / *
* / | | | | +-----+ +-/ *
*****************************************************************************************
* *
* AFKMud Copyright 1997-2003 by Roger Libiez (Samson), Levi Beckerson (Whir), *
* Michael Ward (Tarl), Erik Wolfe (Dwip), Cameron Carroll (Cam), Cyberfox, Karangi, *
* Rathian, Raine, and Adjani. All Rights Reserved. *
* *
* Original SMAUG 1.4a written by Thoric (Derek Snider) with Altrag, Blodkai, Haus, Narn,*
* Scryn, Swordbearer, Tricops, Gorog, Rennard, Grishnakh, Fireblade, and Nivek. *
* *
* Original MERC 2.1 code by Hatchet, Furey, and Kahn. *
* *
* Original DikuMUD code by: Hans Staerfeldt, Katja Nyboe, Tom Madsen, Michael Seifert, *
* and Sebastian Hammer. *
*****************************************************************************************
* SWR Hotboot module *
****************************************************************************************/


And in the .txt file:
Copyover for SWR - aka Hotboot
--------------------------------

Original code by Erwin Andreasen for Rom muds.
Smaug ports by various authors.
Cleanup and revisions for smaug port by Samson of Alsherok
Port SWR by Greven of Dark Warriors.
Ship saving code by Gavin of Dark Warriors.

Terms of Use
------------

1. You may use this snippet in your code provided that any included
comment headers in the code are left intact. You may add your own, but
do not take any out.

2. This snippet may not be posted for redistribution on any site
without obtaining prior written consent from the Alsherok team and
the Dark Warriors team.

3. For support of this snippet, come to Greven first, at either
http://dementiasystems.com/forum/ or darkwarsmud@hotmail.com. I will do
what I can for email support, but the forum is generally a better way to
go.

If you can't agree to these terms, don't use this code, and don't expect
help if something breaks while installing it. Harsh? Hardly. It's tiring
when people who come crawling to whine and complain when they haven't
bothered to comply with the terms first.


What this code does
-------------------

The usual copyover code which allows a mud to be rebooted without having to
drop the socket connections to the players. This particular port has been
cleaned up some and has the proper alterations to allow it to work with
several of the snippets I have on my site. It also preserves the locations of
all loaded mobs and objects in the game at the time, so it will seem like just
a bit of lag for the players. Mobs will even still be wounded.
The command has also simply been renamed because "copyover" just sounds funny to me - Samson

SWR Additions
-------------
The biggest addition in this code for SWR is the saving of ships, which Gavin did a marvelous
job of. It is virtually seemless. Ships in combat stay in combat, their stats stay the
same, hyper space is not interupted, nor is landing or movement. Other additions include
support for the OLC shuttle code, which is available from the DW coding team. In addition,
support for new home code by Gavin is included. As well, there is code to finish the SWR
engineering style skills, so they are not interupted. Also added with this is the auto
detection upon recovery if the clients support MXP, and to set it appropriately.

NOTE: I have removed SOME of the extra code for support of Samson's snippets for ease of
installation ( like the rent code, doesn't apply to SWR). If you want the extra support
code, the original AFKMUD version is available at http://www.smaugmuds.org


I've obviously modified the instructions to work with SWR

[EDIT] I guess the quote codes doesn't like my spacing, sorry about the look.
       
Post is unread #6 Feb 25, 2004, 3:19 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,643
JoinedJan 1, 2002

Yes, that's perfectly acceptable. And it looks like you've covered plenty of areas of the code I would likely have missed were I to have ported it myself
       
Pages:<< prev 1 next >>