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
Deleting unused assets from the vanilla maker? I think it's possible
*searches like hell*
This!
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.
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:
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.
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?
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.
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
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
Thank you for the answers!
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.