3625 Commits

Author SHA1 Message Date
Florian Nücke
b8e189cacd Preparation for #634.
Won't go through with it yet because it requires some more adjustments, e.g. set can't remain a program, will need to be a shell builtin; in general, programs relying on setenv being global will break.
2014-12-03 14:23:17 +01:00
Florian Nücke
e285c5875e Extended process lib to allow storing data per process, using it for io lib to store processes' stdin and stdout instead of the local hackaround. 2014-12-03 14:05:53 +01:00
Florian Nücke
d326e98714 Fixed more.lua's behavior for long lines. Closes #491. 2014-12-03 13:24:41 +01:00
Florian Nücke
06d2e657bc Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.7.10 2014-12-03 00:55:33 +01:00
Florian Nücke
347d10b02e Wrapping up raid block. Seems to work. Closes #179. 2014-12-03 00:55:20 +01:00
Florian "Sangar" Nücke
47f2abb0ee Merge pull request #708 from Vexatos/patch-15
Fixed internet card's `isTcpEnabled` returning whether HTTP was enabled instead.
2014-12-02 21:23:51 +01:00
Vexatos
4199f12124 Update InternetCard.scala 2014-12-02 21:18:13 +01:00
Florian Nücke
4adf4e190c Started work on raid block.
Reworked extended NBT foreach and map after finding remove.
Fixed / broke inventories? (onRemoved was dispatched before slot was cleared, now it's after; didn't find anything that relied on it happening before, but we'll see...)
2014-12-02 18:52:57 +01:00
Florian Nücke
6ec65509e0 Previous merge closes #703.
Minor formatting.
2014-11-30 14:23:51 +01:00
Florian Nücke
5800590995 Merge branch 'patch-14' of https://github.com/Vexatos/OpenComputers into master-MC1.7.10 2014-11-30 14:20:11 +01:00
Vexatos
3574c405de Update DriverPeripheral.java 2014-11-30 13:26:26 +01:00
Vexatos
f485ad74bd Update DriverPeripheral.java
Should fix #703.
2014-11-30 13:23:26 +01:00
Florian Nücke
42f5fb7c6b Fixed bounding box weirdness for blocks with stateful bounds (keyboards and cables, most notably). Closes #699. 2014-11-29 21:42:11 +01:00
Florian Nücke
3966def5d3 Updated native Linux libs with ones built on yet an older system (CentOS5) to make them work there... quickly tested again on Ubuntu 14, and that still worked, so. Closes #701. 2014-11-29 18:44:57 +01:00
Florian Nücke
e04298b8e1 Revert "Switched to more specific IEnergyReceiver from IEnergyHandler."
This reverts commit 779599bb3c331028b4c35d9649badd869a5370f6.
2014-11-27 23:06:33 +01:00
Florian Nücke
af7d4ff507 Screw it. 2014-11-27 22:44:02 +01:00
Florian Nücke
779599bb3c Switched to more specific IEnergyReceiver from IEnergyHandler. 2014-11-27 21:40:43 +01:00
Florian Nücke
2abfdeaa3c Added IMC to allow blacklisting CC peripherals from being wrapped. 2014-11-27 21:40:13 +01:00
Florian Nücke
95d6baaa48 Added debug.runCommand, which uses the global OC fake player for executing commands. Closes #697. 2014-11-27 19:54:09 +01:00
Florian Nücke
dc83623ac1 Added geolyzer.store to save item stack representations of blocks in database components. Closes #654.
Expect this to not work for all blocks in existence. In particular blocks that have custom drop logic (e.g. to spawn stacks with NBT tags) will fail to be stored correctly. I'm afraid there's just no way to handle all cases introduced by all the mods out there. So this is good enough.
2014-11-27 19:07:16 +01:00
Florian Nücke
273c871412 Added a store method to inventory controller, to allow configuring databases this way. Closes #695. 2014-11-27 18:32:56 +01:00
Florian Nücke
0ac27fd0e0 Fixed screens rendering their orientation overlay when *any* OC item is held in hand; should only be the case when a screen is held (or a wrench tool). 2014-11-27 18:31:47 +01:00
Florian Nücke
62e669ec9d Added some more utility methods for database component to allow manipulating slots (copy and clear). 2014-11-27 18:04:34 +01:00
Florian Nücke
ef5e6e0b5b Fixed crafting upgrade a bit to prevent linked cards being batch crafted with the same channel. 2014-11-27 17:45:00 +01:00
Florian Nücke
a01dc9dd04 Leaving container item of fuel items inserted into the generator in its inventory (e.g. buckets can be retrieved with generator.remove). Closes #698. 2014-11-27 17:05:07 +01:00
Florian Nücke
ece65d8961 Added check to prevent linked card being autocrafted by AE2 to avoid more than two cards sharing the same channel. 2014-11-27 17:03:20 +01:00
Florian Nücke
39dc3964ba Fixes network messages not being relayed to other servers in a server rack when sent by an unsided server in internal mode. Closes #692. 2014-11-27 16:26:16 +01:00
Florian Nücke
814b4ed5bc Added support for railcraft crowbars. 2014-11-27 14:42:54 +01:00
Florian Nücke
4af6961f7f Added support for IC2 wrenches and TE hammers as tools for rotating blocks.
Added a new IMC callback for this, registerWrenchTool. Takes a string parameter being the FQN name of a static method with the signature `public static boolean(EntityPlayer player, Int x, Int y, Int z, boolean changeDurability)`. Returns true if item stack held by player is supported.
Split up BC integration into parts for each API package. Just in case someone decides to ship parts of the BC API.
Cleaned up a little.
2014-11-27 14:35:56 +01:00
Florian Nücke
25e340279b Version bump. 2014-11-27 13:01:20 +01:00
Florian Nücke
649be5d890 Fixed left and right sides being inverted in geolyzer.analyze when used in robots or tablets. Closes #693. 2014-11-27 13:00:56 +01:00
Florian Nücke
7b7423c9f6 Should fix incorrect caching of screen render state if it was rendered before the first init packet. Fixes #694. 2014-11-27 12:58:08 +01:00
Florian Nücke
1158e0b5b2 Added IMC message to allow mods to query OC's config.
Name: requestSettings, string value: name of method to call, required method signature: public static void(com.typesafe.config.Config).
Moved IMC stuff to its own object removing some redundancy.
2014-11-26 19:18:49 +01:00
Florian Nücke
89ae1ef349 Should fix a derp with an attempted fix for screens getting unresponsive a few commits back. Related to #683. 2014-11-26 11:44:15 +01:00
Florian Nücke
1b3f1fa2db Fixed robots sometimes holding their innards in their hands.
This *probably* fixes #637 (it at least fixes it partially).
2014-11-25 20:51:03 +01:00
Florian Nücke
a96aa6a997 Added a debug item to allow debugging OC component networks better while not in dev-env. 2014-11-22 11:54:25 +01:00
Florian Nücke
aec5457739 Tweaked nearby player check for text buffer update sending.
Should ensure remote terminals work properly at max range (assuming server rack is chunk loaded).
2014-11-21 12:29:32 +01:00
Florian Nücke
43a734e110 Updated some dependencies. 2014-11-20 16:11:22 +01:00
Florian Nücke
e1195ef8f0 Made the system by which interfaces are injected a bit more re-usable.
Uses an annotation now, instead of being hardcoded in the class transformer.
Also using this system for the SGT2 interfaces now, making that less messy.
2014-11-20 11:50:47 +01:00
Florian Nücke
df3e27fd44 Added code to explicitly clear component tracker on client / server, might help with #630. 2014-11-20 08:17:07 +01:00
Florian Nücke
ba27aab3bb Fixed redstone card T2 in servers, closes #680.
Fixed potential NPE in descriptor packet generation for computer cases.
Ignore bad pwchar input (zero length strings).
2014-11-20 06:42:56 +01:00
Florian Nücke
1973ffa6cc Fixed match error in capacitor logic introduced a few commits back. 2014-11-19 12:09:55 +01:00
Florian Nücke
39ea4cab3d Added pwchar parameter to term.read, use like term.read(nil,nil,nil,"*"). Closes #552. 2014-11-19 11:40:32 +01:00
Florian Nücke
2e1ff6c62f Removed what I assume was a debug print and unused return value from install.lua. 2014-11-18 10:37:03 +01:00
Florian Nücke
f3cc4f11c3 Merge branch 'master' of https://github.com/magik6k/OpenComputers into master-MC1.7.10 2014-11-18 10:00:04 +01:00
Florian Nücke
a9f583a987 Adjusted docstrings of debug.setBlock and setBlocks. 2014-11-18 09:58:19 +01:00
Florian Nücke
b4f19d81b1 Merge branch 'seebs/setblock-names' of https://github.com/seebs/OpenComputers into master-MC1.7.10 2014-11-18 09:38:42 +01:00
Florian Nücke
be33996587 Added a bunch of checks to avoid fetching tile entities triggering chunk loads.
In particular, also added these checks in packet handlers. This may help with the robot issues. Hopefully. Maybe. Perhaps.
2014-11-18 06:43:35 +01:00
Seebs
6e4068b227 DebugCard: Support string item IDs
The /give command has, for a while, said things like:

Warning: Using numeric IDs will not be supported in the future.
 Please use names, such as 'minecraft:stone'

But setBlock() doesn't recognize those. It turns out to be pretty
easy to make it use string names when they are provided. Numeric
IDs are kept for compatibility, but the fallback for non-integers
is checkString() so that the diagnostic message will request a
string.
2014-11-17 21:59:45 -06:00
Łukasz Magiera
aced1f53b9 Fix typos 2014-11-16 17:33:21 +00:00