Jump to content


Luca_S

Member Since 09 Nov 2014
Offline Last Active Yesterday, 08:34 PM
*****

Posts I've Made

In Topic: Ramuthra's Plane

09 June 2019 - 07:32 AM

Are you aware that you can softlock yourself in level 2?

Posted Image

In Topic: Global Programs / APIs

02 June 2019 - 04:48 AM

View PostEveryOS, on 31 May 2019 - 02:30 PM, said:

shell.setPath(shell.path()..";myPrograms/;")

According to the wiki the separator is ":", the path should be absolute and the trailing slash can be removed(I would suggest doing so to keep to the style of the existing path). Also the existing path does not end with a column, so neither should the new one:
shell.setPath(shell.path()..":/myPrograms")

In Topic: The ban game

27 May 2019 - 07:33 AM

Banned for not using https. Also sign up still isn't fixed.

OpenComputers.

In Topic: Is there any way to load code onto command computers in survival?

20 May 2019 - 06:31 PM

IIRC you can give yourself a computer with a certain damage value to have it have a specific ID, however I'm not sure if that is still possible and if that falls under data tags.(I know in older Versions of MC you could do /give <player> <id>:<damage>)

In Topic: Endless nan errors in calculator program (+ WarpDrive Integration)

18 May 2019 - 03:58 PM

View PostSquidDev, on 18 May 2019 - 06:39 AM, said:

  • nan comes from trying to divide by 0 - so most likely one (or more) of the disp[t]s are 0. One work around would be to do: fctr = disp[t] == 0 and 0 or math.abs(disp[t])/disp[t]. So when the displacement is 0, the fctr is 0. Otherwise take the sign as you were before.

Doing fctr = math.abs(disp[t])/disp[t] seems like a strange thing to do anyway, I would suggest using fctr = disp[t] > 0 and 1 or -1 instead. Assuming that all entries in the maxjump table are positive the special case disp[t] = 0 doesn't matter anyway, because the factor will be multiplied by zero.