This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
MudkipTheEpic's profile picture

Mudkip's Miscellaneous Programs

Started by MudkipTheEpic, 02 June 2013 - 09:06 PM
MudkipTheEpic #1
Posted 02 June 2013 - 11:06 PM
This is going to be my topic where I post all of my programs that don't "deserve" their own topic.


FakeNumber

FakeNumber is a small utility I wrote when I was messing with metatables that allows you to create a table that behaves

like a number. You load it like an API with os.loadAPI("FakeNumber"), then use faketable=FakeNumber.newFakeNum(number value). You can set faketable.value to whatever you please after you are done making it, and it will change the behavior like the table now is that number.

Link:

pastebin get Bp3sa2LA FakeNumber


MetaMethods+

Coming soon! Will add metamethods like __type, __tonumber, __tostring, and more!
Mackan90096 #2
Posted 03 June 2013 - 10:21 AM
Hey MR. Pokémon.

No pics no clicks
MudkipTheEpic #3
Posted 03 June 2013 - 11:10 AM
Hey MR. Pokémon.

No pics no clicks

Hey MR. Duck.

Why would I need pics for a utility that adds no graphical advantages.
Also, this page ironically has nore than 0 clicks.

TL;DR: Don't find every thread in the Programs section without pictures saying:
Some idiots said:
No pickz no clickz! TROLOLOLOL!
theoriginalbit #4
Posted 03 June 2013 - 11:11 AM
No pics no clicks
Oh great, another nutcase84.
This statement is just simply not true, clicks will always happen, regardless of pictures, however pictures can help with downloads of some things. And since this is a utility pictures are really not required. Some example input and output would be nice though.
MudkipTheEpic #5
Posted 03 June 2013 - 11:14 AM
No pics no clicks
Oh great, another nutcase84.
This statement is just simply not true, clicks will always happen, regardless of pictures, however pictures can help with downloads of some things. And since this is a utility pictures are really required. Some example input and output would be nice though.

Did you mean to say really not important?


Thanks for fixing, BIT. :P/>
Mackan90096 #6
Posted 03 June 2013 - 11:16 AM
Alright.. You have proven me wrong. Sorry!
theoriginalbit #7
Posted 03 June 2013 - 11:21 AM
Did you mean to say really not important?
Man I so shouldn't create posts and then edit them 'cause I have read them wrong this early in the morning/late at night….. I originally had that, but must have re-read it wrong and removed the `not`… fixed.
MudkipTheEpic #8
Posted 03 June 2013 - 11:23 AM
Alright.. You have proven me wrong. Sorry!

It's ok. Sometimes it's just too easy to give in to lower standards.

Anyway, does anyone have any metamethod suggestions for MetaMethods+?
theoriginalbit #9
Posted 03 June 2013 - 11:30 AM
Anyway, does anyone have any metamethod suggestions for MetaMethods+?
__tostring is already a valid metamethod. list. a __tonumber would be handy, but quite honestly, the tonumber function doesn't use it, so it is kinda pointless, imo. __type could be handy in some places, but again the type function doesn't use it. I'm hard pressed to find a useful metamethod that doesn't relate to a specific situation. I guess you could write function overrides to make the tonumber and type functions respect these metamethods before passing it to the original function, but you will need to be very careful with this…