Why isnt my game icon showing up and is this code normal?

So i was testing the game randomly and i noticed that my game icon is gone.

I went around and checked my game files and also found out that my package.json looked like this, i cant tell if this is a normal thing or is there anything wrong with the code but i really need this figured out

1746599392217.png
1746599428151.png
just to make sure, you still have your icon inside the icon folder and its named "icon.png", correct?
you have a few extra window properties but none of it should interfere
just to make sure, you still have your icon inside the icon folder and its named "icon.png", correct?
you have a few extra window properties but none of it should interfere
yup the icon is in its folder
1746601134950.png

Not sure, but my code is shorter
should you try this code?
(use "vs code" to make it look cleaner)

{
"name": "",
"main": "www/index.html",
"js-flags": "--expose-gc",
"window": {
"title": "",
"toolbar": false,
"width": 816,
"height": 624,
"icon": "www/icon/icon.png"
}
}

Maybe you forgot "www" before "/index.html"
i
View attachment 339720
Not sure, but my code is shorter
should you try this code?
(use "vs code" to make it look cleaner)

{
"name": "",
"main": "www/index.html",
"js-flags": "--expose-gc",
"window": {
"title": "",
"toolbar": false,
"width": 816,
"height": 624,
"icon": "www/icon/icon.png"
}
}

Maybe you forgot "www" before "/index.html"
will try that code thank you
So i found out that the game icon WORKS on deployment thank goodness, but it didnt work while developing which isnt an issue it just startled me for a second but thank you
So i found out that the game icon WORKS on deployment thank goodness, but it didnt work while developing which isnt an issue it just startled me for a second but thank you
Glad to hear that. keep it up!
the "package.json" should look like this (for windows at least)

Code:
{
    "name": "",
    "main": "index.html",
    "js-flags": "--expose-gc",
    "window": {
        "title": "",
        "toolbar": false,
        "position": "center",
        "width": 816,
        "height": 624,
        "icon": "icon/icon.png"
    }
}

nothing more, nothing less (position is optional to start in center of the screen,
rather than top left (which does for me).

make sure the icon folder exist, as it does work.
So i found out that the game icon WORKS on deployment thank goodness, but it didnt work while developing
did you deploy your game into your project or copy a package file over at some point? in a deployment, theres 2 package files.
theres one in the main folder that'd have "icon": "www/icon/icon.png". The second one is inside the www folder and is a copy of the one you'd see inside your project's main folder.
that one would have "icon": "icon/icon.png". the one you shared looks like one from a deployment, but if its your project's package file then try changing the icon path property
did you deploy your game into your project or copy a package file over at some point? in a deployment, theres 2 package files.
theres one in the main folder that'd have "icon": "www/icon/icon.png". The second one is inside the www folder and is a copy of the one you'd see inside your project's main folder.
that one would have "icon": "icon/icon.png". the one you shared looks like one from a deployment, but if its your project's package file then try changing the icon path property
both of them have the same folders Ive got no clue why its doing this

Original thread: https://forums.rpgmakerweb.com/threads/why-isnt-my-game-icon-showing-up-and-is-this-code-normal.177480/