Welcome, Guest. Please Login
Back to main page
  News:
Welcome to the ShadowFlare's Realm Forums. New registrations are by request only. To be considered for a new forum account, send an e-mail with the user name and display name you want and the reason you want to register.
  Home SFRealm HelpSearchLogin  
 
Pages: 1
Send Topic Print
I just want text plz (Read 4590 times)
rush4hire
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 2

I just want text plz
Aug 22nd, 2005, 6:22pm
 
I see all this stuff about decoding the text . how do I get the text in the first place ?

If I open a replay with like programmer's notepad or conTEXT . all i get is this kinda stuff.

Code:
Warcraft III recorded gameR䜫<SϳRk2!yͫX3.Ck%hc5Il4M.<xO.{6Y^..wpCp#fheF.|.2I.Gq.
.۵.g..|..uע~..-[Y|݊_UrDQB.ט.ʹ.V..K8T...j?|j_.t\/z2҈r㵑p.B>}G. +rG0XF.p=dv.].f.7.ri.5O8r.-.5*{a7/
O^..M;.XQDڐ.oqf5Uh5JS.Pl+ټAN<Y_.jf$.x-r...$.ǐ.'Q{s]H@pەto=.VSgrXؼA?4$$L~p .{ؔ)SKӄDc\".
#:.WU.X4X.NԔ]mr|}?P.o+.|1Jk.>͠Ũׯ}H{k6_pt; 


then If i view in html I get this
Code:
Warcraft III recorded gameR&#255;&#244;&#228;&#156;&#171;&lt;&#158;S&#207;&#179;&#180;&#136;Rk&#185;2&#154;&#234;!y&#251;&#205;&#171;&#197;X&#215;&#231;3.&#239;Ck%&#235;&#186;h&#225;c5&#139;&#158;Il&#158;4&#134;&#221;M&#152;&#141;.&lt;x&#175;&#225;O.{6Y^&#218;..w&#190;p&#135;&#203;Cp&#201;&#219;#fheF&#236;&#217;.|&#243;&#199;.&#139;2&#193;&#163;&#222;I&nbsp;.G&#181;&#188;&#205;q&#180;.&#207;
.&#213;&#219;&#181;.g&#243;&#238;.&#186;.|.&#163;&#211;.u&#178;&#215;&#162;&#199;~&#247;..-[Y|&#221;&#138;_&#215;Ur&#237;DQB&#212;.&#252;&#215;&#152;.&#205;&#180;&#182;&#223;.V&#155;.&#188;&#178;&#205;&#247;.K&#232;8&#228;&#230;&#174;&#231;&#156;T..&#153;.&#206;j?&#130;&#183;|j&#141;&#181;&#211;_&#138;&#191;&#225;&#172;.&#239;&#157;t&#139;&#163;&#251;&#217;&#249;&#200;&#206;\/z&#148;2&#247;&#145;&#210;&#136;&#224;r&#227;&#181;&#145;&#132;p.B&#184;&#143;&#163;&gt;}G&#201;&#242;.&#158;&#152; +&#206;&#201;r&#134;G0X&#190;&#239;&#155;F.&#224;&#236;&#243;&#223;p=d&#179;v.]&#163;&#134;.&#181;&#231;f&#201;.&#226;7.r&#223;i&#147;.&#174;5&#146;O&#178;8&#171;r&#201;.-.5*{&#255;&#230;a&#188;&#235;&#152;7/
 



I just want those things that are interpreted as actions and such. And I'll work from there.
thx
Back to top
 
 
  IP Logged
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84

Re: I just want text plz
Reply #1 - Aug 26th, 2005, 5:05pm
 
It's not that simple dude Wink What you need is a hex editor, but don't expect ur gonna see stuff like "here is action 0x19, blabla". You will see only numbers and you have to interpret them in a correct way. You can't think of files as of "text". They're not text, even if you see it like that. They are all numbers. A file with "I am a little file" written in it is also only numbers. Read something about ASCII codes if you don't understand what I'm talking about.
BTW w3g files are packed with zlib, so you have to unpack the whole thing before you can view it's structure.
Back to top
 
 
WWW 64994211   IP Logged
rush4hire
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 2

Re: I just want text plz
Reply #2 - Aug 28th, 2005, 9:25am
 
Ok thanks.

I thought they where zipped in something . I saw unpack function in your scripts . and when I get time I'll try to make it print this data out.

I'm still studying PHP though.

I finally got these scripts to load in apache . i figured out there are 3 required files . 1.) example (or index but i dunno) . 2.) w3g-julas.php and 3.) w3g-julas-convert
and of course the css and img folder.

I see great potential in this . it's just gonna take a LONG time to adapt it for custom maps like dota. Shocked

All just to make work in TDA bans forum go more efficiently . all so kids can play dota games in peace . lol
:'(
Back to top
 
 
  IP Logged
Fireblade
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 1

Re: I just want text plz
Reply #3 - Sep 24th, 2005, 1:59am
 
Hey rush4hire,

I'm writing a parser for DotA replays using Perl. I've got the basic parsing and extraction of game name, players/colors, chat text, leaver events, etc. It's still in a pretty crude form as it just outputs text right now, but it wouldn't be hard to modify it to output HTML or whatever.

Do you have an idea what data you want and how you want it to look? Is this just something you want to post on the dota-allstars forums, or a separate page?
Back to top
 
 
  IP Logged
wulfskin
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 30
Germany
Gender: male
Re: I just want text plz
Reply #4 - Sep 27th, 2005, 1:38pm
 
What is Dota?
Back to top
 
 
82940309   IP Logged
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84

Re: I just want text plz
Reply #5 - Sep 27th, 2005, 2:23pm
 
If you knew what is Google, you would know what is DotA.
Back to top
 
 
WWW 64994211   IP Logged
wulfskin
Peon
*
Offline

I love YaBB 1G -
SP1!

Posts: 30
Germany
Gender: male
Re: I just want text plz
Reply #6 - Sep 27th, 2005, 3:35pm
 
[quote author=Julas.wtfwrongpass  link=1124727753/0#5 date=1127827387]If you knew what is Google, you would know what is DotA. [/quote]You're right, but not very friendly...
Back to top
 
 
82940309   IP Logged
Pages: 1
Send Topic Print