Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
1 registered members (AndrewAMD), 1,089 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
Script interpreter for Lite-C #432134
10/31/13 12:58
10/31/13 12:58
Joined: Mar 2010
Posts: 120
Switzerland
T
TehV Offline OP
Member
TehV  Offline OP
Member
T

Joined: Mar 2010
Posts: 120
Switzerland
Hi,
One of my projects requires that users are able to create and run scripts at runtime. I'd like to implement a fully functional script language if possible, and this doesn't seem like a trivial thing to do. The goal is to allow users to control various parts of my program using this scripting language.
The problem I'm having with this is that I have no idea of where to start. Does anyone have any ideas of how to do this, or know of an interpreter I could use?
Thanks in advance,
~TehV

Re: Script interpreter for Lite-C [Re: TehV] #432137
10/31/13 17:20
10/31/13 17:20
Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
LemmyTheSlayer Offline
Junior Member
LemmyTheSlayer  Offline
Junior Member

Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
http://www.lua.org/
try this one. it's widely used in games.


SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE
Re: Script interpreter for Lite-C [Re: LemmyTheSlayer] #432143
10/31/13 19:27
10/31/13 19:27
Joined: Jul 2013
Posts: 158
F
Feindbild Offline
Member
Feindbild  Offline
Member
F

Joined: Jul 2013
Posts: 158

Re: Script interpreter for Lite-C [Re: Feindbild] #432299
11/04/13 14:46
11/04/13 14:46
Joined: Mar 2010
Posts: 120
Switzerland
T
TehV Offline OP
Member
TehV  Offline OP
Member
T

Joined: Mar 2010
Posts: 120
Switzerland
Thanks!
I tried both. Lua seems to be missing a whole lot of includes and appears to be causing syntax errors, so it's probably not an option.
GSTScript doesn't cause compiler errors, but it doesn't seem to be loading the DLL included with it. Does anyone know why that might be?
I'm using Gamestudio A8 Pro by the way, in case that makes any difference in this regard.

Re: Script interpreter for Lite-C [Re: TehV] #432308
11/04/13 17:16
11/04/13 17:16
Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Quad Offline
Senior Expert
Quad  Offline
Senior Expert

Joined: Oct 2007
Posts: 5,210
İstanbul, Turkey
Lua probably (definetely) won't compile directly with lite-c. You will need to create an engine plugin dll using the lua sdk.


3333333333
Re: Script interpreter for Lite-C [Re: Quad] #432368
11/05/13 14:00
11/05/13 14:00
Joined: Mar 2010
Posts: 120
Switzerland
T
TehV Offline OP
Member
TehV  Offline OP
Member
T

Joined: Mar 2010
Posts: 120
Switzerland
I've decided I'll use GSTScript unless there's major difficulties with it. It already is a DLL, but I can't seem to figure out how to make it include the DLL. The script header that comes with it defines all the function prototypes, and will compile with no errors, but I get an error "empty function call" as soon as it's done (so it's not loading the DLL).
Do I need to include the DLL seperately?

EDIT: I've figured out that moving the DLL into the main project folder rather than a subfolder gets rid of the error. Thanks for the help!

Last edited by TehV; 11/05/13 14:10.
Re: Script interpreter for Lite-C [Re: TehV] #433025
11/21/13 12:49
11/21/13 12:49
Joined: Mar 2010
Posts: 120
Switzerland
T
TehV Offline OP
Member
TehV  Offline OP
Member
T

Joined: Mar 2010
Posts: 120
Switzerland
Does anyone have any experience with GSTScript? Whenever I try to register a function or execute a script, my program simply crashes.
I did run GSTScript_startup() before trying to run anything. I also waited 5 frames after engine startup before trying to run anything. Can anyone help?

Re: Script interpreter for Lite-C [Re: TehV] #433031
11/21/13 16:55
11/21/13 16:55
Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
LemmyTheSlayer Offline
Junior Member
LemmyTheSlayer  Offline
Junior Member

Joined: Mar 2010
Posts: 57
Germany, Niedersachsen
lua works fine for me, i just had to modify the headers a little to make it compatible with lite-C
i can upload my stuff somewhere if anyone is interested


SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE SCHLEIFE
Re: Script interpreter for Lite-C [Re: LemmyTheSlayer] #433084
11/22/13 20:47
11/22/13 20:47
Joined: Mar 2010
Posts: 120
Switzerland
T
TehV Offline OP
Member
TehV  Offline OP
Member
T

Joined: Mar 2010
Posts: 120
Switzerland
That would be great!

Re: Script interpreter for Lite-C [Re: TehV] #433088
11/22/13 22:16
11/22/13 22:16
Joined: Jun 2001
Posts: 1,004
Dossenbach
N
nfs42 Offline
Serious User
nfs42  Offline
Serious User
N

Joined: Jun 2001
Posts: 1,004
Dossenbach
last version is 0.9.8 http://projects.gstools.de/gstscript
please post your main code and lua script.


Andreas
GSTools - Home of
GSTScript 0.9.8: lua scripting for A6/7/8
GSTNet 0.7.9.20: network plugin for A6/7/8
GSTsqlite 1.3.7: sql database plugin for A6/7/8
3DGS Codebase: 57 snippets || 3DGS Downloads: 248 files
Page 1 of 2 1 2

Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1