dUtilLib Ideas!

General discussion of Denizen-Bukkit, or even just Bukkit.
BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

dUtilLib Ideas!

Post by BlackCoyote » August 6th, 2016, 12:44 pm

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!

User avatar
Mwthorn
User
User
Posts: 39
Joined: August 6th, 2016, 8:35 am
Location: Roskilde, Sjælland, Denmark
Contact:

Re: dUtilLib Ideas!

Post by Mwthorn » August 6th, 2016, 1:31 pm

It would be good idea to include a link so we know what dUtilLib already has ;)

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: dUtilLib Ideas!

Post by BlackCoyote » August 6th, 2016, 1:39 pm

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

User avatar
Mwthorn
User
User
Posts: 39
Joined: August 6th, 2016, 8:35 am
Location: Roskilde, Sjælland, Denmark
Contact:

Re: dUtilLib Ideas!

Post by Mwthorn » August 6th, 2016, 1:53 pm

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)

Anthony
Regular
Regular
Posts: 35
Joined: August 5th, 2016, 9:01 pm

Re: dUtilLib Ideas!

Post by Anthony » August 6th, 2016, 6:38 pm

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...
We are the music makers, and we are the dreamers of dreams...

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 204
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: dUtilLib Ideas!

Post by mcmonkey » August 6th, 2016, 6:39 pm

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
Denizen lead developer.
http://mcmonkey.org

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: dUtilLib Ideas!

Post by BlackCoyote » August 7th, 2016, 2:12 am

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!

User avatar
mcmonkey
Site Admin
Site Admin
Posts: 204
Joined: August 5th, 2016, 7:27 pm
Location: Los Angeles, California, USA
Contact:

Re: dUtilLib Ideas!

Post by mcmonkey » August 7th, 2016, 2:14 am

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.
Denizen lead developer.
http://mcmonkey.org

Anthony
Regular
Regular
Posts: 35
Joined: August 5th, 2016, 9:01 pm

Re: dUtilLib Ideas!

Post by Anthony » August 7th, 2016, 6:02 am

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.
We are the music makers, and we are the dreamers of dreams...

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: dUtilLib Ideas!

Post by BlackCoyote » August 7th, 2016, 6:29 am

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

User avatar
Mwthorn
User
User
Posts: 39
Joined: August 6th, 2016, 8:35 am
Location: Roskilde, Sjælland, Denmark
Contact:

Re: dUtilLib Ideas!

Post by Mwthorn » August 7th, 2016, 1:08 pm

This idea may sound a bit silly, but how about turning a text into a rainbow text?

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: dUtilLib Ideas!

Post by BlackCoyote » August 7th, 2016, 1:10 pm

Mwthorn wrote:This idea may sound a bit silly, but how about turning a text into a rainbow text?
consider it done :D

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: dUtilLib Ideas!

Post by BlackCoyote » August 7th, 2016, 1:32 pm

https://github.com/BlackCoyote/dUtilLib ... b53de56711

and there it is, thank you for the suggestion :)

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: dUtilLib Ideas!

Post by BlackCoyote » August 7th, 2016, 1:43 pm

Image


10/10 best suggestion

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: dUtilLib Ideas!

Post by BlackCoyote » August 11th, 2016, 3:03 pm

WE NEED MORE IDEAS!

User avatar
Mwthorn
User
User
Posts: 39
Joined: August 6th, 2016, 8:35 am
Location: Roskilde, Sjælland, Denmark
Contact:

Re: dUtilLib Ideas!

Post by Mwthorn » August 11th, 2016, 3:46 pm

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.

Anthony
Regular
Regular
Posts: 35
Joined: August 5th, 2016, 9:01 pm

Re: dUtilLib Ideas!

Post by Anthony » August 11th, 2016, 4:12 pm

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>]>'
We are the music makers, and we are the dreamers of dreams...

Anthony
Regular
Regular
Posts: 35
Joined: August 5th, 2016, 9:01 pm

Re: dUtilLib Ideas!

Post by Anthony » August 11th, 2016, 5:20 pm

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?
We are the music makers, and we are the dreamers of dreams...

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: dUtilLib Ideas!

Post by BlackCoyote » August 11th, 2016, 5:23 pm

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!

BlackCoyote
Regular
Regular
Posts: 78
Joined: August 6th, 2016, 1:44 am

Re: dUtilLib Ideas!

Post by BlackCoyote » August 11th, 2016, 5:24 pm

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest