Author |
Message |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Sun Apr 24, 2005 12:00 pm Post subject: Mervbot + .NET |
 |
|
|
|
Bah what a crappy search feature!
Sorry to ask you this, but I knew there was a topic of .NET and .dll (Mervbot) coding and how to setup.
Does someone know the topic title so I can search for it? (Or post a link )
Thanks _________________
|
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Sun Apr 24, 2005 12:52 pm Post subject: |
 |
|
|
|
What?! MERVBot and .NET?! |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Sun Apr 24, 2005 1:10 pm Post subject: |
 |
|
|
|
I don't remember a thread about it but there are two ways you can go about using framework classes in merv. You can make it all managed c++ by compiling with /clr, or you can use the wrapper used in this code _________________
 |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Tue Apr 26, 2005 11:08 pm Post subject: |
 |
|
|
|
Or you could just write modules how they're supposed to be written? _________________ 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 |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Tue Apr 26, 2005 11:15 pm Post subject: |
 |
|
|
|
Double post... sorry. I'm too tired. |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Wed Apr 27, 2005 3:48 am Post subject: |
 |
|
|
|
Are you asking for direction for setting up a new dll project with VC++ .net, mav? I can walk you through that if that is what you need. _________________ Current Terror Alert Level
 |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed Apr 27, 2005 5:07 am Post subject: |
 |
|
|
|
yup, I was figuring how Visual Studio .NET might be so much better IDE to use. Also, I was wondering if you can make .dll plugins with the .NET architecture. |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Wed Apr 27, 2005 8:34 am Post subject: |
 |
|
|
|
Good one, Cyan.
Hey Mav, want to help me writing Python scripts in ASM? Or maybe C in VB? |
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Wed Apr 27, 2005 12:47 pm Post subject: |
 |
|
|
|
File->New->Project
Open the folder Visual C++ Projects and then the win32 folder. On the right side, click on win32 project, name it and press ok.
A new window will open. On the left, click on "Application Settings" and click the DLL radio button on the right. Then click the "Empty project" box and "finish."
I suppose you could probably use all the .net stuff in a dll, but I have never used it and don't plan on it, ever. The IDE is very nice but you don't need to use all the microsoft BS (like MFC and .net). |
|
Back to top |
|
 |
Bak ?ls -s 0 in

Age:26 Gender: Joined: Jun 11 2004 Posts: 1826 Location: USA Offline
|
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Wed Apr 27, 2005 2:12 pm Post subject: |
 |
|
|
|
ty I will try that |
|
Back to top |
|
 |
2dragons Novice
Joined: Feb 17 2004 Posts: 95 Offline
|
Posted: Wed Apr 27, 2005 5:08 pm Post subject: |
 |
|
|
|
50% Packetloss wrote: | File->New->Project
Open the folder Visual C++ Projects and then the win32 folder. On the right side, click on win32 project, name it and press ok.
A new window will open. On the left, click on "Application Settings" and click the DLL radio button on the right. Then click the "Empty project" box and "finish."
|
That's a great start.
Next:
1. From Menu Select: Project
2. Then select: [Project Name] Properties, where [Project Name] is the name of your project
3. On left of new menu click the C/C++ folder
4. Select Precompiled Headers from the options within that folder
5. On the right set Create/Use Precompiled Headers to Not Using Precompiled Headers
And:
1. Change #include <fstream.h> -> #include <fstream>
2. Set your namespace, using namespace std; or specify the namespace where appropriate in your code.
3. This should work for most general cases. |
|
Back to top |
|
 |
Dark Clouds+ Novice

Age:39 Gender: Joined: Feb 16 2005 Posts: 35 Offline
|
|
Back to top |
|
 |
50% Packetloss Server Help Squatter

Age:40 Gender: Joined: Sep 09 2003 Posts: 561 Location: Santa Clarita, California Offline
|
Posted: Thu Apr 28, 2005 2:50 am Post subject: |
 |
|
|
|
Precompiled headers? It shouldn't matter.
Don't use fstream, always use stdio.h, it is sexier. |
|
Back to top |
|
 |
D1st0rt Miss Directed Wannabe

Age:37 Gender: Joined: Aug 31 2003 Posts: 2247 Location: Blacksburg, VA Offline
|
Posted: Thu Apr 28, 2005 7:39 pm Post subject: |
 |
|
|
|
Ekted will declare a jihad on anyone who uses iostream in his presence >.< |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Apr 29, 2005 12:11 pm Post subject: |
 |
|
|
|
Yeah, probably MERV would be faster than TWCore if he used <stdio.h>  |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Fri Apr 29, 2005 12:56 pm Post subject: |
 |
|
|
|
*PMs ekted #include <iostream>*
mWah!
So cyan, you've got a summer job; to fix up merv.
*still waiting for catid to put in that patch you suggested* _________________ Performance is often the art of cheating carefully. - James Gosling
Last edited by CypherJF on Fri Apr 29, 2005 1:00 pm, edited 1 time in total |
|
Back to top |
|
 |
Solo Ace Yeah, I'm in touch with reality...we correspond from time to time.

Age:37 Gender: Joined: Feb 06 2004 Posts: 2583 Location: The Netherlands Offline
|
Posted: Fri Apr 29, 2005 12:57 pm Post subject: |
 |
|
|
|
Haha, now that'd be some bad summer job. |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Fri Apr 29, 2005 2:31 pm Post subject: |
 |
|
|
|
CypherJF wrote: | *still waiting for catid to put in that patch you suggested* |
catid.ssihosting.com wrote: | This latest release includes a tiny fix for the encryption thanks to Cyan~Fire, but no new features. |
That patch you mean?  |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Fri Apr 29, 2005 2:58 pm Post subject: |
 |
|
|
|
No. I mean the negative time issue that causes awarp detection to fail after 27+ days. |
|
Back to top |
|
 |
Cyan~Fire I'll count you!

Age:37 Gender: Joined: Jul 14 2003 Posts: 4608 Location: A Dream Offline
|
Posted: Fri Apr 29, 2005 11:06 pm Post subject: |
 |
|
|
|
I also emailed a code-oriented fix (I don't think it would have had any effect on runtime) to him a while ago (I mean, way before the encryption thing), but no response. :-/
I've actually seriously considered fixing up MERV, not just in iostream but in a lot of the ways it does things, but 1) yes, it would suck; and 2) I'm not sure catid would even accept it. |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Sat Apr 30, 2005 7:57 am Post subject: |
 |
|
|
|
you would help alot of people that are using mervbot. Mervbot is still lacking on some things. Fixing those would make it a very good bot.
If you'd ask him for permission first I think he would gladly agree since he doesn't develop on it himself anymore.
I am still hoping someone can fix mervbot such a way so you can remotely host more then the theoratical 3 bots without having alot of ploss. |
|
Back to top |
|
 |
CypherJF I gargle nitroglycerin

Gender: Joined: Aug 14 2003 Posts: 2582 Location: USA Offline
|
Posted: Sat Apr 30, 2005 11:28 am Post subject: |
 |
|
|
|
Aye, he'd probably allow it... |
|
Back to top |
|
 |
liito-orava Novice

Gender: Joined: Sep 24 2003 Posts: 41 Offline
|
Posted: Sun May 01, 2005 4:47 am Post subject: |
 |
|
|
|
Maverick wrote: | I am still hoping someone can fix mervbot such a way so you can remotely host more then the theoratical 3 bots without having alot of ploss. |
Is it a problem that only exists in mervbot? I thought the reason might be that the server refuses to send more than x bytes/s to one ip and thus having 3 clients would increase the traffic over the limit x B/s.
And in new subgame you can define botip and the limit does not apply on that ip.
I haven't tried it myself so I don't know if it could be solved with that or not. _________________ "Do you hear that? That is the sound of nobody giving a fuck!"
Wolfix> Lesbian transvestites trapped in man's bodies spanking their monkeys to freq 395 |
|
Back to top |
|
 |
Maverick

Age:40 Gender: Joined: Feb 26 2005 Posts: 1521 Location: The Netherlands Offline
|
Posted: Sun May 01, 2005 9:01 am Post subject: |
 |
|
|
|
hmmm I should try that one time
EDIT: Thanks alot for that tip, liito-orava! I just hosted 9 bots without a single sign of ploss $$$
Do you, or anyone else, know if you can specify more then one IP at that server.ini setting? (I assume comma seperated if its possible)
Another suggestion for mervbot would be to have each plugin in a seperate thread. So if one plugin takes up some recources, it doesn't lock up all bot(s). |
|
Back to top |
|
 |
|