4246 Commits

Author SHA1 Message Date
Johannes Lohrer
70d62f1d71 removed unnecessary spaces in recipes 2013-11-30 21:39:48 +01:00
Florian Nücke
bf1beb558d minor formatting 2013-11-30 21:11:13 +01:00
Florian Nücke
9fef877746 Merge branch 'master' of cil.li:oc 2013-11-30 21:07:55 +01:00
Florian Nücke
afd383dc9b it clicks! screens of tier 2 and 3 now support "clicks", either via gui or by right-clicking on a screen without a keyboard ingame 2013-11-30 21:07:44 +01:00
Johannes Lohrer
36f771d6f5 more recipes 2013-11-30 21:03:03 +01:00
Johannes Lohrer
073ba601f5 Merge branch 'master' of cil.li:oc 2013-11-30 18:24:09 +01:00
Johannes Lohrer
3791bc34a8 made shears loose durability and return empty bottles if it's used in a crafting recipe 2013-11-30 18:23:49 +01:00
Florian Nücke
d990618de6 cleaned up item delegator/delegate; marked things in delegates as client only where appropriate (i.e. where they are in their "real" counterparts - block and item) 2013-11-30 13:01:11 +01:00
Florian Nücke
e05a26c73d moved config loading into the try-catch in which it was supposed to be in all along... 2013-11-30 12:33:42 +01:00
Florian Nücke
b2b56419c9 cleaned up block delegate a bit, since its probably here to stay after all (mostly naming stuff and sorting) 2013-11-30 01:51:17 +01:00
Florian Nücke
dddf238a3b suppressing analyzer results for some more blocks where it is meaningless to get the address and that have nothing to say for themselves (yet) 2013-11-29 23:13:08 +01:00
Florian Nücke
0ef8577624 fixed charges not forgetting their robots 2013-11-29 23:01:05 +01:00
Florian Nücke
083e7c2c66 added setting for size of tmpfs; enabled tag sharing for items after all, it's impossible/way too painful to get the tags and labels to display on the client reliably otherwise. fixed disks saving their content in their item nbt to make this not a huge problem (kinda hacky, but whatever) 2013-11-29 22:30:10 +01:00
Florian Nücke
e837c43cf6 lua program to change screen resolution 2013-11-29 21:35:38 +01:00
Florian Nücke
40755b9279 fixed keyboard detection on multiblock screens; fixed screen gui not being centered 2013-11-29 21:34:51 +01:00
Florian Nücke
19c2f7db23 fixed the glitch with items flying towards the player when robots harvested blocks 2013-11-29 18:55:38 +01:00
Florian Nücke
b66223ce3e note block driver (somehow my dev env doesn't want to make any sound whatsoever right now, but the note above the block pops up, so I assume it works); fixed robot picking on dedicated (player.raytrace *and* player.getPosition is client side... seriously?) 2013-11-29 18:03:37 +01:00
Florian Nücke
47e6d6a327 removed peripheral driver and component 2013-11-29 17:14:55 +01:00
Florian Nücke
27e205dc3c made floppy size configurable 2013-11-29 16:14:27 +01:00
Florian Nücke
0c778af9f1 fixed a fix; fixed power updates sending every time in robot gui (forgot saving last sent state...) 2013-11-29 14:29:51 +01:00
Florian Nücke
3ac0d4a895 sending updates from server to client only when the client is nearby (i.e. we can assume the chunks are loaded on the client). this is somewhat experimental, since we cannot say with 100% certainty that the chunk isn't loaded on the client. will probably send "important" packets to all clients all the time (e.g. robot move) in the long run, but for now let's see how it turns out. 2013-11-29 14:16:58 +01:00
Florian Nücke
ac0859a109 added packet size limit for network cards and a setting for that limit 2013-11-29 14:14:19 +01:00
Florian Nücke
5c3cecbf16 tooltip for power button in case and robot; made generator drop remaining fuel items when removed from robot and stop burning (i.e. you can't "start" it in one robot and then insert it into another one anymore, which would be kind of weird...); fixed initial slot selection in robots; fixed tooltips being rendered behind screen in robot gui; 2013-11-29 13:21:19 +01:00
Florian Nücke
256a57a40c fixed generator item insertion count 2013-11-29 06:35:09 +01:00
Florian Nücke
0a0e1ef905 localized title and tooltip for crafting upgrade 2013-11-29 06:32:44 +01:00
Florian Nücke
119b87f549 fixed slot computation in crafting 2013-11-29 06:28:17 +01:00
Florian Nücke
d23a6534d9 crafting addon, allows robots to craft in the 3x3 grid in the top left of their inventory; added extended context interface for robot interaction, allowing access to selected slot index and fake player for general stuff and in particular for inventory interaction; todo: maybe a nicer check in component if method is interface compatible (context/robotcontext) each call? 2013-11-29 06:14:55 +01:00
Florian Nücke
608383bf8a updated documentation in api; made createEnvironment for item components pass a tile entity instead of an object (always is a tile entity) 2013-11-29 03:01:59 +01:00
Florian Nücke
9ddbc35f4f localized name and tooltip for generator upgrade; different colors for different item component types 2013-11-28 22:02:00 +01:00
Florian Nücke
062b530d1d fixed robot rendering in player hands and adjusted cable in-hand rendering a little; picking of robots now generates a stack with the current energy in the nbt tag; fixed hit tests for robots due to using range from settings directly after switching to player.rayTrace... derp 2013-11-28 21:44:46 +01:00
Florian Nücke
ed7ab6b535 robots can now interact with *living* entities (i.e. use items on entities, such as shears on sheep) 2013-11-28 20:54:00 +01:00
Florian Nücke
763054bb7d using find closest entity in world instead of custom implementation 2013-11-28 19:57:06 +01:00
Florian Nücke
036e2f0b6b robot picking now actually hits entities 2013-11-28 18:53:39 +01:00
Florian Nücke
1fdb937b57 showing stored energy in robots in their tooltip; storing energy as int (truncating); fixed item tag creation at multiple occasions: new NBTTagCompound("tag") instead of new NBTTagCompound(), otherwise loading (which would automatically add the name) would lead to "incompatible" stacks. 2013-11-28 17:13:23 +01:00
Florian Nücke
4a6174456f added afterimage tile entity detection in packet handling back in, still needed for some cases (mostly client->server stuff, like key up packets where the key down triggered a move, for example); storing energy level in harvested robots, i.e. storing the energy level in the nbt tag of the - now custom - dropped itemstack 2013-11-28 16:48:46 +01:00
Florian Nücke
e175a26fe1 using tile entity description packets to initialize client tile entities instead of the delayed request/response scheme in validate() which seems to solve moving robot problems... at least until there's massive lag, I suppose? 2013-11-28 14:27:10 +01:00
Florian Nücke
0d1e3b0bb4 fixed robots possibly not receiving their status information on clients when being validated while moving - at least somewhat: tile entity lookup for received packets now checks if the block is an afterimage, and if so tries to look up the actual robot proxy. this is really hacky and I plan on solving this differently because it may still fail (robot A validates, moves, robot B moves into robot A's place -> B gets A's info), most likely by tagging robot requests with a unique id and then looking them up in the list of active tile entities or something... but for now it does the job. 2013-11-28 02:58:01 +01:00
Florian Nücke
983c88570a fixed charger state responses 2013-11-28 02:53:00 +01:00
Florian Nücke
fb6b92bffe removed power supply item and added generator upgrade for robots, which acts like an internal stirling engine (can eat fuel items and burn them for energy). per default slightly less efficient than a stirling engine; added api methods to interact with a robot's selected inventory slot (if the caller *is* a robot, otherwise does nothing) 2013-11-28 02:52:42 +01:00
Florian Nücke
71b2fae50a updated tooltip and block names for case 2013-11-27 23:21:12 +01:00
Florian Nücke
513b3a648c tiered computer cases 2013-11-27 23:11:32 +01:00
Florian Nücke
d17824e722 computers and robots no longer start when right clicked, instead there's a button in the gui now that allows turning the computer/robot on or off (also useful for rebooting when locked in some interruptible loop); removed the 'power' slot from computer cases 2013-11-27 22:15:01 +01:00
Florian Nücke
4cb741fb74 separating dirs from files in ls 2013-11-27 18:46:44 +01:00
Florian Nücke
453be0f2f5 moved post-library init code to extra file 2013-11-27 18:34:49 +01:00
Florian Nücke
7d4f4c46f3 fixed charger not continuing after load; added particle effects on robots currently being charged 2013-11-27 18:12:31 +01:00
Florian Nücke
9335c2c645 localized name and tooltip for charger and removed tags (yay decompiled code, \u00A7 is just a section sign...) 2013-11-27 03:04:23 +01:00
Florian Nücke
d9ac883281 fixed shift click inventory stack shifting less a bit: item components could fail to save; also added manual syncing of item component address tags when added to a container to avoid client gui desyncing; added stack limit for appropriate slots in robot 2013-11-27 01:28:46 +01:00
Florian Nücke
f3dcafc893 fixed robot inventory not updating 2013-11-26 22:39:07 +01:00
Florian Nücke
7cf14ed7fd charger texture and fixed power distributor synchronization when the max failed as well as when there are multiple distributors in a network 2013-11-26 21:41:43 +01:00
Florian Nücke
643a25fc53 more work on charger block; redid global power state synchronization for networks, now sending general state every 5% changes (for distributor block rendering e.g.) and sending more frequently only when necessary (e.g. gui of robots); removed the testing power generation from robots, they have to be charged at chargers now 2013-11-26 20:55:22 +01:00