579 Commits

Author SHA1 Message Date
Florian Nücke
8560a8cce8 moved origin of robot's click ray towards their facing (so its on the line between the block the robot is in and the block they try to interact towards) to fix some hit glitches (e.g. robots couldn't flip levers on walls) 2013-12-08 08:38:15 +01:00
Florian Nücke
6aa2bd8298 fixed / properly implemented zip file system 2013-12-08 07:59:49 +01:00
Florian Nücke
33a45493b8 explicitly specify encoding for char lookup of monospace font renderer to avoid errors 2013-12-08 03:37:42 +01:00
Florian Nücke
b0e8e40317 changed cutting wire recipe; hiding and disabling iron nugget if gregtech is available; no longer give xp when making circuit boards; 2013-12-08 00:01:46 +01:00
Florian Nücke
9a8da535e2 catching npe when library is not present and starting computer in single player; fixed iron nugget not being used via oredict 2013-12-07 23:33:26 +01:00
Florian Nücke
3ebda93e94 fixed redlogic interface stripping 2013-12-07 23:07:09 +01:00
Florian Nücke
78e22a0384 fixed fs possibly being nil when os lib is loaded 2013-12-07 22:41:59 +01:00
Florian Nücke
03eedec22a updated eris to latest version, also for linux libraries 2013-12-07 21:11:16 +01:00
Florian Nücke
d0e97e8d4b tinting robots based on their level; including distance of zero in normal network messages to have a uniform signal signature 2013-12-07 17:03:22 +01:00
Florian Nücke
eee27e49de changed robot.xp to robot.level; checking for pausedness in start from lua callbacks to avoid computers forcing resumption when forced to be paused (e.g. avoids computers breaking a robots pause after some action); small pause in command block after trigger to ensure the action was executed; fixed note block pitch getter returning non-offsetted value 2013-12-07 15:15:38 +01:00
Florian Nücke
23135ff845 little cleanup in fs lib and resetting shell working directory if the filesystem containing the working path is unmounted 2013-12-06 23:59:21 +01:00
Florian Nücke
5233a8d6db checking for nei's text field being focused in robot gui to avoid typing text on the computer while it is 2013-12-06 22:08:19 +01:00
Florian Nücke
90f6756392 less render glitchiness on moving robots 2013-12-06 16:01:16 +01:00
Florian Nücke
426239f03a allow robots to interact (inventory) and break mine carts 2013-12-06 15:46:12 +01:00
Florian Nücke
c54f285345 moved custom Lua methods from os table to new 'computer' table; some typos in config comments 2013-12-06 15:44:16 +01:00
Florian Nücke
039b3cce9b fixed crafting upgrade crafting computing the max amount of crafted items but ignoring it... 2013-12-06 05:47:01 +01:00
Florian Nücke
f3d020c132 non-busy wait in dig program when drop chest is full 2013-12-06 03:10:57 +01:00
Florian Nücke
476eb587d9 fixed recursion into drop-off logic of dig program. probably. 2013-12-05 23:49:35 +01:00
Florian Nücke
14f47fd637 clearing robot afterimages in a scheduled block update, which should be a bit more stable... should. minecraft. whatever; catching error in analyzer if node has no address; added setting to allow robots to ignore cobwebs, the most stupid invention ever (hardness of four without tools? seriously?), defaults to on; fixed threading issue with setBlockBoundsBasedOnState, hopefully resolving robot suicides 2013-12-05 23:32:47 +01:00
Florian Nücke
76f3e03925 fixed robot double chests interaction (screw you minecraft, seriously, use your bloody interfaces right); fixed breaking of moving robots; dropping robots with tag when they have xp but no energy left (oops); tried stabilizing robot movement a bit, robots still seem to spontaneously commit suicide occasionally, though... 2013-12-05 20:54:38 +01:00
Florian Nücke
d17bc2e2d2 robot level has an influence on how fast robots can harvest blocks; max level is now technically 31 - i.e. robots can level up 30 times. if they're level 0 no level info is shown in tooltip. 2013-12-05 14:57:16 +01:00
Florian Nücke
bc8ebd2508 using actual break time based on equipped tool for robots when breaking blocks; swing time is only used for attacking and extinguishing fires; fixed fire extinguishing by robots 2013-12-05 14:34:39 +01:00
Florian Nücke
7b136183ea checking new against current component in setPrimary to avoid unnecessary work; fixed timing issue in primary.lua 2013-12-05 00:42:51 +01:00
Florian Nücke
5171b14d1b fixed unicode.lower and upper (were string.lower and upper); fixed serialization of negative infinity; allowing serialization of the same table multiple times (multiple references) 2013-12-04 23:33:49 +01:00
Florian Nücke
0403d5b675 basic robot leveling logic 2013-12-04 22:14:05 +01:00
Florian Nücke
cfb8849e0e split component.primary into component.getPrimary and component.setPrimary 2013-12-04 16:24:03 +01:00
Florian Nücke
3d343ec34f fixed a typo in the robot lib; made count and space direct callbacks and allowing to specify a slot to check for (defaults to selected one); prioritizing living entities in robot detection and fixed entity detection sidedness; added simple excavation program; general cleanup 2013-12-04 14:11:54 +01:00
Florian Nücke
f94022c61c sorted crafting items to be somewhat logically grouped; fixed crafting upgrade 2013-12-04 00:37:20 +01:00
Florian Nücke
28fa4c3d5b don't return the bucket when crafting acid but do return it when crafting a pcb 2013-12-04 00:03:36 +01:00
Florian Nücke
08a412baa4 more tooltips, removed posion (because it needs netherwart, dammit) and replaced it with... acid. so to speak; 2013-12-03 23:42:23 +01:00
Florian Nücke
3617b711ac setting for whether lua gc should run each time the state is resumed; allowing to pass pitch in note block trigger to save a tick 2013-12-03 18:11:32 +01:00
Florian Nücke
d0c5ffa5ff fixed fs autorun and catching bad reads (negative number of bytes) 2013-12-03 18:10:15 +01:00
Florian Nücke
7c15fbe09c moved http requests into a tiny lib with one function that returns an iterator over the lines of the response, or throws an error if something went wrong 2013-12-02 18:15:13 +01:00
Florian Nücke
2bb0cca7a0 made the robot texture a little more gritty 2013-12-02 17:58:23 +01:00
Florian Nücke
a764a8a8a6 trying to get a little bit of... structure into image names; cleaned up some shell stuff; added pastebin downloader 2013-12-02 17:17:49 +01:00
Florian Nücke
63a18f0ea5 added a (subtle) brightness gradient to some older item graphics to better match the style of the newer ones 2013-12-01 23:46:29 +01:00
Florian Nücke
7a67f89e88 fixed math.rand; gave cables and robots a block texture for when they are broken (default texture was used there, because they are purely rendered using their tile entity renderer) 2013-12-01 21:21:56 +01:00
Florian Nücke
41fd42bb6b fixed some client crashes from trying to send packets the wrong way 2013-12-01 20:10:39 +01:00
Florian Nücke
85e5aae683 forgot fields can't be sided... 2013-12-01 19:46:26 +01:00
Florian Nücke
729331f55d recipes for the remaining blocks and items 2013-12-01 19:34:26 +01:00
Florian Nücke
cbf17609bd showing user list of computers in their analyzer result; some (theoretical) improvements to computer ownership (I really should test this somewhen); reduced range of included players for sending some packets 2013-12-01 17:16:58 +01:00
Florian Nücke
5ea8d072c0 sending username in click event 2013-12-01 15:44:31 +01:00
Florian Nücke
c174d7cf5b repeated clicks when dragging on a screen gui 2013-12-01 15:39:35 +01:00
Florian Nücke
6ee7cfdc8d cable recipe 2013-12-01 15:25:20 +01:00
Florian Nücke
81042a5494 disk drive and robot recipes 2013-12-01 15:19:26 +01:00
Florian Nücke
326460a818 screen recipes 2013-12-01 14:47:25 +01:00
Florian Nücke
6c2ebfbdcf recipes for computer cases 2013-12-01 14:34:36 +01:00
Florian Nücke
0338631ec1 adjusted transistor recipe a bit to make the redstone costs less ridiculous 2013-12-01 14:22:32 +01:00
Florian Nücke
d867b05865 automatically trying all faces if none is specified for use, swing and place actions of robots; fixed target picking for robots 2013-12-01 13:27:02 +01:00
Florian Nücke
2a3f55ee0a reformatted the recipes class a bit because my ocd wouldn't let me sleep otherwise 2013-12-01 03:47:23 +01:00