Changing the Game File Name

Yoraee

Veteran
Veteran
Joined
May 29, 2016
Messages
211
Reaction score
486
Primarily Uses
Hey everyone! Really sorry if this is a newbie question! I've been trying to figure this out for a while now.

So after deploying the game, I click on the game file to play. At the top of the window there is a file name.

I want to change that file name, but can't figure out how! I changed it from index.html in the www folder, but when I run the game it shows the changed filename for a few seconds before reverting to the old filename. This is all done on the exported game.

Can someone please guide me on where to go to change the filename permanently?
 

Yoraee

Veteran
Veteran
Joined
May 29, 2016
Messages
211
Reaction score
486
Primarily Uses
Hmmm... I changed the name in the package.json, but when I start up the game file, it shows the new name for a few seconds and then reverts to the old name when the title screen appears.... Its reading the old name from somewhere else it seems but I can't figure out where from!
 

Gamefall Team

Nebula Games Leader
Veteran
Joined
Jan 10, 2017
Messages
348
Reaction score
473
First Language
Italian
Primarily Uses
RMMZ
Well, if I have understood correctly you're trying to edit the "caption" that is set on the Game Window.
Actually, the caption should be nothing more the "Game Title" you set in the "system" tab of your project database.

I'm saying this, due inside the Rpg Maker library, you will find this method:

Code:
Scene_Boot.prototype.updateDocumentTitle = function() {
    document.title = $dataSystem.gameTitle;
};
Each time the game is booted the "document.title" is updated with the "$dataSystem.gameTitle" that is actually this:

upload_2019-11-1_9-17-33.png

So, I think you have two choices:

1. Try to edit the Game Title in the system database - and if you can try to edit the package.json to be sure, too -.

2. Edit the "updateDocumentTitle" method to force the title you want:

Code:
Scene_Boot.prototype.updateDocumentTitle = function() {
    document.title = "My Cool Name";
};
 

Users Who Are Viewing This Thread (Users: 0, Guests: 1)

Latest Threads

Latest Posts

Latest Profile Posts

People3_5 and People3_8 added!

so hopefully tomorrow i get to go home from the hospital i've been here for 5 days already and it's driving me mad. I miss my family like crazy but at least I get to use my own toiletries and my own clothes. My mom is coming to visit soon i can't wait to see her cause i miss her the most. :kaojoy:
Couple hours of work. Might use in my game as a secret find or something. Not sure. Fancy though no? :D
Holy stink, where have I been? Well, I started my temporary job this week. So less time to spend on game design... :(
Cartoonier cloud cover that better fits the art style, as well as (slightly) improved blending/fading... fading clouds when there are larger patterns is still somewhat abrupt for some reason.

Forum statistics

Threads
105,868
Messages
1,017,085
Members
137,583
Latest member
write2dgray
Top