Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Ringo on June 22, 2005, 10:48 PM

Title: D2GS Open Source [VB6]
Post by: Ringo on June 22, 2005, 10:48 PM
D2GS Open Source.zip (http://www.geocities.com/ringomail711/D2GSopenSource.zip)

Its fairly buggy and messy, and i hope alot of people put it to GOOD use. (it only logs on D2XP, i was to lazzy to add D2DV as well)
Iv added 3 very simple ingame chat commands and a follow player thing to give people some idea in witch way to explore.
Iv parsed out about 3 packets and about 10 packets in the main parser, but it could have done with alot more time spending on it :(

The 3 things iv added for D2GS are follow another player (0x0F), a debugging thing and a bot master thing (so a d2 client can use its 3 shitty commands)

I have how ever parsed enough packets for it to be fairly silent when idleing in game, and every so offten some unparsed messages will pop up.
As for as it is at the moment, it can create new chars, maintain the char list, join/create games/pass games on n/nm/h and set total player numbers as well as the small bit of D2GS stuff.
So as it is it can be used to create games and chat with people who join; mule; and leave the game.

Anything that you dont understand about the D2GS stuff, and the unknown packets, see here (http://forum.valhallalegends.com/phpbbs/index.php?topic=11756.0)
Anything you dont understand about the other stuff see here (http://bnetdocs.valhallalegends.com/content.php)
Anything u dont understand about the code in general, PM me and i will try and help.

This (http://forum.valhallalegends.com/phpbbs/index.php?topic=11756.0) topic is for public open research, there for anyone (on topic) can contribute any of there findings; ask any questions; post verification that a packets format is correct (tryed and tested); post new packets so others can help verify it/them faster and anything else that goes with it.

Feed back is muchly needed!

Good luck!

[edit] made link more visible
Title: Re: D2GS Open Source [VB6]
Post by: UserLoser. on June 23, 2005, 12:19 AM
Schat &H91FBB6, "Joined " & Message
Schat &HD97385, Message

Wow man, use constants, wtf
Title: Re: D2GS Open Source [VB6]
Post by: Hdx on June 23, 2005, 12:31 AM
Wow... My brain hurts just reading that code.
Honestly, you make me look like I have good coding habbits. -.-
But good work on the research.
~-~(HDX)~-~
Title: Re: D2GS Open Source [VB6]
Post by: PaiD on June 23, 2005, 01:09 AM
Hm. I hope this doesnt disappear.  ::)
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 23, 2005, 01:15 AM
lol
When i said i started it a few days ago, i wasnt joking.
I didnt make a quick typed up bot for open source to impress with my code, seems the way i made it shows no sign of effort.
Logon it and join/create a game, it will flash some frames around and show u decompressed data!
And for the record :P iv never once made a bot in that way ever, and i dont expect i ever will again ;)
Its nice to see you both tolk the time to download it to judge me coding standerds, and asume i was trying to write a bot that was both good and impressive. :P

Quote
Public Function BNCS_PARSER(Data As String)
On Error Resume Next
'all needs doing properly
Says it all really :P
(Also notice i didnt even put my name in it? :P)

Giving my best work away would be very stupid of me. ;)
Title: Re: D2GS Open Source [VB6]
Post by: QwertyMonster on June 23, 2005, 01:57 AM
I was the first one to get it, i like it. :P

Good work Ringo! Now lets see OnlyMeat dowload it and rip it ;)

Hint the ";)"  :-\
Title: Re: D2GS Open Source [VB6]
Post by: Archangel on June 23, 2005, 09:48 AM
Really nice bot, and really nice source code, it just show the way of using D2GS.
Title: Re: D2GS Open Source [VB6]
Post by: QwertyMonster on June 23, 2005, 10:17 AM
When Onlymeat's post gets deleted, i will laugh. Well nice bot both of you.
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 23, 2005, 10:33 AM
Quote from: OnlyMeat on June 23, 2005, 09:46 AM
Quote from: [Unknown] on June 23, 2005, 01:57 AM
Now lets see OnlyMeat dowload it and rip it ;)

I take it you haven't seen my clientless bot then ;):-
http://mercury.walagata.com/w/ddjl/AutoParty.png
http://mercury.walagata.com/w/ddjl/FollowCmd.png
http://mercury.walagata.com/w/ddjl/HelpCmd.png
http://mercury.walagata.com/w/ddjl/StashInv1.png
http://mercury.walagata.com/w/ddjl/StashInv2.png
http://mercury.walagata.com/w/ddjl/Visualize.png

I did that about a year ago, haven't really touched much since then apart from giving the UI a rework.

The last code line count was 78k for the project + tools:-
http://mercury.walagata.com/w/ddjl/LineCount.png

What have you written?

Not bad :)
Altho im not sure what im looking at, are the d2 screen shots you on d2 useing the bot? or the bot controlling d2?
And wheres the onscreen clicky stuff? :P
The GUI is none existant! :P

Title: Re: D2GS Open Source [VB6]
Post by: QwertyMonster on June 23, 2005, 10:37 AM
Exactly, its like a SC Bot, but without a GUI. Just commands, Very stupid if you ask me, a gui is handy. :P

Edit: I wrote some homework last night, thats about it. Planning to program my sc bot later.
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 23, 2005, 06:02 PM
I tihnk i now know the differance between a clientless bot and a client bot!
A clientless bot has a fantastic plastic GUI? :P

I can see you have put alot of time into it tho.
Can you 'play' on it as such? like move around, click things, or is it all script controlled? (automatic)

It looks pritty nice tho (apart from the Tic Tac Toe style Stash) ;)
Title: Re: D2GS Open Source [VB6]
Post by: Warrior on June 23, 2005, 06:13 PM
Nevermind them, nice job OnlyMeat.
Title: Re: D2GS Open Source [VB6]
Post by: Blaze on June 23, 2005, 06:33 PM
You have an interesting programming style Ringo. ;)

Nice job both of you. :)
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 23, 2005, 06:49 PM
Quote from: Warrior on June 23, 2005, 06:13 PM
Nevermind them, nice job OnlyMeat.
I wasnt making fun out of his bot, i generaly like plastic GUI's! :)


Quote from: Blaze on June 23, 2005, 06:33 PM
You have an interesting programming style Ringo. ;)
That might have been the lack of sleep :(
Title: Re: D2GS Open Source [VB6]
Post by: Warrior on June 23, 2005, 07:00 PM
Oh well, good job to everyone who contributed to this project.
Good to see work like this being done for the benefit of others :)
Title: Re: D2GS Open Source [VB6]
Post by: Warrior on June 23, 2005, 08:18 PM
I like the scripting system, very nice.
Title: Re: D2GS Open Source [VB6]
Post by: LivedKrad on June 23, 2005, 08:55 PM
Hmm, mind telling me where all of these references for packets are? Or did you guys just packet log and somehow scrounge a bot together in a matter of days with proper working packets? I'd surely like to have them, I've been meaning to *attempt* to make a D2 in-game bot.
Title: Re: D2GS Open Source [VB6]
Post by: MyndFyre on June 23, 2005, 09:11 PM
Quote from: LivedKrad on June 23, 2005, 08:55 PM
Hmm, mind telling me where all of these references for packets are? Or did you guys just packet log and somehow scrounge a bot together in a matter of days with proper working packets? I'd surely like to have them, I've been meaning to *attempt* to make a D2 in-game bot.

He's been posting packet data for a long time.  You should get off his case.
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 23, 2005, 09:26 PM
Quote from: OnlyMeat on June 23, 2005, 09:07 PM
O. and if you were wondering who's deleting all the posts, it's Kp, i just had a look at his last logon time ;)
I dont expect posting links to clientless pindle bots is a wise thing to do..

Its looks a good bot, but its main objective is harmfull and doesnt set a good impression when it comes to others wanting to make a program for the protocol.

And graphics are the most important part of a game, with out them you wouldnt beable to do/see alot ;)
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 23, 2005, 11:12 PM
Some graphics by: Blizzard

(http://www.geocities.com/ringomail711/MiniWP.gif)
(http://www.geocities.com/ringomail711/Stash.gif)
(http://www.geocities.com/ringomail711/WPBlueLeft.gif)
(http://www.geocities.com/ringomail711/PodFlames4.gif)
(http://www.geocities.com/ringomail711/Stand7.gif)

[edit]
The left side of the wp i think
(the mask colors are pure white)
(http://www.geocities.com/ringomail711/WP.gif)
Title: Re: D2GS Open Source [VB6]
Post by: disco on June 23, 2005, 11:13 PM
What are those blue ones in the middle from?
Title: Re: D2GS Open Source [VB6]
Post by: l)ragon on June 24, 2005, 12:24 AM
Quote from: Disco on June 23, 2005, 11:13 PM
What are those blue ones in the middle from?
I think those are the flames that sit on the way points.
Title: Re: D2GS Open Source [VB6]
Post by: QwertyMonster on June 24, 2005, 02:11 AM
Nice Ringo! :P And those graphic things from blizzard you got, look cool :P
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 24, 2005, 03:17 PM
Quote from: [Unknown] on June 24, 2005, 02:11 AM
Nice Ringo! :P And those graphic things from blizzard you got, look cool :P
lol :P
Blizzard didnt give/send them to me if thats what you mean.
'By: Blizzard' i ment blizzard made them ;)


[edit] - A better exmple
Teleport by: My Teleport Scroll Book :P

(http://www.geocities.com/ringomail711/TelePort_Idle.gif)
(http://www.geocities.com/ringomail711/tpi.gif)
Title: Re: D2GS Open Source [VB6]
Post by: QwertyMonster on June 24, 2005, 03:47 PM
Quote from: Ringo on June 24, 2005, 03:17 PM
Quote from: [Unknown] on June 24, 2005, 02:11 AM
Nice Ringo! :P And those graphic things from blizzard you got, look cool :P
lol :P
Blizzard didnt give/send them to me if thats what you mean.
'By: Blizzard' i ment blizzard made them ;)
No i didnt mean that..
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 25, 2005, 12:30 AM
damn, u beat me to it!
a picture for a rainy day indeed ;)
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 25, 2005, 01:17 AM
Theres fresh ongoing public research, some open source and a clown act, wheres the pop corn!

I think onlymeats bot is the best bot i have ever seen as well.
It can do commands, kill pindle, and kill travi, and play norts and cross's.
But i think the norts and cross's dont work yet.
But the fact is i have no problem with his bot, or how it was made, it just wasnt the right place to be posting a link to it when iv been stressing my conserns about the damage they do to the game.
I beleave the damage is done to people like your self Nine, who is now spelling the beans on his life storys but directing them at others you know only through the interleetnessweb.
(How else would you asume such things from people you dont know?)
The reall victim in your funny posts, is onlymeat  :-\

And yes we are all 13373 leet visual bible programerlizer's around here.
We have stuck by the law of the public function OfReletivity(BrainWave as String) and it has done us no harm!
In fact, everything the function has ever returned has been awsome!
even the feed back coming in right now!
ROFLMAO

And as far as i know, everyone has learnt a reall language one time in there life. Mine was English, what was yours?

As for onlymeat i think hes a ok/nice persion, and i hope he never tolk offence of my plastic GUI joke.... if he did, he should search google for a sence of humor.
Title: Re: D2GS Open Source [VB6]
Post by: Arta on June 25, 2005, 04:28 AM
Sorry I didn't notice the flamewar earlier. Thread tidied.
Title: Re: D2GS Open Source [VB6]
Post by: R.a.B.B.i.T on June 25, 2005, 11:16 AM
I think these threads should be cleaned and moved to the reference section.
Title: Re: D2GS Open Source [VB6]
Post by: BaDDBLooD on June 27, 2005, 09:39 PM
Thank you ringo, i learned alot from it.

Keep up the good work, i really appreciate it.

- Joel
Title: Re: D2GS Open Source [VB6]
Post by: Ringo on June 28, 2005, 01:03 AM
Quote from: BaDDBLooD on June 27, 2005, 09:39 PM
Thank you ringo, i learned alot from it.

Keep up the good work, i really appreciate it.

- Joel

Thanks

I hope u didnt pick up any bad habbits from it :)
Title: Re: D2GS Open Source [VB6]
Post by: Archangel on June 28, 2005, 12:57 PM
There are no bad habits :) lol!!