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 4 ... 6

Author Topic: Script Editor with Autocomplete/Intellisense (v3.0.2)  (Read 15409 times)

« Reply #15 on: June 03, 2010, 07:56:26 AM »
Quote
...colors settings for variables doesn't work...
...it would be great if we can expand/contract the favourites window over the functions list...

...you can put the scripting tutorial from n_iron in the help file...
...can you add a Courier font in the fonts menu...
...the program will need its own icon...
...I think that operands would be in the right-click menu instead on the left side...

I'm still having trouble with the colours - I don't have a 'Find All' function, only 'Find', which only finds the first instance of the text (eg. a search for 'int' would only find the first int in the text. I improvised with the Find Next button in the program, using variables to keep track of how many times someone searches for the same text, but it didn't work with the colour settings. I should have this fixed in a few updates time, though.

It should be possible for me to group the favourites list and the functions list together - once this is done I can add a separator bar, which could be dragged up/down, adjusting the sizes of the two lists as well.

The help file will be there mainly to tell you about the various features of the program, but a scripting tutorial would be good too.

I'm working on a feature that will allow you to choose from any font installed on your system - but I'll include the Courier font if it's not ready for the next update.

I'll start work on an icon asap.

The operands will be in the right-click menu in the next update.

Thanks for the feedback - without it the poor program would probably still be v1!

SK.
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 #16 on: June 03, 2010, 03:15:09 PM »
Well, here's 2.3. I've been thinking (gasp :o what a surprise!) that since the updates are so often (v2.3 and it's been less than two weeks?!) I should add some sort of automatic update. It shouldn't be too difficult - when the program launches, it will connect to the internet, check a text file for the current version, then compare the current version to it's version. If the versions are different, it will prompt the user to update. The 'update' will simply be downloading a second text file, this time with the source code, and replacing the existing source code (stored in a text file in the ScriptEditor_bin folder). The only problem would be having the program read the source from the text file rather than itself - but I'm sure there's a way to do that. What do you think? Good idea? Bad idea?
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 #17 on: June 03, 2010, 04:40:07 PM »
Great idea starkiller! go for it!
Great program as well!
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]

jestermon

« Reply #18 on: June 03, 2010, 04:44:43 PM »
Interesting. I've been watching this grow. Will be great to see what becomes of this.
« Reply #19 on: June 04, 2010, 12:26:10 PM »
hi,

Latest version looks nice!

I can try this with my hijack-script,
but it needs few things from your program.
(to be able to use the same code with other source code editors)

1. Commandline parameters & text loading

Loading text files:
cmd> ScriptEditor.exe textfile.txt


2. Save text

Saves current source code to text file.
Example: You start program, enter some code, press file/save.. file dialog.. save.
And if you keep editing, ctrl+s would save in the same file.


3. Path+Filename in form title

When you start the program, it would show in window title:
Untitled - Advanced Script Editor for 3DRad
or
if you have saved or opened file:
c:\temp\myfile.txt  - Advanced Script Editor for 3DRad

(optional: in form title you would have *-sign after filename, to tell its modified, but not saved yet)


Let me know if you can/plan to add those,
or if not, can use other methods..
« Last Edit: June 04, 2010, 12:29:28 PM by mgear »
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*

psikotropico

« Reply #20 on: June 04, 2010, 01:13:00 PM »
cool... now in my icons tray... it would be great if you guys work together to finally have a real tool... as mgear says, a open/save option would be great
« Reply #21 on: June 04, 2010, 03:18:55 PM »
Yah that would make it very easy to use!
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 #22 on: June 05, 2010, 06:49:21 AM »
ps. have you seen this:

ScintillaNET is a powerful text editing control for Windows Forms applications and a managed wrapper around the versatile Scintilla Windows control.
http://scintillanet.codeplex.com/

Has build-in calltips and autocomplete etc. while typing,'
can use with visual express studio(s).
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #23 on: June 05, 2010, 06:56:19 AM »
ps. have you seen this:

ScintillaNET is a powerful text editing control for Windows Forms applications and a managed wrapper around the versatile Scintilla Windows control.
http://scintillanet.codeplex.com/

Has build-in calltips and autocomplete etc. while typing,'
can use with visual express studio(s).

*sigh* Oh dear, it seems I have been reinventing the wheel...

Ah well, there's v2.4 - enjoy. Any suggestions, you know where to post. I'll have a look at integrating ScintillaNET. Also, the update feature should be complete by the next update - just something to look forward to.

@mgear: The objects list now loads from text files in the ScriptEditor_bin folder - perhaps your program can write to those files before launching the Script Editor? Also, by command line parameters, do you mean so that you can tell the program what file to open directly via cmd?
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 #24 on: June 05, 2010, 07:16:02 AM »
@mgear: The objects list now loads from text files in the ScriptEditor_bin folder - perhaps your program can write to those files before launching the Script Editor? Also, by command line parameters, do you mean so that you can tell the program what file to open directly via cmd?

Ok, I can fill the lists without files also, so no problem there.

Commandline parameters, it should work like this,
if started with command prompt or with Start/Run:
> c:\ScriptEditor_v24\ScriptEditor.exe c:\temp\mytextfile.txt
Then it reads the given filename.


tested 2.4:
- File / save as.. : doesnt change windows title (with File / Save it does)
- Crash if program is started from another application or from another folder
"System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\myfiles\ScriptEditor_bin\favourites.txt'."
* maybe it needs to specify that read text file from same folder where the exe file is..
.."appPath &"/"& "ScriptEditor_bin/"..
- Ctrl+s shortcut key would be nice
- File / open.. doesnt change window title

*After those are done, can use with hijacker.
Here is a test image (after manually opening the text file), object lists are filled automatically also
and sending the text back to Rad script editor works also.

« Last Edit: June 05, 2010, 08:22:29 AM by mgear »
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #25 on: June 05, 2010, 08:36:42 AM »
Commandline parameters, it should work like this,
if started with command prompt or with Start/Run:
> c:\ScriptEditor_v24\ScriptEditor.exe c:\temp\mytextfile.txt
Then it reads the given filename.


tested 2.4:
- File / save as.. : doesnt change windows title (with File / Save it does)
- Crash if program is started from another application or from another folder
"System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\myfiles\ScriptEditor_bin\favourites.txt'."
* maybe it needs to specify that read text file from same folder where the exe file is..
.."appPath &"/"& "ScriptEditor_bin/"..
- Ctrl+s shortcut key would be nice
- File / open.. doesnt change window title

Thanks for the feedback - I'll sort those out for the next update.
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 #26 on: June 05, 2010, 09:54:25 AM »
This is getting ridiculous - two updates in less than a couple of hours?! Luckily, the updater will be ready soon...

I've included a second exe (ScriptEditorArgs.exe) - you can run this from command prompt or via Start/Run, so long as you specify a text file to load (ie. c:\ScriptEditor_v25\ScriptEditorArgs.exe c:\temp\mytextfile.txt). Have fun!
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: June 05, 2010, 11:04:47 AM »
Great Job Starkiller! This is really coming along well!
Keep it up!
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 #28 on: June 05, 2010, 12:54:33 PM »
Ok, here's new test version of mEH (mEditorHijacker for 3DRad)
and it should work with Advanced Script editor v2.5+

Install:
- unzip somewhere
- edit "mEditorHijack.ini" file, set correct full path for "ScriptEditorArgs.exe"
* (# is comment line for ini)
- 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

« Last Edit: June 06, 2010, 05:41:10 AM by mgear »
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*

psikotropico

« Reply #29 on: June 05, 2010, 01:21:52 PM »
wow... you guys are great!!!

The hijack works fine, but seems to be some glitches into the 3dRad script window... btw, great work!!

Now that 2 programs are joined, it's time to tweak the AdvancedScriptEditor a bit...

- I would like to save fonts, colors and other preferences...
- Could be possible to drag ( <--|--> ) all panels horizontally?
- Can you add line numbers? ;D ;D
- Automatic Variable Detection needs some fixes
- Hope you can solve the text color problem (at least in comments)

great work starkiller... keep it up!!
Pages: 1 [2] 3 4 ... 6