Giter Site home page Giter Site logo

3ddelano / godot-editor-discord-presence Goto Github PK

View Code? Open in Web Editor NEW
32.0 2.0 4.0 7.25 MB

A plugin which shows what you are doing in the Godot Editor as your Discord presence (Cross Platform support)

License: MIT License

GDScript 99.17% GAP 0.83%
godot discord plugin rich-presence gdscript godot-editor godot-plugin godotengine hacktoberfest

godot-editor-discord-presence's Introduction

Hi, I'm Delano Lourenco

Fullstack Web & App Dev | ReactJS | NextJS | React Native | Expo | Godot


linkedin github

In my free time I use Godot game engine and make Web3 Dapps too.

Contact me

  • Discord: @3ddelano (@3ddelano#6033)

Most Used Languages

Some of the tools I use:

Javascript Nodejs Python C C++ html5 css3 Sass
Heroku git mocha
npm Prettier
PostgreSQL MongoDB
AdobeXD Figma

If you like what I do, maybe consider buying me a cup of coffee Buy Me A Coffee

What I have worked on

godot-editor-discord-presence's People

Contributors

3ddelano avatar piras314 avatar toby3d avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

godot-editor-discord-presence's Issues

License

Just a heads up, it looks like the two one of the projects that this is based off of has no license.

Linux: Editor crashes if Discord client is closed

System Info

  • Godot Version: 3.3.4
  • Operating System: Kali Linux x64
  • Plugin version: 1.1.0

Describe the bug

If after the Godot editor initially connects to the Discord app, the Discord app is quit, then the Godot editor crashes without any message.

To Reproduce

Expected behaviour

The plugin should try to reconnect periodically to the Discord app.

Additional context

Non-reproducible on windows.

Checklist

  • I have checked for duplicate issues.
  • I have provided a detailed description of the issue.
  • I have provided reproduction steps (if applicable).

[BUG] Attempt to call function "new" in base 'Nativescript'

Error after adding the add-on to my game
The game gives an error right after I added it in the Output tab

Steps To Reproduce
Steps to reproduce the behaviour:

  1. Enable the add-on on a MacBook or maybe Linux too

Expected behaviour
I expected it not to have bugs...

Screenshots
image

Desktop:

  • OS: MacOs
  • Plugin Version: 1.2.3
  • Godot Version: 3.4.2

Additional context
I'm using an M1 MacBook Air from 2020

[BUG] Godot 4

Describe the bug
When adding the plugin in Godot 4.0.2 , you get a lot of errors with the plugin.gd file.

To Reproduce
Steps to reproduce the behavior:

  1. Open Godot 4.0.2, and create a new project.
  2. Add the addon to the new project.
  3. Attempt to enable to addon (fails), and then check plugin.gd file in the discord presence folder.
  4. You can now see the many errors and why it does not work.

Expected behavior
The addon/plugin to work with Godot 4.0.2.

Screenshots
image
image
I removed the random tool at the top:
image

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Plugin Version: [e.g. 1.2.5]
  • Godot Version: [e.g. 4.0.2]

Additional context
Add any other context about the problem here.

Checklist

  • I have checked for duplicate issues.
  • I have provided a detailed description of the issue.
  • I have provided reproduction steps (if applicable).

Option to display Project icon in the Discord preview

The Discord game icon changing depending on what window is open is an outstandingly cool touch, but I personally don't find them too "eyecatching", so to speak.

image

As an additional option, I think it'd be amazing to display the Project icon, or a custom icon entirely, if the Discord Rich Presence API would even support such a thing.

[BUG]

Bug Description
I installed the plugin through the Godot Editor's AssetLib and let it do an automatic installation to my addons folder.
But any time I try to activate the plugin it just gives me a warning and an error in the Output log and deactivates.

Sometimes the plugin works while you have the editor open and have just activated it, only to deactivate itself when you open up the editor again at a later time after having closed it. And sometimes after having opened and closed the editor enough times it will just not even activate at all anymore, giving the error as soon as you try to activate it.

Steps To Reproduce
Steps to reproduce the behaviour:

  1. Install the plugin (let it do the manual installation from the Godot Editor's AssetLib).
  2. Activate the plugin (in "Plugins...").

Expected Result
I expect that the plugin should activate and do its thing.

Actual Result
I get a warning notification (see the first attached screenshot) and the plugin is deactivated, and in the output log I get this error (see second attached screenshot):

  • res://addons/godot_editor_discord_presence/plugin.gd:37 - Parse Error: The identifier "DiscordRPC" isn't a valid type (not a script or class), or couldn't be found on base "self".
  • modules/gdscript/gdscript.cpp:566 - Method failed. Returning: ERR_PARSE_ERROR

Screenshots
image
image

Operating System, Godot Version and Plugin Version:

  • OS: Windows 10
  • Plugin Version: 1.1.0
  • Godot Version: 3.4.2

Checklist

  • [ X ] I have checked for duplicate issues.
  • [ X ] I have provided a detailed description of the issue.
  • [ X ] I have provided reproduction steps (if applicable).

Port to Godot 4?

Is your feature request related to a problem? Please describe.
Godot 4 doesn't support

Describe the solution you'd like
To support Godot 4, as Godot 4 has released to stable.

Describe alternatives you've considered
N/A

Additional context
N/A

Checklist

  • [ x] I have checked for duplicate feature requests.
  • [ x] I have provided a detailed description of the enhancement.

[BUG] Editor Crash

Describe the bug
Editor crashes once enabling the plugin and focusing Discord Canary. This happened again once I re-opened the editor.

To Reproduce
Steps to reproduce the behavior:

  1. Go to AssetLib.
  2. Download the plugin.
  3. Enable the plugin.
  4. Focus Discord Canary.

Expected behavior
The plugin to work normally I guess?

Screenshots
image
image

Desktop

  • OS: Windows 8.1
  • Plugin Version: 1.2.5
  • Godot Version: 3.5

not Functioning in Godot 4.1

Describe the bug
There are errors in the script

To Reproduce
Steps to reproduce the behavior:

  1. See all scripts like plugin.gd
    or DiscordRPC.gd

Expected behavior
There should be no errors.

Screenshots
Screenshot 2023-09-21 144458

Desktop (please complete the following information):

  • OS: Windows 11 Home
  • Plugin Version: 1.2.5
  • Godot Version: 4.1

Additional context
please update it to godot 4.1. GDScript for Godot 4.1

Checklist

  • I have checked for duplicate issues.
  • I have provided a detailed description of the issue.
  • I have provided reproduction steps (if applicable).

[BUG] Console error 'spam' when using other editor based plugins

Describe the bug
I'm only sure this works with one plugin, but I think the potential is there to mess with others too. When using the Dialgoic plugin, and clicking on the Editor tab it creates, an error is thrown at line 250 in plugin.gd. This happens every time you switch to the tab.

image
image

To Reproduce
Steps to reproduce the behavior:

  1. Use a plugin that adds an editor feature (like Dialogic)
  2. Click on the tab
  3. Observe the console output error every time you click over to it

Expected behavior
No errors to appear in the console. Its not a big issue, not a crash or anything, but it is very annoying and if more editor plugins become popular it could get pretty messy.

Desktop (please complete the following information):

  • OS: Windows 10
  • Plugin Version: 1.2.4
  • Godot Version: 3.4.4

Additional context
Add any other context about the problem here.

Checklist

  • I have checked for duplicate issues.
  • I have provided a detailed description of the issue.
  • I have provided reproduction steps (if applicable).

[BUG] Editor crashes after a varying amount of time on Linux

Describe the bug
Since installing the plugin, the editor seems to be crashing after some minutes after opening the project the plugin has been installed to. This is the output of Godot in one of those sessions:

OpenGL ES 3.0 Renderer: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
OpenGL ES Batching: ON
 

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v3.4.4.stable.official (419e713a29f20bd3351a54d1e6c4c5af7ef4b253)
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x38920) [0x7f60fc17b920] (??:0)
[2] /home/monix/Software/godot() [0x2b8dc21] (??:0)
[3] /home/monix/Software/godot() [0x2b92b36] (??:0)
[4] /home/monix/Software/godot() [0xdea1ee] (??:0)
[5] /home/monix/Software/godot() [0x2b77b5e] (??:0)
[6] /home/monix/Software/godot() [0x2c01745] (??:0)
[7] /home/monix/Software/godot() [0xaab8c4] (??:0)
[8] /home/monix/Software/godot() [0xa3aa60] (??:0)
[9] /home/monix/Software/godot() [0x2b77b5e] (??:0)
[10] /home/monix/Software/godot() [0x2c01745] (??:0)
[11] /home/monix/Software/godot() [0xaab8c4] (??:0)
[12] /home/monix/Software/godot() [0xa3aa60] (??:0)
[13] /home/monix/Software/godot() [0x2b77b5e] (??:0)
[14] /home/monix/Software/godot() [0x2d9b8bd] (??:0)
[15] /home/monix/Software/godot() [0x2c81c48] (??:0)
[16] /home/monix/Software/godot() [0x31f4680] (??:0)
[17] /lib/x86_64-linux-gnu/libpthread.so.0(+0x7d80) [0x7f60fc46dd80] (??:0)
[18] /lib/x86_64-linux-gnu/libc.so.6(clone+0x3f) [0x7f60fc23d76f] (??:0)
-- END OF BACKTRACE --
================================================================

Another session, but with --verbose:

OpenGL ES 3.0 Renderer: Mesa Intel(R) HD Graphics 5500 (BDW GT2)
OpenGL ES Batching: ON
	OPTIONS
	max_join_item_commands 16
	colored_vertex_format_threshold 0.25
	batch_buffer_size 16384
	light_scissor_area_threshold 1
	item_reordering_lookahead 4
	light_max_join_items 32
	single_rect_fallback False
	debug_flash False
	diagnose_frame False
PulseAudio: context other
PulseAudio: context other
PulseAudio: context other
PulseAudio: context ready
PulseAudio: Detecting channels for device: alsa_output.pci-0000_00_1b.0.analog-stereo
PulseAudio: detected 2 output channels
PulseAudio: audio buffer frames: 512 calculated output latency: 11ms
JoypadLinux: udev enabled and loaded successfully.
 
Loading resource: res://locale/en_US.po
Loading resource: res://locale/pt_PT.po
Loading resource: res://locale/de_DE.po
CORE API HASH: 4983981888327659428
EDITOR API HASH: 17985513469441247513
Construct gdnative interface

Destruct gdnative interface

Class 'BulletPhysicsDirectBodyState' is not exposed, skipping.
Class 'BulletPhysicsDirectSpaceState' is not exposed, skipping.
Class 'BulletPhysicsServer' is not exposed, skipping.
Class 'GDScriptNativeClass' is not exposed, skipping.
Class 'IP_Unix' is not exposed, skipping.
Class 'InputDefault' is not exposed, skipping.
Class 'Physics2DDirectBodyStateSW' is not exposed, skipping.
Class 'Physics2DDirectSpaceStateSW' is not exposed, skipping.
Class 'Physics2DServerSW' is not exposed, skipping.
Class 'ResourceImporterMP3' is not exposed, skipping.
Class 'ResourceImporterOGGVorbis' is not exposed, skipping.
Loading resource: /home/monix/.config/godot/editor_settings-3.tres
EditorSettings: Load OK!
Loading resource: res://src/common/Globals.gd
Loading resource: res://src/common/WorldRWS.gd
Loading resource: res://addons/godot-sqlite/bin/gdsqlite.gdns
Loading resource: res://addons/godot-sqlite/bin/gdsqlite.gdnlib
Loading resource: res://src/common/Network.gd
Loading resource: res://src/common/Events.gd
Loading resource: res://src/common/ClientSettings.gd
Loading resource: res://addons/dialogue_manager/dialogue_manager.gd
Loading resource: res://addons/dialogue_manager/dialogue_resource.gd
Loading resource: res://addons/dialogue_manager/dialogue_line.gd
Loading resource: res://addons/dialogue_manager/constants.gd
Loading resource: res://addons/dialogue_manager/dialogue_response.gd
Loading resource: res://addons/dialogue_manager/components/settings.gd
Loading resource: res://addons/dialogue_manager/components/parser.gd
Loading resource: res://addons/dialogue_manager/example_balloon/example_balloon.gd
Loading resource: res://addons/dialogue_manager/example_balloon/menu_item.tscn
Loading resource: res://addons/dialogue_manager/example_balloon/Open_Sans/OpenSans-Regular.ttf
Loading resource: res://addons/dialogue_manager/example_balloon/menu_item.gd
Loading resource: res://addons/dialogue_manager/example_balloon/example_balloon.tscn
Loading resource: res://addons/dialogue_manager/example_balloon/menu.tscn
Loading resource: res://addons/dialogue_manager/example_balloon/menu.gd
Loading resource: res://addons/dialogue_manager/example_balloon/pointer.svg
Loading resource: res://addons/dialogue_manager/example_balloon/Open_Sans/OpenSans-Bold.ttf
Loading resource: res://addons/dialogue_manager/example_balloon/Open_Sans/OpenSans-Italic.ttf
Loading resource: res://addons/dialogue_manager/dialogue_label.tscn
Loading resource: res://addons/dialogue_manager/dialogue_label.gd
Loading resource: res://addons/dialogue_manager/example_balloon/background.svg
Loading resource: res://src/common/Story.gd
Loaded builtin certs
EditorSettings: Save OK!
Loading resource: res://addons/dialogue_manager/plugin.gd
Loading resource: res://addons/dialogue_manager/editor_export_plugin.gd
Loading resource: res://addons/dialogue_manager/views/main_view.tscn
Loading resource: res://addons/dialogue_manager/components/code_editor.tscn
Loading resource: res://addons/dialogue_manager/components/code_editor.gd
Loading resource: res://addons/dialogue_manager/views/choose_title_dialog.gd
Loading resource: res://addons/dialogue_manager/components/title_list.gd
Loading resource: res://addons/dialogue_manager/views/main_view.gd
Loading resource: res://addons/dialogue_manager/components/title_list.tscn
Loading resource: res://addons/dialogue_manager/views/settings_dialog.tscn
Loading resource: res://addons/dialogue_manager/views/settings_dialog.gd
Loading resource: res://addons/dialogue_manager/components/update_checker.tscn
Loading resource: res://addons/dialogue_manager/components/update_checker.gd
Loading resource: res://addons/dialogue_manager/components/search.tscn
Loading resource: res://addons/dialogue_manager/components/search.gd
Loading resource: res://addons/dialogue_manager/views/new_dialogue_dialog.tscn
Loading resource: res://addons/dialogue_manager/views/choose_title_dialog.tscn
Loading resource: res://addons/dialogue_manager/components/error_list.tscn
Loading resource: res://addons/dialogue_manager/components/error_list.gd
Loading resource: res://addons/dialogue_manager/components/error_button.tscn
Loading resource: res://addons/dialogue_manager/components/error_button_style.tres
Loading resource: res://addons/dialogue_manager/views/open_dialogue_dialog.tscn
Loading resource: res://addons/dialogue_manager/views/invalid_dialogue_dialog.tscn
Loading resource: res://addons/dialogue_manager/views/save_translations_dialog.tscn
Loading resource: res://addons/dialogue_manager/assets/icons/icon_dark_1.svg
Loading resource: res://addons/godot_editor_discord_presence/plugin.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/DiscordRPC.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/module/IPCModule.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/IPC.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/pipe/IPCPipe.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/IPCPayload.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/util/UUID.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/DiscordRPCEnum.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/pipe/WindowsPipe.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/pipe/UnixPipe.gd
Loading resource: res://addons/godot_editor_discord_presence/godot-unix-socket/unix-socket.gdns
Loading resource: res://addons/godot_editor_discord_presence/godot-unix-socket/native_script.gd
Loading resource: res://addons/godot_editor_discord_presence/godot-unix-socket/unix-socket.gdnlib
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/module/rich presence/RichPresenceModule.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/module/rich presence/RichPresence.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/module/rich presence/RichPresenceButton.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/ipc/module/rich presence/UpdateRichPresencePayload.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/util/IPCUtil.gd
Loading resource: res://addons/godot_editor_discord_presence/Discord RPC/util/URLUtil.gd
Loading resource: res://src/server/Chat.gd
Loading resource: res://src/client/menu/Chat.gd
Loading resource: res://src/client/VisibleCanvasLayer.gd
Loading resource: res://src/client/menu/ChatPreview.gd
Loading resource: res://src/client/menu/ConnectMenu.gd
Loading resource: res://src/Entry.gd
Loading resource: res://src/client/menu/GameHUD.gd
Loading resource: res://src/client/Main.gd
Loading resource: res://src/client/maps/test-tilemap.tscn
Loading resource: res://icon.png
Loading resource: res://src/client/Player.tscn
Loading resource: res://src/common/TileColissionShape.tres
Loading resource: res://src/client/Player.gd
Loading resource: res://src/common/Player.gd
Loading resource: res://src/server/Main.gd
Loading resource: res://src/server/maps/test-tilemap.tscn
Loading resource: res://src/server/placeholder.jpg
Loading resource: res://src/server/Player.tscn
Loading resource: res://src/server/Player.gd
Loading resource: res://src/Entry.tscn

================================================================
handle_crash: Program crashed with signal 11
Engine version: Godot Engine v3.4.4.stable.official (419e713a29f20bd3351a54d1e6c4c5af7ef4b253)
Dumping the backtrace. Please include this when reporting the bug on https://github.com/godotengine/godot/issues
[1] /lib/x86_64-linux-gnu/libc.so.6(+0x38920) [0x7f68f8a41920] (??:0)
[2] /home/monix/Software/godot() [0x2b8dc21] (??:0)
[3] /home/monix/Software/godot() [0x2b92b36] (??:0)
[4] /home/monix/Software/godot() [0xdea1ee] (??:0)
[5] /home/monix/Software/godot() [0x2b77b5e] (??:0)
[6] /home/monix/Software/godot() [0x2c01745] (??:0)
[7] /home/monix/Software/godot() [0xaab8c4] (??:0)
[8] /home/monix/Software/godot() [0xa3aa60] (??:0)
[9] /home/monix/Software/godot() [0x2b77b5e] (??:0)
[10] /home/monix/Software/godot() [0x2c01745] (??:0)
[11] /home/monix/Software/godot() [0xaab8c4] (??:0)
[12] /home/monix/Software/godot() [0xa3aa60] (??:0)
[13] /home/monix/Software/godot() [0x2b77b5e] (??:0)
[14] /home/monix/Software/godot() [0x2c01745] (??:0)
[15] /home/monix/Software/godot() [0xaab8c4] (??:0)
[16] /home/monix/Software/godot() [0xa3ab20] (??:0)
[17] /home/monix/Software/godot() [0x1d6d53f] (??:0)
[18] /home/monix/Software/godot() [0x1d8c846] (??:0)
[19] /home/monix/Software/godot() [0x1db11ad] (??:0)
[20] /home/monix/Software/godot() [0x9d8c27] (??:0)
[21] /home/monix/Software/godot() [0x9471ad] (??:0)
[22] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xcd) [0x7f68f8a2c7fd] (??:0)
[23] /home/monix/Software/godot() [0x95ae1e] (??:0)
-- END OF BACKTRACE --
================================================================

To Reproduce
Steps to reproduce the behavior:

  1. Install
  2. Restart godot and open the project
  3. Leave it running for some minutes
  4. See how it crashes

Expected behavior
I expect Godot not to crash

Desktop (please complete the following information):

  • OS: Debian testing
  • Plugin Version: 1.2.5
  • Godot Version: 3.4.4

Additional context
Only two other add-ons are installed (Dialogue Manager and godot-sqlite), but Godot only started crashing after installing this plugin.
Discord is open at the time of the crash and displaying the time and project I'm editing correctly.

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.