forked from Iskuri/Disney-Infinity-and-Skylanders-Lighting
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated infinity lights and played with writing data
- Loading branch information
christopher
committed
Mar 15, 2015
1 parent
cd9db6b
commit 187d872
Showing
13 changed files
with
2,139 additions
and
531 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
<?php | ||
|
||
$packetDump = file_get_contents("writePacketDump2"); | ||
|
||
$lines = explode("\n",$packetDump); | ||
|
||
$started = false; | ||
|
||
$setups = array(); | ||
|
||
$setupsCount = 0; | ||
|
||
$setupNames = array("sheep creep", "broccoli guy", "chompy mage", "cuckoo clocker"); | ||
|
||
foreach($lines as $line) { | ||
|
||
if(!$line) { | ||
continue; | ||
} | ||
|
||
$split = explode(":",$line); | ||
$data = explode(" ",trim($split[1])); | ||
$dataBin = array(); | ||
|
||
if($data[0] == '57') { | ||
$started = true; | ||
} | ||
|
||
if($started == true) { | ||
|
||
if($data[0] == '57' || $data[0] == '51') { | ||
$setups[$setupsCount][] = trim($split[1]); | ||
} else { | ||
$setupsCount++; | ||
} | ||
} | ||
// foreach(explode(" ",$data) as $dataHex) { | ||
// $dataBin[] = chr(hexdec($dataHex)); | ||
// } | ||
|
||
} | ||
|
||
$keyedSetup = array(); | ||
|
||
$counter = 0; | ||
foreach($setups as $setupData) { | ||
|
||
// echo $setupNames[$counter]."\n"; | ||
// foreach($setupData as $setupLine) { | ||
// echo $setupLine."\n"; | ||
// } | ||
|
||
$keyedSetup[$setupNames[$counter]][] = $setupData; | ||
|
||
$counter++; | ||
|
||
if($counter >= count($setupNames)) { | ||
$counter = 0; | ||
} | ||
} | ||
|
||
var_dump($keyedSetup); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
57 12 09 45 e0 90 e6 45 6c f4 73 be b8 22 e6 0d db df 2a | ||
57 12 0d 3f 84 e9 22 cd 2d 49 a8 b4 e0 ac 83 54 b7 cd 77 | ||
57 12 11 86 b6 7f 43 f7 a6 83 4c 8b f5 90 c6 18 da 29 cd | ||
57 12 21 e3 2b f2 dc 6f af b5 7f 9c 67 10 0e 83 2e 9c 10 | ||
57 12 08 62 3d ee c6 05 c7 0d d9 ee 91 17 f3 30 6a 91 78 | ||
57 10 0d 5a ff 62 7f 10 12 6b 0d 81 9f 41 90 44 ce d3 6c | ||
57 10 10 4f fa a5 64 81 78 b9 f8 b3 f6 82 eb e5 6a 45 5d | ||
57 10 08 31 23 26 be 33 a3 a7 d2 2c 1a 67 bb f5 79 4b 56 | ||
57 11 29 7d 08 c5 37 49 dc 00 bf aa 4f 8a da 3c e4 c8 07 | ||
57 11 2c a4 f9 e2 66 0f bc bf 37 36 8f ac 82 07 9a 4a db | ||
57 11 24 e7 d7 03 ea cd 92 06 57 7d 57 23 47 28 43 0a 9c |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.