Author Topic: [XP] Resource Tester  (Read 18337 times)

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19931
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
[XP] Resource Tester
« on: January 09, 2008, 11:10:08 PM »
Resource Tester
Authors: Blizzard
Version: 1.05b
Type: Time-and-Space saving Utility
Key Term: Game Utility

Introduction

This script will search through your database and your maps for resources that are being used. It will create a list of the resources used in your game.

This work is protected by the following license:
Quote
Creative Commons - Attribution-NonCommercial-ShareAlike 3.0 Unported
( http://creativecommons.org/licenses/by-nc-sa/3.0/ )

You are free:

to Share - to copy, distribute and transmit the work
to Remix - to adapt the work

Under the following conditions:

Attribution. You must attribute the work in the manner specified by the author or licensor (but not in any way that suggests that they endorse you or your use of the work).

Noncommercial. You may not use this work for commercial purposes.

Share alike. If you alter, transform, or build upon this work, you may distribute the resulting work only under the same or similar license to this one.

- For any reuse or distribution, you must make clear to others the license terms of this work. The best way to do this is with a link to this web page.

- Any of the above conditions can be waived if you get permission from the copyright holder.

- Nothing in this license impairs or restricts the author's moral rights.

Features

  • finds all resources used in your game
  • incredible speed: searching trough a game with over 300 maps is a matter of just seconds
  • optional feature to list all actors, skills, weapons, armors, items, enemies, troops, states, animations, tilesets and common events that are never being used anywhere in the game and only log all the used data
v1.0b
  • fixed the typing mistake that would cause adding the skill with ID 1 into the logged skills instead of the real skill when the script was processing a "Force Action" event command
  • rewritten conditions using classic syntax to avoid RGSS conditioning bug
  • now beta
v1.01b
  • fixed glitch where changing a Battle End ME would be logged as SE
  • improved coding
v1.02b
  • fixed bug caused by a typing mistake
v1.05b
  • fixed other potential bugs

Screenshots

N/A for this sort of script

Demo

N/A

Script

Just make a new script above main and paste this code into it.
Script Download

Instructions

This script is totally Plug 'n' Play: Copy paste the code in a new script slot OVER ALL the other scripts you have, run your game and after the window closes, remove the script again. Voila! It's done!
More specific instruction inside the script in the first comment!

Compatibility

Compatible with anything, even the SDK 2.x (because it gets overriden). Will not search for script required resources.

Credits and Thanks

  • Blizzard

Author's Notes

If you use a system where you have more than one start location for the game (i.e. a separated mode with a different storyline) and want to turn DEEP_TESTING on during the testing, then just put in the starting map a dummy event with teleport commands to the starting maps of the other game modes.

If you are using DEEP_TESTING, be careful, since teleport commands that use a variable to determine the new map ID can't be tested. Do as you would with with different game modes: Create dummy events.

Auto-start and parallel process common events will be automatically logged from the beginning.
   
The best moment to use this script is just before you are going to compile and encrypt the game data. If you want to use it for resource cleaning, turn off DEEP_TESTING.

If you find any bugs, please report them here:
http://forum.chaos-project.com

That's it! N-Joy! =D
« Last Edit: February 21, 2009, 12:50:01 PM by Blizzard »
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: Resource Tester
« Reply #1 on: January 10, 2008, 06:21:00 AM »
This is a very nice utility.

Offline Nortos

  • Has earned a custom title
  • Chaos User
  • ******
  • Posts: 1303
  • LV: 20
  • Gender: Male
  • Celestial Bomb my Digital Ass
    • View Profile
Re: Resource Tester
« Reply #2 on: January 10, 2008, 06:28:46 AM »
this script saved my demo 40 mb :P
(click to show/hide)
Nortos's Stealth System
UltaFlame's Storyline Service
Blizz ABS - The Ultimate ABS!
My Resources

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: Resource Tester
« Reply #3 on: January 10, 2008, 06:43:05 AM »
Lol!! :)

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: Resource Tester
« Reply #4 on: January 10, 2008, 07:12:09 AM »
I tried making a pre-loader by modding this script, caching ALL the graphics before starting the game, Gamemaker style. Just for fun. I failed, but barely, maybe I'll try some other time.
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19931
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Resource Tester
« Reply #5 on: January 10, 2008, 12:35:32 PM »
Actually it would be very easy. At the end you should have a list of all resources. Simply use that array of strings to cache them.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: Resource Tester
« Reply #6 on: January 10, 2008, 01:01:10 PM »
That's what I tried, but I was half asleep then. Problem was with seperating the Audio folders. Is it even a good idea?
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Sally

  • Sallygirl :P
  • Chaos User
  • ******
  • Posts: 1283
  • LV: 12
  • Gender: Female
    • View Profile
Re: Resource Tester
« Reply #7 on: January 10, 2008, 01:50:09 PM »
maby maby not?

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19931
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Resource Tester
« Reply #8 on: January 10, 2008, 02:27:50 PM »
You don't have to cache audio, so why separate them? Everything besides ogg files is cached automatically. ogg are always loaded upon playing, you can't change that.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: Resource Tester
« Reply #9 on: January 10, 2008, 04:23:54 PM »
No, I mean to use RPG::Cache.load_bitmap(file) in the iterator, so that's not appropriate. Am I missing something?
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19931
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Resource Tester
« Reply #10 on: January 10, 2008, 04:48:12 PM »
There no other way to do it anyway. >_>
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: Resource Tester
« Reply #11 on: January 10, 2008, 04:53:17 PM »
Of course, oh well. Hey, can you do use the fileutils.rb and move the RTP files into the project folder?
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19931
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: Resource Tester
« Reply #12 on: January 10, 2008, 04:54:36 PM »
You actually can, but it ain't funny that way. :D
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Fantasist

  • Lexima Warrior
  • *******
  • Posts: 2222
  • LV: 146
  • Gender: Male
    • View Profile
    • Blog
Re: Resource Tester
« Reply #13 on: January 10, 2008, 05:02:06 PM »
lol! I'll give it a shot either way. Now, or some other time.

*updates to-do list*
Do you like ambient/electronic music? Then you should promote a talented artist! Help out here. (I'm serious. Just listen to his work at least!)

The best of freeware reviews: Gizmo's Freeware Reviews



Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19931
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Resource Tester
« Reply #14 on: April 05, 2008, 01:35:08 PM »
Updated. :3
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Calintz

  • Guardian of Chaos
  • ********
  • Posts: 3803
  • LV: 108
  • Gender: Male
  • A Pixel's Worst Nightmare
    • View Profile
Re: [XP] Resource Tester
« Reply #15 on: June 13, 2008, 02:16:23 AM »
This isn't much, but I still say it's an awesome script. Anything that can help reduce the overall file size of your project is amazing!!

Offline Holyrapid

  • Astral Trancist
  • *****
  • Posts: 749
  • LV: 0
  • Gender: Male
  • Credit to FreshL on Deviantart
    • View Profile
    • My new Youtube channel!
Re: [XP] Resource Tester
« Reply #16 on: January 14, 2011, 10:25:15 PM »
I AM EXTREMELY SORRY TO NECROPOST LIKE THIS!
But a friend/fellow member at another forum, RPG Maker Finland, wanted to use this with VX, but it was incompatible, so he asked me to ask some one here to make a VX version for this.
So, could someone do it? It would probably help many VX users...

Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19931
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Resource Tester
« Reply #17 on: January 17, 2011, 09:45:27 AM »
It shouldn't be complicated. If somebody wants to do it, go ahead. That person would mostly only need to change the data structures that are checked and a few of the variables that are checked.
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.

Offline Storm

  • Awakened Visionist
  • **
  • Posts: 62
  • LV: 0
  • THE ORION ROCKS!
    • View Profile
    • The Orion Forum
Re: [XP] Resource Tester
« Reply #18 on: January 17, 2011, 02:13:53 PM »
You are the best after all Blizzard.. XD
(Are you going to beat XAS? MogHunter is better in ABS.)
I was working on the game called The Orion.
It would be nice if you can join our small community by sharing a little by little scripts/ideas at The Orion Forum

I am: RPG Maker XP Scripter
Project Working On: The Orion MMORPG Game, visit The Orion Forum for more information!
Visit my: Deviantart

LEVEL ME UP OR ELSE LEVEL ME DOWN, IT'S EASY! XD


Offline Blizzard

  • This sexy
  • Administrator
  • has over 9000 posts
  • *****
  • Posts: 19931
  • LV: 642
  • Gender: Male
  • Magic midgets.
    • View Profile
    • You're already on it. (-_-')
Re: [XP] Resource Tester
« Reply #19 on: January 17, 2011, 04:27:58 PM »
Have you even tried the latest version of Blizz-ABS before you said that?
Check out Daygames and our games:

King of Booze      King of Booze: Never Ever      Pet Bots
Drinking Game for Android      Never have I ever for Android      Pet Bots for Android
Drinking Game for iOS      Never have I ever for iOS      Pet Bots for iOS
Drinking Game on Steam


Quote from: winkio
I do not speak to bricks, either as individuals or in wall form.

Quote from: Barney Stinson
When I get sad, I stop being sad and be awesome instead. True story.