Page 1 of 2
dUtilLib Ideas!
Posted: August 6th, 2016, 12:44 pm
by BlackCoyote
Hey guys
Me and Anthony are working on a script utility library meant to put a bunch of tedious tasks into one script package to make scripting a lot easier.
We're looking for procedural things mostly. things that just process data in a specific way for you where you throw in an argument and get something else back!
If you have any ideas for this library, please let us know!
Re: dUtilLib Ideas!
Posted: August 6th, 2016, 1:31 pm
by Mwthorn
It would be good idea to include a link so we know what dUtilLib already has ;)
Re: dUtilLib Ideas!
Posted: August 6th, 2016, 1:39 pm
by BlackCoyote
Mwthorn wrote:It would be good idea to include a link so we know what dUtilLib already has ;)
the best place to see what currently is already included would probably be on the github page:
https://github.com/BlackCoyote/dUtilLib
Re: dUtilLib Ideas!
Posted: August 6th, 2016, 1:53 pm
by Mwthorn
I suggest something that either checks or filter out symbols so an element only contains letters from 'a-z' and '0-9' and maybe _ as well for friendly use in flags or other things (such as the colorcode dUtilLib)
Re: dUtilLib Ideas!
Posted: August 6th, 2016, 6:38 pm
by Anthony
Mwthorn wrote:* SNIP *
That is so dirt simple... I'll add it but once you see how easy it is you won't want to use the procedure script... you'll just want to do it directly...
Re: dUtilLib Ideas!
Posted: August 6th, 2016, 6:39 pm
by mcmonkey
Anthony wrote:Mwthorn wrote:* SNIP *
That is so dirt simple... I'll add it but once you see how easy it is you won't want to use the procedure script... you'll just want to do it directly...
Can even do it in a single line using a regex :P
Re: dUtilLib Ideas!
Posted: August 7th, 2016, 2:12 am
by BlackCoyote
Anthony wrote:Mwthorn wrote:* SNIP *
That is so dirt simple... I'll add it but once you see how easy it is you won't want to use the procedure script... you'll just want to do it directly...
Might still be worth adding just as a reference and example as to how it's used!
Re: dUtilLib Ideas!
Posted: August 7th, 2016, 2:14 am
by mcmonkey
BlackCoyote wrote:Anthony wrote:Mwthorn wrote:* SNIP *
That is so dirt simple... I'll add it but once you see how easy it is you won't want to use the procedure script... you'll just want to do it directly...
Might still be worth adding just as a reference and example as to how it's used!
Yup ^
In addition to linked and then used utilities, sample code is a great thing to have available.
Re: dUtilLib Ideas!
Posted: August 7th, 2016, 6:02 am
by Anthony
mcmonkey wrote:Can even do it in a single line using a regex :P
I love how this comment was made /after/ i posted the
single regex line in irc.
Re: dUtilLib Ideas!
Posted: August 7th, 2016, 6:29 am
by BlackCoyote
Anthony wrote:mcmonkey wrote:Can even do it in a single line using a regex :P
I love how this comment was made /after/ i posted the
single regex line in irc.
JUST ADD IT
also you should add those thingies that return a full list of colours and what not that you already had somewhere
Re: dUtilLib Ideas!
Posted: August 7th, 2016, 1:08 pm
by Mwthorn
This idea may sound a bit silly, but how about turning a text into a rainbow text?
Re: dUtilLib Ideas!
Posted: August 7th, 2016, 1:10 pm
by BlackCoyote
Mwthorn wrote:This idea may sound a bit silly, but how about turning a text into a rainbow text?
consider it done :D
Re: dUtilLib Ideas!
Posted: August 7th, 2016, 1:32 pm
by BlackCoyote
Re: dUtilLib Ideas!
Posted: August 7th, 2016, 1:43 pm
by BlackCoyote
10/10 best suggestion
Re: dUtilLib Ideas!
Posted: August 11th, 2016, 3:03 pm
by BlackCoyote
WE NEED MORE IDEAS!
Re: dUtilLib Ideas!
Posted: August 11th, 2016, 3:46 pm
by Mwthorn
Recently I have experienced players done spelling mistakes and I want to correct their mistakes.
Examples with "/spawn" are: "/pawn" "/spawn%" "/spawn*" "/spa wn" "/spwatn"
A procedure that takes input as element-list and a element
This then should output an element, from the list, that is the closest element from the original.
Re: dUtilLib Ideas!
Posted: August 11th, 2016, 4:12 pm
by Anthony
Mwthorn wrote:* SNIP *
There is already a tag that does this
<li@list.find_all_partial[<element>]>
Code: Select all
- define list 'li@spawn|home|town'
- narrate '<def[list].get[<def[list].find_all_partial[<context.command>].get[1]||1>]>'
Re: dUtilLib Ideas!
Posted: August 11th, 2016, 5:20 pm
by Anthony
BlackCoyote wrote:also you should add those thingies that return a full list of colours and what not that you already had somewhere
I've put
something together, but idk if I'm 100% satisfied with it. Thoughts?
Re: dUtilLib Ideas!
Posted: August 11th, 2016, 5:23 pm
by BlackCoyote
Anthony wrote:BlackCoyote wrote:also you should add those thingies that return a full list of colours and what not that you already had somewhere
I've put
something together, but idk if I'm 100% satisfied with it. Thoughts?
looks cool, add it!
Re: dUtilLib Ideas!
Posted: August 11th, 2016, 5:24 pm
by BlackCoyote
Anthony wrote:Mwthorn wrote:* SNIP *
There is already a tag that does this
<li@list.find_all_partial[<element>]>
Code: Select all
- define list 'li@spawn|home|town'
- narrate '<def[list].get[<def[list].find_all_partial[<context.command>].get[1]||1>]>'
find_all_partial is kind of lacking when it comes to this. I have a buncho code somewhere that simulates server.match_player[] but with regular lists, i think this is what he would find more useful. I'll be adding it in.