Page 3 of 4 <1234>
Topic Options
#206341 - 2012-12-02 01:21 AM Re: KiXnet first public release, 4th build [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
This is the entire script...
 Code:
setoption("wrapateol","on")

get $
And it says this...
"Exception has been thrown by the target of an invocation.
Index and length must refer to a location within the string.
Parameter name: length
on script line:1 char position:27
Hit Enter to quit'

Top
#206342 - 2012-12-02 01:25 AM Re: KiXnet first public release, 4th build [Re: ShaneEP]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
The call using the scriptdir now works. The "use list" command in the test_call.kix file is bombing however.
Top
#206343 - 2012-12-02 01:44 AM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
figured out the cause for the setoption error, this build will not do that no more.
but, it seems to wrap all the time \:\(

and might have found another bug while fixing this one \:\)
and looking at your post, you have come to be victim of that bug too...
_________________________
!

download KiXnet

Top
#206344 - 2012-12-02 12:25 PM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
I hope I'm not jumping the gun on this (because KiXnet isn't even in beta yet) but my mind has been pondering the consequences of what your aiming for - an interpreter that completely supports the current KiXtart syntax but can be expanded in ways that many of us have long hoped for.

I have a bit of a wish list that I've been contemplating... However to keep it just to my my main two wishes (apart from the already included .NET support), here they are.

Firstly, I would love it if you could hook up scripts to receive events. I'm not entirely sure how you would would choose to implement it, but I figure you could mark functions to handle events in a similar syntax to VB.NET. I figure you could also possibly put in something like a "Wait" command that would put the script into a mode to wait for events instead of finishing.

The second wish would be passing by reference - possibly by adding a ByRef marker in function parameters. In each case it would be possible to support current KiXtart syntax but expand it for the new functionality.

Sorry if you consider these suggestions too premature, I know there is much work still to be done, however I'm sincerely hoping this thing takes off and I have high hopes!

Top
#206345 - 2012-12-02 03:47 PM Re: KiXnet public alpha release, 5th build [Re: It_took_my_meds]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
yes, on my list too.
I'm not sure about the byref. internally everything is supposed to byref already. so reference handles would be handles to reference handles doable, but not sure I see the point anymore ;\)

eventhandlers and multithreading have been high on my list for years.
as well as handling binary data and files.

as Ruud is still supporting current kix fixing and implementing now and then, my aim is to let him have control of kixtart. and as long as it is plausible, kixnet would be fully compatible with kixtart.

honestly speaking, I would have not even started this adventure if there would have been a way to co-develop kixtart itself, but as I didn't get a chance, here we are. and that's the main reason for this project. to take kixtart language to par with current needs.
_________________________
!

download KiXnet

Top
#206346 - 2012-12-02 03:57 PM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
and on the alpha stage... I coded 99% of the code in the spring and finished it just week ago. this is also when I also broke some functionality and this is why we are in public alpha instead of beta.

once I fix all the commands that worked and no longer do, we shall have a beta release.
not sure how should I handle the debug stuff as console debugging the way kixtart does it was never helpful to me. on the other hand writing a gui debugger would kick the release date back for at least a week (as in work hours)
_________________________
!

download KiXnet

Top
#206348 - 2012-12-02 04:37 PM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Shane, I can't get the use list to misbehave...

you have mapped drives?
what's the error/exception you get?
_________________________
!

download KiXnet

Top
#206349 - 2012-12-02 08:11 PM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Perhaps it's more of a problem with the '?'.

This code simply pops open a console, and then closes...never displays anything
 Code:
? use list
get $

This code opens a console and displays the drives (in a different format than kix however) and then waits for a key to be hit as expected.
 Code:
use list ?

get $

Top
#206350 - 2012-12-02 11:18 PM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
It_took_my_meds Offline
Hey THIS is FUN
*****

Registered: 2003-05-07
Posts: 273
Loc: Sydney, Australia
A GUI debugger would be a dream come true! I'm surprised you think it would take a week, I would have thought it would be much more difficult and longer task.
Top
#206351 - 2012-12-03 02:34 AM Re: KiXnet public alpha release, 5th build [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Shane, that's good info. I think I know what's going on in there. most likely use causes the next token to be skipped. in this case either the linefeed or get.
now if I had a working machine to fix it...
will need to start rebuilding one of my vista laptops as this one is totally unworkable in the devel now.

kinda wish the devel server would be usable :p

_________________________
!

download KiXnet

Top
#206352 - 2012-12-03 02:36 AM Re: KiXnet public alpha release, 5th build [Re: It_took_my_meds]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
gui debugger taking a week. yea. it isn't all that hard. most of the time is about UI.
now, I will not have that week this year so debugger functionality might be a matter of later releases.
_________________________
!

download KiXnet

Top
#206353 - 2012-12-03 03:05 AM Re: KiXnet public alpha release, 6th build [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
found a way to open the project on another machine.
still can't run to test.

try this one, the use list thing should be fixed.
_________________________
!

download KiXnet

Top
#206359 - 2012-12-03 05:48 PM Re: KiXnet public alpha release, 6th build [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
found a computer to test on:
a) the use list works as I wrote it. but the list is incomplete. doesn't list non-drive mappings.
b) the com-object part... now I was able to see what actually errors. there is object array and int array mismatch thingie going on, as well as something more profound and am afraid that kixforms, even though it says threadinmode both, it actually only supports STA applications.

I will remove that kixforms stuff from the test.kix for now.
_________________________
!

download KiXnet

Top
#206360 - 2012-12-03 05:49 PM Re: KiXnet public alpha release, 6th build [Re: Lonkero]
ShaneEP Moderator Offline
MM club member
*****

Registered: 2002-11-29
Posts: 2127
Loc: Tulsa, OK
Here a couple more bugs for you.

Trying to display a variable outside of where it was declared causes the following error.

Also...the CD command cuts off half the current dir much like the @ScriptDir did before you fixed it.
 Code:
cd "c:\nonexistingdir"

if 1<>2
 dim $b
 $b = 3
 ? "b: "+$b
endif

? "b: "+$b

get $

"CURRENT DIR:C:\Documents and Settings\Shane

b: 3
Exception has been thrown by the target of an invocation.
Object reference not set to an instance of an object.
on script line:9 char position:8
Hit Enter to quit"

The wrapateol seems to be working. However it is adding 2 line feeds as shown below.

"rather long text output coming your way just to see that the text wrapping works

as expected or what not if that was the case of it."

The GoSub is also failing. It simply displays the sub name to the console and continues on without actuall running the sub-routine.
 Code:
gosub "testsub"
? "after sub"

get $

:testsub
? "in sub"
return
Produces this on the console...
"testsub
after sub"

Top
#206361 - 2012-12-03 05:53 PM Re: KiXnet public alpha release, 6th build [Re: ShaneEP]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
cool, thanks for these. I have some work to do still ;\)
_________________________
!

download KiXnet

Top
#206371 - 2012-12-04 09:11 PM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
Glenn Barnas Administrator Offline
KiX Supporter
*****

Registered: 2003-01-28
Posts: 4400
Loc: New Jersey
Why is the test server not usable? You both have logons, VS2010 is loaded, and you have the NDR docs there from all of us..

I can't create Win-8 VMs (yet) until the VSphere 5.1 upgrade is complete, but I have a Win-8 physical box, a couple of Win-7 VMs, and can spin up Server 2K8 systems for you as well. Next month, I could even provide a virtual VM 5.1 environment..

Glenn
_________________________
Actually I am a Rocket Scientist! \:D

Top
#206378 - 2012-12-05 02:43 AM Re: KiXnet public alpha release, 5th build [Re: Glenn Barnas]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
you busy?
_________________________
!

download KiXnet

Top
#206387 - 2012-12-06 03:38 AM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
cool, now we are talking.
_________________________
!

download KiXnet

Top
#206395 - 2012-12-07 05:04 AM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
ok, I don't know why... can't seem to find anything with google, but writing to console is autowrapped.
and I can't turn that off!!!

anyways, fixing the gosub showed me that return didn't work right.
now need to figure that one out \:\)
_________________________
!

download KiXnet

Top
#206396 - 2012-12-07 01:57 PM Re: KiXnet public alpha release, 5th build [Re: Lonkero]
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
Don't have time to fix them this morning but both exit and return logics are bit faulty...
maybe during lunch break...
_________________________
!

download KiXnet

Top
Page 3 of 4 <1234>


Moderator:  Arend_, Allen, Jochen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 581 anonymous users online.
Newest Members
Audio, Hoschi, Comet, rrosell, PatrickPinto
17880 Registered Users

Generated in 0.05 seconds in which 0.013 seconds were spent on a total of 13 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org