1636 Commits

Author SHA1 Message Date
gamax92
6164a9f769 Fix some LuaJ bugs (Not tested for LuaJ 3)
LuaDouble:
Do not try Long.toString
Do not cast to float

LuaString:
Do not scan as a long
Add another check in scandouble (was scanlong)
Have substring create new bytes to work with
2014-07-04 17:10:25 -06:00
Florian Nücke
029027fadb Updated Mac natives. 2014-07-05 00:02:21 +02:00
Florian Nücke
7a2e327ee3 Added a null check in ItemCost comparison method to avoid potential NPEs for weird recipes. 2014-07-04 23:26:46 +02:00
Florian Nücke
794f3384ec Little bit of cleanup and fixed case sensitivity detection being inverted. 2014-07-04 16:58:55 +02:00
Kilobyte22
d544f9748d Fixed a stupid oversight
Creation of directories now checks filename validity again
2014-07-04 15:35:48 +02:00
Kilobyte22
e62895e901 Made FS support case insensitivety
The Buffered File System now supports case insensitive behaviour when the
underlaying FS is case insensitive
2014-07-04 15:33:46 +02:00
Florian Nücke
d2e0b22230 Updated Eris, should get rid of the potential native crash when saving. 2014-07-04 13:59:53 +02:00
Florian Nücke
7d80fbcb60 Re-throwing UnsupportedOperationExceptions as Lua errors when thrown in callbacks (usually in OpenComponents' CC wrapper stuff). 2014-07-03 18:38:42 +02:00
Florian Nücke
0c96d38afb Fixed another userdata related persistence issue (discrepancy in callback name after load leading to userdata failing to be saved again). 2014-07-03 18:28:22 +02:00
Florian Nücke
ac25db2c0d Added missing userdata wrapping and removed debug prints. 2014-07-03 05:35:52 +02:00
Florian Nücke
a19c05442d Changed option flag for ls to display file and dir count to an unused one and made it read like dir in Windows (which is what it's meant to mimic, after all). 2014-07-02 20:11:09 +02:00
Florian Nücke
e7c863a00d Merge https://github.com/Wuerfel21/OpenComputers 2014-07-02 19:14:55 +02:00
Florian Nücke
ce4316e91d Added another try-catch to the native lib version check in case rights settings get weird (reported on MCF). 2014-07-02 19:13:53 +02:00
Florian Nücke
da264e3aca Switches can no longer loop on their own (i.e. they will ignore network messages they relayed themselves when they arrive on another side of the switch).
Fixed a color bug.
2014-06-29 20:56:49 +02:00
Florian Nücke
ce4786fbed Should fix #365. 2014-06-29 17:47:05 +02:00
Florian Nücke
009e51b288 Prevent error loops in xpcall. 2014-06-28 18:52:11 +02:00
Florian Nücke
c4986eeb82 Screw nextGaussian, using nextDouble for the random direction when dropping stuff from robots (and other inventories) now, makes for no... outliers, leading to extreme values. Closes #347. 2014-06-28 15:50:34 +02:00
Florian Nücke
9f8d88a20a Removed forgotten debug println. *sigh* 2014-06-27 17:48:40 +02:00
Florian Nücke
ebac31b71a Eh? 2014-06-27 17:34:43 +02:00
Florian Nücke
e4eb4ae8f6 Trying to fix some initialization order hiccups... 2014-06-27 16:55:43 +02:00
Florian Nücke
72969868f4 Added some noise to the geolyzer results. It'll still be able to tell air blocks with 100% accuracy, though. 2014-06-27 01:30:39 +02:00
Florian Nücke
d8da5671c2 Added the concurrent open port limit to network cards I could have sworn I had added on day one -.- 2014-06-27 01:07:52 +02:00
Florian Nücke
e7cfe9597a Fixed display glitch for robot power display when playing on servers. 2014-06-27 00:59:31 +02:00
Florian Nücke
ace242f7d0 More fewer AIOOBEs. 2014-06-26 23:57:23 +02:00
Florian Nücke
3122942649 Removed potentially problematic GC call from host side.
Fixed potential 'nullpointer' in file handle gc metamethod.
2014-06-26 21:28:56 +02:00
Florian Nücke
12c1e74888 Fixed buffered file system allowing creation of files with names that could not be flushed to the host file system. 2014-06-26 20:22:27 +02:00
Florian Nücke
b60bdb7c35 Should fix #362. 2014-06-26 18:26:06 +02:00
Florian Nücke
2b801f2b4a Fixed damage handling for TC tools. 2014-06-26 18:00:12 +02:00
Florian Nücke
6694455c14 Removed the config for the 'greeting' again, instead wrapped the functionality in a motd file that can be a script. Delete it to disable the greeting. 2014-06-26 17:41:26 +02:00
Florian Nücke
8683f500c9 Made Lua accept an argument, the path to a script to execute, and an option, -i, to enter interactive mode after executing that script, anyway.
Made process.load check for #!, running command instead of as Lua script directly. Let's see if things go horribly wrong, now.
2014-06-26 17:35:23 +02:00
Florian Nücke
65b3bc836a Fixed output of component.experience.level(). 2014-06-26 16:38:44 +02:00
Florian Nücke
858572183f Fixed ranges in experience upgrade event handler leading to no experience gain. 2014-06-26 16:33:02 +02:00
Florian Nücke
3fd4a42a32 Fixed robot item repair events passing the stacks in the wrong order, leading to items not being used up at the decreased rate they should be. 2014-06-26 16:21:29 +02:00
Florian Nücke
00e4f55026 Minor cleanup to more.lua, fixed single line advance to not exit when at end of file. 2014-06-26 15:05:19 +02:00
Florian Nücke
4f0665f2b6 Merge git://github.com/jamesb6626/OpenComputers 2014-06-26 14:52:09 +02:00
Florian Nücke
ef88008dd3 Added openos.conf, for now only with an option to disable the greetings. 2014-06-26 14:45:38 +02:00
Florian Nücke
c05d921529 Merge pull request #361 from JoshTheEnder/patch-1
Update greetings.txt
2014-06-26 14:28:53 +02:00
Josh
12b46336fb Update greetings.txt 2014-06-26 13:27:25 +01:00
Florian Nücke
45a9728b6d Made text.wrap not wrap at a couple more chars.
Added text.wrappedLines to get an iterator over wrapped text.
Made OpenOS show a small info text after booting up.
2014-06-26 14:21:39 +02:00
Florian Nücke
c96174d168 Yay random dependency resolving >_> 2014-06-26 13:36:35 +02:00
Florian Nücke
e3d3e3c7f9 Apparently gradle hates me. 2014-06-25 22:10:34 +02:00
Florian Nücke
40dc7c5df0 Added T2 redstone card. Closes #340.
T1 is now vanilla functionality (simple, analog redstone signals), T2 is for mod interop (bundled redstone, wireless redstone). Existing redstone cards are automatically converted to T2 cards, to avoid breaking things more than necessary. Redstone blocks behave like T2 cards, but without the wireless support.
2014-06-25 21:14:06 +02:00
jamesb6626
4c8b33e5d9 Fix problem pointed out by fnuecke
Changed 1 and 0 to true and false
2014-06-25 16:48:15 +01:00
Florian Nücke
fd8ecbc391 Merge branch 'tablet' 2014-06-25 13:56:40 +02:00
Florian Nücke
ac8b490229 Brought back the workaround for IC2 not giving a damn about the returned value from energy injection (and therefore energy getting lost). Closes #348. 2014-06-25 13:35:35 +02:00
Florian Nücke
1d4842ebc2 Fixes #359. 2014-06-25 13:22:17 +02:00
jamesb6626
41579f85bc Merge remote-tracking branch 'upstream/master' 2014-06-24 16:52:25 +01:00
Florian Nücke
6f755c6b68 Should fix #350.
Bump version to RC1.
2014-06-24 17:35:54 +02:00
jamesb6626
6164d6f0c0 Add more controls for more.lua command + tidy up
Added more keys for the command to recognise ("page down" goes to the next page in the same way as "space", "enter" and "down" print just the next line)
Moved the code to print lines from the file to a function to reduce the space used by repeating it for the new keys
2014-06-24 14:24:10 +01:00
Florian Nücke
9531819ee1 Avoid NPE when a computer's readFromNBT is called on client side by other mods. 2014-06-23 23:33:20 +02:00