Including Only Essential RTP Resources in Game
a guest Dec 5th, 2016 3 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
- INCLUDING ONLY ESSENTIAL RTP & 3RD-PARTY RESOURCES IN DISTRIBUTED GAME
- (Note: End user does not need to have RTP Gamemaker installed or download the entire range of RTP resources in order to play game.)
- ANALOGY: When you share your special recipe of Kimchi noodles made with 10 ingredients obtained from your neighbourhood RTP "Supermarket", there is no need to include all 10,000 ingredients found in RTP "Supermarket". Just package the 10 ingredients used. :)
- REFERENCE GUIDE: SUMMARY OF MAIN POINTS
- Cut out the RTP, adds only files actually used, i'm sure you are not using 100% of the RTP.
- you remove the RTP and then manually add back in every RTP element that the game actually uses. This includes all graphics and audio listed in your System tab, as well as those used in Animations that are used in the game, plus any that you've actually used in your database and maps.
- the "RTP=" is left intact, [while] the "RPGCXACE" part has been removed. This tricks the game into never finding RTP, even when it's on your computer. Save this change you've just made and you can close the Game.ini file.
- By now, if you've tried starting your game after this point, you'll probably start getting missing file errors. This is because your game no longer finds the games in RTP folder but rather in the game folder.
- What you want to do is import stuff from the RTP that you need for your game, the ones that give errors. Use resource manager and you can drag many items at once, importing them to your project. Make sure you test the game various times so that you've got all the game's bugs worked out. If you have the missing file error, your player also will have it.
- Any audio files you have that are MP3 should be converted into OGG. That usually saves me a lot of space.
- In essence what you do is:
- • Remove the RTP by changing the line in the game.ini file. You then have no RTP at all, whatsoever.
- • You then import those RTP files that you will be using, plus anything else that you will actually be putting into the game. These will show up as red, even though they are RTP items. Anything you import is red. You should have no blue at all.
- • Do this as early in the game as possible, so that you can be sure you haven't accidentally used something which you have not imported back in.
- • At the time you compress the game, do NOT tick the 'Include RTP Data' box. (You've just gone to all that trouble to get rid of it.)
- • This is for releasing the game without putting the whole RTP, but also makes it so that the game don't look for the RTP (because you could pack the game without the RTP by not checking the include RTP option but that means it will look for the RTP on the player's computer).
- • Any file that you would need should be added manually by you into the project if you're gonna go with this route. You would need to do it because you won't even have resources on the editor once you do the first procedure of this method.
- • As for the Fonts, you still need to put VL Gothic into the Fonts folder. Because the engine was hardcoded to look for that font.
RAW Paste Data