3543 Commits

Author SHA1 Message Date
Ben Blank
3b7fe503b4 add converters for World and WorldProvider objects 2015-02-08 11:44:56 -08:00
Ben Blank
5b09d44944 flatten converted values *after* recursive conversion, not instead of 2015-02-07 21:29:12 -08:00
Florian Nücke
fa5c66907d Merge branch '1.5' into master-MC1.7.10
Conflicts:
	build.properties
	src/main/scala/li/cil/oc/integration/opencomputers/DriverBlockEnvironments.scala
2015-02-07 16:53:07 +01:00
Florian Nücke
66a51ecf52 Microcontrollers are now fully sided, i.e. each side is in a separate network. Closes #788.
MCUs do not automatically forward network messages. They do not distribute power. Network messages arriving on all sides will always be forwarded to the MCU. Which sides are used for sending can be controlled via the `microcontroller` component. Further change: computers must now sit directly adjacent to MUCs to access their external component. Avoids the nasty hacks used in access points to avoid duplicate components if two sides are in the same network.

More cleanup, drones can be named now.
2015-02-07 16:51:42 +01:00
Florian Nücke
0aba4be4b8 Mark power value config settings for upgrading (so existing configs are adjusted automatically). 2015-02-07 15:00:19 +01:00
Florian Nücke
dd3f7652ac Improve robot fake player permission checks, not sure if that method is even used anywhere... 2015-02-06 18:07:43 +01:00
Florian Nücke
803551d288 Avoid interface based block drivers being shown for pretty much everything in the NEI API list.
Workaround only works for stuff using the prefab class.
Fixed drone API in NEI usage.
2015-02-06 16:55:12 +01:00
Florian Nücke
383388d57c Version bump. 2015-02-06 13:55:21 +01:00
Florian Nücke
37200adffc Fixed flight height check. 2015-02-06 05:31:46 +01:00
Florian Nücke
747ede3383 Merge branch 'master-MC1.7.10' into 1.5 2015-02-06 04:07:48 +01:00
Florian Nücke
a19d1e614a Name changes! 2015-02-06 04:06:50 +01:00
Florian Nücke
0e7f7a598d Minor cleanup. 2015-02-05 20:02:24 +01:00
Florian Nücke
003463ec4a Limiting robot flight height, by default to 8 blocks above ground for now.
Movement rules are as follows now:
 1. Robots may only move if the start or target position is valid (e.g. to allow building bridges).
 2. The position below a robot is always valid (can always move down).
 3. Positions up to <flightHeight> above a block are valid (limited flight capabilities).
 4. Any position that has an adjacent block with a solid face towards the position is valid (robots can "climb").
2015-02-05 20:02:14 +01:00
Florian Nücke
4f222680a9 Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.7.10 2015-02-05 16:21:08 +01:00
Florian Nücke
f091b19255 Re-evaluated some power values, now that more mods are on RF and generate RF. Closes #888.
This is based on the RF output of BC and EnderIO generators now, because TE steam dynamos are, in my tests at least, outliers.
2015-02-05 16:20:54 +01:00
Florian Nücke
29b9a2d007 Tweaked insertion patch a little to only be used when an explicit range is supplied. This will make it work as before, preferring merges in inventories without a specific "order" (such as normal chests). Also added safeguard against empty ranges, since that matters now, just in case... 2015-02-05 13:02:09 +01:00
Florian Nücke
fbf5f2af6f Merge branch 'insertIntoInventory-fix' of https://github.com/DirtYiCE/OpenComputers into 1.5 2015-02-05 12:55:21 +01:00
Florian "Sangar" Nücke
e21f573a60 Merge pull request #890 from hunator/patch-2
Create manpage for yes.lua.
2015-02-05 12:43:27 +01:00
Florian Nücke
34083e98e1 Reworked internet component to use userdata, makes for nicer interaction from the Lua side.
Also allows a clean way of providing response information (code, message and headers).
Code only interacting with the internet lib should not be affected by these changes.
2015-02-05 12:40:31 +01:00
Florian "Sangar" Nücke
3bbb96d57b Merge pull request #889 from hunator/patch-1
Create yes.lua
2015-02-05 09:06:20 +01:00
Martin Hunek
36a2661922 Update yes.lua 2015-02-04 17:59:27 +01:00
Florian Nücke
4f9165d4be That needs to move, too... 2015-02-04 17:51:55 +01:00
Florian Nücke
58056a837c Improved block rendering a bit, should play much nicer with shaders now (thanks a ton to Ivorius for pointers). 2015-02-04 17:49:45 +01:00
Martin Hunek
8732527882 Create yes
Man page for yes command.
2015-02-04 17:46:24 +01:00
Martin Hunek
8b864322f2 Create yes.lua
Lua implementation of functionality provided by yes command from GNU coreutils. However it doesn't use any of GNU, so it is not forcing GPLv3+ license.

It has full functionality but options had to been changed to single letter (like -h instead of original --help in GNU). Main use case requires piping, but works without it.

I have also created man page, but I have to send it in different pull request (don't know how to do it in github webpage).
2015-02-04 17:37:55 +01:00
Florian Nücke
2ac78463a1 Added eeprom.getData/setData for mutable persistent bios storage, replaces get/setBootAddress.
get/setData is wrapped by the default Lua bios into functions with these names to avoid breaking programs using them.
2015-02-04 16:48:57 +01:00
Florian Nücke
9e92ee508c Allow drones to interact with the world more (break hand-harvestable blocks, place blocks).
inb4 totally overpowered.
2015-02-04 15:57:46 +01:00
Florian Nücke
791d469942 Started work on unifying agent component logic. 2015-02-04 07:37:04 +01:00
Florian Nücke
78deba91d0 More fake player slot fixery, added owner info into Agent interface. 2015-02-04 05:26:38 +01:00
Florian Nücke
5e313d4fe7 Fixery for refactory. 2015-02-04 03:52:05 +01:00
Florian Nücke
f2e6cf1896 Adjusting slot offsets. 2015-02-04 01:51:10 +01:00
Florian Nücke
8bc4f94d7c More work on generalizing agent logic. 2015-02-04 01:42:28 +01:00
Florian Nücke
f36505f0ff Little refactoring in preparation of generalizing robot fake player. 2015-02-04 00:50:45 +01:00
Florian Nücke
1561854e5b Pulled multi-tank interface into API. 2015-02-03 23:34:35 +01:00
Florian Nücke
38bd133d1e Removed some very old config and block/item name patches. When directly upgrading from versions that old, stuff would break anyway. 2015-02-03 21:24:19 +01:00
Florian Nücke
82ab190544 Made memory architecture agnostic, archs now determine on their own how memory tier / scale maps to physical memory size.
Reworked MachineHost a bit, it's now much slimmer, only needs to provide the list of internally installed itemstacks, machine computes stuff it needs based on that. Much less duplicate code!
2015-02-03 21:20:53 +01:00
Florian Nücke
fb0a9a33dd Update handlers for agent based events. 2015-02-03 19:05:51 +01:00
Florian Nücke
664bfcfeca Pulled machine getter into MachineHost, adding that as super to machine related internal interfaces. 2015-02-03 18:49:02 +01:00
Florian Nücke
578df68bc7 Changed GeolyzerEvent.Analyze to take an absolute position instead of the side of the host for more flexibility. 2015-02-03 17:10:41 +01:00
Florian Nücke
9c86caa7da Removed deprecated stuff. 2015-02-03 17:04:54 +01:00
Florian Nücke
298d97639e Started reworking API for 1.5. 2015-02-03 16:59:04 +01:00
Florian Nücke
806dda8827 Fixes robots dropping the remainder of a slot's content instead of the number specified to drop; closes #885. 2015-02-03 12:57:05 +01:00
Florian Nücke
5381e9d2d2 Typesafe config is provided by Forge now, no need to have the license in the repo anymore. 2015-02-03 12:37:26 +01:00
Florian Nücke
596ba6f2c1 All the vals! Also removed minor oddity. 2015-02-02 23:19:01 +01:00
Florian Nücke
f69250b565 Added ability to copy lines from screens using the analyzer (shift-rightclicking the line with the analyzer), then paste it on a screen by simply rightclicking it with the analyzer. Closes #644. 2015-02-02 23:05:21 +01:00
Florian Nücke
16170e31ee Bumped remote terminal resolution and color depth to tier three, to keep them competitive with tablets with container slots. Closes #822.
Will need breaking and re-placing server racks to work in existing worlds (because max res is saved now).
2015-02-02 20:57:21 +01:00
Florian Nücke
cea9c1cdbc Added debug.insertFluid and debug.removeFluid, closes #882. 2015-02-02 19:12:32 +01:00
Florian Nücke
e5d8f3ab5d Disallow breaking creative tier robots by non-creative, non-authorized players. Closes #868.
Also fixed visual desync when "breaking" a creative case.
2015-02-02 18:48:45 +01:00
Florian Nücke
b136e2ab7f Added inventory_controller.compareToDatabase, closes #861. 2015-02-02 18:05:50 +01:00
Florian Nücke
5a4dedf6d1 Right-clicking blocks with tablet in hand will now allow components to populate a data table. If any is given, a tablet_use signal is sent to the tablet, with the data passed as a table as the only parameter for the signal. Closes #858. 2015-02-01 23:38:43 +01:00