hypherionmc / simple-rpc-public

Simple-RPC Issues, wiki and data github
https://www.curseforge.com/minecraft/mc-mods/simple-discord-rpc/
14 stars 1 forks source link

[BUG] The server icon is not displayed correctly. #92

Closed XtoManuel closed 2 months ago

XtoManuel commented 3 months ago

Describe the bug Reviewing the documentation I found an error: %server% shows the server IP replacing the . with _ %servericon% is the variable that contains the icon information image

To Reproduce Steps to reproduce the behavior:

  1. Configure the large image to be that of the server using the variable %servericon%
  2. Reload the configuration
  3. The image loaded is that of the minecraft icon and not that of the server image

Expected behavior I have verified that %servericon% obtains the server icon correctly, verifying that the url returns the image, but it is not loaded in the RPC.

Versions (DO NOT USE LATEST! BE SPECIFIC!):

Kaleidio commented 3 months ago

please send where in the config you put the %servericon% variable, as you may have entered it in the incorrect section, or with a syntax error.

if we can't get that to work, please send the IP of the server so we can test it ourselves.

XtoManuel commented 3 months ago

I currently have the server closed, so the information cannot be obtained currently.

#The Multi Player Event
[multi_player]
    #Enable/Disable the Multi Player Event
    enabled = true
    #The first line of text under the app name
    description = "%servername%"
    #The second line of text under the app name
    state = "%players% jugador(es) online"
    #The Asset ID of the image to display as the large image
    largeImageKey = ["%servericon%"]
    #The text that gets displayed when the large image is hovered
    largeImageText = "%servericon%" #"%mcinfo% | %mods% mods"
    #The Asset ID of the image to display as the small image
    smallImageKey = ["%playerhead%"]
    #The text that gets displayed when the small image is hovered
    smallImageText = "%player%"
    #The buttons to display on Discord
    buttons = []
Kaleidio commented 3 months ago

okay so you used largeImageText to spit out the URL for us. smart. so you know the URL is correct for sure then.

send your latest.log to see if any code had complained to us at runtime.

hypherionmc commented 3 months ago

Visiting the URL shown in the image, it returns this icon for that IP address.

image

So

A) Their services are having issues connecting to your server to retrieve the icon B) The image was cached, and is taking a while to update.

A is normally a problem on "local" servers that cannot be accessed across the internet, or servers in general that cannot be accessed across the internet. It could also be a port problem.

Either way, it comes down to an issue with a third party service, since we just pass the information to them, and they do the rest

XtoManuel commented 3 months ago

latest.log No error appears in the console, or anything related to this.

image

image

XtoManuel commented 2 months ago

I'm closing this thread, since I've verified that with the latest versions, it's working correctly.

imagen