Poll

is minecraft dead

yes
270 (61.6%)
no
168 (38.4%)

Total Members Voted: 437

Author Topic: Minecraft Megathread; yeah its update 1.12 big whoop what about it  (Read 6812354 times)

If anything the only thing that makes it bad aside from waaaah syntax is that the standard libraries are missing some really basic stuff, like splitting strings to tables or table slicing or a bunch of other stuff I wrote polyfills for, and tables don't allow the object:method notation for accessing object methods from their library like strings and other stuff do.
Like if I define string.split(str,separator) that's on the string metatable, and I can then access that via string.split(str,sep) or str:split(sep). This is not the case for the table library - tab:slice(start,end) doesn't work for accessing table.slice(tab,start,end). This only really bothers me because it's an inconsistency, not because of the missing functionality there.
i read a post on lua-users a while ago with someone asking a similar question related to lua missing a round() function. the gist of it was that lua wasn't made as a full-fledged tool for creation on its own, but to be expanded upon. it only gives you what it needs to give so that it stays nice, small, and simple. which probably also explains the lack of assignment operators and keywords like "switch".

moonscript is an alternative though, it has assignment operators, a switch statement, and among other additions/changes, implements a class system with inheritance. i'm actually making sort of an ascii image editor in CC with it.

it'll probably be the last time I'll be using moonscript though - there are a lot of odd quirks about it that i dislike. it's a fun experience, however, and i recommend trying it if you're adventurous.
« Last Edit: October 07, 2012, 09:24:10 PM by Kingdaro »

who wants to play on survival island with me?


Lua is ugly stuff.
what are you talking about, this looks amazing!

normally i can look at a code and know what it's attempting to do, but holy forget wtf is this. the only indication i had was the name of the file.
« Last Edit: October 07, 2012, 10:30:36 PM by Tango »

Holy loving stuff
Kingdaro said something negitive abou Lua?
WHAT IS THIS

it looks like someone was trying to do a gateway for a firewall to get through or something

what are you talking about, this looks amazing!

normally i can look at a code and know what it's attempting to do, but holy forget wtf is this. the only indication i had was the name of the file.

basically lua is like asking your computeer to do something and if it works correctly its like "ok" and if it doesnt your computer is like "aeiouaeqiouaeqioure"

what are you talking about, this looks amazing!

normally i can look at a code and know what it's attempting to do, but holy forget wtf is this. the only indication i had was the name of the file.
that's a pretty crap example since most of the issues with its readability are from poor property naming and weird stuff

for instance, why would loadstring return a function - also, he's not passing in an error with the assert so all he's gonna get is "assertion failed" if something's wrong, rather than a possibly descriptive message
breakdown of this:
Code: [Select]
assert(
  loadstring(
    config.get(
      "LUA.LIBS.STD"
    )
  )
)
assert(value, error) - Returns value or throws the given error if value is nil
Evidently, since he's calling that assertion as a function, loadstring returns a function despite the name implying it should return a string. poor self-documentation invites confusion

secondly: flame_props.= {}
hello syntax error

tl;dr don't blame lua for the code's unreadability, whoever wrote it is the problem here

for instance, why would loadstring return a function
so that it can be easily called later with pcall() and the program doesn't quit - though he still sucks at doing this because he could make a mistake and forget everything up

and i literally mean that too, this is actually a real virus we found a long time ago which was basically another stuxnet iirc

Soon, with the new enchantment repairing, I'll have a pickaxe with Fortune III, Efficiency V, Silk Touch I and Unbreaking III.

whoa minecraft is giving PROPS to me!?!??!



Soon, with the new enchantment repairing, I'll have a pickaxe with Fortune III, Efficiency V, Silk Touch I and Unbreaking III.
> Fortune III
> Silk Touch I

what

Guys help I put a metric crapton of effort into a redpower airship that moves in all directions, then I put a computercraft computer in it and tried to move it. Then it crashed and said 'saving chunks' and it keeps doing that whenever I try to load the world. Any way to remotely remove/disable computercraft without breaking my entire world and losing 6+ hours of effort?

Nvm just fiddled around with the enabled mod list.
Also yay it's working.
« Last Edit: October 08, 2012, 12:35:52 PM by TheArmyGuy »