Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - shadyman

Pages: 1 2 [3] 4
31
Drivers / Re: FluffOS-2.13
« on: August 18, 2008, 12:23:13 pm »
local_options.ds needs the HAS_CONSOLE, too :)

32
Drivers / Re: FluffOS-2.13
« on: August 17, 2008, 11:08:54 pm »
With local_options.fr...
Quote
Using 'local_options' file ...
No setting for ED_INDENT_SPACES in 'local_options'.
No setting for PROG_REF_TYPE in 'local_options'.
No setting for HAS_CONSOLE in 'local_options'.
No setting for ED_INDENT_CASE in 'local_options'.
No setting for RECEIVE_ED in 'local_options'.
No setting for PACKAGE_ASYNC in 'local_options'.
***This local_options file appears to have been written for an
***earlier version of the MudOS driver.  Please lookup the new options
***(mentioned above) in the options.h file, decide how you would like them
***set, and add those settings to the local_options file.
make: *** [files] Error 255

Added this to the local_options.fr:
Quote
/* In ed auto-indent,
 * 1) does the case line get indented after the switch() ?
 * 2) How far do we indent? (this can also be set in the mudlib)
 */
#undef ED_INDENT_CASE
#define ED_INDENT_SPACES 4

/*PACKAGE_ASYNC: adds some efuns for asyncronous IO */
#define PACKAGE_ASYNC

/* PROG_REF_TYPE size of program ref counter:
 * char for 8 bit, short for 16, int for 32,
 * long long for 64 (completely useless on 32 bit machines though!) */
#define PROG_REF_TYPE short

/* HAS_CONSOLE: If defined, the driver can take the argument -C
 *   which will give the driver an interactive console (you can type
 *   commands at the terminal.)  Backgrounding the driver will turn off
 *   the console, but sending signal SIGTTIN (kill -21) to the driver can
 *   turn it back on.  Typing 'help' will display commands available.
 *   The intent is to allow the inspection of things that are difficult
 *   to inspect from inside the mud.
 */
#define HAS_CONSOLE

/* RECEIVE_ED: define this if you want normal ed output to go to a
     receive_ed() apply in the player ob.  Some errors still go directly
     to output.  Useful for post-processing (perhaps colorizing?) ed
     output. Prototype:  mixed receive_ed(string txt, string fname);
     If fname, return a string that ed will output, 0 to let ed handle
     the output in the default way, or 1 to handle the output yourself.
     If fname == 0, output is help text and you may return any of the above
     or an array of strings that will be more'ed.
*/
#undef RECEIVE_ED

33
Discworld Discussion / Re: Yet another noob needing help
« on: August 16, 2008, 10:15:05 pm »
*((looking forward to the new bundle) * 2)*

34
Discworld Discussion / Re: fluffOS-2.8 mysql support
« on: August 16, 2008, 08:10:08 pm »
I'll be posting my FluffOS-based-mudlib MySQL socket code fairly soon. It uses an external_app to direct the 'mysql' command and parse its (xml) feedback.

Keep watching http://erroraccessdenied.com/mud/

35
Dead Souls Support / LIB_SENTIENT
« on: November 10, 2007, 07:37:37 pm »
As far as SetCommandResponse, SetEmoteResponse, etc go, it'd be nice if we could make the NPCs not only say, but do actions in response.

I don't have the code in front of me, but does anyone have any ideas?

36
Dead Souls Support / Re: Hiding exits?
« on: November 10, 2007, 07:22:04 pm »
Hi,

I reposted the modified code only, straight on the site. Give that a go and see what happens.  :o

--Shadyman

37
Code Vault / Re: Really EASY Socket Code (simple_sockets.c)
« on: October 10, 2007, 10:25:55 pm »
How about a baseball that sends UDP packets?  ???

38
Drivers / Re: FluffOS-2.7
« on: October 08, 2007, 11:46:36 pm »
That, or I just put 'scoff' in the exceptions list ;)

39
Drivers / Re: FluffOS-2.7
« on: October 07, 2007, 12:42:34 am »
FluffOS is great  ;D

One pointer. There's a small english error in the parser:

parse.c: Line 1533 deals with plurals of words ending in "f" pluralizing to "ves". Words ending in "ff" should be pluralized as "ffs", but aren't. I'm assuming the code should be something like this:

Code: [Select]
    case 'f':
        if (ch2 == 'f') {
            pbuf[sl - 1] = 0;
            return strcat(pbuf, "ffs");
        } else {
            return strcat(pbuf, "ves");
        }

But it doesn't seem to fix it for me.

I could always add the word i want to the 'special' list, but according to http://forum.wordreference.com/showthread.php?t=569638 (entry 2), words ending in ff should be ffs. Right now I'm thinking particularly about the word (and for me, emote) "scoff". Right now, it pluralizes into "scoves", which sounds more like something you would eat with tea than a feeling  ;)

That forum thread also gave an interesting page of English exceptions: http://www.writers.com/tips_spelling.html

40
Dead Souls Support / Re: Running DS on fluffos
« on: October 07, 2007, 12:33:56 am »
Ok, as for the parser, it seems like you need to comment out lines 3035 and 3036 in void f_parse_sentence (void) of parser.c in the driver code.

Code: [Select]
if (pi)
     error("Illegal to call parse_sentence() recursively.\n");

It's one of two of the same statements in the file, but the first time it is used (lines 3035,3036) was commented out in the version of MudOS that came with Dead Souls.

Not having looked at the driver source... is it safe to call parse_sentence recursively?  Before commenting it out, it might be wise to make sure it doesn't rely on any static data which might cause it to lose track of the parse position or state.

It just seems like if it didn't do something sneaky, they wouldn't have put a check in to catch recursive calls and stop them, no?
I have no idea. I do know that it has the same check elsewhere in the file. All I know is the mudos that DS is the exact same file, with has it commented out as well.

41
Skylib Stuff / Re: About Skylib
« on: October 03, 2007, 12:52:18 am »
Also, the main website for Divided Sky is at http://divided-sky.com:7703/.

42
Discworld Discussion / Re: dw_fluffy missing a few things?
« on: October 03, 2007, 12:49:40 am »
It's planned, only problem is that the entire admin staff on dw is suffering from this thing called life, it's as soon as we can! :)
Hate when that happens! As Crat knows, I can take a 6 month or a year hiatus from the MUD world at the drop of a hat  :o

43
Skylib Stuff / Re: About Skylib
« on: October 03, 2007, 12:47:59 am »
Skylib and their version of the latest MudOS driver are available at http://divided-sky.com:7703/skylib.c

44
Dead Souls Support / Re: Running DS on fluffos
« on: October 03, 2007, 12:45:41 am »
Ok, as for the parser, it seems like you need to comment out lines 3035 and 3036 in void f_parse_sentence (void) of parser.c in the driver code.

Code: [Select]
if (pi)
     error("Illegal to call parse_sentence() recursively.\n");

It's one of two of the same statements in the file, but the first time it is used (lines 3035,3036) was commented out in the version of MudOS that came with Dead Souls.

45
Dead Souls Support / Re: Running DS on fluffos
« on: October 03, 2007, 12:07:37 am »
Trying to zap the orcs is even more interesting.
Code: [Select]
2007.10.03-01.06
*Illegal to call parse_sentence() recursively.
Object: /secure/save/creators/s/shadyman (/lib/command.c) at line 529

'<fake>' at /secure/save/creators/s/shadyman (/<driver>) at line 0
'cmdAll' at /secure/save/creators/s/shadyman (/lib/command.c) at line 211
'parser_error_message' at /secure/daemon/master at line 1123
'eventRetryCommand' at /secure/save/creators/s/shadyman (/lib/command.c) at line 529
Trace written to /log/runtime

Pages: 1 2 [3] 4