The RPG Maker Resource Kit

RMRK RPG Maker Creation => XP => XP Scripts Database => Topic started by: Mr.Mo on September 06, 2006, 11:39:27 PM

Title: Window&Scene Wizard
Post by: Mr.Mo on September 06, 2006, 11:39:27 PM
Window&Scene Wizard
Introduction
I hate blind scripting the Windows so, I made this program. Make sure to read everything in this post. It uses RMXP.
This should be pretty simple to those who have used Visual Studio .Net before.
 
Description
Like the name says, It generates scripts of the windows and scene you design.
This program is made of two parts;
The Wizard - Lets you design Windows/Scenes and add contents to them.
The FrameWork - You need to add this to your game. Inlcuding the graphics its comes with.

The Scene that is generate is very basic, it consists of the methods;
main
main_draw
main_loop
main_dispose
main_scenechange?
update
update_windows

Version 2.0 Screen
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F8852%2Fwiz2ep0.th.png&hash=09764b7dd02fd0d8f38f76692b5f2ebbeddf4374) (http://img216.imageshack.us/my.php?image=wiz2ep0.png)

Version 1.0 Screen
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg390.imageshack.us%2Fimg390%2F2909%2Fwiz1pm3.th.png&hash=df93fe5e49310ffb12b70f7d8ca0b7d71d58eabc) (http://img390.imageshack.us/my.php?image=wiz1pm3.png)

Features
- Fully Mouse and Keyboard Interegated!
- Lets you move and resize windows with the mouse.
- Lets you edit object(windows, contents) properties.
- Lets you name your windows and scenes.
- Lets you make the windows global or instance.
- Lets you add contents(text, pictures and ect.)
- Lets you move contents with mouse.
- Lets you edit content properties.
- Genereates Code
- And Many more!

History
Version 2.0
- Window Command casing
- Actor CharSet - Party, Database
- Actor Battler - Party, Databas
- Able to choose actors from Party or Database for some contents
- Parameters bar(str, int, dex and ect.)
- Save
- Background
- Help Window
- Vertical Bars

Version 1.0
- First Release

Working on
Version 2.5 will have
- Undo/Redo(Unlimeted Times)
- Cut/Copy/Paste
- Right Click - Opens a menu, depending on what you right click on. Will include, Undo/Redo, Cut/Copy/Paste, and window list if the windows overlap.
- List all windows - for quick selection in a big scene. (Seperate(base,list,dlist) or all)
- List all contents - For quick selection in a big scene.
- List all Variables - For quick selection.

Version 3.0 will have
- New User Interface, I hate the way it is right now.... Will be much better tho :)
- More Window Properties;
---- Disable/Active
---- Hide/Show
---- OnCreate(determines if the window is created on main_draw)
---- stretched(or tiled)
---- ox/oy adjustment
- Window_Command's commands control. The user will have the ability to;   
---- Call Window
---- Call Scene
---- Activate Window or Disable
---- Create Window, Dispose Window
 
Version 3.5 will have
- Code Snippets - wil come with some but the user will have the ability to add his/her own.
-Visual Data Editor - Like a table, but more practicle, enables the ordering of events(methods, varaibles, actions) that happen in script. Let me put it this way, imagine the whole scene as window that you can add contents to ;) Hopefully, This should let users do a "full" working CMS with this.

Version 4.0 will have
- Sockets/Networking - Lets you design windows online, with other people.

Instructions
How To Install
1)Download both files and unzip.
2)Go to the WSW FrameWork 1.0 and move all the scripts and graphics to your game.
How to use
1) Place the Wizard anywhere.
2) Add the graphics you would like to use to the Graphics Folder. DO NOT REPLACE THE GRAPHICS that are ALREADY THERE.
3) Read the Tips.
4) Read the Tutorial. Its in pictures ;)

Screens and Tutorial
I left out alot of features but, this is the basics to get you started.
Spoiler for TutorialAndScreens:
Name Your Scene
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg471.imageshack.us%2Fimg471%2F2859%2Fwz1namesceneqa7.th.png&hash=cec35325a461dac35b28bb7d5d92d9d939aa8d48) (http://img471.imageshack.us/my.php?image=wz1namesceneqa7.png)
The Main Panel
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg216.imageshack.us%2Fimg216%2F3598%2Fwz2mainpanelmi7.th.png&hash=07a76dc900df7305117117f362131ffe128b1efc) (http://img216.imageshack.us/my.php?image=wz2mainpanelmi7.png)
The Window Panel
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg54.imageshack.us%2Fimg54%2F9346%2Fwz3windowpanelur4.th.png&hash=388ec1c2114ac98ab9ef9953578586f1b7cf9441) (http://img54.imageshack.us/my.php?image=wz3windowpanelur4.png)
The Tool Box, Property Panel, and a Plain Window
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg234.imageshack.us%2Fimg234%2F2898%2Fwz4toolandpropertyel7.th.png&hash=0d656e35fb299b97b8099829b23b136904afff44) (http://img234.imageshack.us/my.php?image=wz4toolandpropertyel7.png)
The Contents

List Window
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg148.imageshack.us%2Fimg148%2F7053%2Fwz6listwindowiy3.th.png&hash=4272e225bac732e8f5debe411ffd93979c233b6a) (http://img148.imageshack.us/my.php?image=wz6listwindowiy3.png)
Dynamic-List Window
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg148.imageshack.us%2Fimg148%2F8638%2Fwz7dlistwindowwk1.th.png&hash=bd94ff085423f308229a728d73d52bbfaa580010) (http://img148.imageshack.us/my.php?image=wz7dlistwindowwk1.png)
In to the Property Panel
(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg148.imageshack.us%2Fimg148%2F452%2Fwz8propertypanelexwf9.th.png&hash=cc468f4da7a457d0b42beae6c063265b7834fcb0) (http://img148.imageshack.us/my.php?image=wz8propertypanelexwf9.png)

Tips
1) Always name your Scene and Windows.
2) Never use the same name more then once
3) Do not use capitals for the first letter for windows, but use for Scenes.
4) Do not use Spaces when naming windows. Instead use _ .
5) Hold shift to use Cap letters.

Download
Make sure to read the tutorial and the Instructions.
Mirror 1(SaveFile)
Window&Scene Wizard (http://www.savefile.com/files/31442)
WSW FrameWork 2.0 (http://www.savefile.com/files/31436) You don't have to download this if you pasted the above script in your game.
Mirror 2(MegaUpload)
Window&Scene Wizard (http://www.megaupload.com/?d=4JIFH209)
WSW FrameWork 2.0 (http://www.megaupload.com/?d=BNIN9OQK)You don't have to download this if you pasted the above script in your game.

UnFixed Bugs
1) Data Text doesn't work. Yet.

Notes
Remember, this is to help design. You still need to know how to script a bit, if you are making something like a menu.

If you think Navigation would be hard, or similar to Dubalex's script then you are mistaken. The windows you need will appear once an object is clicked. It is called a wizard for a reason.

Request It
I'm open to ideas on what should be added in to improve this.

Thanks and Credits
Credit me ofcourse :P
Trickster's Gradient bars

Thanks to;
Near Fantastica's Input Script *Edited by me and AstroMech
CyberSam's Mouse Script
AstroMech's Mouse script
Squall's Resolution Script
Title: Re: Window&Scene Wizard
Post by: Dwarra? on September 07, 2006, 01:45:21 PM
Jesus Christ its an awesome script get in the car
Title: Re: Window&Scene Wizard
Post by: Zeriab on September 07, 2006, 07:16:34 PM
It really does look nice Mr. Mo.

Great job making this!
I commend you

 - Zeriab
Title: Re: Window&Scene Wizard
Post by: Mr.Mo on September 07, 2006, 07:35:30 PM
Thanks for the replies :)
Title: Re: Window&Scene Wizard
Post by: Tsunokiette on September 07, 2006, 10:31:07 PM
Thanks for the replies :)

You inspired me to try and write my own version, so like Zeriab, I commend you.

The writing of the actual script based on what you input isn't so hard, I'm more interested in how you put together the Interface lol.

Though I recommend you look into Ruby - (The Language, not RGSS) and try to write better versions of this as a program.

Ruby works together with TK to create simple I/O GUI's, but there are other ways to create GUI's, so if you take up the challenge, I wish you the best of luck.
Title: Re: Window&Scene Wizard
Post by: Mr.Mo on September 07, 2006, 10:55:26 PM
hmm, I guess I'm not known here :P j/k

I'm aware the current code generated is pretty basic, later versions, like 3.5 will not have simple code generated, although it will be still high in performance and well orginized.

The UI was simple, I've dealt with these kind of scripts before but I'm remaking the UI. It sucks.. I'm not happy with it, like everything I make lol. There is always room for improvement :P.

Well, its open source, so have a look at it. Just don't copy and paste anything.  :-\

I know alot about ruby and all. Making this in Ruby would be harder. I know the programs to use too. Its just RMXP is easy. Using TK wouldn't be the best way to go. It sucks :P I rather use fxRuby.
Title: Re: Window&Scene Wizard
Post by: Tsunokiette on September 07, 2006, 11:01:44 PM
hmm, I guess I'm not known here :P j/k

*text deleted to save space*

Well, its open source, so have a look at it. Just don't copy and paste anything.  :-\

I know alot about ruby and all. Making this in Ruby would be harder. I know the programs to use too. Its just RMXP is easy. Using TK wouldn't be the best way to go. It sucks :P I rather use fxRuby.

Could you pm or post a link to info on fxRuby?
I've heard about it but am completely new to the language itself.
RGSS may borrow heavily from RUBY, but it's not RUBY itself. Many of RUBY's features aren't supported (which sucks... a lot).

Lol at your first comment, I just like talking as if I know what I'm talking about.
Title: Re: Window&Scene Wizard
Post by: Mr.Mo on September 07, 2006, 11:22:41 PM
yup sure.

http://www.fxruby.org/
That lets you code and make UI/Programs in Ruby. But lazyness of people and convinience leads to better things. Some guy made a UI for fxruby :)
http://fox-tool.rubyforge.org/

Just follow the directions on the site.
Title: Re: Window&Scene Wizard
Post by: psiclone on October 13, 2006, 01:05:00 AM
I guess I don't completely understand the instructions..

I've made a menu script, and I've put it into my game. However, when I go to use it, it gives me a method error.

Spoiler for:
Quote
Script 'Scene_Options' line 87: NoMethodError occured.

undefined method 'index' for nil:NilClass

Here is the code that is giving the error:

Spoiler for:
Code: [Select]
    # If C button was pressed
    if Input.trigger?(Input::C)
      # Branch by command window cursor position
      [b]case @command_window.index[/b]
      when 0 # Window Options

     
      when 1 # Play Music

     
      when 2 # Play Sounds

     
      when 3 # Exit

      end
    end
  end

Yes, I know the "when"s are all blank, I haven't gotten that far into making the menu system, yet.

I've copied the one script from the WSW FrameWork demo, since that's what I got from the instructions.. Is there something else I'm missing that someone could help with?
Title: Re: Window&Scene Wizard
Post by: Tsunokiette on October 13, 2006, 02:40:12 AM
Umm, make sure @command_window exists.

The error means it hasn't been initialized yet.
Title: Re: Window&Scene Wizard
Post by: .:Pyroken Serafoculus:. on February 25, 2007, 04:35:47 PM
This is awesome! But I get an error as soon as it starts. Apparently, at line 22 of [WIN]Window_Base, the stack level becomes too deep. Am I doing something wrong? I pasted the [Content]Framework at the end of the [Content] scripts.

To clarify, I did put in all the graphics.
Title: Re: Window&Scene Wizard
Post by: Snailer on February 25, 2007, 04:47:00 PM
  :o 
I didnt even see this gonna try it out !!
Title: Re: Window&Scene Wizard
Post by: .:Pyroken Serafoculus:. on March 06, 2007, 11:33:20 AM
Can someone please tell me how to fix my problem? I need this, you know.
Title: Re: Window&Scene Wizard
Post by: DarkLordX on June 03, 2007, 04:41:18 PM
Sorry, uhhh.... Seraphim... but I wouldn't know about the error. ;/

Great script, very useful, BUT: In the icons list, it only goes down a few. It won't go any further than 15... and I need most of those. ;/ Is that a limit in the scripting, or is something wrong?
Title: Re: Window&Scene Wizard
Post by: RPG~NOOB!!! on December 05, 2007, 12:48:41 AM
Hey um how would i set up a menu i know how to place the box but how do i link it?
Title: Re: Window&Scene Wizard
Post by: Demonic Blade on December 24, 2007, 11:34:11 AM
Isn't it possible to use this program, even if you don't know how to script?
Title: Re: Window&Scene Wizard
Post by: Tsunokiette on December 26, 2007, 07:52:17 AM
Isn't it possible to use this program, even if you don't know how to script?

Quote
Like the name says, It generates scripts of the windows and scene you design.

You don't need to know anything about scripting to use this.
PS Merry Christmas.
Title: Re: Window&Scene Wizard
Post by: Demonic Blade on December 26, 2007, 08:28:25 AM
Thanks and whew... But uh... how do you insert it? Or is that somewhere in the demo?
Title: Re: Window&Scene Wizard
Post by: modern algebra on December 30, 2007, 08:16:20 PM
Just play the demo. It will generate a code when you are done and you can insert that code into your script. You might need to know some scripting in order to implement some functionality to it (for instance, if you are making a menu and you want menus and stuff which call new scenes).
Title: Re: Window&Scene Wizard
Post by: Demonic Blade on December 31, 2007, 02:34:50 PM
That's what I am talking about. That is the problem. I'm only on RPG's (His username on the forum where the tut is is Constance or something like that) third scripting tutorial... I have played the demo, but how do I call it?
Title: Re: Window&Scene Wizard
Post by: Snailer on February 14, 2009, 03:37:46 PM
*Blows off dust*

Sorry to bother all of a sudden but I created a really simple menu with nothing but tekst and 2 pictures.

I tried to call it and got an error saying:
Quote
line 33: NameError occurred.

uninitialized constant Scene_Credits::Credit window

this is the piece of code:
Code: [Select]
  def main_draw
    #Draw Windows
    # Credit_window
    @credit_window = Credit_window.new
  end


This is the entire script if anybody needs to see it:
Code: [Select]
#==============================================================================
# Scene_Credits
#==============================================================================
class Scene_Credits
  #--------------------------------------------------------------------------
  # * Main - Handles drawing/disposing windows and the main loop
  #--------------------------------------------------------------------------
  def main
    #Draw Windows
    main_draw
    #Execute transition
    Graphics.transition
    #Main Loop
    loop do
      #Main Loop
      main_loop
      break if main_scenechange?
    end
    #Prepare for transition
    Graphics.freeze
    #Dispose Windows
    main_dispose
  end
  #--------------------------------------------------------------------------
  # * Main Draw - Handles drawing windows
  #--------------------------------------------------------------------------
  def main_draw
    #Draw Windows
    # Credit_window
    @credit_window = Credit_window.new
  end
  #--------------------------------------------------------------------------
  # * Main Scene Change
  #--------------------------------------------------------------------------
  def main_scenechange?
    # Abort loop if screen is changed
    if $scene != self
      return true
    end
    return false
  end
  #--------------------------------------------------------------------------
  # * Main Dispose
  #--------------------------------------------------------------------------
  def main_dispose
    # Dispose All Windows
    # Dispose Credit_window
    @credit_window.dispose
  end
  #--------------------------------------------------------------------------
  # * Main Loop
  #--------------------------------------------------------------------------
  def main_loop
    # Update game screen
    Graphics.update
    # Update input information
    Input.update
    # Frame update
    update
  end
  #--------------------------------------------------------------------------
  # * Update
  #--------------------------------------------------------------------------
  def update
    # Update Windows
    update_windows
  end
  #--------------------------------------------------------------------------
  # * Window Update
  #--------------------------------------------------------------------------
  def update_windows
    # Update Credit_window
    @credit_window.update if @credit_window.visible
  end
end

I'd appreciate it if anybody could correct my wrongs.

I do see this problem is already stated above but I have no idea how to fix it.
I tried def Initialize
Title: Re: Window&Scene Wizard
Post by: modern algebra on February 16, 2009, 04:01:33 AM
There's no Credit_window class ... You need to make that class to begin with
Title: Re: Window&Scene Wizard
Post by: Taiine on October 04, 2009, 10:02:37 AM
I know this post is a bit old but I was still hoping for some aid in using this wizard.

I have been working on a game that does not use 'levels' but rather gear upgrades to effect the stats of the players, so am lot of stuff in the window stats screens is unneeded. Been for a while trying to design a status system that removes all the unneeded stuff and some.. more useless things.

I was hoping this wizard would make the process easier. However it will not pass the first screen.

I start it, it lets me type in a name, but that's it, Make/Load do nothing, it just sits there. Does anyone know if this still works or is something wrong? Do I have to go back to trying to make these windows myself?