Not used files?

Status
Not open for further replies.

The007who

Call me double 0s
Veteran
Joined
Oct 11, 2015
Messages
119
Reaction score
80
First Language
Italian
Primarily Uses
RMVXA
Hi there, I was just thinking...


...Is there was a way to 'leave out' some not used files in the compressed game?


I know this is a weird question, and I understand if there isn't a way other than removing it manually...


But anyway, thanks for reading.


-The007who
 

ovan66

Villager
Member
Joined
Jul 27, 2015
Messages
9
Reaction score
0
First Language
Spanish
Primarily Uses
Deleting unused assets from the vanilla maker? I think it's possible


*searches like hell*


This!
 

Dreadshadow

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
3,983
Reaction score
2,599
First Language
Greek
Primarily Uses
RMMV
Sigh.


I don't know if there is an easy way, but I can tell you how I did it.


Step 0:


Make a new project.


Step 1:


I made a backup of my RTP to another folder.


Step2:


I deleted anything I didn't wanted for my project from the RTP


That made a very small RTP containing some SFX and Music and some graphics.


You can even empty all the RTP and keep it empty then include all assets as extra files.


Step3:


You have to get in the new project's database and erase anything that is using missing files.


You should consider checking the database for invalid asset calls. For instance if the database is searching for a music fx for the cursor, that you deleted, you will have a problem.


System, Tilesets, Animation, Enemies : Check these if you deleted sound and graphics.


Armor,Weapons,Items,Skills,Actors  : Check these if you deleted the iconset.


Step 4:


After making sure everything is ok and the game runs well, save the project as a starting template for your spripped rtp.


You need a brand new project because events can call music, sfx and graphics. Events also might have set own graphics.


It is very hard and time consuming to fix all these not to refer to any asset stripped from rtp.


Step 5:


Make sure you know where the original RTP is, so you can include it back if you want to.


Step 6:


Make the game.


Step 7:


On creating the game, you will tick include RTP. That will make the lightweight stand alone executable game.


Hope this helped you.
 

The007who

Call me double 0s
Veteran
Joined
Oct 11, 2015
Messages
119
Reaction score
80
First Language
Italian
Primarily Uses
RMVXA
I'm sorry, but by unused files I meant by files imported by me.


I'm really sorry, I guess I should have explained myself better... :headshake:
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
21,845
Reaction score
11,059
First Language
English
Primarily Uses
RMVXA
A faster way of doing this - but much easier to do if you do this at the very beginning of creating your game - is to disable the link between your game and the RTP


Open your game folder


If you have it set with icons, you will see one that looks like a page with a cog, called Game.  It is the configuration file.


Open it and you will see a line with


RTP= RPGVXAce


Change this (do not delete it) to read


RTP=


Your game will now not include any RTP elements.


Import in those elements you do want e.g. SEs, Animation folder


Add in the music and graphics that you are actually using as you use them.


You now have just the resources you actually need.


On compressing the game, do not check the Include RTP box.


If you have already started/made the game then you will have to be sure that you have imported back in all the files you've actually used.  If you don't, the game will crash - normally.


However, there is a way round that.  Grab this script




Do a playtest.  You will get a notification every time that you are missing a resource, and you can take a note of it, but the game does not crash.  You can continue playing until you have made a note of everything missing, and then just sit there and put them all in.
 

The007who

Call me double 0s
Veteran
Joined
Oct 11, 2015
Messages
119
Reaction score
80
First Language
Italian
Primarily Uses
RMVXA
It's not that I'm trying to do...


Example: I have more than 150 SFX in the editor but in the actual game I use only about 50.


Is there a way that when compressing the game, in the game folder there are the only the 50 SFX in the editor?
 

Dreadshadow

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
3,983
Reaction score
2,599
First Language
Greek
Primarily Uses
RMMV
It's not that I'm trying to do...


Example: I have more than 150 SFX in the editor but in the actual game I use only about 50.


Is there a way that when compressing the game, in the game folder there are the only the 50 SFX in the editor?
Okay, there it is...




The ONLY difference is that you leave NOTHING in the RTP.


You must include EVERYTHING as imported files, even the ones that belong to RTP.


You make sure the Database and your events do not refer to any asset missing and you are ready to go.


The hard part is to KNOW which assets are in use and which are not.


That is why you should START a project that way, instead of taking out by hand whatever isn't in use.


If your project is doen it is better to search for unused files.


I think there is a script that shows assets in use, or assets unused, not sure.


You can ask though on script section for this, someone will remember.
 

The007who

Call me double 0s
Veteran
Joined
Oct 11, 2015
Messages
119
Reaction score
80
First Language
Italian
Primarily Uses
RMVXA
Okay, there it is...





The ONLY difference is that you leave NOTHING in the RTP.


You must include EVERYTHING as imported files, even the ones that belong to RTP.


You make sure the Database and your events do not refer to any asset missing and you are ready to go.


The hard part is to KNOW which assets are in use and which are not.


That is why you should START a project that way, instead of taking out by hand whatever isn't in use.


If your project is doen it is better to search for unused files.


I think there is a script that shows assets in use, or assets unused, not sure.


You can ask though on script section for this, someone will remember.





 
But it has nothing to do with the RTP...
 

Dreadshadow

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
3,983
Reaction score
2,599
First Language
Greek
Primarily Uses
RMMV
Used or unused files will be filtered by a script.


Some of these will be in the RTP eventually.


You can also get rid of about 200MB of unused assets in the final compressed game, if you don't use RTP at all, just saying.
 

Kes

Veteran
Veteran
Joined
Aug 3, 2012
Messages
21,845
Reaction score
11,059
First Language
English
Primarily Uses
RMVXA
@The007who Please do not quote whole posts to indicate who you are replying to.  This makes the page slow to load and to scroll down especially for those who are accessing this on their phones.  If you want to make it clear who you are answering use the @membernamend convention as I have done with this post. 


Thanks 
 

The007who

Call me double 0s
Veteran
Joined
Oct 11, 2015
Messages
119
Reaction score
80
First Language
Italian
Primarily Uses
RMVXA
But, I've already compressed the game and like 3/4 of the data is the SFX but in the game I only use 2/3 of the SFX
 

Dreadshadow

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
3,983
Reaction score
2,599
First Language
Greek
Primarily Uses
RMMV
But, I've already compressed the game


Oh! You have to remove assets BEFORE making the compressed package. After that, I am not sure what you can do really.
 

Engr. Adiktuzmiko

Chemical Engineer, Game Developer, Using BlinkBoy'
Veteran
Joined
May 15, 2012
Messages
14,696
Reaction score
3,005
First Language
Tagalog
Primarily Uses
RMVXA
Well, afaik there's no auto way to remove the files that you imported into your project but are unused so you need to delete them one by one from your game's folder.


Next time do yourself a favor an only import something if ur gonna use it. and if you end up changing it, delete it right away so that the list dont build up
 
Last edited by a moderator:

The007who

Call me double 0s
Veteran
Joined
Oct 11, 2015
Messages
119
Reaction score
80
First Language
Italian
Primarily Uses
RMVXA
Thank you for the answers!
 

Dreadshadow

Tech Magician Level:
Moderator
Joined
Mar 2, 2014
Messages
3,983
Reaction score
2,599
First Language
Greek
Primarily Uses
RMMV
Well, afaik there's no auto way to remove the files that you imported into your project but are unused so you need to delete them one by one from your game's folder.


Next time do yourself a favor an only import something if ur gonna use it. and if you end up changing it, delete it right away so that the list dont build up
That all done BEFORE compressing it to an executable installer.
 

bgillisp

Global Moderators
Global Mod
Joined
Jul 2, 2014
Messages
12,955
Reaction score
13,314
First Language
English
Primarily Uses
RMVXA
This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.
 
Status
Not open for further replies.

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

Latest Threads

Latest Posts

Latest Profile Posts

My spirit can be so easily wounded by most things that nobody thinks twice about. It may be not a big deal to you, but it means EVERYTHING to me!
I have to make a custom tree for my FSM game and I'm nervous I won't get it right.
Finally got the tablet picture! :LZSsmile:
Working hard on my Mode7 interiors in between calls at work!
A good idea rise a moment before falling asleep, and survive the second coffee the day next morning.

Forum statistics

Threads
97,917
Messages
947,861
Members
129,159
Latest member
Nalkam
Top