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

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

« on: May 27, 2010, 11:48:03 PM »
I wasn't quite sure where to post this, but there has been some talk about implementing Intellisense (autocompletes as you type) into the Script object (see original topic here) and I suggested an external app for writing scripts, thus saving us money on donations, and saving Fernando time on implementing Intellisense. Let me know what you think.

Update v3.0: Finally, the new Version 3! For more info on this release, see this post.
Update v3.0.1: This version allows you to change which version of the Script Object it works with by changing the AdvancedScriptEditor.ini file.
Update v3.0.2: Bug fix in the AutoIt script.

Important Note: If you're using a 64-bit operating system, please read this post.

For more info about the screenshot below, see this post.


Looking for the full development history? Click here!
Looking for the CodePlex page? Click here!
« Last Edit: August 23, 2011, 03:15:32 PM by StarKiller53861 »
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 #1 on: May 28, 2010, 03:21:23 PM »
Great Job! But the problem is you don't know what the properties of each object are but I guess you can finish off the script in the actual script object great job!
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 #2 on: May 28, 2010, 03:35:19 PM »
Thanks for the feedback. An easy fix to the object properties would be to have the Script object open at the same time as having my Script Editor open, thus allowing you to see the object properties as you script. With a little dragging windows around, it should be fairly easy to position the Script Editor over the Script object. This would also make it easier to copy and paste the script in the Script object to test it.
« Last Edit: May 28, 2010, 03:37:48 PM by starkiller53861 »
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)

psikotropico

« Reply #3 on: May 28, 2010, 11:54:30 PM »
great work... keep it up!

now some roadmap for you:
- you could use a monospaced font for the script itself.
- still needs more functions in the right panel, also you could group them by expandable categories.
- tab doesn't work.
- colored comments are essential.

any way to integrate into 3dRad?
« Reply #4 on: May 29, 2010, 11:31:51 AM »
Thanks for the feedback - monospaced font is easy enough, and more functions will be in the next update. I'm not sure about the expandable categories, but I'll look into it. The tab key will also probably work in the next update, and coloured comments as well.

However, the main problem, is that, no matter what extra features it has, it's still just a text editor, and has none of the functionality of the existing Script object. It's a bit like having a computer with no printer - you can type your report or essay, but in the end you'll still have to write it out with a pen and paper. This is the same idea - you can write your script, but you'll still have to copy over to 3D Rad when you're done.
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 #5 on: May 30, 2010, 08:05:03 PM »
Quote
you could use a monospaced font for the script itself.
Better than that - you can change the font for the editor, the function list, and the description panel individually or globally.

Quote
still needs more functions in the right panel, also you could group them by expandable categories.
The functions list now includes every function in the Script Object Reference, but only the Object Functions section has descriptions.

Quote
tab doesn't work.
This is fixed now, thanks.

Quote
colored comments are essential.
Working on it.
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)

psikotropico

« Reply #6 on: May 31, 2010, 06:24:10 AM »
nice progress... I'm thinking on use it for my scripts... one more detail: you could add some predefined statements like:

void Main()
{
}

if (condition)
{
}

+ loops statements
+ variable types, etc...

kepp it up!! ;D
« Reply #7 on: June 01, 2010, 07:51:34 AM »
void Main()
{
}

if (condition)
{
}

+ loops statements
+ variable types, etc...

Added - thanks for the feedback.
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)

psikotropico

« Reply #8 on: June 02, 2010, 12:46:40 PM »
nice job man... sure i will use it...

It's a pity that something like this can't be integrated into 3dRad (and link with some objects) but at least it will be useful to write standard functions and pseudo codes... hope you will find the way to finish it (with help references and so on)...

anyway, this tool will be very useful!
thanks a lot!!

psikotropico

« Reply #9 on: June 02, 2010, 01:12:39 PM »
some possible improvements:

- Actually, the tab is equal to 7 spaces... could be it equal to 3 spaces, like in the script editor?
- Could the window remains its maximized state at start?  it always starts as a small size window... ::)
- Definitely, a collapsible pane for functions list would be great.
- An "add to favourites" right-click menu command over the functions in the list to store, at the top of the list, our favourite functions (actually, I only use 4 or 5 of them ;D and they are at the top or bottom of the current list, so too much scroll for that few functions, you know?)
- You forgot the semi-colon at the end of each function... not sure, but it's faster to delete than write...
- some operands? like ==, >=, <=, >, <, and so on...
- some predefined commented blocks, with project description and credits... ;D

hey! "our" program ;D ;D finally will be great!!... keep it up!!
« Reply #10 on: June 03, 2010, 02:07:10 AM »
Thanks for the feedback - I've actually thought of a possible workaround for a linked object list.

It seems mgear is working on a "Script editor "replacement" hijack" which can open an external editor (like this one) when you start editing a script in 3D Rad. What's quite amazing is that it also takes the list of objects linked to your script and displays them in a commented box above the script in your external editor. It might be possible to have the "3D Rad Script Editor" read the data in the comment box and transfer it to a object list similar to the one in 3D Rad. At the moment, mgear has only released a concept demo, which opens notepad, but if the program opened this editor instead...

I should have the tab fixed soon, as well as the starting maximized. An 'add to favourites' would also be possible. Some functions, like the iInitializing function, are often placed in if()'s, so I will add an optional semi-colon that can be activated/deactivated with a button or something. Some operands would also be good, as would the predefined comment blocks. I'm not sure about the collapsible pane for functions, but it might be possible.

Also, perhaps a name change: 3D Rad Script Editor is too easy to confuse with the 3D Rad Script object. Something like Advanced Script Editor or something might be less confusing.

Well, time to get started then. Hopefully, I'll have another version up before the end of the week :D

Happy scripting,
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 #11 on: June 03, 2010, 02:42:55 AM »
What's quite amazing is that it also takes the list of objects linked to your script and displays them in a commented box above the script in your external editor. It might be possible to have the "3D Rad Script Editor" read the data in the comment box and transfer it to a object list similar to the one in 3D Rad. At the moment, mgear has only released a concept demo, which opens notepad, but if the program opened this editor instead...

That is possible..
Once I have it working with some text editor, its easy to use other editors also.

(the object list can be transfered in many ways, even directly to another listbox,
so if you put 3 empty list boxes on the side, like in rad editor, then my script could fill them)
http://3dradder.blogspot.com/ <- Stuff 4 3DRad   | *Donate now: Post-prosessing shaders | External Script editor mEH*
« Reply #12 on: June 03, 2010, 05:28:36 AM »
I got it done faster than I thought I would - only a few hours, but there it is. There is now an extra folder called "ScriptEditor_bin" - in that folder is "favourites.txt", the text file used to keep track of what functions are in your favourites list. Also, I'll get started on a help file - at the moment, "Help -> Contents" does absolutely nothing.

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)

psikotropico

« Reply #13 on: June 03, 2010, 05:39:38 AM »
man, you're the best!!... ;D

Also, I'll get started on a help file - at the moment, "Help -> Contents" does absolutely nothing.

since the help for each function is present at the bottom, I think is no needed any help button... ::)
- 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'm planning to have it in my dashboard permanently... ;D ;D
- I think that operands would be in the right-click menu instead on the left side.. by this way the UI in general will looks better.

more suggestions later... ;D
« Last Edit: June 03, 2010, 06:08:06 AM by psikoT »

psikotropico

« Reply #14 on: June 03, 2010, 06:09:13 AM »
- favourites list are not saved (sorry, I've missed up the checkbox)
- colors settings for variables doesn't work
- it would be great if we can expand/contract the favourites window over the functions list
« Last Edit: June 03, 2010, 06:18:19 AM by psikoT »
Pages: [1] 2 3 ... 6