Gemini - RGSS/RGSS2 Script Editor

Gemini Script Editor
Image
Authors: ForeverZer0 and Zeus81
Version: 2.0.0
Type: RGSS/RGSS2 Script Editor



Introduction

Gemini, named after the Zodiac Twins (RMXP/RMVX)(and now VX Ace!), is a feature-rich script editor designed purposefully for the RPG Maker community.  It can directly read and write archived Scripts.r*data files, which allows you to use the power of an external IDE without the trouble of importing/exporting scripts to and from the built-in editor.  



Features

  • Uses the popular SciLexer library for syntax highlighting
  • Custom color and font styles for parsing Ruby syntax
  • Auto-Complete function to help improve productivity, letting you choose default words, or create your own list
  • Auto-Indentation which follows standard Ruby conventions
  • "Script-Structuring" to apply proper format to your script with the click of a button
  • Batch comment/uncomment selected lines
  • Line highlighter with custom style as an added visual guide
  • Indentation guides for easily seeing the start/end of blocks
  • Brace-matching for tracking down the elusive missing parenthesis...
  • Powerful Find/Replace function, as well as incremental search
  • Tabbed-style editor for quickly switching between open scripts
  • Automatic updater built-in so you can make sure you have the latest version
  • Debug games directly from the editor, with choice to run normally or in DEBUG/TEST mode
  • Character map for using special Unicode character sets
  • Simple and intuitive interface
  • Portable, no-install application
  • Much more!



Screenshots

Content Hidden Spoiler
Image

Content Hidden Spoiler
Image

Content Hidden Spoiler
Image

Content Hidden Spoiler
Image




Download

Gemini.zip (12.84)
Direct

Gemini.exe (Self-Extracting archive)(12.54 MB)
Direct

Do to a lack of time to fix bugs, and for the benefit of others, I am open-sourcing Gemini, and I welcome anyone with knowledge of .NET to fix/add anything they wish, under the following conditions, which I respectfully ask be followed:

  • Gemini is to remain non-commercial
  • Original credit is to be given, although feel free to add yourself for any changes that are made
  • Please notify me if you decide to host it anywhere other than where I already have

Gemini 1.1.6 - Source (17.8 MB)(Self-Extracting Archive)
Gemini 1.1.6 - Source (19.2 MB)(ZIP)
Gemini 2.0.0 - Source (22.0 MB)(Self-Extracting Archive)
Gemini 2.0.0 - Source (41.2 MB)(ZIP)

Older Versions
Gemini 1.1.6
Gemini 1.1.6 (Source)



Compatibility

Requires Microsoft .NET Framework 4.0 (Web Installer).



Credits and Thanks

  • ForeverZer0 and Zeus81, for the application
  • Chaos-Project, for support and feedback
  • Javier "TDS" Cabrera, for testing



Author's Notes

As of version 2.0, there are as of yet no known bugs or issues. Please report any that you may find, thanks! ;)
hmmmmmmmm .:! i like this, im gonna have to try it when i get home
This is what i've been searching for for ages! Thankyou Zer0!
aha, perfect for use at school XD
it was nice to play with, is "run" sapose to work though? every project i loaded into it was not able to run
playing with it a bit at work, its nice to be able to write code at work and it be highlighted correctly even if i cant run it til i get home. there is one thing i wanted to ask. how do you remove the [+] and [-] boxes? ive always hated how programing software has them. i find them very very distracting.


edit: also it would be amaizng if you had a option that removes all the blank lines.(im not fond of them while im working)
As for the "Run" function, it just executes Game.exe, so if it is not there, nothing will run, its just a script editor, not a game engine. If you are using it on a PC that doesn't have XP/VX installed, you will need to have the appropriate library in the same directory of the project like always.

I could probably make a quick option for enabling/disabling code folding, that wouldn't be hard, so look for it in an update in the near future. I can also easily make a whitespace remover, I had already been thinking about it would be a nice ability, too.
1 little thing,
how does the Autocomplete thing work?
What does it do?
Well, it lists possible words you may be trying to type as you type them, then fills the rest of the word when characters such as the enter key, parenthesis, etc. are pressed. Start typing into a google search bar and you kinda see what it is.

For the editor, just go to the settings for it, and add words to the list. There are also large preset word groups already included for common ones.
Okay, that makes sense (aha d3rp. i knew that >.<)
And also what about the Word Groups? Not sure what they do either. . .

I must sound like such a noob XD
sorry!
Check the groups you want to add, for example "Ruby Constants", then press the "Add" button. You will see the list fill with all the constants that Ruby has defined by default. Pressing the remove button with "Ruby Constants" checked will remove all words in that group from the main list.
Ah, so it adds preset options?
Awesome.

One thing - When I press 'Run', I have the Game.exe in the game folder, and it still says it cant find it. Is it meant to be somewhere else too?
EDIT: I think its missing the .ini too - Mine says 'Unknown Title' in the title bar.
thank you so much, if you add those two things i would be so very very happy. about the run thing, that makes sense i didnt think about which project i opened. the one i opened was one that doesnt use game.exe but rather emulate_rpgmaker.exe lol my bad.
Okay, theres something wrong here.
It doesnt show my game name in the title bar.
It cant find Game.exe, even though its in the game folder.

I make a script in Gemini, save and close. I run the game and theres no changes.
So, i open up the project in RMXP (which wasnt running before) and still no changes have been made :\

I dont think its writing to the right place. . .
ya after putting a blank project with it. i still get error
Content Hidden Spoiler
See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ComponentModel.Win32Exception: The system cannot find the file specified
at System.Diagnostics.Process.StartWithShellExecuteEx(ProcessStartInfo startInfo)
at System.Diagnostics.Process.Start()
at (Object )
at ..(Object sender, EventArgs e)
at System.Windows.Forms.Control.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnClick(EventArgs e)
at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ButtonBase.WndProc(Message& m)
at System.Windows.Forms.Button.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Gemini
Assembly Version: 1.0.8.0
Win32 Version: 1.0.8.0
CodeBase: file:///C:/Users/plague180/Desktop/Gemini/Gemini.exe
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5447 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Xml
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll
----------------------------------------
{44486c65-008b-4a77-b924-082d17b2b322}
Assembly Version: 0.0.0.0
Win32 Version: 1.0.8.0
CodeBase: file:///C:/Users/plague180/Desktop/Gemini/Gemini.exe
----------------------------------------
IronRuby
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/IronRuby/1.0.0.0__31bf3856ad364e35/IronRuby.dll
----------------------------------------
Microsoft.Scripting
Assembly Version: 1.0.0.0
Win32 Version: 1.0.1.00
CodeBase: file:///C:/Users/plague180/Desktop/Gemini/Microsoft.Scripting.DLL
----------------------------------------
Microsoft.Scripting.Core
Assembly Version: 1.0.0.0
Win32 Version: 1.0.1.00
CodeBase: file:///C:/Users/plague180/Desktop/Gemini/Microsoft.Scripting.Core.DLL
----------------------------------------
System.Configuration
Assembly Version: 2.0.0.0
Win32 Version: 2.0.50727.5420 (Win7SP1.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll
----------------------------------------
Microsoft.Dynamic
Assembly Version: 1.0.0.0
Win32 Version: 1.0.1.00
CodeBase: file:///C:/Users/plague180/Desktop/Gemini/Microsoft.Dynamic.DLL
----------------------------------------
IronRuby.Libraries
Assembly Version: 1.0.0.0
Win32 Version: 1.0.0.0
CodeBase: file:///C:/Users/plague180/Desktop/Gemini/IronRuby.Libraries.DLL
----------------------------------------
Anonymously Hosted DynamicMethods Assembly
Assembly Version: 0.0.0.0
Win32 Version: 2.0.50727.5446 (Win7SP1GDR.050727-5400)
CodeBase: file:///C:/Windows/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Ok, I found it. It was basically a loop-hole in my testing method I was using. When debugging, I have a project loaded automatically when the project starts up, which was helping disguise the bug. Its fixed with this update.

Updates to v.1.1.5
  • Added option to toggle code-folding ON/OFF under Settings menu item
  • Added Empty Line Remove function under Edit menu item
  • Added a "Sort" button in the Auto-Complete configuration for sorting all items alphabetically
  • Added an internal function to automatically remove any duplicate words in the auto-complete list
  • Embedded the RMXP and RMVX libraries into the application, and the option to copy them to the game's directory when creating new projects, which will allow projects to be run without having the RPG Maker installed on the system
  • Added the ability to have newly created projects be automatically loaded into the editor
  • Fixed bug that would prevent projects from being ran if they were opened a certain way
Awesome - i have my game title, and debug works :)

The only thing left is to jump to the line automatically. I know thats most likely hard to do, but that would make this application better than RMXP's script editor itself. :D (x 1000000)
Trully nice work! Im using this.
you added the features i asked for, thank you!

edit: if you had a option to backup your game data every time you open the project (so basically you have a copy of your changes for everyday, that too would be amazing, but not required, im ok with just copy paste into my backup folder) also if you are feeling amazing(please keep in mind i already love your software just through request out there so i can develop faster :P) it would be awesome if removing folding would also remove the formatting lines, they are annoying while i type.

i would like to again point out im very happy, and thanks for adding those features
The formatting lines already have a toggle for turning ON/OFF. Either click the "Indent Guides" option under Settings, or click the little ruler in the toolbar to change them.

Thank you all for the kind words, and I am glad to hear it is being used. :D
Any progress on the symbol problems?
Its messing up my game, aha.
Until you find a fix, i'll have to hold-off using it.
Sorry :(

EDIT: Oh, and the auto-alignment spacing tree thing it does when you press enter after like an 'if' and stuff doesn't work as it does in RMXP. you may want to look into that :)


ANOTHER EDIT:
I've been following your progress on ARC, and i've had an idea
would it be possible to add another option under 'Export scripts as' called 'ARC'
so that you don't need to go through every script, make a new .txt, copy, paste, save, and rename it? it takes a long time to do all of this manually.
if you added it, that would be AMAZING
That's pretty fancy, and don't ask me why I've never seen it until now :D I especially like the tabbed functionality to it, which is something I could never figure out the reason for it missing in RMVXP. That, and of course the one-of-a-kind (?) ability to open script data files and edit/save them without much hazzle. The fact that it's a non-install version is also pretty great. Now, all it needs to compete with notepad++ is the open sorce attribute ;)

Good stuff!
Good stuff indeed.

Improvement ideas :
- Add a "(*)" on title of tabs that have been modified since last save.
- Change "Save" to "Save All" for disambiguation.
- When Running with "Save on Run" checked, save only if modifications have been done.
- Mouse middle click on tabs to close.
- Allow to reorder tabs with drag and drop.
- Allow to reorder scripts with drag and drop.

Bugs :
- If we do Ctrl+Z on an unmodified tab it become blank.
- Not really a bug but when we use the Up and Down buttons the 'auto-alignment' is weird. You're using Windows Form right ? Don't you have a EnsureVisible method ?
- And what about the text encoding bug ? :)
I noticed with the text encoding bug that every time I opened it with Gemini, it would add an 'Ã' and sometimes a '¢' to some comments and even strings, messing up readability and my code xD
Also, the fact that Gemini places a newline character after the script name is a little annoying. When you get an error, it drops the info down a line and looks strange/uncomfortable.
haha
viewtopic.php?f=179&t=66848
only i never finished mine :P

good job doing what i couldnt
ya blue i have been using it at work, its pretty good to work with. its 1000% better then working in notepad at work then emailing it home and spending forever to clean the code up on xp. its hows ive gotten all that work done on that secret project of mine.
ive been comparing my issues and others together. i realized that i have no issues with this program on my xp computer and i get small issues her or there with my windows 7 machine. just FYI
Yeah, there are a few bugs here and there that still need fixed. I have been working on ARC and haven't had the time to look into it. I made a commitment that I would not start any other projects until ARC is released, and I plan to stick to that, so I am unsure exactly when I will get around to it.

For that reason, I have open-sourced Gemini, so please take a look at the original post to find the links.
:heart: :toot: THANK YOU :rock: :heart:

I was looking for something exactly like this also!
    * Bumps for the HUGE update *

    Just before releasing Gemini's source, I was contacted by Zeus81, who was interested in the code and wanted to help with fixing bugs and making future updates. I released the code to him, and all I can say now is that he delivered on his word in the best fashion. He made vast improvements to Gemini in nearly every respect, most notably in regards to the a huge speed increase in saving/loading/running, fixing ALL the known errors, and many GUI improvements.  

    If you currently have Gemini, update now, if you tried and didn't like it, I ask that you give it another try, and if you never have before, than what the hell are you waiting for?  ;)

    Changelog Spoiler
    • Splash Screen
    • New logo
    • Moved to IronRuby 1.1.3 and .Net 4
    • Moved to Scintilla 2.2.2, the RMVXAce one, which have received some fix
    • Fixed "New Project" title bug
    • Added RPG Maker VX Ace projects support
    • Improved loading and saving speed drastically
    • Added ability to open r*data scripts files directly
    • Changed "Recently Open Projects" order, now most recent ones on top of the list
    • Added "Auto-Open Most Recent on Start" option
    • Added interoperability with RPG Maker, we can now use both at the same time, the scripts from Gemini are kept
    • Added "Close Project" button
    • Improved Import functions to support multiple files at once
    • Added Export as r*data script file, it can be use as backup
    • Changed Settings format and save location, since Gemini is a portable application I though it would be better to have it in the same folder
    • Added save confirmation dialog before running game or closing Gemini
    • Added new style for line number margin in the style configuration
    • Changed Auto Complete list to display words that 'contains' tapped text (instead of 'start with') + alphabetically sorted
    • Removed Auto Complete validation chars "([.{:" that could validate unwanted words due to non case sensitiveness
    • Changed "Auto Complete Configuration" behavior, now we activate word groups by selecting them and it's smart (aka we have RMXP constants if an RMXP project is open, etc...)
    • Added RPG Maker help files to open with F1
    • Added F12 shortcut for running game
    • Added button to open current project folder
    • Merged update process into Gemini
    • Added "Auto Check Updates" option
    • Added possibility to copy/paste scripts between different Gemini's instances and/or RPG Maker
    • Added drag drop to reorder scripts list
    • Added drag drop to reorder open scripts tabs
    • Added display of the altered state of scripts in tabs and script list with a *
    • Added close button on tabs and middle click to close them too
    • Added new tabbed interface for searches with Ctrl+Maj+F
    • Fixed find/replace window bugs
    • Added Ctrl+0 to reset the text zoom
    • Fixed coloring bugs
    • Fixed encoding bug
    • Improved "Auto-Indent" and "Structure Script" algorithms

Original thread: https://www.hbgames.org/forums/viewtopic.php?t=75511