Blizzhackers

Return of the Jedi

* Login   * Register    * FAQ    * Search

Join us on IRC: #bh@irc.synirc.net (or Mibbit Web IRC)


MuleFactory


It is currently Wed Jun 19, 2013 5:57 am


All times are UTC [ DST ]





Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: D2 Recording src [outdated]
PostPosted: Sun Dec 12, 2010 10:55 am 
 
BHDev
BHDev
User avatar

Joined: Sun Apr 29, 2007 6:58 pm
Hey there,

I've been recently(well on October I think) working on some D2 project, but I've never finished it.
The idea of this project was to record the D2 gameplay via packets and adding the ability to browse/replay the records, I.E like strategy games ( CoH , SC2? not sure).
Maybe it could be also used to record the packets and once there occurs some crash or new drop hack, you could have the possibility to replay the game
and or look through the packet logs, but I never got to this point. This program has still few flaws, sometimes it drops when replaying the game or
the fake server is still running while ending the game. I'd like to continue on this project, but I'm pretty busy in RL.

It turned out pretty well, the recorded file size is slim and it simulates most stuff accurately but its far from being done.

Image
Image of the control list this hack uses. I've removed the swirl as I got a headache once from it Hah.

BHDev seems like a good place to share stuff like this, as the coders here know what they are doing.

Hope someone could use some snippets from the source or even continue the project :P
Be aware! I've coded some parts of this project sloppy ( always thinking I'll improve it later, but it never happens lol ).

Main credits D2bs.
Source:
http://www1.zippyshare.com/v/94106567/file.html
http://speedy.sh/uT3G5/D2TT.rar


Last edited by Gnarmock on Wed Feb 08, 2012 10:09 pm, edited 2 times in total.
Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Sun Dec 12, 2010 4:50 pm 
 
Administrator Gold
Administrator Gold
User avatar

Joined: Fri Jul 27, 2001 1:00 am
That's awesome man.

_________________
Image

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Sun Dec 12, 2010 5:50 pm 
 
Section Leader Gold
Section Leader Gold
User avatar

Joined: Fri Sep 20, 2002 2:38 am
Location: ٩(͡๏̯͡๏)۶0x3CC4E7C0 CHATSUBO
Very nice.

_________________
[23:04] <~Cthanukah> DM is my khaleesi. || [01:28:49] <~Cthanukah> They put their dicks in butts
DM, the DECEPTION - Lies within a lie within a lie. “Just a second-rate Snarg living in a third-rate Blizzhackers.”
Image Image
Image Image Image Image

Image

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Sun Dec 12, 2010 7:18 pm 
 
BHDev
BHDev
User avatar

Joined: Fri Dec 10, 2010 5:36 am
Location: Blizzard
Impressive work.

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Sun Dec 12, 2010 10:18 pm 
 
BHDev
BHDev
User avatar

Joined: Sun Apr 29, 2007 6:58 pm
Thanks guys, I appreciate it.

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Sun Dec 12, 2010 11:36 pm 
 
BHDev
BHDev
User avatar

Joined: Thu Aug 30, 2007 9:46 am
Cool. Could this data format be recorded server-side, for inspecting PVPGN games and whatnot?

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Mon Dec 13, 2010 12:18 am 
 
BHDev
BHDev
User avatar

Joined: Sun Apr 29, 2007 6:58 pm
zeiris2 wrote:
Cool. Could this data format be recorded server-side, for inspecting PVPGN games and whatnot?


This would need lots of client modification if you mean to visualize the recorded data. The data format could handle it as its just a header followed by packet size, packet content and packet interval.
You could use the files to generate statistics for weird behavior of course. The packets are saved in compressed form though.

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Mon Dec 13, 2010 5:31 am 
 
Moderator
Moderator
User avatar

Joined: Thu Apr 30, 2009 12:31 pm
Location: %scrdir%
Nice work :), though didn't pro_tech get something like this going? :p

_________________
Learn C++, not Crap++ http://tinyurl.com/so-cxxbooks
Hackito Ergo Sum
Cthulhon: No, I am a dancer. I am in charge of popping and locking.

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Mon Dec 13, 2010 6:02 am 
 
Section Leader Gold
Section Leader Gold
User avatar

Joined: Fri Sep 20, 2002 2:38 am
Location: ٩(͡๏̯͡๏)۶0x3CC4E7C0 CHATSUBO
Something *like* this if you're referring to his bots, but not this I don't think.

On that note, he should have access here as well methinks.

_________________
[23:04] <~Cthanukah> DM is my khaleesi. || [01:28:49] <~Cthanukah> They put their dicks in butts
DM, the DECEPTION - Lies within a lie within a lie. “Just a second-rate Snarg living in a third-rate Blizzhackers.”
Image Image
Image Image Image Image

Image

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Mon Dec 13, 2010 2:54 pm 
 
Moderator
Moderator
User avatar

Joined: Thu Apr 30, 2009 12:31 pm
Location: %scrdir%
Dark_Mage- wrote:
Something *like* this if you're referring to his bots, but not this I don't think.

On that note, he should have access here as well methinks.
I remember him saying something specifically about capturing packet streams and using them for game replays on VL.

_________________
Learn C++, not Crap++ http://tinyurl.com/so-cxxbooks
Hackito Ergo Sum
Cthulhon: No, I am a dancer. I am in charge of popping and locking.

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Mon Dec 13, 2010 3:36 pm 
 
BHDev
BHDev
User avatar

Joined: Thu Dec 27, 2007 5:30 pm
This is insane.

I assume it only registers the packet stream from the server.

Any problems with client desynchronization?

Form the video it seems like it works good, i'm just wondering if you had to hack some things up.

_________________
Valuable No-tier user

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Mon Dec 13, 2010 4:03 pm 
 
BHDev
BHDev
User avatar

Joined: Sun Apr 29, 2007 6:58 pm
dezimtox wrote:
This is insane.

I assume it only registers the packet stream from the server.

Any problems with client desynchronization?

Form the video it seems like it works good, i'm just wondering if you had to hack some things up.


Yeah, it saves the packets from the GS with the interval between the next packet. I had to add some stuff like walking/running or UI opening/closing.
The client does actually nothing while replaying the game, the fake server sends the instructions to the client. I've noticed some desynchronization while
loading the game, like if it takes the client longer to load the game than before, as the server will send already instructions from a different time period than where the
client is. But this could be simply fixed I think.

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Mon Dec 13, 2010 6:11 pm 
 
Moderator
Moderator
User avatar

Joined: Thu Apr 30, 2009 12:31 pm
Location: %scrdir%
Thats easily fixed by waiting for the client ready packet before streaming data

_________________
Learn C++, not Crap++ http://tinyurl.com/so-cxxbooks
Hackito Ergo Sum
Cthulhon: No, I am a dancer. I am in charge of popping and locking.

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Mon Dec 13, 2010 6:32 pm 
 
Section Leader Gold
Section Leader Gold
User avatar

Joined: Fri Sep 20, 2002 2:38 am
Location: ٩(͡๏̯͡๏)۶0x3CC4E7C0 CHATSUBO
TheUnknownSoldier wrote:
Dark_Mage- wrote:
Something *like* this if you're referring to his bots, but not this I don't think.

On that note, he should have access here as well methinks.
I remember him saying something specifically about capturing packet streams and using them for game replays on VL.


I didn't think he actually did it, but you're probably right. I added him so I'm sure he'll pip in when he notices.

Gnarmock, I added this to a non-accessible folder on BHFiles for archiving purposes just so you know.

_________________
[23:04] <~Cthanukah> DM is my khaleesi. || [01:28:49] <~Cthanukah> They put their dicks in butts
DM, the DECEPTION - Lies within a lie within a lie. “Just a second-rate Snarg living in a third-rate Blizzhackers.”
Image Image
Image Image Image Image

Image

Top
 Profile  
 Post subject: Re: Some D2 project which I've been working on (src)
PostPosted: Wed Jan 12, 2011 7:25 pm 
 
BHDev
BHDev
User avatar

Joined: Thu Dec 27, 2007 5:30 pm
Link expired -_-

I'm gonna use this to debug my bot
Can you post the exact formatting you used for the game files??? (Would be cool so i don't have to look through your code :P)

_________________
Valuable No-tier user

Top
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 23 posts ]  Go to page 1, 2  Next

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron