Go Back   RunUO - Ultima Online Emulation > RunUO > Utility Support > LearnUO Team

LearnUO Team Irro\'s Team of LearnUO and their Documentation for RunUO

Reply
 
Thread Tools Display Modes
Old 01-17-2008, 07:16 AM   #1 (permalink)
Lurker
 
Join Date: Jan 2008
Posts: 2
Question robot client for RunUO.

Hi guys,
I’d like to build a robot client that mimic a PvP situation. In other words, “my dreams” I would like to create an independent program that is able to handle a combat situation with a human. I’m familiar with the UO combat system, C#, and advanced AI techniques but unfortunately I have no idea on how the low level communication is handled.

I found few information by looking at this post:
Protocol Documentation

I believe that you have already created few wrap classes in order to speed-up the serialization/deserialization stuff. I already give a look on the PacketHandlers.cs and Packets.cs classes but probably you use more high level classes that provide a more usable abstraction.

Let me go strict to the point…. I was wondering if you could give me a “guideline” on how to read the code that you are building.
In particular I’m looking for information on:
<how to log into a server>
<how to send a msg to the server>
<how to parse a reply>
<which classes your server-side AI use> //I’d like to have a look on the work that has been already carried out

I’m also interested in any other information, like examples, test classes etc., that you believe that could be useful and you would like to share! :-)

Thx in advance for your cooperation
Dr.Zero
Dr.Zero is offline   Reply With Quote
Old 01-17-2008, 07:30 AM   #2 (permalink)
Forum Expert
 
RavonTUS's Avatar
 
Join Date: Aug 2004
Location: in a house.
Age: 39
Posts: 582
Send a message via ICQ to RavonTUS Send a message via AIM to RavonTUS
Default

Greetings,

Just use EasyUO and macro like everyone else.

-Ravon
__________________

Will RunUO work on Linux? Yes
RavonTUS is offline   Reply With Quote
Old 01-17-2008, 08:30 AM   #3 (permalink)
Lurker
 
Join Date: Jan 2008
Posts: 2
Default

Thx for the suggestion Ravon,
but I’m not looking for build “the ultimate macro for PvP”. My goal is more close to build “the ultimate brain for NPC”. I’m familiar with reinforcement learning, neural network, expert systems and fuzzy logic and I would like to integrate such stuff into an AI of an NPC.

By the way, in order to test my AI, I would like to have a “fear ground". Therefore I would like to create a separate program that have the same possibilities of a Player. Considering that many of the library that I use for the AI techniques are written in C++, C# and Java I believe that I could profit of part of the work that you already did without restart from screech.
In addition, if I succeed in building such AI, I believe that, by working together it could be integrated into the RunUO engine in order to provide a “realySmartBrain” to NPCs.


-Zero

P.S: Probably in a server only 3-4 npc could be equipped with such brain because these techniques are very CPU consuming.
Dr.Zero is offline   Reply With Quote
Old 03-05-2008, 05:15 PM   #4 (permalink)
Forum Expert
 
Join Date: Dec 2005
Location: Elk Grove Village, IL
Posts: 336
Default

Dr. Zero,

I've seen EasyUO macros that will pretty much do what you are describing. Fighting, healing, chasing down an opponent.. pretty much do everything it needs to do in a PvP situation and you don't even need to touch the keyboard or mouse.
jhs59 is offline   Reply With Quote
Old 03-05-2008, 05:45 PM   #5 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,280
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

What style? AoS? UOR? T2A?
__________________
the runuo community has lost sight
Suil Ban is offline   Reply With Quote
Old 03-05-2008, 11:59 PM   #6 (permalink)
Newbie
 
Join Date: Nov 2007
Age: 22
Posts: 63
Default

I think you should code the AI on the server itself. Creating a simple client like the one you want to, even if its for a good reason is not a good idea because of what some not so nice people would do with it.
Chase.XNA is offline   Reply With Quote
Old 03-06-2008, 08:09 AM   #7 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,280
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Server-side implementation is useless unless you're banned from real shards :P

I suggest taking the route of an 'assistant' program similar to Razor that can read memory and inject packets into the client's data stream. You say you know C#, but C++ would give you much more control and much more speed for stuff like that.
__________________
the runuo community has lost sight
Suil Ban is offline   Reply With Quote
Old 03-06-2008, 01:08 PM   #8 (permalink)
CEO
Forum Expert
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 47
Posts: 775
Default

I think he's asking on how to go about coding an NPC that'll be like a PvP opponent, though I guess that would then technically be PvM? The current AIs, EAs included are really not capable of such sophistication to be a really viable at PvP, you find their weakness and it's basically just rinse and repeat. Maybe he can take a look at the M5 code an adapt that?
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline   Reply With Quote
Old 03-06-2008, 02:04 PM   #9 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,280
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

He has quite clearly indicated that he wants a program that can handle UO communication and PvP for him having logged into a server.
__________________
the runuo community has lost sight
Suil Ban is offline   Reply With Quote
Old 03-06-2008, 02:41 PM   #10 (permalink)
CEO
Forum Expert
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 47
Posts: 775
Default

Quote:
Originally Posted by excuse me miss, but uh... View Post
He has quite clearly indicated that he wants a program that can handle UO communication and PvP for him having logged into a server.
Ah.. Well then pointing to EasyUO is the correct solution.
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline   Reply With Quote
Old 03-06-2008, 02:50 PM   #11 (permalink)
Newbie
 
Join Date: Nov 2007
Age: 22
Posts: 63
Default

I think the idea of a bot used for PvP is a bad idea, but it is really easy to make and if this guy know all that about AI but can't code a simple network what does he really want to do with it.

Also, can EasyUO even get the min/max health and other stats (poisoned, ect.) from other mobiles?
Chase.XNA is offline   Reply With Quote
Old 03-06-2008, 03:07 PM   #12 (permalink)
CEO
Forum Expert
 
CEO's Avatar
 
Join Date: Jun 2004
Age: 47
Posts: 775
Default

Quote:
Originally Posted by Chase.XNA View Post
I think the idea of a bot used for PvP is a bad idea, but it is really easy to make and if this guy know all that about AI but can't code a simple network what does he really want to do with it.

Also, can EasyUO even get the min/max health and other stats (poisoned, ect.) from other mobiles?
Of course it can, CEOMedic does alot of that stuff. The trouble with writing a bot like that in EasyUO is that for real PVP it's not going to be fast enough or very 'smart' about it either. Nearly every good PVPer uses Hotkeys PERIOD. Anything else is going to be too slow. CEOMedic keeps non-PVP players healed enough to run away before the mouse hand starts shaking(You know I'm right about that too! lol).
__________________
If you PM me and ask me to write scripts for you I will add you to my ignore list.
Please don't add me to your friends list, I have enough friends. Thx
CEO is offline   Reply With Quote
Old 03-07-2008, 04:41 AM   #13 (permalink)
Master of the Internet
 
Join Date: Mar 2006
Location: Germany
Age: 17
Posts: 14,280
Send a message via AIM to Suil Ban Send a message via MSN to Suil Ban
Default

Well, back on the official topic, there are certain RunUO devs who have experimented with this sort of thing in the past and I will say it's possible to write some very complicated PvP bot AI.

I don't, however, think the OP is capable of pulling this off.
__________________
the runuo community has lost sight
Suil Ban is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5