Comments (16)
Can you check the logs when you run it from xcode? It's been a while, but from what I recall turning on the switch should enable the advertising of the virtual portal, which Skylanders Trap Team iOS shoudl detect.
Being blank, I think that's because you don't have any tokens. Looking at the code (https://github.com/bettse/Solarbreeze/blob/master/Solarbreeze/Token.swift#L266-L284) I think you need to load .bin
files of the skylanders via iTunes file sharing (iirc this is how I did it: https://support.readdle.com/documents/transfer-share-your-files/itunes). Just to head off a potential question: Don't ask me where to get those.
from solarbreeze.
Looking at the code, I think the "second" screen is for connecting to a real portal
from solarbreeze.
I uploaded a backup of one of my figures to solarbreeze via iTunes like you suggested and it was being picked up, so thank you for that :)
Trap Team still isn't picking up solarbreeze but I'll examine xcode logs for that shortly as some other work just came up. Thank you for your quick replies, especially on such an old project :)
from solarbreeze.
interestingly my ubuntu machine's picking up the device as Skylanders Portal as the code says it should, after experimenting more, i noticed it's not being picked up by other ios devices or windows computers.
Android worked though
from solarbreeze.
My other iOS device is an iPhone 7 on iOS 15.8.2
from solarbreeze.
xcode logs weren't really reporting anything, selecting a skylander showed S 4 bytes as well as some data about my figure, but since no device with the game on it was detecting my portal, i don't assume it's working, at least not as is.
Thank you so much, if you have any other suggestions then please do let me know, I'll explore making my own since this is very interesting stuff.
from solarbreeze.
mind posting the logs? did they show that it was advertising? did it give any indication the iOS device running the game was attempting to connect?
from solarbreeze.
SkylanderToken(7686709d - Spyro xp: 33000/0/0 gold: 9736) selected
S 4 bytes
S 4 bytes
SkylanderToken(7686709d - Spyro xp: 33000/0/0 gold: 9736) selected
S 4 bytes
S 4 bytes
SkylanderToken(7686709d - Spyro xp: 33000/0/0 gold: 9736) selected
S 4 bytes
S 4 bytes
SkylanderToken(7686709d - Spyro xp: 33000/0/0 gold: 9736) selected
S 4 bytes
S 4 bytes
from solarbreeze.
Ah: maybe try uncommenting some of the prints (ex https://github.com/bettse/Solarbreeze/blob/master/Solarbreeze/BLEPortal.swift#L28 ) that I have commented out
from solarbreeze.
Thanks, tried this, no difference in the console logs
Went ahead and uncommented everything and the only difference was a => 11 bytes
following S 4 bytes
Keep in mind that I'm not using this to communicate with the portal but rather as an emulator
Also tried placing a breakpoint on that function (https://github.com/bettse/Solarbreeze/blob/master/Solarbreeze/BLEPortal.swift#L28) and it was never hit
Messing around with more breakpoints now to try and debug this as well
EDIT: gotta go, won't reply for a while
from solarbreeze.
I think I had it backwards and that might be still part of conecting to a real portal. Add print statements to https://github.com/bettse/Solarbreeze/blob/master/Solarbreeze/FakeBaseInterface.swift and that should show the ble advertisements starting when the switch is flipped.
from solarbreeze.
Yep it was showing that it is broadcasting, however when something tries to connect the XPC connection gets invalidated and it resets
I should also state that someone else got it working on two devices running i believe iOS 10
from solarbreeze.
I should also state that someone else got it working on two devices running i believe iOS 10
Good to hear
connect the XPC connection gets invalidated and it resets
Probably need to google to debug that one. Could it be permissions or entitlement or something? the code is from before they made developers add things to info.plist for BLE permission
from solarbreeze.
Will do! I'll reply to this thread if I get it working
from solarbreeze.
Does #4 basically close this?
from solarbreeze.
Yep :)
from solarbreeze.
Related Issues (3)
- Working? HOT 2
- How does this work? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from solarbreeze.