Results 1 to 5 of 5

Thread: scripting engine

  1. #1

    Default

    Hi,
    After reading how all the scripts are in the resource.dat zip and looking through it all, I was curious at how you made your scripting engine as i've been reading about those recently.

    Are the scripts compiled at runtime into "native code" or into a intermediate bytecode that is used in a VM (Virtual Machine)? Or are the scripts just interpreted at runtime?

    Are the "script entities" multithreaded?

    From what books did you learn to make your scripting language/engine?

  2. #2
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Default

    no books, i just hacked it together. It converts the script into a kind of psuedo compiled mode, arranges the vars and procedures into a hashmap and some things for speed.

    It uses internal microthreads, it's designed so thousands of active scripts can be run at the same time without speed problems.
    Seth A. Robinson
    Robinson Technologies

  3. #3

    Default

    Quote Originally Posted by [b
    Quote[/b] (Seth @ June 27 2004,21:59)]no books, i just hacked it together.  It converts the script into a kind of psuedo compiled mode, arranges the vars and procedures into a hashmap and some things for speed.

    It uses internal microthreads, it's designed so thousands of active scripts can be run at the same time without speed problems.
    cool... what's an "internal microthread"??

  4. #4
    Administrator Seth's Avatar
    Join Date
    Jul 2002
    Location
    Japan
    Posts
    5,343

    Post

    It's just what I call the internal method of keeping track of many running scripts - internal micro as opposed to a windows thread, which would really be a bad idea to have 1000 of those suckers going.
    Seth A. Robinson
    Robinson Technologies

  5. #5

    Default

    IC ...does the Dink source code have some code for a scripting engine in it (im guessing yes, cause i heard it uses "DinkC")? And is it multithreaded (non Windows)?

Similar Threads

  1. pilgrims quest engine
    By in forum Dink Smallwood HD
    Replies: 1
    Last Post: 05-05-2005, 10:57 PM
  2. FQ Scripting
    By jjohn in forum Funeral Quest
    Replies: 11
    Last Post: 07-02-2003, 09:40 AM
  3. Funky Scripting Docs
    By redink1 in forum Funeral Quest
    Replies: 1
    Last Post: 01-14-2003, 06:12 AM
  4. Scripting in Unicode?
    By jjohn in forum Funeral Quest
    Replies: 3
    Last Post: 12-18-2002, 06:32 AM
  5. Dink Engine variables get confused
    By in forum Dink Smallwood HD
    Replies: 1
    Last Post: 11-11-2002, 09:17 PM

Bookmarks

Bookmarks

Posting Permissions

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