New scripting engine - testers wanted!

Everything else that doesn't fall into one of the other PB categories.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

HeX0R wrote:@Stephen:
You were right regarding memory blocks, it works flawlessly, seems I were drunk when I tested it (as usual) :)
I have the same problem! :wink:

@QuimV. If you run the qdMin test editor as per the instructions which come with the download package; you can load up any of the test scripts that sit in the minScript demos folder and start to have a good look at the script language etc.
You can also paste HexOR's code into the script-panel of qdMin and compile it and then test it via the execution-panel (just enter Test()).
I may look like a mule, but I'm not a complete ass.
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: New scripting engine - testers wanted!

Post by QuimV »

@srod and @Hexor
:D Tank you so much.
QuimV
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

No problem.

I have now added static local variables for the next test version.
I may look like a mule, but I'm not a complete ass.
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: New scripting engine - testers wanted!

Post by QuimV »

:D :D Great!
VBscript does not have this functionality!
QuimV
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Version 1.0.7 uploaded.

Comes with static variables, EnableExplicit/DisableExplicit compiler directives, file functions, a few more string functions and some bug fixes.

This has the potential to have introduced more bugs. :)

The manual is progressing nicely - if slowly!

See the first post for the download link.
I may look like a mule, but I'm not a complete ass.
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: New scripting engine - testers wanted!

Post by QuimV »

:D Great!
Question: Adding the new "static" type, does the scope of the variables change something?
Thanks
QuimV
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Not sure what you mean because there is, prior to using DIM or STATIC, no scope to change.

STATIC can only be used inside a function or method and creates a persistent local variable. Module and script variables are already persistent and so STATIC does not apply to these variables.

Under the hood, STATIC simply creates a module variable whose internal name/ID is suitably 'mangled' and only accessible through the function/method in which it was created. Because of the naming convention used there can be no name clashes (bugs aside!)

Static variables remain persistent regardless of how many times you perform separate executions and remain so initialised until either the parent module is updated or the underlying code object is completely reset.
I may look like a mule, but I'm not a complete ass.
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: New scripting engine - testers wanted!

Post by QuimV »

:D @srod, your explanation is crystal clear.
Thanks.
QuimV
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: New scripting engine - testers wanted!

Post by QuimV »

:oops: @srod:

When I run qdMin.pb I get the error "minScript failed to initialize correctly. Closing qdMin".
I run it in windows 7 32 bits and windows 10 32 bits.
QuimV
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Removed.
Last edited by srod on Mon Feb 12, 2018 11:09 pm, edited 1 time in total.
I may look like a mule, but I'm not a complete ass.
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Okay, I suspect a problem with InitScintilla(). Have you renamed the x86 "scintilla.dll" file by any chance? Perhaps the x86 Purebasic\Compilers directory is not in your system path for some reason?

Try this. Delete the "Scintilla.dll" file from the qdMin folder (it is a 64-bit version).
Copy the 32-bit version of "scintilla.dll" from the x86 \Purebasic\Compilers folder. Copy it into the qdMin folder. Make sure it is named "scintilla.dll".

Now try running qdMin.
I may look like a mule, but I'm not a complete ass.
QuimV
Enthusiast
Enthusiast
Posts: 337
Joined: Mon May 29, 2006 11:29 am
Location: BARCELONA - SPAIN

Re: New scripting engine - testers wanted!

Post by QuimV »

:D Confirmed! It is the scintilla dll.
It works perfect now!
QuimV
srod
PureBasic Expert
PureBasic Expert
Posts: 10589
Joined: Wed Oct 29, 2003 4:35 pm
Location: Beyond the pale...

Re: New scripting engine - testers wanted!

Post by srod »

Right. I will include copies of both the 32-bit and 64-bit versions of Scintilla and some suitable conditional compilation with the next versions. :)
I may look like a mule, but I'm not a complete ass.
User avatar
Kwai chang caine
Always Here
Always Here
Posts: 5342
Joined: Sun Nov 05, 2006 11:42 pm
Location: Lyon - France

Re: New scripting engine - testers wanted!

Post by Kwai chang caine »

Hello MASTER,

A new time, i test your jewel, and like the other time, that works !!! :D (it's already a miracle i can run it Image ) :shock:

But i'm ashamed ..... :oops:
The first time.... i have not really all understand (like usually you say to me, it's normal walk :mrgreen:), and i say to me : "The second time, it will probably be better" :idea: and today ...i have always not better understand than the first time :oops:
Your software is too strong for the little brain of your servant :oops:

1/ So ok, i load one of your example "File1.txt" 8) Because i always like all the works with files, since i'm young when i create my first file on TO7 :shock:
2/ I click on the compile button and i have the message all is good "Compilation successfull" 8)
3/ Always ok, i paste the function

Code: Select all

DumpTextFile("..\..\testers_PleaseRead.txt")
in the execution panel, and all the text appears in the "outputDebug panel" 8)

And now ?? what i must do ??

Create the EXE of your code and run it in the windows shell console with a script txt,

Code: Select all

C:\Temp\AmazingExeOfMasterSrod.exe  "C:\Script.txt"
with inside the Script.txt

Code: Select all

DumpTextFile("c:\Temp\AText.txt")
Or create the EXE of your code and run it in console with a direct shell line

Code: Select all

C:\Temp\AmazingExeOfMasterSrod.exe "DumpTextFile('c:\Temp\AText.txt')"
Or perhaps... found a bridge and jump, but obviously without elastic, for freed you one time for other of me ? :mrgreen:
Image
Sometime, i'm tired to always be the one who don't understand....even after ten years at talking with numerous masters of programming .....

Image

I do not get used to it :oops: :oops: :?
ImageThe happiness is a road...
Not a destination
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4747
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Re: New scripting engine - testers wanted!

Post by Fangbeast »

Kwai chang caine, don't feel bad. I don't understand most of the coding you do so I am obviously far beneath you but I never worry about that.

I never understand srod either, his code is a million miles above me but with help, I always manage to get something done. Patience is the key word here and don't feel sorry for yourself, it doesn't help.
Amateur Radio, D-STAR/VK3HAF
Post Reply