BleWinrtDll
ILSpy
BleWinrtDll | ILSpy | |
---|---|---|
3 | 42 | |
152 | 20,358 | |
- | 1.8% | |
10.0 | 9.1 | |
over 1 year ago | 4 days ago | |
C# | C# | |
Do What The F*ck You Want To Public License | Copyright 2011-2015 AlphaSierraPapa |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
BleWinrtDll
-
Show HN: CycleQuest – Indoor Cycling game with steering
- Comes with ready-to-use models and textures
To generate roads, I downloaded .gpx files from my Strava activities, then implemented a parser to take coordinates and elevations and build roads in-game using EasyRoads3D. These tools combined worked quite well but required some manual work. I had to go over the entire length of the road to smoothen it up (due to GPS noise in .gpx files). The terrain also didn’t always perfectly align with the road, so I had to manually modify it.
I figured that steering would be a good way to keep the user engaged in the gameplay, instead of just sitting on the bike and pedalling. With required steering, you need to be engaged to not drive off the road.
There are some solutions to virtual steering in other smart trainer games, but they are hardware-based - e.g., for Zwift, you need to buy their hardware controller. I really wanted to keep it as simple and inexpensive as possible, so I used a smartphone mounted to the handlebars as a steering controller.
I implemented native apps for both iOS and Android. They use the gyroscope to get the steering value and broadcast it as a BLE peripheral. Implementing Bluetooth in Unity was a little tricky as there is no built-in solution. The implementation depends on the platform the game is running on. It boils down to writing a native plugin for each platform you support.
For macOS, there is an open-source library written in Swift - https://github.com/codeinversion/sensors-swift. It already has the necessary services and characteristics implemented. I had to modify it a little and compile it into a Unity plugin.
For Windows, there also is a library - https://github.com/adabru/BleWinrtDll, but it wasn’t working too well. Because I targeted UWP, I was able to implement my own Bluetooth logic in C# and compile it directly in Unity.
Overall, it was a really fun project to work on. I’m particularly happy that I was able to release it starting from scratch in just a couple of months, and I hope to continue working on it.
-
Help with using a Poke Ball Plus in Unity
Using the absolutely wonderful BLE dll for Unity (https://github.com/adabru/BleWinrtDll/)
-
Reading data from a BLE device in Unity 3D
Looking at the image on the BleWinrtDll GitHub page, my understanding is that when I subscribe to a device, I should be able to see the data under the “Subscribe” button, which is in a text field labeled “characteristic value” within the editor.
ILSpy
-
Rust takes forever to load
First, go grab this: https://github.com/icsharpcode/ILSpy. It's a decompiler that will break Rust down. Hope you like C#.
-
Found this exedecompiler.com website. Does anybody know it? Is it worth it?
If its a C#/.NET exe you can use ILSpy to get the source code https://github.com/icsharpcode/ILSpy
-
C# Testing Playgrounds for old versions?
Well, it might not be exactly what you're asking for, but ILSpy lets you choose what version of C# you wish to decompile an assembly to. This is great for learning how a specific feature used to be coded in C# prior to some new syntax/compiler feature being added.
- Regex Engine Internals as a Library
- How to make mods?
-
I made a DLL INteroreter that Allows the user to invoke methods with parameters in ANY DLL File
You will thoroughly enjoy this, then.
- Learning how to mod
-
The Rider IDE is able to disassemble C# code into High-level C#, Low-level C#, and IL. Is there a command line tool that can do this too, or is this proprietary?
I've only used their GUI frontend myself, but ILSpy is also available as a library and command line tool.
-
What does Realm.Fody do?
As you can see IL code is not exactly human readable, and it's also quite verbose. If you want to have an idea of how your code looks like in IL you can use a decompiler tool such as JustDecompile or ILSpy.
-
GDScript Export Mode usage for commercial or online games
Take a random piece of C# software, run it through ILSpy, and be amazed at the results.
What are some alternatives?
ml-agents - The Unity Machine Learning Agents Toolkit (ML-Agents) is an open-source project that enables games and simulations to serve as environments for training intelligent agents using deep reinforcement learning and imitation learning.
dnSpy - .NET debugger and assembly editor [Moved to: https://github.com/dnSpy/dnSpy]
balena-locating - Never lose something important to you again by using Bluetooth Low Energy (BLE) beacons and Raspberry Pi sensors to track your stuff.
JustDecompile Engine - The decompilation engine of JustDecompile
32feet - Personal Area Networking for .NET. Open source and professionally supported
dnSpy
dotnet-bluetooth-le - Bluetooth LE plugin for Xamarin/MAUI, supporting Android, iOS, Mac, Windows
AvaloniaILSpy - Avalonia-based .NET Decompiler (port of ILSpy)
shiny - .NET Framework for Backgrounding & Device Hardware Services (iOS, Android, & Catalyst)
UndertaleModTool - The most complete tool for modding, decompiling and unpacking Undertale (and other Game Maker: Studio games!)
unity-astar - A Star (A*) algorithm in C# focused on performance and setup for Unity
Celeste - Celeste Bugs & Issue Tracker + some Source Code