atomizer / muledump

all your mules are belong to you
84 stars 144 forks source link

Changing the source for the data to be parsed by muledump #20

Closed trapped closed 10 years ago

trapped commented 11 years ago

Basically, since some time there has been that private server thing for RotMG. What I want to do is simply changing the server that the Yahoo APIs will connect to (in the muledump.js file) and show stuff in the same way as on official servers, but many information won't show up. This is an example output of the /char/list request:

<Chars nextCharId="463" maxNumChars="4"><Char id="1"><ObjectType>782</ObjectType><Level>20</Level><Exp>33391</Exp><CurrentFame>33</CurrentFame><Equipment>3075, -1, 2656, 2765, 2594, -1, -1, -1, -1, 4087, -1, -1</Equipment><MaxHitPoints>670</MaxHitPoints><HitPoints>810</HitPoints><MaxMagicPoints>385</MaxMagicPoints><MagicPoints>425</MagicPoints><Attack>75</Attack><Defense>25</Defense><Speed>50</Speed><Dexterity>40</Dexterity><HpRegen>60</HpRegen><MpRegen>75</MpRegen><Tex1>0</Tex1><Tex2>0</Tex2><PCStats>eNoVyskJgEAUA9Co476MuxYhnixB7MgybGsaECxFPJoc8kj4H8DpPGD7fABrANyXYTMhQcQ8MXkTsqfkyHTI9VIQW2pWwopaNKIVneiZZVAbxSRm8QPKMQe7</PCStats><Dead>false</Dead><Pet>-1</Pet></Char><Char id="256"><ObjectType>784</ObjectType><Level>20</Level><Exp>6502962</Exp><CurrentFame>6502</CurrentFame><Equipment>2879, 3102, 2823, 3110, -1, -1, -1, -1, -1, -1, -1, -1</Equipment><MaxHitPoints>670</MaxHitPoints><HitPoints>710</HitPoints><MaxMagicPoints>385</MaxMagicPoints><MagicPoints>455</MagicPoints><Attack>50</Attack><Defense>25</Defense><Speed>50</Speed><Dexterity>40</Dexterity><HpRegen>75</HpRegen><MpRegen>50</MpRegen><Tex1>0</Tex1><Tex2>0</Tex2><PCStats>eNpjYGB4NZ2RgcElhImBgfkSMwOrkSELAwODASuQYGBjYAy0ZGdgDNrLwcAQks4JJI5zMTCwL-MGSnLyAAl_XpA6PhDBDyIEQIQgiBACEcJAzCzCwMCoIwriioEIcRAhASIAMIEJWQ==</PCStats><Dead>false</Dead><Pet>5120</Pet></Char><Account><Rank>4</Rank><AccountId>38</AccountId><Name>Trapped</Name><NameChosen>True</NameChosen><Admin>True</Admin><VerifiedEmail>True</VerifiedEmail><Locked /><Ignored /><Credits>0</Credits><NextCharSlotPrice>0</NextCharSlotPrice><BeginnerPackageTimeLeft>0</BeginnerPackageTimeLeft><Vault><Chest>2867, 2613, 2591, 2612, 3114, 2787, -1, -1</Chest></Vault><Stats><BestCharFame>6502</BestCharFame><TotalFame>100</TotalFame><Fame>5</Fame><ClassStats objectType="782"><BestLevel>20</BestLevel><BestFame>33</BestFame></ClassStats><ClassStats objectType="784"><BestLevel>20</BestLevel><BestFame>6502</BestFame></ClassStats></Stats><Guild id="1"><Name>Developers</Name><Rank>40</Rank></Guild></Account><News><Item><Icon>info</Icon><Title>Post Ideas Here!</Title><TagLine /><Link>http://mmoe.net/Forums/Main/forums/ideas.57/</Link><Date>1406167209</Date></Item><Item><Icon>info</Icon><Title>Abusers of Effusion Glitch, read here</Title><TagLine>Read here, very important</TagLine><Link>http://mmoe.net/Forums/Main/threads/attention-dex-effusion-abusers.766/</Link><Date>1375321850</Date></Item><Item><Icon>info</Icon><Title>New Client: v0.5.2</Title><TagLine>Click here for a direct download!</TagLine><Link>https://www.dropbox.com/s/kd7xqvmf0u5bgg8/pserv.swf</Link><Date>1374927896</Date></Item></News><Servers><Server><Name>Empire World Public Server</Name><DNS>IP_For_Public_Server</DNS><Lat>22.28</Lat><Long>114.16</Long><Usage>0.2</Usage><RankRequired>0</RankRequired></Server><Server><Name>Empire World Donator Server</Name><DNS>localhost</DNS><Lat>22.28</Lat><Long>114.16</Long><Usage>0.2</Usage><RankRequired>1</RankRequired></Server><Server><Name>Jamie Testing</Name><DNS>CENSORED</DNS><Lat>22.28</Lat><Long>114.16</Long><Usage>0.2</Usage><RankRequired>3</RankRequired></Server><Server><Name>Trapped Testing</Name><DNS>CENSORED</DNS><Lat>22.28</Lat><Long>114.16</Long><Usage>0.2</Usage><RankRequired>4</RankRequired></Server><Server><Name>C453/Testing</Name><DNS>CENSORED</DNS><Lat>22.28</Lat><Long>114.16</Long><Usage>0.2</Usage><RankRequired>1</RankRequired></Server><Server><Name>Trav Hamachi</Name><DNS>CENSORED</DNS><Lat>22.28</Lat><Long>114.16</Long><Usage>0.2</Usage><RankRequired>1</RankRequired></Server><Server><Name>Donran Testing</Name><DNS>CENSORED</DNS><Lat>22.28</Lat><Long>114.16</Long><Usage>0.2</Usage><RankRequired>1</RankRequired></Server><Server><Name>Localhost</Name><DNS>127.0.0.1</DNS><Lat>22.28</Lat><Long>114.16</Long><Usage>0.2</Usage><RankRequired>3</RankRequired></Server></Servers><Lat p2:nil="true" xmlns:p2="http://www.w3.org/2001/XMLSchema-instance" /><Long p2:nil="true" xmlns:p2="http://www.w3.org/2001/XMLSchema-instance" /></Chars>

Any idea?

Nightfirecat commented 11 years ago

How does that response differ from the /char/list response from realmofthemadgod.appspot.com's?

trapped commented 11 years ago

Theorically it shouldn't, althought I'm not sure that (being the server emulator different in some aspects from the normal server) the IDs for chests and stuff like that is the same. This is an example muledump (latest version, however I tried to use the old one for 123+) http://prntscr.com/1jzrkz Thanks for the help.

atomizer commented 11 years ago

Please try latest changes. I cant do anything about your server using custom items.

trapped commented 11 years ago

You could documentate muledump's source, allowing me to edit it.

Nightfirecat commented 11 years ago

"documentate"?

MD's source isn't incredibly hard to read, and it doesn't have any 'magic functions' that just work... Take the time to read through his source and understand how it works, and you'll know what to change.

mrinference commented 10 years ago

What if you don't want to download anything not even a muledump file?

Nightfirecat commented 10 years ago

@Cloudkit What? You can view each of the files through your browser on GitHub; I'm not sure what you're asking.

mrinference commented 10 years ago

I'm asking if you have to download anything because my computer is already slow enough

Nightfirecat commented 10 years ago

Why do you think that downloading Muledump would slow it down further?

atomizer commented 10 years ago

I'm not sure what is going on in here, but the original issue seems to be fixed and/or not relevant anymore. @Cloudkit: When you close the page, muledump has zero overhead on your computer (= it will not be "slower"). If you want, open a new issue.