Author |
Message |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
Posted: Thu Aug 12, 2004 4:18 pm Post subject: Mervpot plugins with ASSS? |
 |
|
|
|
I'm thinking it could be possible, as mervbot makes a .dll which an asss module could comunicate with.
so like set up all the necessary callbacks for all of merbot's events and just send the dll what the core would normally send it. Then when the plugin's talking to the core, listen and change those to the appropriate server actions.
So like when a plugin does sendPublic("*arena hello!");
it's actually doing
tell(makeSay(MSG_Public, snd, 0, "*arena hello!"));
makeSay creates a BotEvent struct, which is sent to the core
couldn't ASSS receive this struct, decode it and translate it into a chat message... relize it starts with *arena and make it
chat->SendArenaMessage(arena,"hello!");
if something like this was made then asss could use all the mervbot plugins that have been around for years |
|
Back to top |
|
 |
Smong Server Help Squatter

Joined: 1043048991 Posts: 0x91E Offline
|
Posted: Thu Aug 12, 2004 4:59 pm Post subject: |
 |
|
|
|
Catid has said this is possible ages ago. |
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Thu Aug 12, 2004 5:00 pm Post subject: |
 |
|
|
|
If I remember correctly, Catid said that he MIGHT code an ASSS-module to do that somtime in the future if it's necessary. _________________ It's a shark! Oh my god! Unbelievable! |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Aug 12, 2004 7:14 pm Post subject: |
 |
|
|
|
.shrug. at least Merv logs into ASSS.  _________________ Performance is often the art of cheating carefully. - James Gosling |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Thu Aug 12, 2004 8:33 pm Post subject: |
 |
|
|
|
Making ASSS manipulate the DLLs, since they are built object-oriented, might be a little painful. Then again, I've never tried accessing an OO DLL with C. _________________ This help is informational only. No representation is made or warranty given as to its content. User assumes all risk of use. Cyan~Fire assumes no responsibility for any loss or delay resulting from such use.
Wise men STILL seek Him. |
|
Back to top |
|
 |
Dr Brain Flip-flopping like a wind surfer

Age:39 Gender: Joined: Dec 01 2002 Posts: 3502 Location: Hyperspace Offline
|
Posted: Thu Aug 12, 2004 9:03 pm Post subject: |
 |
|
|
|
Well, like cypher said, MERV works, so who cares? _________________ Hyperspace Owner
Smong> so long as 99% deaths feel lame it will always be hyperspace to me |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Thu Aug 12, 2004 9:15 pm Post subject: |
 |
|
|
|
Although, this would allow porting of premade plugins to ASSS much easier, I'd imagine.. |
|
Back to top |
|
 |
SuSE Me measures good

Joined: Dec 02 2002 Posts: 2307 Offline
|
Posted: Thu Aug 12, 2004 9:36 pm Post subject: |
 |
|
|
|
Dr Brain wrote: | Well, like cypher said, MERV works, so who cares? |
Is it not nicer to have everything server side in one cute package? |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:38 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Thu Aug 12, 2004 10:23 pm Post subject: |
 |
|
|
|
I think I was smelling some sarcasm in Brain's post, not sure.  |
|
Back to top |
|
 |
Mine GO BOOM Hunch Hunch What What

Age:42 Gender: Joined: Aug 01 2002 Posts: 3615 Location: Las Vegas Offline
|
Posted: Thu Aug 12, 2004 10:56 pm Post subject: |
 |
|
|
|
Cyan~Fire wrote: | Then again, I've never tried accessing an OO DLL with C. |
It doesn't matter what the DLL was written in, just you need to understand which of the two calling conventions it uses, C or Pascal. The difference between a C and a C++ dll is just that by default, MSVC's C++ dlls are mangled a bit, though that can easily be accepted into the calling code. |
|
Back to top |
|
 |
-Smong- Guest
Offline
|
Posted: Fri Aug 13, 2004 12:28 pm Post subject: |
 |
|
|
|
CypherJF wrote: | Although, this would allow porting of premade plugins to ASSS much easier, I'd imagine.. | Don't talk smack, that's how things like nazis and microsoft happen.
I think it's best to hang onto mervbot as if it crashes it won't take the whole server with it, or totally spam the log files with errors (like pymod does). |
|
Back to top |
|
 |
Deadly Seasoned Helper
Age:35 Gender: Joined: Oct 15 2003 Posts: 148 Location: Ontario Canada Offline
|
Posted: Sat Aug 28, 2004 2:24 pm Post subject: |
 |
|
|
|
was jus thinking.. merv plugins use ! and . and ASSS uses ? doesnt it? that could be a problem? _________________ Known as DeadlySoldier!! in-game..
http://deadly.sscentral.com -- My Bots |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Sat Aug 28, 2004 4:04 pm Post subject: |
 |
|
|
|
Why is that a problem? |
|
Back to top |
|
 |
k0zy Server Help Squatter

Gender: Joined: Jan 11 2003 Posts: 571 Location: Germany Offline
|
Posted: Sun Aug 29, 2004 9:42 am Post subject: |
 |
|
|
|
Merv can use ".","!" and "@", too.
Bob Dole.. Bob Dole... Bob Dole...... bob dole.... bob... dole.... |
|
Back to top |
|
 |
ExplodyThingy Server Help Squatter
Age:38 Gender: Joined: Dec 15 2002 Posts: 528 Location: Washington DC Offline
|
Posted: Mon Aug 30, 2004 8:07 pm Post subject: |
 |
|
|
|
the commands arent written into the plugins with the or . or @ in them. So theoretically you can prepend them with anything else. _________________ There are no stupid question, but there are many inquisitive idiots.
Loot
Dr Brain> I hate clean air and clean water. I'm a member of Evil Conservitive Industries |
|
Back to top |
|
 |
|