Results 1 to 11 of 11

Thread: Scripting

  1. #1
    Zaei
    Guest
    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.
    Attached Files Attached Files

  2. #2
    Guest
    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.
    Attached Files Attached Files

  3. #3
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457

    Red face

    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
    Last edited by Jotaf98; Apr 2nd, 2001 at 05:51 PM.
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  4. #4
    Zaei
    Guest
    Just pushing this one to the top... =)

    Z.

  5. #5
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    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.
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  6. #6
    Zaei
    Guest
    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.

  7. #7
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Ok. Just don't forget to reply here so I'm e-mailed about it and it goes to the front page again
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  8. #8
    Zaei
    Guest
    There doesnt seem to be anything wrong with my version, Jotaf. You probably didnt register the DLL =P.

    Z.

  9. #9
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    Hehe, you're right - it's because most of the DLLs I use are "plug-n-play"
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

  10. #10
    Frenzied Member /\/\isanThr0p's Avatar
    Join Date
    Jul 2000
    Location
    They can't stop us! We're on a misson from God.
    Posts
    1,181
    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?
    Sanity is a full time job

    Puh das war harter Stoff!

  11. #11
    Frenzied Member Jotaf98's Avatar
    Join Date
    Jun 2000
    Location
    I'm not gonna give you my IP address! Ok... Portugal, South-Western Europe, 3rd rock from the sun (our star is easy to find, a 47 Ursae Majoris in the Milky Way :p )
    Posts
    1,457
    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!
    Code:
    Temp = Me.GetIQ()
    'Error 9: Overflow
    'DON'T PANIC! :eek:

    To learn how to use realistic effects in your games like fire, rain, snow and magic effects, read my article on particles systems here.


    Jotaf's Theories!
    "Cats land on their feet. Toast lands peanut butter side down. A cat with toast strapped to its back will hover above the ground in a state of quantum indecision."

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width