Window&Scene Wizard
IntroductionI 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.
DescriptionLike 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=e9e924f82e0bd2afc911e28405ca74f84ea7b1ae) (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=94f727166daba8e43107716b9e8778a43a39fe2b) (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!
HistoryVersion 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 onVersion 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.
InstructionsHow To Install1)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 use1) 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 TutorialI left out alot of features but, this is the basics to get you started.
[spoiler=TutorialAndScreens]
Name Your Scene(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg471.imageshack.us%2Fimg471%2F2859%2Fwz1namesceneqa7.th.png&hash=53912fc74c494e96e5f43f7f3fc34e8e7363d907) (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=d5ce206c17db1ae1e5785cbd211f8e3dddc90777) (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=cbb2ee3093aec539e9571cd029105c3b13d1f162) (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=75a253747b8db7f73a25a518a1655dd310cd4598) (http://img234.imageshack.us/my.php?image=wz4toolandpropertyel7.png)
The ContentsList Window(https://rmrk.net/proxy.php?request=http%3A%2F%2Fimg148.imageshack.us%2Fimg148%2F7053%2Fwz6listwindowiy3.th.png&hash=f89473d77227a1c15e109a652774cf674f21f1d3) (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=f1b34797d9f6889ad59bf4bd6cca2a208968de40) (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=a4e003b9f27e6ca78436ac26e7e0b4a14b2f931d) (http://img148.imageshack.us/my.php?image=wz8propertypanelexwf9.png)
[/spoiler]
Tips1) 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.
DownloadMake 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 Bugs1) Data Text doesn't work. Yet.
NotesRemember, 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 ItI'm open to ideas on what should be added in to improve this.
Thanks and CreditsCredit 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
Jesus Christ its an awesome script get in the car
It really does look nice Mr. Mo.
Great job making this!
I commend you
- Zeriab
Thanks for the replies :)
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.
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.
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.
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.
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?
Umm, make sure @command_window exists.
The error means it hasn't been initialized yet.
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.
:o
I didnt even see this gonna try it out !!
Can someone please tell me how to fix my problem? I need this, you know.
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?
Hey um how would i set up a menu i know how to place the box but how do i link it?
Isn't it possible to use this program, even if you don't know how to script?
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.
Thanks and whew... But uh... how do you insert it? Or is that somewhere in the demo?
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).
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?
*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
endThis 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
There's no Credit_window class ... You need to make that class to begin with
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?