1.33
This forum is now archived!
- Welcome to the archive!
News:
The 3DRad community can be found at classdev.net.
- 3D Rad - Free 3D game maker - Forum >
- General Category >
- 3D Rad - User-created Sample Projects, Scripts, Tutorials >
- Rad script editor hijacker (mEH) + mEH.Buddy
Author Topic: Rad script editor hijacker (mEH) + mEH.Buddy (Read 8189 times)
psikotropico
try this.
*this version is for all Rad Script editors: 1.3x
** added latest version v1.1
Supports (you have to select editor in .ini file)
- notepad++
- scite4au3
- advanced script editor
*this version is for all Rad Script editors: 1.3x
** added latest version v1.1
Supports (you have to select editor in .ini file)
- notepad++
- scite4au3
- advanced script editor
from another thread:
After clicking it, Advanced script editor should open (if you have setup the path in ini file)
The Script window, OK & Cancel button are disabled while you have external editor open.
(otherwise you could mess up the scripts by opening another script while external editor is in use)
The buttons are enabled again once you close the external editor.
If you close hijacker before that, you need to kill 3DRad process..
(OR you can just run the hijacker again and start external editor and close it)
I dont get what happens after you press the new hijack button in the script editor.
Also could we keep the buttons that the hijacker gets rid of? I couldn't figure out how to get them to work again so I had to shutdown my computer.
After clicking it, Advanced script editor should open (if you have setup the path in ini file)
The Script window, OK & Cancel button are disabled while you have external editor open.
(otherwise you could mess up the scripts by opening another script while external editor is in use)
The buttons are enabled again once you close the external editor.
If you close hijacker before that, you need to kill 3DRad process..
(OR you can just run the hijacker again and start external editor and close it)
Here is a test version for PSPad (tested with v4.5.4)
Install:
- unzip somewhere
- edit "mEditorHijack.ini" file, set correct full path for "PSPad.exe"
(# are comment lines in .ini, so its possible to use other editors by commenting the lines)
- run mEditorHijack.exe (icon appears on windows iconbar, right click to close it when not using anymore)
Usage:
- Open 3DRad script editor
- New button "mEditorHijack*" appears (on top of load/save..if anyone needs those buttons let me know..?)
- You can edit script in 3DRad script editor if you want
- Or click the new button to open source in external editor
- Edit source in external editor
- After done, SAVE the file and close the external editor
* (closing the editor or tab signals mEH to update code in 3DRAD script editor, so keep saving the source as much as you want, but dont change file name)
- 3DRad script editor jumps in and new source code is updated there
(This version also works with Notepad++, Scite4Au, AdvancedScriptEditor,
but you need to edit the ini file to use them)
Download:
Install:
- unzip somewhere
- edit "mEditorHijack.ini" file, set correct full path for "PSPad.exe"
(# are comment lines in .ini, so its possible to use other editors by commenting the lines)
- run mEditorHijack.exe (icon appears on windows iconbar, right click to close it when not using anymore)
Usage:
- Open 3DRad script editor
- New button "mEditorHijack*" appears (on top of load/save..if anyone needs those buttons let me know..?)
- You can edit script in 3DRad script editor if you want
- Or click the new button to open source in external editor
- Edit source in external editor
- After done, SAVE the file and close the external editor
* (closing the editor or tab signals mEH to update code in 3DRAD script editor, so keep saving the source as much as you want, but dont change file name)
- 3DRad script editor jumps in and new source code is updated there
(This version also works with Notepad++, Scite4Au, AdvancedScriptEditor,
but you need to edit the ini file to use them)
Download:
Autocomplete keywords for: Scite4Au3 source code editor
- Syntax colors dont work
- Some old commands from other language left in keyword lists.
- some other bugs
- and missing help texts..but anyways, can try it (and improve it..)
Not sure if it would need a special compiled scintilla lexer..(?)
Installation:
- copy files from zip to scite folders
- edit "SciTEGlobal.properties"
*Find line:
menu.language=\
*Add line: (this is language menu item)
3drs|3drs||\
*Find line:
# import properties\all the language specific properties files
*Add line:
import properties\3drs
download scite4au3 editor (normal scite might work also..?)
http://www.autoitscript.com/autoit3/scite/downloads.shtml (SciTE4AutoIt3.exe)
attached keyword files:
- Syntax colors dont work
- Some old commands from other language left in keyword lists.
- some other bugs
- and missing help texts..but anyways, can try it (and improve it..)
Not sure if it would need a special compiled scintilla lexer..(?)
Installation:
- copy files from zip to scite folders
- edit "SciTEGlobal.properties"
*Find line:
menu.language=\
*Add line: (this is language menu item)
3drs|3drs||\
*Find line:
# import properties\all the language specific properties files
*Add line:
import properties\3drs
download scite4au3 editor (normal scite might work also..?)
http://www.autoitscript.com/autoit3/scite/downloads.shtml (SciTE4AutoIt3.exe)
attached keyword files:
textpad is really good for doing exactly what up youve mentioned up till now but I think something like eclipse may be able to handle intellisense, which is the rolls royce for software development.
If you can get it working with intellisense your a genius.
If you can get it working with intellisense your a genius.
Added new external tool:
mEH.Buddy
what:
- String replace function for 3DRad script editor
how:
- Run mEhBuddy.exe (icon appears on windows icon toolbar)
- Open 3DRad script editor (must be active window when pressing shortcut key)
- Press Ctrl+H (common shortcut for replace)
- Replace string window opens (see screenshot below)
- Enter search string
- Enter replace string
- Press Replace
- Replace is done, mEHBuddy window disappears (but keeps running in background)
* You can press CTRL+Z (Undo) in 3DRad script editor to undo the replace
* Or press cancel, if you dont want to save the replaced script
info:
- To exit the program, right click on the icon on icon toolbar and select exit.
- search is not case sensitive (if anyone needs that, let me know..)
bugs:
- No error checking, string length checking etc..dont try anything funny..
Download: (on the first message)
http://www.3drad.com/forum/index.php?topic=4454.msg36460#msg36460
mEH.Buddy
what:
- String replace function for 3DRad script editor
how:
- Run mEhBuddy.exe (icon appears on windows icon toolbar)
- Open 3DRad script editor (must be active window when pressing shortcut key)
- Press Ctrl+H (common shortcut for replace)
- Replace string window opens (see screenshot below)
- Enter search string
- Enter replace string
- Press Replace
- Replace is done, mEHBuddy window disappears (but keeps running in background)
* You can press CTRL+Z (Undo) in 3DRad script editor to undo the replace
* Or press cancel, if you dont want to save the replaced script
info:
- To exit the program, right click on the icon on icon toolbar and select exit.
- search is not case sensitive (if anyone needs that, let me know..)
bugs:
- No error checking, string length checking etc..dont try anything funny..
Download: (on the first message)
http://www.3drad.com/forum/index.php?topic=4454.msg36460#msg36460
psikotropico
great mod.. I normally use an external editor to do this... copy, paste, replace, copy, paste... you know...
that can cause some chaos if you replace a variable... also, a "Match entire word" option would be great
- search is not case sensitive (if anyone needs that, let me know..)
that can cause some chaos if you replace a variable... also, a "Match entire word" option would be great
just a proof of concept..
mEh.Buddy with Compiler'ish
what?
- project compiling & running from 3DRad editor
- 1 keypress, compiling and arranging files takes just <1-2 secs and compiled version is starting
how?
- external application waits for hotkey press (when 3DRad editor is active)
- when user presses F12: It takes currently open 3DRad project and compiles it
- then it renames every "object.dll" > "object_orig.dll", and "object_redist.dll" > "object.dll"
- then it uses 3drad_player.exe to run compiled project
- once the compiled project is closed, it restores object dll files
It works fine,
but cannot use it for other projects,
because of some unknown values with/from 3DRad+3DRadCompiler..
(no download, since it cannot be used for other projects, due to those unknown values..)
Suggestions:
In 3DRad it would be easy to develop "Run compiled project" menu item,
and it would compile & run the project fast.
mEh.Buddy with Compiler'ish
what?
- project compiling & running from 3DRad editor
- 1 keypress, compiling and arranging files takes just <1-2 secs and compiled version is starting
how?
- external application waits for hotkey press (when 3DRad editor is active)
- when user presses F12: It takes currently open 3DRad project and compiles it
- then it renames every "object.dll" > "object_orig.dll", and "object_redist.dll" > "object.dll"
- then it uses 3drad_player.exe to run compiled project
- once the compiled project is closed, it restores object dll files
It works fine,
but cannot use it for other projects,
because of some unknown values with/from 3DRad+3DRadCompiler..
(no download, since it cannot be used for other projects, due to those unknown values..)
Suggestions:
In 3DRad it would be easy to develop "Run compiled project" menu item,
and it would compile & run the project fast.
mEh.Buddy with AutoLinker (beta)
what?
- Automatic object linker for 3DRad
- Useful for linking lots of objects after inserting or cloning them
how?
- Run exe (icon appears on iconbar)
- Go to 3DRad
- Select object that you want to link
- Position mousecursor to previous item, above the checkbox
- Press leftShift+1 (5 items are automatically clicked)
- You can repeat the process by moving mouse to next checkbox where you want to start clicking
info:
- Currently only links 5 objects (including current location), going upwards only.
- You need to position your mouse roughly to the center of checkbox. (see image)
- This version also includes previous string replace function, no updates on that. (see few messages above)
download/screenshot
what?
- Automatic object linker for 3DRad
- Useful for linking lots of objects after inserting or cloning them
how?
- Run exe (icon appears on iconbar)
- Go to 3DRad
- Select object that you want to link
- Position mousecursor to previous item, above the checkbox
- Press leftShift+1 (5 items are automatically clicked)
- You can repeat the process by moving mouse to next checkbox where you want to start clicking
info:
- Currently only links 5 objects (including current location), going upwards only.
- You need to position your mouse roughly to the center of checkbox. (see image)
- This version also includes previous string replace function, no updates on that. (see few messages above)
download/screenshot
During my exile for the past month, I had an idea - I'm not sure if it's possible, but would it not be possible to replace the text editor in the Script Object like you did with the "open external editor" button?
yes, should be possible.
but havent tested yet how to "embed" external editor..
(instead of just normal multiline textbox or richtext editor)
or could just open a "frameless" external editor
and automatically position/resize it on top
of the current script source text editor..
but havent tested yet how to "embed" external editor..
(instead of just normal multiline textbox or richtext editor)
or could just open a "frameless" external editor
and automatically position/resize it on top
of the current script source text editor..
The autocomplete files are a good idea, no more writing a hundred times iObjectLocation, iObjectRot... this is a big win.
About the script editor, can't you edit Script object source code? I mean just modify the C/C++ code of the object. I see there is one .dll for each object, isn't somewhere the SDK to do this?
About the script editor, can't you edit Script object source code? I mean just modify the C/C++ code of the object. I see there is one .dll for each object, isn't somewhere the SDK to do this?
yes, should be possible.
but havent tested yet how to "embed" external editor..
(instead of just normal multiline textbox or richtext editor)
or could just open a "frameless" external editor
and automatically position/resize it on top
of the current script source text editor..
Here's a frameless script editor that you could use to test this. It takes the following command line parameters:
* The script to load (which is saved whenever the text is changed).
* The size.
* The location.
For example:
Code: [Select]
C:\MyFiles\FSE\FramelessScriptEditor.exe C:\MyFiles\LoadThisScript.txt 800,600 250,100