Results 1 to 13 of 13

Thread: Scripting *sigh*

  1. #1

    Thread Starter
    Member Usako's Avatar
    Join Date
    May 2001
    Posts
    60

    Scripting *sigh*

    How did you *start* learning to write a scripting engine? I want to make one for an rpg and the tuts I have readed sofar are abit fuzzy.

  2. #2
    Frenzied Member HarryW's Avatar
    Join Date
    Jan 2000
    Location
    Heiho no michi
    Posts
    1,827
    There are some scripting engine tutorials at www.gamedev.net if you look through the articles. I think there is something in the "Game Programming Genesis" series of articles, part IV.
    Harry.

    "From one thing, know ten thousand things."

  3. #3
    Zaei
    Guest
    I learned by doing. I sat down, was bored, and said "Im gonna write a scripting language" and came out with this "thing" that does what i wanted. look around here for something on scripting (like, search this forum) and youll find what i used. download the zip, and if you think itll do what you want, ill give you the source... make sure you get the newest copy though (its got a manual, etc).

    Z.

  4. #4
    Zaei
    Guest
    I just pushed the previously mentioned post to the top, so it should be an easy find =).

    Z.

  5. #5

    Thread Starter
    Member Usako's Avatar
    Join Date
    May 2001
    Posts
    60

    :)

    Although is doesnt work (get an error or something) I readed the manual and it seems like its almost exactly what I want/need . Is there a way I can talk to you? I have AIM, MSN, ICQ

  6. #6
    Zaei
    Guest
    Just keep posting here, I check this at least once a day. Ive
    forgotten my AIM names (most of them), and my ICQ number too =). If
    you need to, just send me an email, too. thats
    [email protected]. I check that a few times a day as well.
    I have a feeling the reason you got an error was
    because you didnt register the dll =). Anyway, if you have any questions, just ask away.

    Z.

  7. #7
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    Actually you don't need to. You can use VBscript with microsoft scripting control.
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  8. #8
    Zaei
    Guest
    MS Scripting control is a PAIN IN THE ***. Especially for debugging. Sure, its nice that it lets you act direcly on the object, but my god it gets annoying after the second or third time the control crashes your app because you added an object twice!

    Sorry im ranting, but its so very true!

    Z.

  9. #9
    transcendental analytic kedaman's Avatar
    Join Date
    Mar 2000
    Location
    0x002F2EA8
    Posts
    7,221
    You just don't know how to use it, i've never crashed my programs with the scripting control, and that's exactly the feature that makes it useful. You can crash VB if you want to, does that make it a pain in the ass to use?
    Use
    writing software in C++ is like driving rivets into steel beam with a toothpick.
    writing haskell makes your life easier:
    reverse (p (6*9)) where p x|x==0=""|True=chr (48+z): p y where (y,z)=divMod x 13
    To throw away OOP for low level languages is myopia, to keep OOP is hyperopia. To throw away OOP for a high level language is insight.

  10. #10
    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, ok: I made my own scripting language and it works, so maybe I can help you. The game I've made it for is still under development, and I'm probably not gonna release the code - but anyway, I can give you some tips.

    You should read the article about scripting at http://blackhole.thenexus.bc.ca/ . It's very good but only lacks one thing: you can't use nested blocks! I've solved that problem myself, all you have to do is something like: when you're running a line that is an IF, if the condition is true, continue running; if not, jump immediately to the corresponding END IF. With some modifications that applies to LOOPs and FORs and all

    The only tricky thing is which END IF corresponds to each IF... the simpliest way is to make of it a parameter of the IF (so you know where to jump when it's not true), but you could write an app to automatically format those parameters, a "compiler"
    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."

  11. #11

    Thread Starter
    Member Usako's Avatar
    Join Date
    May 2001
    Posts
    60
    Hey Jotaf, thx for that link!
    I downloaded the scripting engine from that site and it is sooo easy to use and add/remove functions . Thanks.
    Also thanks to the others for their usefull help ^_^

  12. #12
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Jesus jotaf ; we should give you a medal or something
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  13. #13
    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, no need to do that thank you

    I won't release the source code of my game, but I'll probably release the Script Editor I made for it... does anyone here remember the Trigger Editor for Starcraft, with just Point-And-Click?
    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