DracScript 1.06 Released! LGPL Scripting Language

Developed or developing a new product in PureBasic? Tell the world about it.
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Would be easier to just make a function and expose it to script called "RegisterConstant(constantname,value)"
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

I've found a bug. Seems that string comparisons with functions dont work... for example:

If GetMonsterName()='Evil Player'

This will evaluate to false even if GetMonsterName returns 'Evil Player'

I'm looking into this bug.

However this works:
n=GetMonsterName
If n='Evil Player'
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Upon further research it seems you cant do comparisons on anything but Constant values and variables.

I'll be working to fix this soon.
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Thank you for the update and the bug report!
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

With the update to your game released, were you able to fix this bug?
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Still havent had a look. should be really simple to add. Just been busy with life lately
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Ok the bug is fixed. 1.02 and unmarked "Beta" since it seems to be stable.

2.0 I'll even tually get to and should be able to define custom functions, maybe structures, etc.
Inf0Byt3
PureBasic Fanatic
PureBasic Fanatic
Posts: 2236
Joined: Fri Dec 09, 2005 12:15 pm
Location: Elbonia

Post by Inf0Byt3 »

I like how things evolve with DracScript. Great work!
None are more hopelessly enslaved than those who falsely believe they are free. (Goethe)
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

Thank you for the update.
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

You're welcome. :wink:
Lyon
User
User
Posts: 59
Joined: Tue Mar 28, 2006 9:26 pm

Post by Lyon »

Thank you for the update :wink:
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 345
Joined: Sat Dec 25, 2004 2:37 pm

Post by thyphoon »

Hello

First, Excuse me for my bad english. Second, Your Drascript is very interesting.
Where can i found the last version ?
If i Download at http://www.dracsoft.com/zips/dracscript.zip
I have the 1.02 but no run on V4, and if i use the V4 code you give in this topic i have the 1.01 Beta.

Best regards...
Thyphoon
Shannara
Addict
Addict
Posts: 1808
Joined: Thu Oct 30, 2003 11:19 pm
Location: Emerald Cove, Unformed

Post by Shannara »

I didnt think there were a V4 code of DracScript. I could be missing something. But how I understand it, is that DracScript is for 3.xx series, that way, it can run on all 3 platforms.

I *think*, and hope, that once PB V4 comes out on all three platforms, that DracScript will run on them.

*edit* Oh I see, I posted the V4 code. I could post the updated V4 code if you wish. And if it's ok with Drac :)
User avatar
thyphoon
Enthusiast
Enthusiast
Posts: 345
Joined: Sat Dec 25, 2004 2:37 pm

Post by thyphoon »

Shannara wrote: *edit* Oh I see, I posted the V4 code. I could post the updated V4 code if you wish. And if it's ok with Drac :)
If Drac is ok i'm interesting by this updated code :D
Thanks :p
dracflamloc
Addict
Addict
Posts: 1648
Joined: Mon Sep 20, 2004 3:52 pm
Contact:

Post by dracflamloc »

Its open source I don't really care what you do with it as long as its not misrepresented, etc
:D

But yea I'm holding off on my official v4 version until the first linux pb4 beta is out.
Post Reply