Author Topic: MXP Support  (Read 18361 times)

Offline boobay

  • Acquaintance
  • *
  • Posts: 41
    • View Profile
Re: MXP Support
« Reply #30 on: May 03, 2007, 05:57:47 pm »
Well, I think it's closer.

Code: [Select]
using config file: config.lima2
Initializing internal tables....
----------------------------------------------------------------------------
Distortions II (FluffOS v2.7alpha) starting up on Linux - Fri May  4 00:52:44 2007


Connected to address server on localhost port 8006
*Warning: unable to open stat file domain_stats for reading.
*Warning: unable to open stat file author_stats for reading.

Loading preloaded files ...
]ERROR:
  The I3 daemon will not load until you set a proper ADMIN_EMAIL
  value in /include/config.h
Initializations complete.

Accepting connections on port 8002.
Socket passed to fd 6 ignored (support is disabled).

Code: [Select]
Trying 172.16.10.1...
Connected to 172.16.10.1.
Escape character is '^]'.

Any ideas?

Offline wodan

  • BFF
  • ***
  • Posts: 434
  • Drink and code, you know you want to!
    • View Profile
Re: MXP Support
« Reply #31 on: May 03, 2007, 06:03:30 pm »
Could be the problem on 64 bit I'm seeing, if you're on a 64 bit system, try compiling with -m32
If you're not.. no idea :)

Offline boobay

  • Acquaintance
  • *
  • Posts: 41
    • View Profile
Re: MXP Support
« Reply #32 on: May 03, 2007, 06:13:16 pm »
Again, i'm not very familiar with C and gcc. Where should I add -m32?

Offline boobay

  • Acquaintance
  • *
  • Posts: 41
    • View Profile
Re: MXP Support
« Reply #33 on: May 03, 2007, 06:37:12 pm »
Confused...

Code: [Select]
mkdir -p obj
rm -f cc.h
echo "/* this file automatically generated by the Makefile */" > cc.h
echo '#define COMPILER "gcc"' >> cc.h
echo '#define OPTIMIZE "-O2 -fstrength-reduce"' >> cc.h
echo '#define CFLAGS   "-D __USE_FIXED_PROTOTYPES__ -rdynamic -m32 -O2 -fstrength-reduce"' >> cc.h
echo '#define OBJDIR   "obj"' >> cc.h
gcc -D __USE_FIXED_PROTOTYPES__ -rdynamic -m32 -o obj/edit_source.o -c edit_source.c
cc1: Invalid option `32'
make: *** [obj/edit_source.o] Error 1

Offline boobay

  • Acquaintance
  • *
  • Posts: 41
    • View Profile
Re: MXP Support
« Reply #34 on: May 03, 2007, 06:51:51 pm »
According to gcc --help

Code: [Select]
Options starting with -g, -f, -m, -O or -W are automatically passed on to
the various sub-processes invoked by gcc.  In order to pass other options
on to these processes the -W<letter> options must be used.

Luckily, I have no clue what i'm doing *score*

Also, I'm using an i686 arch.

Offline wodan

  • BFF
  • ***
  • Posts: 434
  • Drink and code, you know you want to!
    • View Profile
Re: MXP Support
« Reply #35 on: May 04, 2007, 08:59:39 am »
You probably use an old compiler then, but if it's a 686, it'll be 32 bit anyway, so you must have found some new problem, or an old compiler bug.

Offline boobay

  • Acquaintance
  • *
  • Posts: 41
    • View Profile
Re: MXP Support
« Reply #36 on: May 07, 2007, 10:49:42 am »
gcc --version
2.95.4

Offline wodan

  • BFF
  • ***
  • Posts: 434
  • Drink and code, you know you want to!
    • View Profile
Re: MXP Support
« Reply #37 on: May 08, 2007, 04:31:11 pm »
everything seems to work for me with http://wodan.serverbeer.com/patch2
yay!

Offline wodan

  • BFF
  • ***
  • Posts: 434
  • Drink and code, you know you want to!
    • View Profile
Re: MXP Support
« Reply #38 on: May 08, 2007, 04:34:36 pm »
2.95 is rather old, could you try something newer? 3.4 and 4.1 work for me

Offline boobay

  • Acquaintance
  • *
  • Posts: 41
    • View Profile
Re: MXP Support
« Reply #39 on: May 11, 2007, 09:42:37 pm »
I'll give it a shot this weekend on my server at home...

Offline stanach

  • Acquaintance
  • *
  • Posts: 19
    • View Profile
Re: MXP Support
« Reply #40 on: August 22, 2010, 12:27:42 pm »
hello,
I hate to bring up an old topic, but trying to find out as much info on MXP that i can. I see people tried working on mxp with ds. I am interested in adding it to my mud that is using the DS mudlib. If anyone has any advice or information to help me in this matter i would greatly appreciate it.

Derrick

Offline wodan

  • BFF
  • ***
  • Posts: 434
  • Drink and code, you know you want to!
    • View Profile
Re: MXP Support
« Reply #41 on: August 23, 2010, 05:55:23 am »
when a mud client indicates it supports mxp mxp_enable() (no arguments) will be called on whatever object owns the connection (most likely a login object)
you should then use the act_mxp() efun (no arguments) to send a message to the client telling it to use mxp.
when the client sends mxp messages they'll be the argument to mxp_tag(string tag) (called on the connected object by the driver)

if you compile in the dwlib package you'll have the replace_mxp efun which replaces < > & with mxp entities so the clients won't eat them as mxp tags (easily done with the replace efun if you don't want the package).

sending mxp messages is just plain text stuff so there's no driver support for that, read the mxp standard :)