3929 Commits

Author SHA1 Message Date
Florian Nücke
ea05e5a4d6 fixed right alt for certain keyboard layouts not working as a modifier to input characters (e.g. the German layout, where it's needed for a couple of chars mainly in the numbers row), since it's actually emitting Alt+Ctrl, and when ctrl was pressed everything was treated like a key-combo; not resending control keys that are usually held down, to avoid packet spam (ctrl, alt, shift, meta) 2013-12-16 21:32:31 +01:00
Florian Nücke
f72ade50d9 added Chinese translation to language list in pack.mcmeta 2013-12-16 18:44:38 +01:00
Florian Nücke
6bea879857 saving charger inversion state 2013-12-16 17:43:32 +01:00
Florian Nücke
8c14b0f637 chargers now indicate whether they're on or off by showing a different texture; ability to toggle the way chargers interpret signals using wrenches (inverse: on when no signal, off when max signal); checking if player holds a wrench when activating screens and computer cases; using BuildCraft API entry to check for availability instead of BuildCraft|Energy, to allow working with BC compatible systems even if BC is not available 2013-12-16 17:39:09 +01:00
lordjoda
5a617f5ab6 Merge pull request #1 from crafteverywhere/patch-1
Create zh_CN.lang
2013-12-16 00:23:05 -08:00
crafteverywhere
739480d274 Create zh_CN.lang 2013-12-16 15:51:44 +08:00
Florian Nücke
9ab4c5c6e0 more direct way of checking whether the game is paused (check server type, if it's not dedicated check if paused, no more timer workarounds); counting sleeps in ticks now, since that was the granularity anyway and this isn't influenced by game pauses 2013-12-15 16:18:16 +01:00
Florian Nücke
f93fc78a94 cp and mv programs will now accept a directory as the target location and append the original file name automatically in that case 2013-12-14 18:44:12 +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
88475bd4ca computer case as creative tab icon instead of the adapter block 2013-12-14 15:02:22 +01:00
Florian Nücke
4e388f2448 removed deprecated comment 2013-12-14 14:56:55 +01:00
Florian Nücke
9450a451b8 corrected some occurrences of "visibility" to "reachability" in component jdoc 2013-12-14 14:55:37 +01:00
Florian Nücke
fc72fe0d6d typos in api jdoc 2013-12-14 14:50:46 +01:00
Florian Nücke
e3d1156c85 minor adjustments to api package doc v1.0.0 2013-12-14 13:02:38 +01:00
Florian Nücke
b08f08d4ff cables no longer visually connect to robots 2013-12-13 16:07:46 +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
Johannes Lohrer
4355252751 test for github 2013-12-13 13:58:07 +01:00
Florian Nücke
97b043efa7 fixed os detection for dedicated servers (if lwjgl isn't available to provide that information) 2013-12-13 13:15:23 +01:00
Florian Nücke
966b2e7f6e more stable signal pushing for carriage component; bump version for incoming first release 2013-12-13 12:43:58 +01:00
Florian Nücke
8d7d7ad93c Merge branch 'master' of cil.li:oc 2013-12-13 12:41:44 +01:00
Florian Nücke
d7c3513b23 render fixes under linux 2013-12-13 12:41:23 +01:00
Florian Nücke
0b1f4464d9 mouse scroll event for tier two and three screens and supporting it in the editor 2013-12-13 09:07:07 +01:00
Florian Nücke
cea0875795 renamed click signal to touch (since there are no mice in the mod, so this fits better with the idea of touch screens); naming additional touch signals drag now, to make that clearer 2013-12-13 08:21:16 +01:00
Florian Nücke
e921693a27 not swapping when asked to only move a partial stack in robot.transferTo 2013-12-12 20:58:48 +01:00
Florian Nücke
94627354f2 passing computer address along for "local" redstone_changed signals (from redstone cards) so that the signature is the same as the one for redstone i/o blocks 2013-12-12 20:37:21 +01:00
Florian Nücke
8171c6cc57 removed some undesired redstone_changed signals 2013-12-12 17:34:42 +01:00
Florian Nücke
a6915ff2bb added bundled redstone info for redstone program when it is available 2013-12-12 15:50:08 +01:00
Florian Nücke
5c975fb1c6 added support for setting cursor position in edit by clicking 2013-12-12 15:45:37 +01:00
Florian Nücke
9e555a58de fixed orientation computation in robot side check 2013-12-12 13:55:23 +01:00
Florian Nücke
a70f0447cb fixed click offset for mutliblock screens set to a custom resolution; added a 'walk' signal, triggered by touchscreens that face up when an entity walks on them (standard minecraft block walk event); to make the walk signal useful, added getter to graphics card to figure out size of the multiblock screen the gpu is bound to 2013-12-12 06:36:15 +01:00
Florian Nücke
6c8210b5eb localized names and tooltips for redstone block; recipe for redstone block and adjusted some other recipes to be more... uniform (e.g. router to have card in mid, cables as "connectors" - was too expensive before, for what it does); fixed redstone block not saving its node address; fixed possible crash if server thread update checked computer state while that state was being modified (and the stack was empty) 2013-12-12 02:11:30 +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
8108b88479 auto-canceling trades initiated by robots (fixes robots locking up villagers) 2013-12-11 23:25:23 +01:00
Florian Nücke
a845ce1be1 made the "response" port when sending messages to computercraft optional (it'll default to -1, an invalid port number); fixed a deadlock when consuming power in computers for the first time (lazy vals lock this when initializing... kinda makes sense in hindsight) 2013-12-11 13:25:34 +01:00
Florian Nücke
9c45f1f823 only routing network messages (otherwise keyboards/computer signals in general would still cause trouble in other networks) 2013-12-11 01:37:28 +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
066c59f916 added te info to converter tooltip 2013-12-10 13:41:38 +01:00
Florian Nücke
310a5cc36c fixed thermal expansion power conversion (returned the wrong value, not the amount absorbed but remaining); forcing block updates used for node adding to be as soon as possible. after reobfuscating and running the mod in the "normal" minecraft+forge environment block updates triggered in validate() seem to be delayed for some reason (around 5 seconds...) which leads to capacitors not being added to the network in time when loading a chunk and everything running out of power in turn 2013-12-10 02:36:23 +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
193c8cf035 added license information file for used APIs from other mods 2013-12-09 23:18:56 +01:00
Florian Nücke
7dffb9c477 updated cc api to 1.58 and including the full API again after reading the header for the first time -.- 2013-12-09 23:16:51 +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
dcda6056df removed some redundant code from distributor (that led to an assertion error, yay assertions!) and fixed visuals on additional distributors not updating immediately; fixed derpy optimization breaking receiving power from buildcraft 2013-12-09 03:57:19 +01:00
Florian Nücke
b535e85c82 fixed slot number check when loading components 2013-12-09 03:38:27 +01:00
Florian Nücke
2de8622f8b some more minor performance tweaks 2013-12-09 02:56:53 +01:00
Florian Nücke
407d25131f working on performance, removing implicit conversions to rich number types in frequently called places (i.e. anything somehow called per tick); optimized power distribution a bit; added a tick delay for continuous power consumption stuff (screens, computer); converted some methods to lazy vals and caching multi-screen bounds 2013-12-09 01:32:31 +01:00
Florian Nücke
8c948098d8 fixed dynamic component adding/removal when dynamically changing visibility of components 2013-12-08 15:09:10 +01:00
Florian Nücke
1b15f89498 some (temporary?) changes to get it running in published form... 2013-12-08 08:56:15 +01:00