3459 Commits

Author SHA1 Message Date
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
Łukasz Magiera
b88ef74287 Merge branch 'master-MC1.7.10' of https://github.com/MightyPirates/OpenComputers 2014-11-16 14:40:59 +01:00
Łukasz Magiera
715d4fedc6 Added network loot disk 2014-11-16 14:38:41 +01:00
Florian "Sangar" Nücke
090ebc9077 Merge pull request #674 from magik6k/master
Made `install.lua` re-usable so it can now install other software, too. Closes #672.
2014-11-16 01:27:47 +01:00
Łukasz Magiera
7704d3fff9 Make install.lua use shell.parse 2014-11-15 23:42:46 +00:00
Łukasz Magiera
12b56461bb Update install 2014-11-15 20:58:57 +00:00
Florian "Sangar" Nücke
27df8d2505 Merge pull request #671 from Vexatos/patch-13
Update oppm.lua again.
2014-11-14 15:01:30 +01:00
Florian Nücke
d9f3487ff1 Reworked robot.durability() implementation, closes #666.
It now returns a single number, the relative durability (0 = broken, 1 = no damage), using durability provider methods that can be registered via IMC `registerToolDurabilityProvider` (takes a single string, the name of the class+method, e.g. `com.example.OCInterop.getDurability`), returns a double, NaN if unsupported item stack. Added custom providers for IC2, RF, GT and TCon.
2014-11-14 14:56:59 +01:00
Vexatos
f1fd969c61 Update oppm.lua again.
Blame @rmellema.
2014-11-14 13:33:10 +01:00
Florian Nücke
ccdc482588 Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.7.10 2014-11-13 23:15:03 +01:00
Florian Nücke
73670f7282 Fixed #668, wrong toArray being used by linked cards. 2014-11-13 23:14:47 +01:00
Florian "Sangar" Nücke
90639ed1c3 Merge pull request #667 from Vexatos/patch-12
Update oppm.lua to make it install itself from loot disk
2014-11-13 22:12:55 +01:00
Vexatos
e76970fe64 Update oppm.lua to make it install itself from loot disk
Too many reports of OPPM not working due to the floppy being read-only.
2014-11-13 22:07:13 +01:00
Florian Nücke
7c5aa37693 Registering file system access event handler when running on a server, too, fixes #665. 2014-11-13 12:21:58 +01:00