Post

 Resources 

Console

Home | Profile | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 VBGamer
 VBGamer
 Scripting...speed!
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

EACam
Warrior

154 Posts

Posted - May 17 2004 :  7:51:16 PM  Show Profile  Reply with Quote
Ok...which is faster, better, more powerful, overall better for a custom game (i don't want the MsgBox function and I don't use classes!), etc.

MS Script control?
Or Custom scripting language

If I did custom, then before actually running the game, the script would be compiled to a bunch of numbers refering to specific commands and variables, so i think it'd be pretty fast.

Any word of wisdom?

Sr. Guapo
Swordmaster

USA
272 Posts

Posted - May 17 2004 :  8:59:02 PM  Show Profile  Reply with Quote
If it is done right, a custom script should be faster (as with many things). Are you using VB for the script, or another language (c/c++, etc.)?

Go to Top of Page

Eric Coleman
Gladiator

USA
811 Posts

Posted - May 17 2004 :  11:08:36 PM  Show Profile  Visit Eric Coleman's Homepage  Reply with Quote
If you create your own in VB, then it will be slower than using the MS script control, which is created in C++. Of course, I'd like to see someone prove me wrong, but I tried many different approaches to creating a scripting engine, and I was never able to get it as fast as the Scripting Control.
Go to Top of Page

cbx
Swordmaster

Canada
296 Posts

Posted - May 18 2004 :  03:38:35 AM  Show Profile  Visit cbx's Homepage  Send cbx an ICQ Message  Click to see cbx's MSN Messenger address  Send cbx a Yahoo! Message  Reply with Quote
quote:
Originally posted by EACam
Any word of wisdom?



Use vb.net and CodeDOM to compile full vb.net code at run time. He he (I realize you are probably wanting to use vb5/6). Just a thought. But it sure would save you from writing your own scripting language ...

Created by: X
http://www.createdbyx.com/

Edited by - cbx on May 18 2004 03:39:09 AM
Go to Top of Page

VBBR
Moderator

Brazil
617 Posts

Posted - May 18 2004 :  10:54:47 AM  Show Profile  Reply with Quote
If you don't want to use the MS control you could use Lua instead.

Of course, if you find out how to use Lua in VB without having to declare thousands of functions, constants and enumerations...

(BTW, is there any utility that converts .h files to VB declarations? It would be so great if there was one)

Whatever. Who knows...
Go to Top of Page

EACam
Warrior

154 Posts

Posted - May 18 2004 :  1:05:59 PM  Show Profile  Reply with Quote
Hmmm....well, I actually have a feeling that custom script would be faster, considering it would do ONLY what I need it to. Though the other is written in C++, it still has a LOT more to worry about. Whereas mine, would be compiled to mere numbers and run from Select Case structures mostly...

Maybe.
Go to Top of Page

ken_foust@hotmail.com
Neophyte

USA
3 Posts

Posted - May 18 2004 :  5:02:09 PM  Show Profile  Reply with Quote
My experience with VBScript is that it typically runs around 3 times slower then normal vb6 code. I was part of a group though that was able to utilize it as the top layer of a C++ client-server network. We were able to process 25 million orders within our 4 hour window...

I actually developed software to replace the MS Script Control so that our "top layer" could be debugged on the fly - you can dload it from planet source code. Search for VBScript Engine w/ Visual Basic...

Hope this helps

Go to Top of Page

EACam
Warrior

154 Posts

Posted - May 18 2004 :  9:00:37 PM  Show Profile  Reply with Quote
Hey thanks!
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
VBGamer © Go To Top Of Page
This page was generated in 0.12 seconds. Snitz Forums 2000

Copyright © 2002 - 2004 Eric Coleman, Peter Kuchnio , et. al.