Save-Point
Missing Resources Report Generator - Printable Version

+- Save-Point (https://www.save-point.org)
+-- Forum: Material Development (https://www.save-point.org/forum-8.html)
+--- Forum: Scripts Database (https://www.save-point.org/forum-39.html)
+---- Forum: RPGMaker XP (RGSS) Engine (https://www.save-point.org/forum-116.html)
+---- Thread: Missing Resources Report Generator (/thread-5177.html)



Missing Resources Report Generator - DerVVulfman - 06-19-2014

Missing Resources Report Generator

Version: 1.1





Introduction
This script is designed to search throughout your RPGMaker XP's project to find any missing audio or graphic resources. It will search through both your project's database and through each map and map event, cataloging all media in your project, and then will perform tests to ensure each piece is in your project. If something is not present, it will be made available in a report entitled "Missing Resources.Txt" within your project's folder.




Script

The Script






Instructions

Too simple. Install it under your scripts and run the game. It does the search for you and makes a report in your project's folder.




Compatibility
Designed for use with RPGMaker XP and currently with the Beta version of the ReGaL gaming system in the works.


RE: Missing Resources Report Generator - hanetzer - 06-19-2014

Very nice indeed, lol. Unfortunately I just did two entire playthroughs of a game on normal mode and once in an easter egg mode doing this manually XD. Also, the fact that ReGaL handles *.mod format music has not a thing to do with ruby 2.1.2; it has to do with the multimedia libs used (SDL_audio, libmodplug) instead of what RMXP uses (directsound [audio equivalent of M$'s directX])


RE: Missing Resources Report Generator - yamina-chan - 06-19-2014

So similar to that File missing error preventer script by Woratana? Only I'm assuming this does one allround check at the startup, where that one showed up while playing?

*tests*
Hm. It did not show up as expected, but that does not mean the record was not isntant.
...However...XD' It went a little overboard XD
I just added it into a blank game, added and removed one audio file, to give it sometihng to find and now I have a report of 425 files missing Xb It found the missing audio file just fine, but it also reported many rtp file as missing XD'
http://pastebin.com/hc7CrfLk


RE: Missing Resources Report Generator - MechanicalPen - 06-19-2014

I wonder how much work it'd take to turn this into an event code patcher; not very much, it looks like. I just spent 5 hours yesterday copy-pasting bugged events with their correct version and it made me wish for a way to do it by code.


RE: Missing Resources Report Generator - DerVVulfman - 06-20-2014

Your game's database has all the default animations? Then it found and logged all animation graphics you have in your database that aren't in your project's folder. Ditto with the tilesets. It would find any and all tileset files, autotiles, fogs and panoramas you don't have in your project. So unless you cut back on your tilesets and animations in your project, you will have a large number of files. Likewise with audio effects within the animations.

It will be pretty much instant. It SHOULD run before the game starts, searching your entire database and through every map and map event.


RE: Missing Resources Report Generator - yamina-chan - 06-20-2014

But is that not somewhat ineficient, if it lists all the things that use the RTP, even if you don't use them in your game?
So unless the project removes everything the RTP sets up and has 100% usuage of custom recources, this will generate a large list to look trough that cound as missing even if they are not.
But for those who use their own recorces for everything, this might me nice.


RE: Missing Resources Report Generator - DerVVulfman - 06-22-2014

One may question it's efficiency. But I feel it as a necessary evil. This system cannot check any resources garnered by any other script, so it won't detect the bell chime effect when an AT bar is filled, nor the AT bar graphic itself. However, these are moot as the designer would certainly have these in their project anyway.

At the same time, some custom scripts may draw upon resources defined in the database such as battle animations. Custom teleportation and battlesystem scripts may access animations by a mere animation_id value being applied to an event or the player itself. As such, I feel the game designer should eliminate unwanted animations if they don't wish them to show in the resource list.


RE: Missing Resources Report Generator - yamina-chan - 06-22-2014

Again, it probably depends on how you design your game. This will be more usefull for some then it will be for others, but that's the beauty of all the things one can do with the makers =)


RE: Missing Resources Report Generator - DerVVulfman - 07-17-2014

Upgrade and bug fix bump to...
Version 1.1

I neglected to get the proper filenames to the 12 audio files in the Database's System Tab. Fixed.

Oh, and as it says it is ReGaL compliant, it now autodetects what version of RUBY is in use to see if it is for RPGMaker XP or ReGaL.