descendentstudios / blinkenplugin Goto Github PK
View Code? Open in Web Editor NEWPlugin for Unreal Engine 4 (UE4) to control accessory lighting (Razer Chroma, Alienware AlienFX, Logitech G) from Blueprint
License: Apache License 2.0
Plugin for Unreal Engine 4 (UE4) to control accessory lighting (Razer Chroma, Alienware AlienFX, Logitech G) from Blueprint
License: Apache License 2.0
Hi
After some back and forth before Christmas mostly due to my lack of knowledge in UE4, I managed to get the plugin to work fine and even extend it.
So I can play around with it from blueprint without problems.
Now I'm trying to use it from C++, from my project's HUD file. I'm having trouble connecting it correctly so both the compiler and the linker see it.
Check out this simple code:
#include "Blinken.h"
void ARazerTest4HUD::BeginPlay()
{
if (FBlinkenModule::IsAvailable())
{
FBlinkenModule blinken = FBlinkenModule::Get();
}
}
I've tried to get this to work both by getting it to link statically and dynamically, but obviously I'm doing both wrong. Ideally I would load this dynamically, as that's what I think the intention behind the plugin is.
So for loading dynamically, I added to my project's build.cs:
PublicIncludePaths.AddRange(new string[] { "Blinken/Public", "Blinken/Private" });
DynamicallyLoadedModuleNames.AddRange(new string[] { "Blinken" });
When I do this, it says it can't find the Blinken.h file.
If I try to load it statically I get linker errors:
(I have this in the build.cs instead of the previous 2 lines)
PrivateDependencyModuleNames.AddRange(new string[] { "Blinken" });
I get these nice linker errors:
1>RazerTest4HUD.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl FBlinkenModule::StartupModule(void)" (?StartupModule@FBlinkenModule@@UEAAXXZ)
1>RazerTest4HUD.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl FBlinkenModule::ShutdownModule(void)" (?ShutdownModule@FBlinkenModule@@UEAAXXZ)
1>RazerTest4HUD.cpp.obj : error LNK2001: unresolved external symbol "public: virtual void __cdecl FBlinkenModule::Tick(float)" (?Tick@FBlinkenModule@@UEAAXM@Z)
I've been trying to wrap my head around UE4's plugin linking, but I'm at a loss, help would be greatly appreciated!
Thanks,
Rui
P.S.: I'm extending the Razer Chroma support significantly, and I do plan to push it back to the depot once it's in a good state
HEEELP! It's says there are incompatible modules and don't run. I need this plugin a lot
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.