ID:181508
 
So, I'm curious to see how everyone else feels about this:

You make a system that would work as a lib that is useful.
Do you share it with the community?
Or do you use it only for yourself?

Why/Why Not?
AJX wrote:
You make a system that would work as a lib that is useful.
Do you share it with the community?

Yes, I've seen a few games pick up on it but it hasn't really taken off yet. It's such a simple and easy way to handle movement, I'm surprised there are so many games which still use clunky key+rep macros for movement.
I've only got two libraries I haven't shared with anyone.

One is simply this:
#define SECOND 10
#define MINUTE (SECOND * 60)
#define HOUR (MINUTE * 60)
#define DAY (HOUR * 24)


The other is just an assortment of general procs for text manipulation that no one but me would have any real use for.
Yup, I created pixel movement with bounding boxes. But, I am reluctant to release it do to my frequent belief of my code being ugly, unreadable, and the worse on BYOND.
In response to Calus CoRPS
On the subject of cool ideas.

http://www.byond.com/games/CalusCoRPS/LineWalkDemo


Make full game. Now.
In response to Jotdaniel
Jotdaniel wrote:
On the subject of cool ideas.

http://www.byond.com/games/CalusCoRPS/LineWalkDemo


Make full game. Now.

That demonstration is fairly buggy, I was referring more to a more updated version of my "library."

During the summer, I play on making this into a game.
In response to Calus CoRPS
What I meant was that line thingy is immensely fun, and I was disappointed at how short it was. The idea is very good.
In response to Calus CoRPS
That's why you start sharing and have others critique your skills.
In response to Tiberath
Tiberath wrote:
The other is just an assortment of general procs for text manipulation that no one but me would have any real use for.

They're not exactly general then, are they?
On a side note, I would like to see them. :)
In response to CaptFalcon33035
CaptFalcon33035 wrote:
They're not exactly general then, are they?

Sure they are.

On a side note, I would like to see them. :)

proc
explode(delim,str) // Credit: Mobius Evalon.
. = list()
var/i = findtext(str,delim)
if(!i) . += str
else
while(i)
. += copytext(str,1,i)
str = copytext(str,i+1)
i = findtext(str,delim)
if(str) . += copytext(str,i+1)

return_numerics(string)
for(var/i = 1; i <= length(string); i++)
var/t = text2ascii(string, i)
if(t >= 48 && t <= 57) . += ascii2text(t)

capitalise(string) return "[uppertext(copytext(string, 1, 2))][copytext(string, 2)]"

format_string(string) // I can't remember what this was for.
var/list/words = explode("_", string)
for(var/I in words)
. += "[capitalise(I)] "

echo(msg, type = "SERVER") return "<span class='[lowertext(type)]'>[type]:</span> [msg]"

isNum(string) // Return only numerics from interface controls.
var/compare = return_numerics(string)
if(length(string) != length(compare)) return FALSE
else return TRUE
The reason I started this post was to decide if I wanted to publicly release the source for my Iso handling system.

I decided to, because others could put it to better use than I ever will (I need to come to terms with the fact that I simply don't finish projects)

The source is now publicly available. Link to the hub entry is here: ID:746348
In response to Tiberath
Tiberath wrote:
CaptFalcon33035 wrote:
They're not exactly general then, are they?

Sure they are.

And you said no one would have any /real/ use for them!
<font size=1>(Well, maybe not all together... but that is user and application-dependent)</font>

The explode() function is very common for a reason--it's very useful.

I was developing a scripting language in BYOND before DLL support came out, and that return_numerical() function would have been perfect, in conjunction with isNum().

I see echo() as a sort of convenient short-hand. That's exactly how data should be handled.

As for format_string(), I see no real use for it (in its current form)--to me, not at all a general-purpose function. However, it does seem useful for showcasing what kind of data should be returned by the explode() function and how to use the capitalise() function.

I think it's a nice set of procedures.

P.S. It was SOOOO mentally demanding to type capitalise and not capitalize.
In response to CaptFalcon33035
The thing is, they're all pretty easy to write. Me sharing them here makes very little difference unless a fairly inexperienced user needed one. But I'm sure there's plenty of other people who've posted functions like most of them.