Showing posts with label Script Manager. Show all posts
Showing posts with label Script Manager. Show all posts

Dec 29, 2013

The Variables Binder or How I Made Something Easy Even Easier

Faithful users of my works know that I like event-controlled system, when appliable. For example, my Balloon Messages System relies not on clumsy commands input in messages or stuff like that, but rather on regular switches and variables, which are easier to handle. Those switches and variables are then read by the scripts which in turn do their job. To achieve this, the scripts have to know which switches/variables were appointed to this or that purpose, because from one project to another, a same switch/variable may very well have a different ID - like, if I use switches #2 and #3 in my demo, they might already be allocated, and you'd like to use other ones instead.

Up to now, you had to manually set up constants for that purpose. You had to choose free switches/variables in your project editor, then you had to open the script where the constants were set and replace each of them with the ID you'd chosen, and then it was all cool and easy. That was, until I decided I was too lazy to do the manual part anymore. I decided it was not that hard for the scripts to find the matching switches/variables after all and they could very well do it on their own. From that decision, a new script was born. Behold... here's the Variables Binder!



So what does it do?

Basically, automate the process of binding switches/variables as set in the project editor with the scripts. Say you install the Balloon Messages System to your project, you run it just after, then return to your project editor and poof! a couple of variables and switches which control this system have installed themselves in free slots, saving you the trouble of naming them manually. From then on, those switches/variables will automatically be recognised by the script you've just installed and you don't need to worry about that anymore. So, in short, it's simple as 1-2-3.



Any recommendations?

The Variables Binder will never ever mess with switches/variables which already have a name so it's absolutely safe to use on a project you have already started a while ago - however, it decides whether a switch/variable is free based on whether its name is empty or not, so make sure all of the switches/variables you're using at this time have a name, otherwise you could get surprises.

You can see that your newly named switches/variables have got a tag before their name. This makes it easier to see which variables group together, but it also works as an identification code. That is, you're free to rename the switch/variable as long as you keep its tag intact.

If you were already using one of my event-controlled scripts prior to the arrival of the Variables Binder, please make sure the variables you've set manually have the exact same name (without the tags) as in the original demo, since when the tag is absent, the Variables Binder will identify them based on their name, and automatically add the matching tag - so you end up with the exact same settings as if starting a fresh new project with the scripts' latest version.

If the switches/variables have not been installed prior to the Variables Binder's first launch, it will claim the first free slots it can find, so you might want to have several of them in a row so that they don't get scattered. Also, make sure you have set the maximum number of items so that there's enough room for the newcomers in the first place!



What if I still want to set the variables manually?

If you're not satisfied with the Binder's automated setup for whatever reason, there's nor problem at all. Just cut/paste the name of the variable you want to move to another slot. Since the setup is dynamic, the script will recognize the newly named variable as if it had set itself up on the next time you run the game.



Where can it be found?

The Variables Binder is part of the latest version of my Common pack. You should re-download it to ensure compatibility with my future scripts.

Aug 25, 2013

Surprise on the Moon!

Hello folks,

Recently I was announcing I'd lost some significant contents that was supposed to help me complete the oh-so-awaited update to the Script Manager. This led me to question some choices I had made at the time, since I was to remake them anyways. And so, I'm pleased to announce that I've AT LAST succeeded at making the Script Manager as versatile and powerful as I wished it to be. Though it's not quite the all-in-one utility I had in mind at first, I think it's all better as it is now.

From now on projects are going to be hybrid, meaning you can run them as regular projects using their featured copy of the scripts they use, or run them using the Script Manager, with no modification whatsoever. For example, when I release a new script, you can try it out downloading it as a plugin and launching your project with the Script Manager - this will read the newer version you've downloaded instead of the older one from your script editor, without replacing it, so your game still runs the same as before. Additionally I've made a tool to export scripts from your projects (read scripts from the script editor and export them as .rb files, so that they can easily be used along with the Script Manager), as well as another one aimed at importing the .rb files used by the Script Manager into your script editor, all of this automated of course.

I will not be going more into detail tonight, I was merely to excited about this new achievement to wait any longer to let you know. I will be replacing all of my Script Manager-dependant demos with hybrid demos you can run as they are in the following days. As of right now only the newer version of the Ballon Messages Demo is available for download. You can try it out, check that it does actually run on its own, and have a look at the scripts inside its script editor, all of them imported automatically from external .rb files. :)

Have fun!

Aug 20, 2013

Even More News From The Moon

Hey guys,

Today I wanted to complete the update I'd promised a loooong time ago on the Script Manager, but I realized I had failed to update my backup copy with the latest version of my works. Fortunately not everything was lost, but I have a lot of catching up to do and I must confess this sad event has killed the little courage I was able to gather. So probably still no update before a while.

Regarding OpenRGSS, a friend of mine helped me through the process of writing the C code I need, but now we're stuck at the compilation step, which really seems to be a pain with Ruby in a general manner. Also, I'm considering dropping SDL as OpenRGSS's backbone and replacing it with SFML at the suggestion of a community mate, but I still need to investigate its features and of course, to install it succesfully before making a decision. This would mean rewriting the low-level engine, but hey, life is an eternal starting over.

So, lately, I feel the urge to create something, but nothing seems to go right. Anything for me to do, anybody?

Nov 26, 2012

Script Manager updated!

Some of you might have encountered an error while trying my latest creation (uninitialized constant - Function_Sinusoide). The reason of this is that I made additions to my Common script bundle in the process, which means you need to re-download it before trying to use my Animated Battlers bundle. To avoid this inconvenience in the future, I thought it was about time to give my Script Manager a lil' update.

New features
  • Version check - if a script requires a newer version of a script than the one you have installed, you will be notified when launching your project.
  • Dependencies check - from now on, script bundles automatically load the bundles they bundles they require.
  • New error messages - You will be notified upon various unexpected events (missing files, bad configuration file, bundle not installed...) to help track your issues better.
  • Various fixes and improvements.

Please re-download the Script Manager and all scripts bundles of mine you're using to match its new specifications. People who want to keep their current versions for whatever reason should still update at least the following:
  • The Script Manager itself
  • MP Common > Functions.rb
  • All bundles > setup.ini (note - the load_order.ini file is obsolete)

Thanks for your time and happy using. :) 

May 10, 2012

Single-Character Main Menu For ACMS

Hello to all of ACMS fans. Today, here's a special preview of ACMS's upcoming features. It's a small tweak which makes the main menu character-oriented - that is, instead of selecting an option, then selecting an actor, you select an actor using L and R buttons and all options will apply to them. I thought of that when looking at some people's feedback, saying they wouldn't use ACMS because their game only featured a single character. So, now, no matter how many characters your game has, you may choose between both interfaces.

Donwload and put in your project's Script/MP Animated Custom Menu System folder (create it if needed). This also serve as a demonstration of how a shared script can be expanded/modified locally, without altering the shared copy.



May 8, 2012

Animated CMS update complete (at last)!

As my faithful followers already know, it's been a while since I wrote the v2.00 for the Animated CMS. Back then I said it would take a while for me to update all themes to match this new version's specifications. Well I was damn right, it has taken a while. :p But now everything's up and working, and ready to work with my latest contribution, the Script Manager. Also, I made four different demos for each theme, since they don't include the script anymore, but rather read it from the Script Manager, and thus work with the exact same copy. Guess they will serve as demos for the Script Manager as well. ;)

Happy downloading and customizing... ACMS's true followers shall notice the few improvements I added to each theme...

May 6, 2012

The Script Manager

The Script Manager is a tool that was initially designed to automate script installation and get rid of the troublesome copy/paste process. If you:
  • have only one RPG Maker project
  • don't mind copying.pasting scripts in the first place
  • aren't a scripter yourself
  • don't understand the first thing about this post
Then don't bother trying it, it is no longer needed to use my scripts like it used to be.

It is useful, however, if you:

  • wish to use the same script(s) in a variety of projects/demos and keep all of them up-to-date at all times
  • wish to experiment with installing or uninstalling scripts without actually modifying your projects
  • are a scripter and wish to test scripts in development withtout actually modifying your projects
  • have lots of scripts and wish to automate their extraction/installation




What's That?!


The Script Manager is a developer's tool that is useful when you wish to share scripts across several projects. Using it, instead of having a copy of your scripts in each and every project of yours, you can install a single, central copy all projects will then feed upon, pretty much like the RTP packages do with multimedia resources.





What For?


I initially designed the Script Manager to make my life as a scripter easier. I had this pack of scripting tools I called Moonpearl's Common, I kept updating (and am still updating every now and then) and I found it annoying to copy the newer version to all of my demos with each tiny change - plus, I sometimes wasn't able to tell which project had which version. Now I don't have this problem anymore because there's only one copy of those scripts on my hard disk, which all of my projects use at any time.






Should I Use It?


The Script Manager is essentially a scripter's tool. This means that as a casual RPG Maker user, trying and get it to work is probably too much trouble for you. It used to be a necessary feature for hits blog's demo, but starting with the latest update, it isn't anymore. Demos are now hybrid - that is, they have their own built-in copy of the custom scripts they use, which you can simply copy/paste to your own projects, and also meaning that they are stand-alone - but on the other hand, if a Script Manager is present on your system, they can also use it and override their internal scripts, allowing you to take advantage of its benefits.

For example, when I update one of my scripts, you can simply download the new version and replace your older copy with it in your RTP folder, and all Script Manager-using projects will automatically run the newer version instead of the older one they still have in memory, which saves you a lot of copying & pasting. In the end it's completely up to your own preference, now both ways work without hindering each other.





Will I Be Able to Distribute My Project?


Of course. While using the Script Manager, your project shall feed on script that are installed in your shared folder, meaning they're not in the project as such. However the Script Manager Project Builder will automatically (re)install all scripts into your project's script editor. So you can safely experiment with adding/removing scripts without changing your project's scripts until you're sure.





Can I Make My Own Scripts Compatible With the Script Manager?


Of course! And I would be delighted if you would do so! Especially considering it's not that difficult, you just have to make each entry into a .RB file (plain text file with the .RB extension) and write a setup file which will tell the Script Manager in which order the entries need to be loaded (if it matters at all). Since projects are now hybrid, you can release both your regular demos with built-in scripts, and a separate scripts package for people who want to use the Script Manager.





Known Issues


  • There's a stupid bug when forcing game exit (clicking the red cross or pressing Alt+F4). This doesn't bring any harm since you were going to exit the game anyway. I promised I would fix this issue but  I still don't have the faintest idea as to why it occurs.




Instructions



  1. Go to your RTP folder (default Program Files/Common Files/Enterbrain/RGSS/Standard) and create a new folder called Scripts. This will be referred to as the shared scripts folder.
  2. Download the ZIP file and extract it to the shared scripts folder.
  3. Go to your project's folder and create a new folder called Scripts. This will be referred to as the local scripts folder.
  4. If you already have scripts installed in your project, drag-and-drop your project's folder onto the Script Manager Project Exporter shortcut. This will create a Local folder in your local scripts folder.
  5. Create a new file called Script Manager.ini inside the local scripts folder.
  6. Download the script bundles you wish to install to your projects and unzip them to the shared scripts folder.
  7. Edit your project's Script Manager.ini file and name the scripts you wish to install to your project (one per line). At this time your project's scripts have not been modified
  8. Drag-and-drop your project folder onto the Script Manager Project Loader shortcut to run it.This will load your project using the scripts you have previously named - this will not modify your project's scripts.
  9. When everything works fine and you are ready to replace your project's scripts with the selection you have made with the Script Manager, drap-and-drop your project's folder onto the Script Manager Project Builder shortcut. From then on loading your project with the Script Manager or running the Game.exe file will have the same outcome.




Downloads



You can find all scripts bundles of mine on the My Scripts Compilation page. You should download those three first since they will be required by virtually any of the others:


Note: remember to update the Common bundle once in a while, as it may potentially be expanded with each new release of mine. An outdated Common bundle is a common cause of problem.