40 Commits

Author SHA1 Message Date
Florian Nücke
3b59b53d5c added setting to allow logging of tracebacks for exceptions that occurred in Lua callbacks (disabled per default to avoid spamming the log with InvalidArgumentExceptions and the like); moved argument parsing and result pushing to extended lua state and added capability to push maps as tables, meaning callbacks can now return maps, too 2014-01-06 17:19:04 +01:00
Florian Nücke
d026b61295 added setting to allow enabling bytecode loading. use this at your own risk, and only if you're aware just how exploitable this can be... closes #58 for now 2014-01-05 13:27:33 +01:00
Florian Nücke
852a475714 fixed config comment 2014-01-04 03:46:06 +01:00
Florian Nücke
b5154843a9 configurable paste shortcut, very rudimentary but better than nothing. closes #54 2014-01-04 01:12:49 +01:00
Florian Nücke
7c8e1dc46d added setting to control timeout of http requests; pushing http request results directly as binary chunks now (of length misc.maxNetworkPacketSize), closes #21 and fixes #33 2013-12-30 20:23:11 +01:00
Florian Nücke
da65e7fb31 Merge branch 'master' of https://github.com/MightyPirates/OpenComputers into 1.1 2013-12-28 04:33:35 +01:00
Florian Nücke
ca52ec37a6 option for clients to select whether text on screens should be anti-aliased or not 2013-12-27 17:50:05 +01:00
Florian Nücke
f8329df0ce Merge branch 'master' of https://github.com/MightyPirates/OpenComputers into robot_components 2013-12-24 14:08:28 +01:00
Florian Nücke
22bcc5756e moved example whitelist entries to comment so we default to using the blacklist as suggested in #19; better message when http api fails parsing binary data (see #21) 2013-12-24 12:58:47 +01:00
Johannes Lohrer
9e87548837 Merge branch 'master' of https://github.com/MightyPirates/OpenComputers into robot_components
Conflicts:
	reference.conf
2013-12-17 23:49:43 +01:00
Florian Nücke
9a0ebf1bae casting some black regex magic to format the render output of the typesafe config to make it feasible to write it back to file. the order still gets jumbled, but whatever. 2013-12-17 13:38:02 +01:00
Johannes Lohrer
9ec6380030 added Solar Generator Upgrade for robots, image still WIP 2013-12-16 23:19:18 +01:00
Florian Nücke
d395db6d7c corrected comment on screen power use in config 2013-12-14 18:04:37 +01:00
Florian Nücke
f1c94c29d3 fixed doc in config (user api stuff moved from os to computer) 2013-12-13 14:41:21 +01:00
Florian Nücke
91219b594a changed 'computer' abstract block to redstone aware base block and renamed interfaces a bit; added new block for remote redstone i/o, basically like a redstone card, but as a block 2013-12-12 01:34:46 +01:00
Florian Nücke
eb15bf5a62 added buffer for converter (to allow directly connecting it to a distributor) and updated tooltip of distributor 2013-12-11 01:11:01 +01:00
Florian Nücke
0a83286082 better error reporting when out of power while booting a computer; providing some buffer in the converter to allow building a simple computer without needing a capacitor; scaling kernel ram when saving, to get somewhat equal usage when loading 64 bit save on a 32 bit vm or vice versa; reworking power distribution, integrating it into the network directly now; reworked distributor block to share energy between networks (balances such that each connected network has the same relative amount of energy); due to that change, added two functions to the computer api: energy and maxEnergy (as replacements for the power distributor component) 2013-12-11 00:49:06 +01:00
Florian Nücke
3f40e58929 increased suck and drop delays on robot; taking into account the tick that's "lost" by requiring the server thread to resume the robot in the delays to get the effective delay right (was one tick more than set in the config) 2013-12-10 00:03:52 +01:00
Florian Nücke
d1094c0661 added setting to internally scale memory made available to lua vms on 64 bit machines, to make it less likely that programs will work in 32 bit but run out of memory on 64 bit machines 2013-12-09 22:01:22 +01:00
Florian Nücke
59d16ea6b2 made power tick frequency configurable; added support for ThermalExpansion energy in power converter (untested) 2013-12-09 14:40:58 +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
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
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
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
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
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
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
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
27e205dc3c made floppy size configurable 2013-11-29 16:14:27 +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
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
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
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
Florian Nücke
c52e18a87b cleaned up synchronization in connector/distributor, i think; pausing computer in save to make sure it won't continue running until the whole world finished saving; started work on charger (robot loading block); reworked connector interface, changeBuffer now returns the delta that could not be applied and added new method tryChangeBuffer that will only apply the full delta or nothing, and return true if it worked, false otherwise 2013-11-26 14:35:14 +01:00
Florian Nücke
9af202331b small method rename and checking for ownership before starting a computer 2013-11-26 03:05:16 +01:00
Florian Nücke
34033966da playing with power numbers; fixed some converter bugs; added setting for a factor to apply to computer's running energy cost when they are sleeping (so they need less when they os.sleep(a long time); capacitor adjacency bonus and capacitor doesn't tick anymore; removed internal buffer form converter 2013-11-26 01:34:10 +01:00
Florian Nücke
ac5fe3c87c added capability to send http requests with wireless network cards, if allowed in the config (with domain white and black list); fixed nil printing when ls-ing an invalid dir, returning an error message instead; config doesn't support backslashes and since it might disappear in the future, anyway, I decided to switch to the typesafe config library; renamed config class to Settings to avoid name conflicts with typesafe config 2013-11-25 21:54:59 +01:00