GithubHelp home page GithubHelp logo

steveplays28 / gamewithdiscord Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 9.24 MB

An UE4 project that integrates Discord's GameSDK as a new module.

License: MIT License

C# 1.96% C++ 71.03% C 27.00%
ue4 discord discord-game-sdk

gamewithdiscord's Introduction

GameWithDiscord

An UE4 project that integrates Discord's GameSDK as a new module.

How to download

If you want the entire project, clone the repository or download it as a ZIP.

If you only want the GameSDK module, follow these steps:

  1. Download the repository as a ZIP file.
  2. Copy paste the module Discord_GameSDK located in GameWithDiscord/Source/ into YourProjectName/Source.
  3. Open yourProjectName/Source/yourProjectName.Target.cs and replace ExtraModuleNames.AddRange( new string[] { "yourProjectName" } ); with this: ExtraModuleNames.AddRange( new string[] { "yourProjectName", "Discord_GameSDK" } );
  4. Open yourProjectName/Source/yourProjectNameEditor.Target.cs and replace ExtraModuleNames.AddRange( new string[] { "yourProjectName" } ); with this: ExtraModuleNames.AddRange( new string[] { "yourProjectName", "Discord_GameSDK" } );
  5. Open yourProjectName/Source/yourProjectName/yourProjectName.Build.cs and add this:
  //Include Discord GameSDK library files
		PublicIncludePaths.Add(@"D:\Repos\ParkourFPS\Source\DiscordSDK\discord-files");
		PublicAdditionalLibraries.Add(@"D:\Repos\ParkourFPS\Binaries\Win64\discord_game_sdk.dll.lib");

#if PLATFORM_WINDOWS
#if PLATFORM_64BITS
    RuntimeDependencies.Add("Binaries\Win64" + "discord_game_sdk.dll");
#else
    RuntimeDependencies.Add("Binaries\Win64" + "discord_game_sdk.dll");
#endif

#elif PLATFORM_MAC
    RuntimeDependencies.Add("Binaries\Win64" + discord_game_sdk.so);
#endif

#if PLATFORM_LINUX
    RuntimeDependencies.Add("Binaries\Win64" + discord_game_sdk.dylib);
#endif

Note: when you package the project, it won't put the DLLs in the right folder. I haven't had the time to make this yet. For now you'll have to put the DLLs and other files in the WindowsNoEditor folder, or make the code for this yourself.

You're good to go! Good luck and have fun!

If you're having trouble with this, please take a look at how it's done in the example project.

gamewithdiscord's People

Contributors

steveplays28 avatar

Stargazers

 avatar  avatar

Watchers

 avatar

gamewithdiscord's Issues

Error

Couldn't set association for project. Check the file is writeable.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.