Phalynx / WoT-Replay-To-JSON

Extract JSON data and Chat from Replays
http://wiki.vbaddict.net
GNU General Public License v3.0
49 stars 17 forks source link

Replay with medals ID 41 to 47 throws error #5

Closed MiChAeLoKGB closed 10 years ago

MiChAeLoKGB commented 10 years ago

Hi,

I tried to decompile this replay: http://wotreplays.com/site/475956 for debuging and got this error:

{
    "common": {
        "message": "unpack requires a string argument of length 4", 
        "parser": "WoT-Replay-To-JSON 0.9.0.7 by http://www.vbaddict.net", 
        "status": "error"
    }, 
    "identify": {
        "arenaUniqueID": 0
    }
}

Whats interresting is, that when I use older version of decompiler 0.8.11.2, then it works.

Phalynx commented 10 years ago

Cannot confirm that: "common": { "datablock_1": 1, "datablock_2": 1, "datablock_advanced": 1, "datablock_battle_result": 1, "message": "ok", "parser": "WoT-Replay-To-JSON 0.9.0.7 by http://www.vbaddict.net", "replay_version": "0.8.9.0", "status": "ok" }, "datablock_1": { "battleType": 1, "clientVersionFromExe": "0, 8, 9, 0", "clientVersionFromXml": "World of Tanks v.0.8.9 #554", "dateTime": "11.12.2013 20:53:51", "gameplayID": "domination", "mapDisplayName": "Himmelsdorf", "mapName": "04_himmelsdorf", "playerID": 503660391, "playerName": "DeathByCake", "playerVehicle": "germany-E-75", .....

MiChAeLoKGB commented 10 years ago

Well, Im using the latest version downloaded from here and it does not work for me. Still getting same error as I posted in first post.

Phalynx commented 10 years ago

Which parameters did you used? I used "-a -chat". Make sure you download the newest version.

MiChAeLoKGB commented 10 years ago

Im not using any parameters, and yes, Im sure its newest version.

Phalynx commented 10 years ago

As I cannot confirm that with the replay you linked me, I cannot fix it.

MiChAeLoKGB commented 10 years ago

Thats really weird. Could you send me the file youre using to decompile it? Also, Im not decompyling it on my PC but on web-server trough PHP exec.

Phalynx commented 10 years ago

Provide me an eMail Address so I can attach it.

MiChAeLoKGB commented 10 years ago

....

Phalynx commented 10 years ago

File has been sent.

MiChAeLoKGB commented 10 years ago

Well thats extremly weird then..... for me it just doesnt work at all. Other replays work normally, but this one doesnt. Are you sure youre using same wotrp2j.py file as I do (the one uploaded here)? As I just dont get it.

Phalynx commented 10 years ago

Yep, same version.

MiChAeLoKGB commented 10 years ago

Might be the problem here (I dont think so, as it works for other replays)?

#filename_target = os.path.splitext(filename_source)[0]
#filename_target = filename_target + '.json'
filename_target = filename_source.split('/')
filename_target = '/data/web/domain.ext/sub/name/replays/replays/json/'+ filename_target[-1]
filename_target = os.path.splitext(filename_target)[0]
filename_target = filename_target + '.json'

Also, thats how its executed:

$output = array();
exec("python /data/web/domain.ext/sub/name/replays/scripts/wotrp2j.py /data/web/domain.ext/sub/name/replays/replays/wotreplay/$filename.wotreplay", $output);
MiChAeLoKGB commented 10 years ago

Ok, so I tried it with my friend and it works for him on the PC, but it doesnt work on 2 different servers I tried. Do you have an idea why? Are there any requirements for this to run? Server has Python 2.6 installed. But still, why it doesnt run on replays with lavrinenkos medal, but it does for replays without it.