6114 Commits

Author SHA1 Message Date
payonel
e370a7b264 Merge branch 'master-MC1.10' into master-MC1.11 2018-09-02 12:50:18 -07:00
payonel
428c347897 Merge branch 'master-MC1.7.10' into master-MC1.10 2018-09-02 12:50:08 -07:00
payonel
b493512efd woops, remove test code 2018-09-02 12:42:39 -07:00
payonel
8592cf2f25 cursor echos, io.dup, and remove unused redirect code
io.dup dups a handle, used now by all process creation and redirection
stop sharing cursors with spawned shell procs
write cursor echo to the stdin stream

close #2886
2018-09-02 12:41:38 -07:00
payonel
fcca0cc584 slight bin cleanup 2018-09-01 16:59:40 -07:00
payonel
b6bc9d0cea fixed less, simplified 2018-09-01 16:49:31 -07:00
payonel
1fb05ff432 fix and simplify /bin/more 2018-09-01 15:27:00 -07:00
payonel
a5eb9a0b7d Merge branch 'master-MC1.10' into master-MC1.11
# Conflicts:
#	src/main/scala/li/cil/oc/common/IMC.scala
2018-08-31 22:16:41 -07:00
payonel
65fa68e88e Merge branch 'master-MC1.7.10' into master-MC1.10
# Conflicts:
#	src/main/scala/li/cil/oc/common/IMC.scala
2018-08-31 22:14:54 -07:00
kmecpp
09e0561bac Changed log level of some messages to reduce console spam 2018-08-31 21:45:54 -07:00
payonel
6985352586 Merge branch 'master-MC1.10' into master-MC1.11
# Conflicts:
#	src/main/scala/li/cil/oc/integration/computercraft/BundledRedstoneProvider.scala
2018-08-31 20:47:30 -07:00
payonel
add0e45fc9 Merge branch 'master-MC1.7.10' into master-MC1.10 2018-08-31 20:21:32 -07:00
payonel
ef4bdd363b cherry pick 366d94f08da608d3be30d70ce91e248fa6b4357e to 1.10
Support for the block property system in the geolyzer (closes #2746, #2184)

* works correctly with Beetroot
* supports chorus
* geolyzer.analyze() returns the properties table
* geolyzer.analyze() returns metadata again
* fix warning EventHandlerVanilla.scala: method getBlockHardness in class Block is deprecated
2018-08-31 20:14:09 -07:00
payonel
2483c1d7d8 update cc bundled cable support for 1.10 2018-08-31 19:33:14 -07:00
payonel
1a6756248c openos pre-1.7.3 patching
1. as always, code cleanup and memory savings
2. allow force (-f) option with cp
3. cursor library, separating logic from tty [ the cursor library is robust and heavily tested, but the api is not finalized and is considered beta ]
4. fix autorun on ro fs
5. /bin/ls: run all filesystem calls in lua, safe from c-boundaries
6. vt100: small fix with clear line (1-off error)
2018-08-31 19:33:14 -07:00
SquidDev
5bdbadc125 Add bundled cable support for ComputerCraft 2018-08-31 19:33:14 -07:00
Adrian Siekierka
64035ff0c3 replace hardcoded hookInterval with bogomips calculator 2018-08-31 19:33:14 -07:00
Florian Nücke
be921a2d0f Maven path now via environment variable. 2018-08-31 19:33:14 -07:00
payonel
95598f6262 should check timeout before blinking 2018-08-31 19:33:14 -07:00
payonel
ec0d879bfb new cursor lib, some vt100 fixes for windows
the cursor lib will probably become an official api, but not yet, still in beta
an application can define its own cursor, can handle the following methods
Here is a rough draft of the api, when it is official there will be an ocdoc article covering this
echo
  Echo does not change the input buffer, does not move the relative cursor position to the input, in is only used for updating the UI. Echo will receive the following
 "": scroll if needed
 nil: initialize blink if needed
 boolean: toggle blink if true, force blink off if false
 string: write string to output stream
 keyboard.keys.right and keyboard.keys.left: move the visual cursor left or right. scroll if necessary
move
  number: Intended to move the logical cursor relative to its current input. Should call echo for visual movement
update
  string: add (prepend, insert, or append) text to the input buffer
  number: remove (backspace, delete) text from the input buffer
  should call move if the cursor moves due to the text changes
handle
  (name, char, code): called in response to event signals when waiting for input. Typically this is used to handle key_down, touch, drag, and clipboard
  return nil if the cursor is closing
  return false if the input is interrupted
  return true if the input is not done
  return <string> as the result of the input when completed
2018-08-31 19:33:14 -07:00
payonel
ff8323c447 bit32 should always be require(), regardless of arch
too bad we weren't clearing it from _G on boot, else we would have seen this bug
i'm choosing to NOT clear in from _G on boot .. for now ..
2018-08-31 19:33:14 -07:00
payonel
541e765d7b need to close process after error handling 2018-08-31 19:33:14 -07:00
payonel
ab10c8738f log rc errors to /tmp/event.log
closes #2787
2018-08-31 19:33:14 -07:00
payonel
943f3c2339 make cursor echo safe to call even without gpu ready 2018-08-31 18:09:28 -07:00
payonel
61dc91350a skipping 1.11 cc support 2018-08-29 03:18:10 -07:00
payonel
e8ba939a33 Merge branch 'master-MC1.10' into master-MC1.11
# Conflicts:
#	build.gradle
#	src/main/scala/li/cil/oc/integration/computercraft/ModComputerCraft.scala
2018-08-29 02:55:38 -07:00
payonel
7dc1622a0e update cc bundled cable support for 1.10 2018-08-29 02:36:59 -07:00
payonel
e2307316ee Merge branch 'master-MC1.7.10' into master-MC1.10 2018-08-29 02:06:52 -07:00
payonel
91f0a0da3e maven publish fix 2018-08-27 14:47:25 -07:00
payonel
9c40a36099 reduce maven repos to oc only 2018-08-27 14:42:42 -07:00
payonel
7827f77680 maven publishing config fix 2018-08-27 13:26:31 -07:00
payonel
e5aa71dc52 reducing build.gradle 2018-08-27 10:23:17 -07:00
payonel
758dfed35e reduced gradle - all deps hosted on single maven 2018-08-25 08:22:49 -07:00
payonel
9b12c1e350 openos pre-1.7.3 patching
1. as always, code cleanup and memory savings
2. allow force (-f) option with cp
3. cursor library, separating logic from tty [ the cursor library is robust and heavily tested, but the api is not finalized and is considered beta ]
4. fix autorun on ro fs
5. /bin/ls: run all filesystem calls in lua, safe from c-boundaries
6. vt100: small fix with clear line (1-off error)
2018-08-23 23:16:12 -07:00
Wrothmonk
8d88844b07 Proper .prop file recognition
Install would only check .prop files at the root of a device instead of the actual path where the installation is coming from. This would cause issues with the --from option if it was targeted at anything other than the root of a filesystem.
2018-07-04 16:22:56 -07:00
Galacticraft developer
21c49987e1 Correct name for Galacticraft item in recipe for World Sensor Card 2018-07-04 16:20:14 -07:00
SquidDev
2b0215bdbc Add bundled cable support for ComputerCraft 2018-07-04 08:56:34 -07:00
Adrian Siekierka
daff228f85 replace hardcoded hookInterval with bogomips calculator 2018-07-04 08:56:13 -07:00
Florian Nücke
cca7f202d5 Maven path now via environment variable. 2018-05-26 22:05:04 +02:00
Florian Nücke
8cef1a5624 Fixed a couple of inverted return values for power charge callbacks. All of these are expected to return the remainder of the delta that could *not* be applied (that's how it's used anyway, in the Charger). Most implementations do this correctly, but a few did not, in particular the Minecraft Forge Energy one. Also a couple of defaults returned the incorrect value as well (e.g. when stack is empty and such). 2018-04-30 16:57:19 +02:00
payonel
a28a1aa2a5 should check timeout before blinking 2018-03-31 17:38:12 -07:00
payonel
a80f6363d5 new cursor lib, some vt100 fixes for windows
the cursor lib will probably become an official api, but not yet, still in beta
an application can define its own cursor, can handle the following methods
Here is a rough draft of the api, when it is official there will be an ocdoc article covering this
echo
  Echo does not change the input buffer, does not move the relative cursor position to the input, in is only used for updating the UI. Echo will receive the following
 "": scroll if needed
 nil: initialize blink if needed
 boolean: toggle blink if true, force blink off if false
 string: write string to output stream
 keyboard.keys.right and keyboard.keys.left: move the visual cursor left or right. scroll if necessary
move
  number: Intended to move the logical cursor relative to its current input. Should call echo for visual movement
update
  string: add (prepend, insert, or append) text to the input buffer
  number: remove (backspace, delete) text from the input buffer
  should call move if the cursor moves due to the text changes
handle
  (name, char, code): called in response to event signals when waiting for input. Typically this is used to handle key_down, touch, drag, and clipboard
  return nil if the cursor is closing
  return false if the input is interrupted
  return true if the input is not done
  return <string> as the result of the input when completed
2018-03-31 17:15:41 -07:00
payonel
9cdbaed1f5 bit32 should always be require(), regardless of arch
too bad we weren't clearing it from _G on boot, else we would have seen this bug
i'm choosing to NOT clear in from _G on boot .. for now ..
2018-03-29 13:45:26 -07:00
payonel
4ec7254e94 need to close process after error handling 2018-03-24 21:38:05 -07:00
payonel
aae7029dbe log rc errors to /tmp/event.log
closes #2787
2018-03-20 19:30:00 -07:00
payonel
d3abf39e94 item stack usage changes fix
NonNullList::get(index) instead of array syntax (index)
and shrink(count) instead of directly adjusting the stackSize field

fixes build errors
2018-03-20 14:17:33 -07:00
payonel
aaa6b0d012 Merge remote-tracking branch 'origin/master-MC1.10' into master-MC1.11
# Conflicts:
#	src/main/scala/li/cil/oc/common/GuiHandler.scala
2018-03-20 12:58:59 -07:00
payonel
648cdf78aa use ItemStack.EMPTY since 1.11 and not nulls
robot.use() was using a null pointer when not holding any item

closes #2786
2018-03-20 12:34:32 -07:00
payonel
23507d5c77 fix offhand actions
with tablets, databases, server racks, and disk drives

closes #1897
2018-03-19 21:29:13 -07:00
payonel
9543ac8168 remove file accidentally added back by merge 2018-03-18 23:19:41 -07:00