silicontrip / skyreader Goto Github PK
View Code? Open in Web Editor NEWA Skylander portal reader/editor/writer for OSX.
A Skylander portal reader/editor/writer for OSX.
when i do amke it gives me this gcc -c -o hid.o hid.c
hid.c:25:10: fatal error: IOKit/hid/IOHIDManager.h: No such file or directory
#include <IOKit/hid/IOHIDManager.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
Makefile:19: recipe for target 'hid.o' failed
make: *** [hid.o] Error 1
So i have been trying to use this in mac OSX Version 10.11.6 El Capitan But i cant find out how to make the application if anyone can provide me with some info Or the application file. I have XCode installed
Thank you so much in advance!
question if there will ever be en newer release.
I having trouble getting the editor to work correctly. I have tried a Swap Force portal for XBox 360 and a Trap Team portal for PS4, and neither one works correctly.
The XBox 360 portal isn't found by the editor.
The PS4 Portal does identify but, it doesn't read any character data.
The PS4 Console log says, "Reading Skylander"
Then it says,
"Found portal usb device"
Then nothing happens
Is there a particular portal I should use to make this work? What Game and System?
How do you compile this under linux? I tried the @capull0 fork and I tried running the link command ahead of running make, but that one won't install either. For that one, for which I cannot find an [issue] tab, I get this when running make:
make: Makefile: No such file or directory
make: *** No rule to make target 'Makefile'. Stop.
This looks amazing but it's way beyond me at this point, I've got some experience with Java but that's about it.
Is there a step-by-step for noobs on what to download and how to compile everything? Better than that is there a complied version I can sink hours of testing into and report back?
I've downloaded Netbeans and I read that it can be used to compile C++, and I have visual studio 2012 in my download queue. I also have three ports currently at my disposal from various platforms/games and a bunch of figs.
I'll keep plugging away on my own but any and all help will be greatly appreciated :)
title
Hi... any help appreciated in getting this compiled on my raspbian OS.
My basic usage case is simple enough - read the placed Skylander on the portal - and trigger an action via python or bash.
The thing compiled but I can't detect the wii swapforce portal. When I do ./editor -p -o WHY.bin
it just spouts out:
"Reading Skylander
1256:26716
7531:2
7531:1
5168:336
0007:0006:00
7531:1
7531:1
3034:33138
7531:2
7247:101
0005:0002:00
7531:1
16700:8453
0002:0002:00
7531:1
7531:1
1256:26716
7531:2
7531:1
5168:336
0007:0006:00
7531:1
7531:1
3034:33138
7531:2
7247:101
7531:1
16700:8453
7531:1
7531:1
Cannot Find Portal USB".
And When I run as root i get:
"Reading Skylander
7531:2
7531:1
5168:336
0007:0008:00
7531:1
7531:1
3034:33138
7531:2
7247:101
0005:0002:00
7531:1
16700:8453
0002:0002:00
7531:1
7531:1
7531:2
7531:1
5168:336
0007:0008:00
7531:1
7531:1
3034:33138
7531:2
7247:101
7531:1
16700:8453
7531:1
7531:1
Unable to write to Portal".
Does this mean anything? And can I do anything?
can someone please give me a pre build version for windows or mac i cant make it
Hi everybody!
I need some help:
I try to run Skylanders Swap Force on my Windows 10 PC on Cemu. I have already a portal for Wii. When I stick the portal on my PC then I hear the sound, which Windows plays, when you stick an USB on the PC. But cemu says, that there is no portal.
What I have to do, that cemu is detecting the portal? Is there any driver needed?
I have a Wii portal, Skylanders for Wii U, cemu on version 1.11.2 and an Asus PC, R55SL series.
Thx for your help.
I tried using both the Skylanders Giants and Swapforce portals and neither are detected by the hidapi package. lsusb
shows bDeviceClass
and ```bInterfaceClass` are 255 (Vendor) instead of 3 (HID). I believe this is why they are not recognized. I believe I installed the hidapi software correctly as the hidtest program that comes with the package is able to detect a USB mouse without issue.
Any advice?
I have tried both a Swap Force portal, as well as a Giants portal, both fail to be located with the error "Cannot Find Portal USB.". The output of lsusb for the Giants portal is "Bus 002 Device 003: ID 1430:0150 RedOctane wireless receiver for skylanders wii".
The program works fine for editing a existing dump file, but portal interactions fail.
Hello all,
Some one attempted to contact me via facebook and facebook somehow managed to completely erase the message before I got a chance to completely read it and respond.
Could the person contact me again, preferred via; [email protected] either email or hangouts.
Thanks!
I'm running on Windows 10 x64, and have tried running both capull0 and sigmadolphin's forks, but was curious if this software was ever capable of writing to the top half of any Skylander? I can access the bottom without issue, but the bottom portion's values are largely ignored. (That part has no money/XP/hat/etc)
How to launch on Windows?
When I try to edit Swap Force skylanders, I keep getting red squares. And sometimes, even if the squares are all green, the game still thinks it's corrupted. Is there something I can do? The only swapper to work fine is Blast Zone.
I'd really like to be able to do this and learn about code and stuff, but I have almost no idea how to. I on macOS (M1 chip) and have Wii trapforce, swapforce, and gaints portals. Any help would be greatly appreciated, Thanks!
Hi everyone
First sorry for my bad english
I have Compiled Skyreader on Windows 8.1, and that works fine so far. I call the "Skyreader.exe" via BAT/CMD.
That also works fine for me, and Backup and Editing of Figures, and whrithing back, also works.
Now my Question is, has anyone success doing that wiht Vehicles or Kristals?
I know there are new Checksums and also new Adresses, but im not able to get anything to work with these. I Hope somewone can Help me out?
Thanks alot for any Help
Best regards
Hy, when i compile to xcode i have this error
clang: warning: libstdc++ is deprecated; move to libc++ with a minimum deployment target of OS X 10.9
Undefined symbols for architecture x86_64:
"Skylander::toyName(unsigned short)", referenced from:
SkylanderIO::listSkylanders() in fileio.o
Skylander::getToyTypeName() in skylander.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
I was wondering if there is a method to store infos from one toy, and upload them to another toy (which is'n the same skylander).
Ex: save spitfire datas and upload them to stealth elf
I tried to do that by doing:
editor -p -o spitfire.bin
with spitfire toy on the portal and then i did:
editor -i spitfire.bin -P
with stealth elf toy but i got this error:
Unknown exception: 22.
Any ideas?
Trying to use this on Linux and get the following error (portal from Spyro Adventures, 1430:0150)
"Unable to write to Portal."
Permissions on hidraw seem to be ok:
crw-rw-rw- 1 root root 249, 4 Sep 28 09:45 /dev/hidraw4
This happens in RestartPortal, as hid_write returns -1. libexplain gives the following output for write syscall:
write(fildes = 3 "/dev/hidraw4", data = 0x7FFFB369C890, data_size = 33) failed, Protocol error (71, EPROTO)
Is there more documentation on the portal protocols?
Hi - do you have any documentation for the command set used by the portal?
I've setup a Pi for home-automation so my kid can turn his lights on-and-off using figures on the connected portal - but all I'm able to do right now is read the figure once-per-second looking for either data or an empty portal.
Since RFID tags have a limited (albeit long) lifespan even for reads, I'd love to be able to fork the code and write something which constantly monitors the portal looking for a "figure added" and "figure removed" events - so I can limit the number of reads.
Any details you have would be really appreciated!
Thanks
Bob
Hi! I'm new here and would really like to try this out. The only thing is that I have no experience with coding or anything of that nature. Could you help me out? I'm using windows 10 and I have ps3 portal, if that helps any.
pls help me i dont know how to open it and when i try teh command it say that it doesn't exist
I don't know what HIDAPI is or how to use it. I built HIDAPI, and have hidapi.dll in the System32 folder, but i don't know what to do from there. I have a version of Skyreader i found in the comments section of Youtube, because I couldn't build it correctly, so that might be a problem. All I really want are some instructions on how to make both of these work.
Hi,
here the offsets for level > 10:
0x08 0x24 0x00 0x03 24-bit experience/level value. Maximum 33000 here. (up to level 10) -> xp1
0x11 0x2D 0x03 0x02 16-bit experience/level value. Maximum 63500 here. (level 11 - 15) -> xp2
0x11 0x2D 0x08 0x03 24-bit experience/level value. Maximum 99200 here. (level 16 - 20) -> xp3
if (xp > 96500) {
xp1 = 33000;
xp2 = 63500;
xp3 = xp - xp1 - xp2;
} else if (xp > 33000) {
xp1 = 33000;
xp2 = xp - 33000;
} else {
xp1 = xp;
}
I know this doesn't really belong in the Issues section, but I'd like to help with this project and I have no idea how to use HID API. Do you have instructions I could follow to get this project working? I've been trying on both Mac and Windows. Thanks.
i can see the work you did so far is more than amazing. Unfortunately i am not very familiar with C++, and i cant use your code.
so in xcode i pressed the "play button" to run Skyreader.xcodeproj and the console only output what you have in the readme. i then opened a terminal inside the skyreader-master folder (where the main.cpp is) and typed make, but it gives back an error "ld: library not found for -lusb-1.0" and i did download libusb and put the libusb.h file inside the master folder (along with all the cpp & h files) but it still gives back the same error.
do you mind giving instructions on how exactly to work it, as this is beyond my scope of knowledge really.
Wii wired portal on MacOS (i also have a windows laptop and tried there but ran into much more complicated issues).
Thanks in advance!
Any build instructions for linux (Ubuntu)? My build fails on some IOKit #includes which seem to be part of an apple/xcode project.
Im using a Giants wii portal on pc i used it for dolphin so i had changed the drivers but it didnt work with them so i reverted them back to original by uninstalling them as said to do by someone on youtube and it still says portal not found. So what drivers do i need to get it to work.
I don't know if I'm just stupid but I have absolutely no idea how to work open this. I don't know if you have to build the program , I only think this because of the other 'Issues' that I was reading, and when I tried to use the files that dragoonlord82 was giving to other people having a similar issue to me the files just never opened or they opened for a split second and then just closed instantly. I also tried looking online but I couldn't find anything on how to download or open this file. If someone would be able to help me I would greatly appreciate it.
I have been trying to determine how the checksums are calculated. So far, I only know that the the first check for Area 0 (Header) is all the bytes from Offset 00 to Offset 1D. But the other checksums, I don't know how to calculate.
I know most checksums are a CRC16-CCITT with a Polynom of X^16 + X^12 + X^5 + 1 as it's initial value. The source code talks about pulling bytes from various offsets but I can't determine where those offsets are or what bytes are being read to calculate the checksums.
I also know the MD5 hash used for the AES Encryption method uses, the header data of the figure, one byte of something and several bytes that says an ASCII message. But, I don't know how to get that One Byte thing that goes between the Header and the ASCII message. What is that Byte? Where does that come from?
The decryption and checksum methods work. I just want to understand how they work.
Hi,
not all blocks after 0x08 are encrypted.
here the diff:
diff --git a/crypt.cpp b/crypt.cpp
index dad77f3..ec39e06 100644
--- a/crypt.cpp
+++ b/crypt.cpp
@@ -19,7 +19,8 @@ int Crypt::IsAccessControlBlock(unsigned int blockIndex) {
}
int Crypt::ShouldEncryptBlock(unsigned int blockIndex) {
- if ((blockIndex >= 8) && (IsAccessControlBlock(blockIndex) == 0)) {
+ //if ((blockIndex >= 8) && (IsAccessControlBlock(blockIndex) == 0)) {
+ if ((blockIndex >= 0x08 && blockIndex <= 0x15 && IsAccessControlBlock(blockIndex) == 0) || (blockIndex >= 0x24 && blockIndex <= 0x31 && IsAccessControlBlock(blockIndex) == 0)) {
return 1;
}
return 0;
I used the command in the file and I get this message:
g++ -g checksum.o fileio.o md5.o rijndael.o crypt.o skylander.o toynames.o main.o hid.o portalio_hidapi.o -static -static-libgcc -static-libstdc++ -lsetupapi -o bin\editor c:/mingw/bin/../lib/gcc/mingw32/6.3.0/../../../../mingw32/bin/ld.exe: cannot open output file bin\editor.exe: No such file or directory collect2.exe: error: ld returned 1 exit status Makefile.mingw:16: recipe for target 'editor' failed mingw32-make: *** [editor] Error 1
In another issue I saw someone else get this message but they never got a responce. What am I doing wrong?
So I've had a portal laying around doing nothing for forever now and decided to mess with it. No Skylanders to scan but hey there's an RGB LED!
After digging around I noticed this project and https://github.com/capull0/SkyDumper both use the portalio.cpp code for setting color. I noticed it was sending the C command and the three subsequent RGB values to the device via the hidapi. Not being very (or at all) skilled in C++, I set out to implement the color code externally.
I'm still working on getting something going with Python + PyUSB but still a ways off.
I did however do a little usbmon sniffing in wireshark to see what exactly Sky{Reader,Dumper} was doing to set the color. I noticed it sends the R (reset) and A (activate) commands before sending the C + 3 byte RGB. Where I'm at now is that AFTER I have used the portalio code once to set the color, I can then do it manually via usbtool.
sudo usbtool -v 0x1430 -p 0x0150 -d 0x43,0xFF,0xFF,0xFF control out 0x1 0x01 9 0x0200 0
The control variables were ascertained out of the wireshark dump I ran. I have been unlucky in trying to send the R and A beforehand, so my current method of starting control is running the dumper tool once just so it initializes it.
I guess my question after all of this is: Any tips on trying to send the R and A myself? Ultimately my goal is to implement all this in the aforementioned Pyhton + PyUSB. (I've tried the R and A both in PyUSB and usbtool but have come up short for solutions)
Hi,
i have a understandable problem,
with the windows version, all is ok, no problem.
with this version compiled with xcode, impossible to get a normal decrypted dump.
By logic, all checksums except type 0 are bad
i have modified code to show the buffer content before and after decrypt, but the data still non readable.
this occurs with files (crypted dumps) and with 3 different portals, together with many figurines
did you have any idea ?
Thanks.
ps: i can "create" others toys based on one toy on fresh new badges, this works great with windows version and some tricks, i probably include possibility to this code as a fork or directly to the author.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.