It is currently Wed Feb 19, 2020 1:41 pm

All times are UTC + 1 hour




Post new topic Reply to topic  [ 136 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10  Next
Author Message
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Wed Feb 07, 2018 11:45 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10576
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Feb 08, 2018 7:37 am 
Offline
Enthusiast
Enthusiast

Joined: Mon May 29, 2006 11:29 am
Posts: 325
Location: BARCELONA - SPAIN
@srod and @Hexor
:D Tank you so much.

_________________
QuimV


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Feb 08, 2018 3:17 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10576
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Thu Feb 08, 2018 7:04 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon May 29, 2006 11:29 am
Posts: 325
Location: BARCELONA - SPAIN
:D :D Great!
VBscript does not have this functionality!

_________________
QuimV


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Mon Feb 12, 2018 1:42 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10576
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Mon Feb 12, 2018 6:49 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon May 29, 2006 11:29 am
Posts: 325
Location: BARCELONA - SPAIN
:D Great!
Question: Adding the new "static" type, does the scope of the variables change something?
Thanks

_________________
QuimV


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Mon Feb 12, 2018 7:10 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10576
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Mon Feb 12, 2018 7:14 pm 
Offline
Enthusiast
Enthusiast

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

_________________
QuimV


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Mon Feb 12, 2018 7:57 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon May 29, 2006 11:29 am
Posts: 325
Location: BARCELONA - SPAIN
: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


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Mon Feb 12, 2018 8:56 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10576
Location: Beyond the pale...
Removed.

_________________
I may look like a mule, but I'm not a complete ass.


Last edited by srod on Mon Feb 12, 2018 11:09 pm, edited 1 time in total.

Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Mon Feb 12, 2018 9:24 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10576
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Mon Feb 12, 2018 9:52 pm 
Offline
Enthusiast
Enthusiast

Joined: Mon May 29, 2006 11:29 am
Posts: 325
Location: BARCELONA - SPAIN
:D Confirmed! It is the scintilla dll.
It works perfect now!

_________________
QuimV


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Mon Feb 12, 2018 11:11 pm 
Offline
PureBasic Expert
PureBasic Expert

Joined: Wed Oct 29, 2003 4:35 pm
Posts: 10576
Location: Beyond the pale...
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.


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Tue Feb 13, 2018 11:03 am 
Online
Addict
Addict
User avatar

Joined: Sun Nov 05, 2006 11:42 pm
Posts: 4628
Location: Lyon - France
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:
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:
C:\Temp\AmazingExeOfMasterSrod.exe  "C:\Script.txt"
with inside the Script.txt
Code:
DumpTextFile("c:\Temp\AText.txt")

Or create the EXE of your code and run it in console with a direct shell line
Code:
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


Top
 Profile  
Reply with quote  
 Post subject: Re: New scripting engine - testers wanted!
PostPosted: Tue Feb 13, 2018 12:47 pm 
Offline
PureBasic Protozoa
PureBasic Protozoa
User avatar

Joined: Fri Apr 25, 2003 3:08 pm
Posts: 4524
Location: Not Sydney!!! (Bad water, no goats)
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


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 136 posts ]  Go to page Previous  1 ... 4, 5, 6, 7, 8, 9, 10  Next

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye