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 / Goga's String Plugin

Author
Message
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 6th Sep 2012 23:43 Edited at: 1st Nov 2012 22:24
hey guys! im back with more and more plugins for you!
this one completly free and no catch! just like most of my projects

maybe by the thread title you thing its just another string collection. but you're wrong! this one is a huge opportunity for users to make their own scripts COMPILED and ENCRYPTED scripts for their games.
scripts are always been a very big help for every game. and this time its DarkBasicPro's turn! in future it gonna be used on DarkBasic ELITE too.
One of the biggest features of this plugin that puts darkbasicpro coding to complete different level, is the multithreading file reading.
so basicly you can open file into a memory about 2GB file size without slowing down the game! while loading the file, you are able to read out of it too!
this only works for text files, for own script system. it wont work on media files cuz its not designed for it.

This plugin is not completed yet! feel free to suggest more usefull string functions that will help people.

this download includes all the documintation of all the commands of the plugin including and install guide.


Version 0.8b - 1.11.12
http://dl.dropbox.com/u/1802543/plugins/GString0.8b.rar

Enjoy!

12.10.12 command list (a preview):


i will post here some demos later on to demonstrate how it all works.

Advanced Updater for your games!
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 7th Sep 2012 01:13 Edited at: 7th Sep 2012 01:22
i apologize for small bug i had that makes it all crash suddenly.
but i fixed it. the version is upper (0.6)

small code that demonstrates
Encryption/Decryption
Lower/Upper and SmartCase
and SmartWordList



Advanced Updater for your games!
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Sep 2012 03:04
Another one to follow!

So primarily a scripting engine right? in anyway like LUA?



Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 8th Sep 2012 16:36
Quote: "So primarily a scripting engine right? in anyway like LUA?"

no. its not like LUE and any other scripting languange.
with this plugin can are able to make your own scripting languange. make your own rules.

Advanced Updater for your games!
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Sep 2012 17:00
So it IS a Scripting engine...

Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 8th Sep 2012 17:02 Edited at: 8th Sep 2012 17:02
no.
download it -> open up the documentation and read exactly what its capable of. i made a documentation for each command.

Advanced Updater for your games!
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Sep 2012 17:06
Ok will try shortly... Need to get out of bed first lol

Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 8th Sep 2012 20:39
Updater 0.7 on top!
added 2 more commands:
GS IsCointains
GS MidStr - wich is the improved version of dbp's Mid$() with 1 more parameter


1 more code snippet that shows how GS IsEmail() command works:



Advanced Updater for your games!
TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 8th Sep 2012 23:03
Quote: "So it IS a Scripting engine..."


No. It merely has some string manipulation functions and a multithreaded version of open to read (very useful btw! ). YOU are the one that has to write the scripting engine.

TheComet

"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Sep 2012 23:25
Quote: "TheComet"


Cheers

I hope I get around to using this...

Sergey K I suggest you get these all listed somewhere... I am lost as to exactly how many products you have on offer [If you already have a website linky please ]

Will make navigating them easier in future

Quote: "i will post here some demos later on to demonstrate how it all works."


looking forward to them

Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 8th Sep 2012 23:38
Quote: "Sergey K I suggest you get these all listed somewhere... I am lost as to exactly how many products you have on offer [If you already have a website linky please ]"


so far, only 2.
the others are not longer supported as i said on my other thread.


but im working on a website along with TheComet to list all of my future projects and his.

Advanced Updater for your games!
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 8th Sep 2012 23:57
Sweet!

Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 9th Sep 2012 09:26
so far, at the new version i will have about 22 string functions.

any suggestions for more?
i already made check if legal email address (wich not requires network connectin at all)
also my next function is check if the IPAddress is legal.

please suggest me more string commands to use.

im sure that every game needs some sort of string commands, and i want to hear from you guys wich commands are you using?

Advanced Updater for your games!
Seppuku Arts
Moderator
19
Years of Service
User Offline
Joined: 18th Aug 2004
Location: Cambridgeshire, England
Posted: 10th Sep 2012 10:40
Interesting, I was thinking of writing a scripting system the other day and started working a prototype and then thought to myself, "how on earth am I going to convert a string to an int?" Then I saw this:
GS StrToInt

You might have saved me some research/experimentation.

I'll try this out later and see if I can offer some feedback.

TheComet
16
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 10th Sep 2012 11:23
Quote: "how on earth am I going to convert a string to an int?"


DBP has a built in command called val() as well.

This plugin does it a lot faster though.

TheComet

"Why geeks like computers: unzip, strip, touch, finger, grep, mount, fsck, more, yes, fsck, fsck, fsck, umount, sleep." - Unknown
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 10th Sep 2012 14:39 Edited at: 10th Sep 2012 14:43
Quote: "Interesting, I was thinking of writing a scripting system the other day and started working a prototype and then thought to myself, "how on earth am I going to convert a string to an int?" Then I saw this:
GS StrToInt"


Quote: "This plugin does it a lot faster though."


glad you guys like it!
and since Seppuku Arts intrested in the string -> integer covnerter
i have an idea for one more feature:
StrToFloat and FloatToStr functions.


@To All:
by the way guys. this plugin is not only designed for scripting, it also can be used for creating save/load systems for your games.
encrypted files that only your program can read. so ppl wont cheat and edit their saved character for better stats

Advanced Updater for your games!
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 10th Sep 2012 19:57 Edited at: 10th Sep 2012 20:01
as i promissed.
Added 2 more commands:
(total 24 commands)

GS StrToFloat
GS FloatToStr

converts string to float and backwards.


1 more demo!
GS isIPAddress demonstrations




(plugin download on top)

Advanced Updater for your games!
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 12th Oct 2012 23:09 Edited at: 12th Oct 2012 23:09
ok guys, check this out!
i added an Expression calculator feature on my plugin
wich means u can calculate all kind of hard math expression with this plugin!



check out the demo:


the download on my main thread.

enjoy!

Advanced Updater for your games!
French gui
19
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 31st Oct 2012 21:40
Nice! But it doesn't look like to work with float or am I wrong?
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 31st Oct 2012 22:03
you are wrong.
it does works with floats

Advanced Updater for your games!
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 1st Nov 2012 00:35
@ SergeyK - sweet,,,,

does it work with percentages as well?

Also, could I persuade you to write a plugin function to interpret (quickly) a dice roll text - for example "4D12 + 9 - 2" or even "5 + 6D20 -20 * 110%".... ?

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 1st Nov 2012 07:43
tell me again whats dice and roll does?
4D12 a random numner from 4 to 12?

Advanced Updater for your games!
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 1st Nov 2012 09:03
@ SerkeyK,

Ahha! I have your interest. Well 4D12 + 9 would be (4 * (rnd(11)+1)) + 9.... so D12 is a twelve sided dice...

so in the rpg game sense - say your sword did so much damage, say a string description of damage of "4D12 + 9"....

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 1st Nov 2012 11:09
i see.
i might work on this random function for you..
but is it bother you if the RND will return a float?

Rnd(2) = 1.232323? cuz my output is always float..
you always can conevrt the result to int.

Advanced Updater for your games!
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 1st Nov 2012 18:15
@ Sergey K - I can live with a resultant float!

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
French gui
19
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 1st Nov 2012 21:09 Edited at: 1st Nov 2012 21:09
Quote: "
you are wrong.
it does works with floats "


I must be dumb but this doesn't work:


I get zero as result. Of course I get a right float result with 10/3 for example.
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 1st Nov 2012 22:04
i forgot to make input of floats too.. lolz..

fixing that

Advanced Updater for your games!
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 1st Nov 2012 22:25 Edited at: 1st Nov 2012 23:02
ok i fixed the problem, also added lots of new commands to my Expresion calculator:

Rnd, Random, +- */ ^ Int, ABS, SQRT, SQR, MOD


Int = convert floats to Int
most of the commands are known so no need explanation of them..



http://dl.dropbox.com/u/1802543/plugins/GString0.8b.rar

Advanced Updater for your games!
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 1st Nov 2012 23:44
@ SergeyK - can you add D to the above command so 4D10 would be 4*(rnd(9)+1)? can you also add %? Then the one command can encompasss all the regular expressions and Diceroll stuff....?

p.s. thank you (for what's been done already!)

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 1st Nov 2012 23:51 Edited at: 1st Nov 2012 23:53
Quote: "@ SergeyK - can you add D to the above command so 4D10 would be 4*(rnd(9)+1)?"

i prefer to stick with this way.. besides, thats how my calculation works. cant change the whole thing now..

Int(Rnd(4))+6 pretty does that. dont you think?

percents?

(CurNum*100) / MaxNumber = customized percentage
e.g:
50*100 / 500. no need %

Advanced Updater for your games!
Duffer
21
Years of Service
User Offline
Joined: 9th Feb 2003
Location: chair
Posted: 2nd Nov 2012 00:14
Hi SergeyK,

Yep. See that. It was just really in terms of being handy.

Say, for instance, you've got a string for damage "4D10+2"...

That being said, i'm being lazy and can of course right my own function to parse and convert the string to something your plugin can accept...

a long time dabbler with DBC and DBPro with no actual talent but lots of enthusiasm...
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 2nd Nov 2012 00:25
yeah well my plugin designed for lazy ppl, but not TOO lazy

Advanced Updater for your games!
French gui
19
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 2nd Nov 2012 16:12 Edited at: 2nd Nov 2012 20:07
Thanks for fixing the float trouble!

nb: can we have float results with . ? ( 3.14 instead of 3,14 )
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 2nd Nov 2012 20:25 Edited at: 2nd Nov 2012 20:26
you getting 3,14 instead of 3.14? lol thats new.
works fine for me and other people.

can you give me an executable demo that proves about the comma?

Advanced Updater for your games!
French gui
19
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 3rd Nov 2012 13:39
Ok here it is...

Attachments

Login to view attachments
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 3rd Nov 2012 13:46
works fine for me. (see my attachement)
i guess u are using some kind of font type that got comma instead of dot.

to make sure you getting the right result, try to convert the output string from my calculator into dbp's float..
try this:



if it shows "almost" the same result, then its all works fine.

Advanced Updater for your games!

Attachments

Login to view attachments
French gui
19
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 3rd Nov 2012 14:05
No that's definitely something with my computer. Maybe because it's a french version ? (take a look at the screenshot)

Attachments

Login to view attachments
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 3rd Nov 2012 14:12
i dont think its cuz of French.
try this one
http://dl.dropbox.com/u/1802543/plugins/GStringTest.rar

i just changed the string manipulation order. see if it helps..

Advanced Updater for your games!
French gui
19
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 3rd Nov 2012 19:55 Edited at: 3rd Nov 2012 22:26
Yeah! Works wonderfully thanks a lot!!! May I ask a (little) new feature inside the calculator:

1=1 result 1 (true)
2>4 result 0 (false)
4+(10=10)*2 result 6

etc.. I think = > and < would be enough. ( boolean maths too : AND OR NOT )
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 3rd Nov 2012 22:38
Quote: "
Yeah! Works wonderfully thanks a lot!!! May I ask a (little) new feature inside the calculator:
"

good to hear! will work with "this" method from now on

and about your second request..
you can do that easily with my String function list..

i used here GS MidStr() command i included into the plugin too..

check this out:



Advanced Updater for your games!
French gui
19
Years of Service
User Offline
Joined: 11th May 2004
Location: France
Posted: 4th Nov 2012 18:47
Yes I can do it 'manually' (thanks for the code!). I was just askin' for something quicker but I will stick with this.
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 4th Nov 2012 18:51
sure no problem

btw. i just wondering, what people do with my calculator. is it a scripting on their own or something else?

Advanced Updater for your games!
ioann
11
Years of Service
User Offline
Joined: 25th Jul 2012
Location:
Posted: 9th Dec 2012 08:50
Good day!
Sergey, please make your library static. That is, that your plugin does not depend on other dlls.

And so, thank you for this great plugin, especially at the height calculation))

p.s. sorry my bad english (translate.google.ru)

sing
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 9th Dec 2012 13:06
but it IS static.
i never making dependable plugins..

Advanced Updater for your games!
Phaelax
DBPro Master
20
Years of Service
User Offline
Joined: 16th Apr 2003
Location: Metropia
Posted: 10th Dec 2012 07:20
Quote: "i never making dependable plugins"

If not dependable, are you saying your plugins are unreliable?

"You're not going crazy. You're going sane in a crazy world!" ~Tick
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 10th Dec 2012 16:08 Edited at: 10th Dec 2012 16:18
Quote: "If not dependable, are you saying your plugins are unreliable?"

huh? whats that have to do with my plugins that doesnt requires ANY drivers/plugins/.net/ActiveX to run?
in other words, it called Stand-Alone dlls.

Advanced Updater for your games!
MrValentine
AGK Backer
13
Years of Service
User Offline
Joined: 5th Dec 2010
Playing: FFVII
Posted: 10th Dec 2012 16:25
Come on guys... You know he means In-dependent

You rascals lol

ioann
11
Years of Service
User Offline
Joined: 25th Jul 2012
Location:
Posted: 18th Dec 2012 21:23
Nice parser, but where math LOG?

sing
Sergey K
20
Years of Service
User Offline
Joined: 4th Jan 2004
Location:
Posted: 19th Dec 2012 17:48
Quote: "Nice parser, but where math LOG? "

no log. just paste your equation, and it will give you a perfect solution

Advanced Updater for your games!

Login to post a reply

Server time is: 2024-03-29 10:31:41
Your offset time is: 2024-03-29 10:31:41