script editor improvements

About Truespace Archives

These pages are a copy of the official truespace forums prior to their removal somewhere around 2011.

They are retained here for archive purposes only.

script editor improvements // Feature suggestions

1  |  

Post by stan // Feb 16, 2006, 6:36am

stan
Total Posts: 1240
pic
I've been spoiled by visual studio..the script editor needs some preference options


1..ability to change font size etc..


2...line numbers in margin..it's very silly getting an error code saying Line:66, Char: 43, when there is no numbers to reference..

Post by Alien // Feb 16, 2006, 6:44am

Alien
Total Posts: 1231
pic
Whilst I agree that those are good suggestions, in the mean time have you tried PSPad (http://www.pspad.com/en/)? I find it quite useful for all sorts of things.

Post by stan // Feb 16, 2006, 7:16am

stan
Total Posts: 1240
pic
Alien..the scripts export as .xml so I could bring them into visual studio, but the attributes tab and add attributes function of editor might not be accessable there..or a quick build and back to LE to check functionality ..I will investigate how that works..

Post by Norm // Feb 16, 2006, 9:19am

Norm
Total Posts: 862
pic
Alien..the scripts export as .xml so I could bring them into visual studio, but the attributes tab and add attributes function of editor might not be accessable there..or a quick build and back to LE to check functionality ..I will investigate how that works..


here is xml code from radians.HLSL.Brick.xml file in scripts directory:


<?xml version="1.0" encoding="utf-8" ?>

<SCRIPT Name="RtRadians" GUIName="Radians" Description="Perform per component conversion from degrees to radians [radians]">

<SCRIPT_PARAM Name="Input" Type="RtNumeric" Direction="in"/>

<SCRIPT_PARAM Name="Result" Type="RtNumeric" Direction="out"/>

</SCRIPT>


:)

Post by peterma // Feb 16, 2006, 9:36pm

peterma
Total Posts: 48
I've been spoiled by visual studio..the script editor needs some preference options


1..ability to change font size etc..


2...line numbers in margin..it's very silly getting an error code saying Line:66, Char: 43, when there is no numbers to reference..


I'm glad someone is asking for this.

Post by Délé // Feb 16, 2006, 10:11pm

Délé
Total Posts: 1374
pic
I would also like to see stan's suggestions. Especially the numbered lines. It's difficult to hunt down where you've made errors. And many I do make. :rolleyes:

Post by peterma // Feb 17, 2006, 12:08am

peterma
Total Posts: 48
Sure, the editor is quite simple compared e.g. to visual studio. We already started with embedding awesome Scintilla text editor component, perhaps one day the integration will get finished.


As for the line numbers, there are 2 things that can help:

- when you perform syntax check (by the Commit button in the toolbar), cursor will move automatically to the line with error.

- You can see current line number in the status bar at the bottom of the editor.

Post by Délé // Feb 17, 2006, 8:03am

Délé
Total Posts: 1374
pic
ah, I hadn't noticed that. That should help. Thanks Peter. :)

Post by Asem // Feb 17, 2006, 10:49am

Asem
Total Posts: 255
If also possible, can you show info on the parameters when using a function. for example,
using the math/matrix float package:

addscaleshear(real:This is?, real: this is? ...)

It would be a little easier even though the programmers incuded a html guide to what I think is all the function availiable and what there parameters are.

Post by Norm // Feb 17, 2006, 12:19pm

Norm
Total Posts: 862
pic
It would be a little easier even though the programmers incuded a html guide to what I think is all the function availiable and what there parameters are.


I reply in other thread regarding dev docs: http://forums1.caligari.com/truespace/showpost.php?p=2334&postcount=4


Hope this is helpful.

Post by Asem // Feb 17, 2006, 12:59pm

Asem
Total Posts: 255
Thanks Norm but I had already found the documents since I reinstalled ts7 with the disk(ts7 v7.0.0.5 to ts7 v7.0.1). What I meant was during actual scripting just like in vs c++ when you create or use a function it states the functions paramters when entering them like adding line numbers to easily find problems like stans suggestions.

Post by stan // May 29, 2007, 7:16am

stan
Total Posts: 1240
pic
I've been spoiled by visual studio..the script editor needs some preference options

1..ability to change font size etc..

2...line numbers in margin..it's very silly getting an error code saying Line:66, Char: 43, when there is no numbers to reference..

these have yet to be implemented

ability to change font size in editor..and colours

still need line numbers..looking for that cursor is not very good,

and now in ts7.5 you've made scripts even harder to see and read, bring back an optional white background

we also need the ability to collapse or expand areas of code:D
Awportals.com is a privately held community resource website dedicated to Active Worlds.
Copyright (c) Mark Randall 2006 - 2024. All Rights Reserved.
Awportals.com   ·   ProLibraries Live   ·   Twitter   ·   LinkedIn