-
1 Attachment(s)
Ok, I've spent the last few hours working on the
documentation for this. This is a new scripting engine
that I have written that can be easily implemented is
any VB app. The documentation covers the langauge,
and how to implement the engine into your program.
Also included is the sample project for the console
application, as well as a small sample program. Please
try this out and tell me what you think.
Z.
-
1 Attachment(s)
Here is a little fun one for ya. A simple LineTo GDI Demo.
It requires these cases in the AppNotify event:
Code:
Case "rnd"
VMachine.StackPush Rnd() * VMachine.StackPop
Case "moveto"
MoveToEx VMachine.StackPop, VMachine.StackPop, VMachine.StackPop, ByVal 0
Case "lineto"
LineTo VMachine.StackPop, VMachine.StackPop, VMachine.StackPop
Case "windowdc"
VMachine.StackPush Picture1.hdc
And of Course, the API Declarations for MoveToEx, and
LineTo.
Z.
-
Oops, sorry - I posted a reply on this topic which was supposed to be on another topic...
Anyway, I made a scripting engine too. It supports nested blocks and uses real VB functions instead of a huge Select Case statement like most have! I haven't looked at your code yet, but if you need these things, just reply here and they're yours ;)
-
Just pushing this one to the top... =)
Z.
-
Hey, forgot to tell you: your sample program doesn't work! It gives me an error, but it was so much time ago I even forgot what it was (hehe, iI even forgot about this thread, sorry).
Try unzipping the files you uploaded and running them, I'm sure I'm not the only one having this problem.
-
Whats the error =)? I know the actual script works, because i tested it a bunch of times. Maybe i included the wrong project file, so some of the external functions are missing. When i get a chance, ill test it out.
Z.
-
Ok. Just don't forget to reply here so I'm e-mailed about it and it goes to the front page again ;)
-
There doesnt seem to be anything wrong with my version, Jotaf. You probably didnt register the DLL =P.
Z.
-
Hehe, you're right - it's because most of the DLLs I use are "plug-n-play" :)
-
Hey Jotaf
where could I get your scripting language?
I try the Chameleon next.
Where should I go to learn about writing scripting languages?
and is the microsoft scripting control usefull for game scripts like NPC AI?
-
Well, I halted work on my scripting language because I'm working on something else right now... so if you want it, you'll have to wait a bit.
The biggest difference between Jotascript and Chameleon, is that Jotascript looks like VB, and Chameleon looks like Asm. All you have to do is pick one ;)
The problem with Microsoft's scripting language is that it's too slow, and doesn't give you too much control over what the script is doing. That's why I made mine :)
You can look for the basic scripting tutorial here: http://blackhole.thenexus.bc.ca/
All you have to do is improve it a bit!