Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Work in Progress / POWERSOFT >>> Scripting System

Author
Message
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 25th Feb 2005 03:54
Hello,

Time for an update. My initial RPN function has been recoded 3 times and increased to 3 functions. Fortunatly the way its setup now should be better, faster and more versatile.

I have added a function to setup the engine. Thats good.

Im planning on adding some debugging functions as i could do with some. Anyway

Hopefully release an update soon till then

Adios!


Regards,
Rich

Powersoft Scripting Language under redevelopment!
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 25th Feb 2005 04:01
Your pseudocode is the same as the Faqts description

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 25th Feb 2005 05:17
I know... thats why their great links

Regards,
Rich

Powersoft Scripting Language under redevelopment!
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 27th Feb 2005 22:38
Code is coming along well and i have positive feelings about an imminant release/update.

After that i will start adding more features. Are there any features that you would want to see implemented into said program. Do you want a debugger? Do you want instant type conversion type$=type# ? whatever you mention i will strive to include. So get your thinking caps on and enable me to make it work for you.


Regards as always,
Rich

Powersoft Scripting Language under redevelopment!
Mr Underhill
21
Years of Service
User Offline
Joined: 23rd Apr 2003
Location: The Forgotten Worlds...
Posted: 28th Feb 2005 14:02 Edited at: 28th Feb 2005 14:04
Heh, it looks like I might have to add LUA and PowerScript to my list of languages-to-learn, along with C++, PureBasic, and Spanish.

My name is Underhill...commit it to memory.
"Vee vill drive zhem from zee peer-to-peer sites, vee vill beat zhem vith a stick!" ~Leo Laporte, mocking the RIAA
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 28th Feb 2005 20:51
@underhill. Thanks alot, you have given me a great name for my scripting system i think im going to credit you for it PowerScript, i like it


Regards,
Rich

Powersoft Scripting Language under redevelopment!
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 1st Mar 2005 20:57
Ok let me give an overview of the soon to be released update.

The news system is much smarter when it comes to variables. The main cause of this is the fact that the variables are handled using one array based on a type of 4 elements. Now if we compare this to the old system which used 7, thats right 7 (S-E-V-E-N) arrays it is obviously going to be much faster. It will also be able to calculate expressions and this is using RPN (Thanks DavidT ). Once expression parsing is sorted ill post a update.

Stay Tuned


Regards,
Rich

Powersoft Scripting Language under redevelopment!
Advancement Games
19
Years of Service
User Offline
Joined: 6th Jan 2005
Location:
Posted: 1st Mar 2005 21:34
I love the scripting system. It is the best so far made with DarkBasic Pro!

Coming to www.mworks4me.bravehost.com:
Warlords of Earth: Shadows of the Past
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 2nd Mar 2005 00:55
well the only person who can comment on that is other members. But if it is indeed true i thank you all...

(Kudos for you)


Regards,
Rich

PowerScript: Currently Working on Expression Parsing, 80% complete
Advancement Games
19
Years of Service
User Offline
Joined: 6th Jan 2005
Location:
Posted: 6th Mar 2005 22:44
Do you have a release date?

Coming to www.mworks4me.bravehost.com:
Warlords of Earth: Shadows of the Past
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 7th Mar 2005 00:30
Release Date?
Well not at the moment because expression parsing is completly messed up

PowerScript: Currently Working on Expression Parsing, 10% complete (Yep the number went down)
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 8th Mar 2005 09:42
Where is the most current version?

www.war3forums.net
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 10th Mar 2005 02:50
it should be a few posts back.

Regards,
Rich

PowerScript: Currently Working on Expression Parsing, 10% complete (Yep the number went down)
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 19th Mar 2005 15:28
Ok, explanation time.

Work on this project and any further projects have been on hold for a week and there is another week to come as i have a french exchange student staying at my house...

This project is not dead, just dormant for the time being

Regards,
Rich

PowerScript: Currently Working on Expression Parsing, 10% complete (Yep the number went down)
Benjamin
21
Years of Service
User Offline
Joined: 24th Nov 2002
Location: France
Posted: 21st Mar 2005 05:41
A French exchange student?


"Lets migrate like bricks" - Me
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 22nd Mar 2005 01:52
yea, from Salon de Provence- Near Marseille

PowerScript: Currently Working on Expression Parsing, 10% complete (Yep the number went down)
TheOneRing
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location: Right here.
Posted: 24th Mar 2005 06:13
So are you doing your pre-scan pass like David T said? I was just curious. For my pre-scan, or compile pass, I actuall go through similar to the way David mentions and determine if said tokens are keywords, functions, variables, or constants. When I do this I turn each into a integer representation of the token.

Example:

if (a == 1) {

breaks down so that IF is a keyword (a keyword is represented by the number 3 for example), and is the IF keyword (number 1 in this case). So my byte-code becomes 31 (not thirtyone, but three, one).

I then see that I have a variable called 'a'. A variable is represented by the number, lets say, 5, and each variable is stored in a structured array, and its index in this case is 1. So the byte code produced is 51(meaning a variable, refrenced at index 1).

The == (equality) has a token number, and I treat numeric constants just like variables. They are stored in a structured array for quick lookup. Strings I handle the same. So instead of grabbing a numeric token like "123890" (6 string reads), it is a quick reference in a lookup table...

Anyway... sorry. I LOVE interperter theory... Good stuff. I'm glad to see so many taking interest in this for DBPro. Cheers!
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 24th Mar 2005 07:42 Edited at: 24th Mar 2005 07:42
For my last compiler sort of thing, I did a tokenise like TheOneRing says:



I'd tokenise into:



From that simple list it's so easy to parse the code. If you come across a command that say "if", read next token for ident, then read op, then read in the rest of the tokens until the end of the if. THen construct something like

anumber,=,1

and pass the list of tokens to an RPN solver, the RPN solver then executes the code (well, in a compiler it outputs the assembly to execute that expression) and then you pop the result off the stack and then echo out a conditional branch.

Bet you wish you took more notice of creating humble ASM like languages with labels

Oh dear I've rambled again.

Get 15 new commands, all the date / time commands left out of DBPro for free!
DOWNLOAD PLUGINS HERE: http://www.davidtattersall.me.uk/ and select "DarkBasic"
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 3rd Apr 2005 01:50
Confession time.

I havn't touched this for ages, i feel guilty. I must do something with it. Hopefully i can release something soon. I dont actually know if my changes under the hood has actually done anything to the speed. Well its time to find out.

Watch this space...

Regards,
Rich

PowerScript: Currently Working on Expression Parsing, 10% complete (Yep the number went down)
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 4th Apr 2005 03:21
UPDATE TIME: I have been working heavily on expression parsing and i have switched back to RPN. The method im using is very general so its not that specific and it runs off itself rather than hardcoding seperate sections for brackets + no brackets (save's loss in speed)

However the debugger doesnt work and it should. Thats causing problems as i have some weird errors and i need to check some variables and gubbins under the hood.

Regards,
Rich

PowerScript: Currently Working on Expression Parsing, 10% complete (Yep the number went down)
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 5th Apr 2005 23:29
Yay! Debugger finally working for me.

The splitting of the expression is now done, eg:
1+2
is split as:
1 + 2

However the problem comes with formatting the resulting string so that the machine can work out its actual value.

David i might need abit of help with this, can i ask you next time your online?

Had some other ideas yesterday while talking to MikeS about how i could deal with the source file and how i could encrypt it. (btw there will be a challenge to decrypt the file eventually but that can wait until this is done)

Thanks for checking the thread,

Regards,
Rich

[b]PowerScript: Currently Working on Expression Parsing
MikeS
Retired Moderator
21
Years of Service
User Offline
Joined: 2nd Dec 2002
Location: United States
Posted: 6th Apr 2005 13:37
Great to see you got the debugger working right. Keep up the good work, hopefully David can also pitch some ideas on encryptions/decryption.



A book? I hate book. Book is stupid.
(Formerly known as Yellow)
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 7th Apr 2005 02:18 Edited at: 7th Apr 2005 02:23
Hi Rich,

I've been going through your RPN code. It's completely lost me about the point where it empties the stack of all bits less in priority (mainly due to DB's very clunky arrays).

I'll try and have a bash through it.

What you also may want to think about Rich is instead of having two process, Convert then Solve, why not solve while converting?

Every time you write some output from the converter, you could execute that action as well.

So as your prog outputs, say 123*+

Output 1: push 1 at the same time
Output 2: push 2 at the same time
Output 3: push 3 at the same time
Output *: pop pop mult push
Output +: pop pop add push

if your stack runs empty you could ouput "Invalid expression!".

Facts are meaningless.
You could use facts to prove anything that's even remotely true.
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 7th Apr 2005 02:52
Right Rich the problem lies with the stack somewhere. To standard-ify thing I've written these stack functions:

Quote: "dim Stack$()

push("0")
push("1")
push("2")

while Count()>-1
print pop()
endwhile
wait key


function Push(s$)
add to stack Stack$(0)
Stack$()=s$
endfunction

function Pop()
r$ = Stack$()
remove from stack Stack$(0)
endfunction r$

function Peek()
r$ = Stack$()
endfunction r$

function Count()
r = array count(Stack$(0))
endfunction r"


[edit]

Just got it working! 34-7 becomes 34 7 -.

The only problem now is that your priorities are a bit wonkey. It thinks a + has greater than a *?

Facts are meaningless.
You could use facts to prove anything that's even remotely true.
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 7th Apr 2005 04:34
Thanks alot David, that is fantastic. Will look into the prioirity situation.


Thanks again

[b]PowerScript: Currently Working on Expression Parsing
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 7th Apr 2005 17:57
I fixed priorities, I didn't know how your sytem wored. I assumed

RPN_GetpRiority

returned the priority, it just returns an array index

Facts are meaningless.
You could use facts to prove anything that's even remotely true.
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 8th Apr 2005 16:20
Yea I did that cos i thought it was the best way


Thanks again.

[b]PowerScript: Currently Working on Expression Parsing
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 9th Apr 2005 17:55
Decided not to start back at work with this till i get home to me mums so working on my website instead.

Ive seen people asking about how to execute variables as commands etc etc would anyone be interested in a tutorial covering the process in making a scripting program. Mine is open source and it would basically be on making PowerSCRIPT but I didnt know if anyone would find it useful?

Please comment on this


Regards,
Rich

[b]PowerScript: Currently Working on Expression Parsing
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 14th Apr 2005 04:32
Would anyone find a tutorial useful for making a scripting engine?

[b]PowerScript: Currently Working on Expression Evaluating, thanks alot DavidT for the help
TheOneRing
21
Years of Service
User Offline
Joined: 28th Aug 2003
Location: Right here.
Posted: 14th Apr 2005 04:56
Although I've written them, I would be interesting in seeing various methods and techniques on accomplishing the various goals in script engine design.
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 15th Apr 2005 01:58
Thanks for the comment, are there any other people who would comment?

[b]PowerScript: Currently Working on Expression Evaluating, thanks alot DavidT for the help
fasdfsdaf
19
Years of Service
User Offline
Joined: 17th Jan 2005
Location:
Posted: 15th Apr 2005 02:22
I would also be very interested. And y our progress looks good. Can't wait for the next release.

www.war3forums.net

A.K.A Death Stalker
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 25th Apr 2005 04:51
Thanks for your expressed intrest. Im working on some very "nitty gritty" coding under the hood. Its not nice...
Plus im in a stage of web designing. Bloody addictive

[b]PowerScript: Currently Working on Expression Evaluating, thanks alot DavidT for the help
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 30th Apr 2005 16:39
Hello,

This is it. I am finally displaying what i have been promising for sometime. Thank You Jimmy for forgetting to turn the server on as it has given me a reason to do some computer programming. I opened up DBPro and compiled PowerSCRIPT. Few errors. Fixed them. Reorgansied code. Compiled with the expression as 100+2. Outcome? 102!!!

Thats right folks. Expression Parsing and Evaluating is operational.

Just like to take the opurtunity to thank DavidT again for his support on the expression parsing. He is a great programmer in all fields...

Now i can, if you want release the source for you to test or i can hold it back. By that i mean get the script running to work and then submit it. Basically so it reads the scripts...
Your choice.


Regards,
Rich

[b]PowerScript: Currently Working on Expression Evaluating, thanks alot DavidT for the help
Jess T
Retired Moderator
21
Years of Service
User Offline
Joined: 20th Sep 2003
Location: Over There... Kablam!
Posted: 1st May 2005 17:48
Show us what you've got now, then when you get the rest going, show us that too

Jess.


Team EOD :: Programmer/All-Round Nice Guy
Aust. Convention!
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 1st May 2005 17:56
Thanks Jess. Pleased that someone is checking the threads progress


Will post code when i get back to the code. Its on another machine.

Regards,
Rich

[b]PowerScript: Currently Working on Expression Evaluating, thanks alot DavidT for the help
David T
Retired Moderator
22
Years of Service
User Offline
Joined: 27th Aug 2002
Location: England
Posted: 1st May 2005 19:56
Quote: "Just like to take the opurtunity to thank DavidT again for his support on the expression parsing. He is a great programmer in all fields..."


Why thank you

Looking forward to seeing what's been done - sounds nice

Facts are meaningless.
You could use facts to prove anything that's even remotely true.
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 1st May 2005 21:17
no problem


As promised....

[b]PowerScript: Currently Working on Expression Evaluating, thanks alot DavidT for the help

Attachments

Login to view attachments
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 2nd May 2005 04:06
Hey. Update.


Been working hard on this. Changed somethings around and optimised bits.

Im currently setting up the command aspect of the engine. It should be ready to be distributed in the next few days.

Would be interested to hear some thoughts on this application of dbpro.


Regards,
Rich

[b]PowerScript: Currently Working on Expression Evaluating, thanks alot DavidT for the help
ReneGade RG
19
Years of Service
User Offline
Joined: 13th May 2005
Location:
Posted: 5th Jun 2005 23:46
It's amazing! I've just tried! I'm gonna create my own script now!

It's amazing you're reading this, surprise... you still are.
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 6th Jun 2005 02:54
Hey,

Thanks for trying it. I would be interested to hear your views and comments on it. Any bugs you find let me know, any thing you dont understand like wise.


Feel free to use it just drop my name somewhere in the credits


Cheers,
Rich

[b]PowerScript: Currently Working on Expression Evaluating, thanks alot DavidT for the help
ReneGade RG
19
Years of Service
User Offline
Joined: 13th May 2005
Location:
Posted: 7th Jun 2005 23:48
There's a problem with Powerscript, I write two text commands... Only one works when compiled, help needed!
Powerscript is amazing but it's alittle bit bugged! And how come's I'm the only person to have complained, maybe my version was f*cked up!

It's amazing you're reading this, surprise... you still are.
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 6th Jul 2005 21:02
Hey.

Sorry for late reply.

What seems to be the problem? Can i see the code your using. Is it your own command which you have written or one which i had already got pre-built for the program

Regards,
Rich

[b]PowerScript: Currently Working on C++ version
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 7th Jul 2005 03:51
{update}

Started to code a optimised evaluator. Should be working faster soon.

[b]PowerScript: Currently Working on C++ version
Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 7th Jul 2005 04:05
You rule man, keep up the good work!

Dumbo and Cool

WIP Board!
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 7th Jul 2005 04:36
I... RULE?

Wow that means I have some sort of power


Cheers.


Regards,
Rich

[b]PowerScript: Currently Working on new VB version
Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 7th Jul 2005 04:39
Quote: "Wow that means I have some sort of power"


Ha ha ha... you have the power, of soft.
Nice avatar too.

Dumbo and Cool

WIP Board!
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 7th Jul 2005 16:00
Thanks.

The DBpro version has come to a level where i can't read the code. Might do a rewrite

[b]PowerScript: Currently Working on new VB version
Drew Cameron
20
Years of Service
User Offline
Joined: 30th Jan 2004
Location: Scotland
Posted: 7th Jul 2005 19:46 Edited at: 7th Jul 2005 19:47
How far are you until completion? If you're more than 3/4 of the way through, I'd say don't worry too much about it, I think alot of peoples code is unreadable by that stage in a project, and that includes mine - I start taking shortcuts etc... when the end is in sight, because it doesn't really matter much anymore...

Dumbo and Cool

WIP Board!
PowerSoft
19
Years of Service
User Offline
Joined: 10th Oct 2004
Location: United Kingdom
Posted: 7th Jul 2005 20:10 Edited at: 11th Jul 2005 22:46
well i might only rewrite some sections in that case

I need to get the expression parsing cleaned up.

Regards,
Rich

Always available to help

Login to post a reply

Server time is: 2024-09-29 12:18:19
Your offset time is: 2024-09-29 12:18:19