Main Menu
  • Welcome to The RPG Maker Resource Kit.

Window&Scene Wizard

Started by Mr.Mo, September 06, 2006, 11:39:27 PM

0 Members and 1 Guest are viewing this topic.

Mr.Mo

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


Version 1.0 Screen


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=TutorialAndScreens]
Name Your Scene

The Main Panel

The Window Panel

The Tool Box, Property Panel, and a Plain Window

The Contents

List Window

Dynamic-List Window

In to the Property Panel

[/spoiler]

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
WSW FrameWork 2.0 You don't have to download this if you pasted the above script in your game.
Mirror 2(MegaUpload)
Window&Scene Wizard
WSW FrameWork 2.0You 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

Dwarra?

Jesus Christ its an awesome script get in the car

Zeriab

It really does look nice Mr. Mo.

Great job making this!
I commend you

- Zeriab

Mr.Mo


Tsunokiette

Quote from: Mr.Mo on September 07, 2006, 07:35:30 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.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I'm the only one, I'm the only one."

Mr.Mo

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.

Tsunokiette

Quote from: Mr.Mo on September 07, 2006, 10:55:26 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.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I'm the only one, I'm the only one."

Mr.Mo

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.

psiclone

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]
QuoteScript 'Scene_Options' line 87: NoMethodError occured.

undefined method 'index' for nil:NilClass
[/SPOILER]

Here is the code that is giving the error:

[SPOILER]    # 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
[/SPOILER]

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?

Tsunokiette

Umm, make sure @command_window exists.

The error means it hasn't been initialized yet.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I'm the only one, I'm the only one."

.:Pyroken Serafoculus:.

#10
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.
...

Snailer

  :o 
I didnt even see this gonna try it out !!

.:Pyroken Serafoculus:.

Can someone please tell me how to fix my problem? I need this, you know.
...

DarkLordX

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?

RPG~NOOB!!!

Hey um how would i set up a menu i know how to place the box but how do i link it?

Demonic Blade

Isn't it possible to use this program, even if you don't know how to script?
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

Tsunokiette

Quote from: 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?

QuoteLike 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.
"The wonderful thing about Tiggers
Is Tiggers are wonderful things
Their tops are made out of rubber
Their bottoms are made out of springs

They're bouncy, trouncy, flouncy, pouncy
Fun, fun, fun, fun, fun!
But the most wonderful thing about Tiggers
Is I'm the only one, I'm the only one."

Demonic Blade

Thanks and whew... But uh... how do you insert it? Or is that somewhere in the demo?
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

modern algebra

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).

Demonic Blade

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?
I wonder how many of my-reps are there for a reason, and not just because some jackass wanted to show off in front of some other jackasses...?
Probably a lot of them - and those people sure as hell don't deserve my pity, let alone my disgust.
That's right, let's see some more -Rep'ing! BOOYEAH!!

Snailer

#20
*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:
  def main_draw
    #Draw Windows
    # Credit_window
    @credit_window = Credit_window.new
  end



This is the entire script if anybody needs to see it:
#==============================================================================
# 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

modern algebra

There's no Credit_window class ... You need to make that class to begin with

Taiine

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?