3D Rad - Free 3D game maker - Forum

This forum is now archived!

This forum is locked, and is a read-only version. A new community-ran forum can be found at classdev.net

News:

The 3DRad community can be found at classdev.net.

Pages: 1 [2] 3

Author Topic: Rad script editor hijacker (mEH) + mEH.Buddy  (Read 8189 times)

psikotropico

« Reply #15 on: June 04, 2010, 01:43:56 PM »
1.33
« Reply #16 on: June 04, 2010, 01:47:50 PM »
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
« Last Edit: June 05, 2010, 01:04:45 PM by mgear »
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #17 on: June 05, 2010, 02:23:34 PM »
from another thread:

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)
« Last Edit: June 05, 2010, 02:25:39 PM by mgear »
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #18 on: June 05, 2010, 02:35:45 PM »
Ok thanks
3Drad Version: 6.51, and 7.11

System Specs:
MS Windows 7 Home Premium 64-bit
AMD Athlon Neo X2 Dual Core Processor L335, 4.0GB RAM
ATI Radeon HD 3200 Graphics
250 MB Hardrive
HP Pavillion dm3 Laptop

Total Donation Amount:$24

Location: Edmonton, Alberta

Email: [email protected]
« Reply #19 on: June 06, 2010, 05:35:08 AM »
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:
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #20 on: June 10, 2010, 01:31:05 PM »
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:
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #21 on: June 12, 2010, 09:59:16 AM »
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.
« Reply #22 on: June 15, 2010, 12:30:56 PM »
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
« Last Edit: June 15, 2010, 12:36:33 PM by mgear »
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*

psikotropico

« Reply #23 on: June 15, 2010, 12:47:42 PM »
great mod.. I normally use an external editor to do this... copy, paste, replace, copy, paste... you know...

- 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
« Reply #24 on: July 06, 2010, 10:10:42 AM »
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.
« Last Edit: July 06, 2010, 10:13:37 AM by mgear »
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #25 on: July 07, 2010, 12:39:45 PM »
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
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #26 on: July 21, 2010, 12:32:18 PM »
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?
Using 3D Rad v7.10, Windows 7 / Arch Linux, AMD Sempron 2.1GHz, ATI Radeon HD 3200.

Advanced Script Editor for 3D Rad (v3.0.2)
« Reply #27 on: July 21, 2010, 02:13:25 PM »
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..
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #28 on: July 27, 2010, 04:01:08 PM »
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?
« Reply #29 on: July 28, 2010, 02:07:43 PM »
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
Using 3D Rad v7.10, Windows 7 / Arch Linux, AMD Sempron 2.1GHz, ATI Radeon HD 3200.

Advanced Script Editor for 3D Rad (v3.0.2)
Pages: 1 [2] 3