5816 Commits

Author SHA1 Message Date
Florian Nücke
884842b843 Hmm, I wonder why that was there. Oh well. Fixes #2001. 2016-09-18 17:24:24 +02:00
joserobjr
7ea20602b7 Check if the world is remote before killing the drone
Drones were getting invisible when a player attempts to drop it (wrench + sneak + right click) and a server mod cancels the interaction.
2016-09-17 05:04:46 -03:00
payonel
917befcd0e memory, sandbox, devfs, signals, log, rc, terminal, oppm
A big update final push before 1.6 release. Here is the detailed rundown of the changes

/lib/term.lua
1. delay calling gpu.getViewport() when creating a terminal window. this fixes scenarios where the gpu could be a proxy object that doesn't have a viewport defined yet.
2. big blink cleanup to minimize the potential number of gpu calls during blink, and simplify the code

/lib/sh.lua, /lib/process.lua
1. moving shell sandboxing code to process library. This actually simplifies creating the sandbox for processes and handling process crash (process lib and sh lib shared common crash code)

/bin/rc.lua
1. found a bug in restart, fixed

/lib/pipes.lua
1. required update to be compatible with internal(private) methods to the sh library

/lib/package.lua
1. just aesthetic cleanup of error reporting

/bin/mktmp.lua
1. use existing os.tmpname() helper method

/init.lua and (added) /lib/tools/boot.lua
1. moving all the code I can to tools file to allow the memory to unload after boot completes.

/bin/ls.lua
1. fixing symbolic links to directory display (had extra /)

/lib/event.lua
1. refactor listeners and timers into common registers (fully backwards compatible). Provides a mechanism for drivers to know about ALL events without stealing them from the main process. Will document it later when the api is hardened (new api, event.register)
2. memory savings due to refactor
3. protecting computer.pullSignal! this is critical, user scripts that were previously pulling diirection from the computer api were able to put the kernel in a bad state. computer.pullSignal is still available, but it calls the event api to correctly dispatch events as drivers expect.

devfs
1. eeprom and eeprom-data are now dynamically available. This is significant, now when a user removes the eeprom, it will not be listed in /dev
2. devfs upgrade, support built for future dynamic folders (such as /dev/filesystems/)

autorun
1. code cleanup

oppm
1. fixing cwd expected by oppm.lua during initial install (if using .install via `install oppm`)
2016-08-26 23:33:20 -07:00
Micah Shlain
a2270f3feb Migrated forestry driver to forestry version 5.2(beta) 2016-08-18 16:13:52 +03:00
payonel
9dcc6070e0 minor bug fix: disable fs.remove of devfs files
Allowing removal of dev points can have unintended side effects because the dev points cannot be recreated without a reboot

For example, `cp -f /tmp/eeprom /dev/eeprom` breaks because cp first removes the target file - and then is not allowed to create it with io.write(path, 'w')
2016-08-11 23:39:22 -07:00
Fingercomp
b95cf7cae9
fix bit32.lrotate and bit32.rrotate
If any of two arguments were too big, those functions returned 0 instead
of an expected value.

E.g., bit32.lrotate(11111111111111111,2222222222222) --> 0
Expected return value: 3340540761.
2016-08-09 21:19:50 +07:00
Florian Nücke
edf6b38283 Derp. 2016-08-06 14:15:15 +02:00
Florian Nücke
b9633afc47 Merge branch 'master-MC1.10' of github.com:MightyPirates/OpenComputers into master-MC1.10 2016-08-06 14:12:33 +02:00
Florian Nücke
ba59e7f535 Tesla support. Maybe.
(Couldn't test, IC2+JEI keep crashing on start for me...)
2016-08-06 14:12:17 +02:00
Florian "Sangar" Nücke
3a2ca5f878 Merge pull request #2004 from AffeAli/Fix-for-#2000
Fixed issue 2000
2016-08-06 10:53:45 +02:00
AffeAli
7ee884c34c Fixed issue 2000
EntityLiving equals "sg" (not "sb") in 1.10.2 mapping.
2016-08-04 18:25:07 +02:00
Maxim Karpov
e21992c0e9 Added SignChangeEvent to sign upgrade 2016-07-31 16:10:19 +03:00
Maxim Karpov
537b8c20f6 Added whitelisting of debug card owners. 2016-07-31 13:46:20 +03:00
Florian Nücke
4fe2a9026d Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2016-07-31 10:33:08 +02:00
Florian Nücke
87d3567abf Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2016-07-31 10:30:21 +02:00
Florian Nücke
b68d87855f Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9 2016-07-31 10:30:06 +02:00
payonel
2a5de6868a some fixes learned from btm for term, grep, and devfs
using buffers for term stream string (used in devfs)
simulate enter key and split clipboards on multiline paste
delay proxy calls to eeprom until actually using /dev/eeprom
all reads on /dev/null (returns nil)
fix grep using ^
2016-07-30 22:33:28 -07:00
Florian Nücke
52ff039e31 Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2016-07-30 17:25:27 +02:00
Florian Nücke
5b18f317e5 Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2016-07-30 17:25:12 +02:00
Florian Nücke
4e257186bf Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9
# Conflicts:
#	src/main/scala/li/cil/oc/common/PacketBuilder.scala
2016-07-30 17:23:54 +02:00
Florian Nücke
f388340dd0 Make packet builder use buffering. 2016-07-30 17:19:20 +02:00
Florian Nücke
8585f0f197 Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2016-07-30 09:41:27 +02:00
Florian Nücke
c5989952fc Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2016-07-30 09:41:16 +02:00
Florian Nücke
a0128f5c9c Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9 2016-07-30 09:40:54 +02:00
Florian Nücke
97b1313531 math.pow compat in Lua 5.3 (#1992). 2016-07-30 09:38:00 +02:00
Florian Nücke
b503b947e4 Huh, still had this lying around. Can't remember what it was trying to fix, but it doesn't seem to make things more broken so eh. 2016-07-30 09:37:34 +02:00
Florian "Sangar" Nücke
5ed06deef7 Merge pull request #1989 from Spyboticsguy/master-MC1.10
Change scheduleIC2Add to use IEnergySink instead of IEnergyTile
2016-07-30 09:33:32 +02:00
Florian Nücke
fe2fe1b3d3 Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2016-07-27 20:44:33 +02:00
Florian Nücke
f4249355a7 Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2016-07-27 20:44:16 +02:00
Florian Nücke
9012d0ea3b Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9 2016-07-27 20:44:02 +02:00
Florian Nücke
954613081a Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.7.10 2016-07-27 20:43:40 +02:00
Florian Nücke
aa103349d0 Try to prevent nodes loading into an illegal state. 2016-07-27 20:43:27 +02:00
Florian Nücke
2d1b329185 May or may not help with #1935. 2016-07-27 20:37:19 +02:00
payonel
49666dee0c safer install on low memory 2016-07-25 23:32:41 -07:00
Tristen Allen
1e23fdddd4 Change scheduleIC2Add to use IEnergySink instead of IEnergyTile
Fixes #1937.
2016-07-25 15:48:54 -04:00
payonel
a4850a5ff1 allow soft interrupts to stop cp 2016-07-24 21:55:10 -07:00
payonel
aa422bf21a fix /bin/touch 2016-07-24 21:37:40 -07:00
payonel
367f268662 reduce RAM costs by delaying part of /lib/buffer 2016-07-24 21:22:54 -07:00
Florian Nücke
8eee825272 Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2016-07-24 20:13:52 +02:00
Florian Nücke
19fe850cae Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4
# Conflicts:
#	src/main/scala/li/cil/oc/server/component/traits/WorldAware.scala
2016-07-24 20:11:39 +02:00
Florian Nücke
ca5fa481fe Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9
# Conflicts:
#	src/main/scala/li/cil/oc/server/component/traits/WorldAware.scala
2016-07-24 20:10:40 +02:00
Florian Nücke
03947ebc02 Avoid event handlers throwing up making inv controller not work. 2016-07-24 20:06:23 +02:00
Florian Nücke
dac3aac519 Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.10 2016-07-24 18:23:50 +02:00
Florian Nücke
771107c3cb Merge branch 'master-MC1.9.4' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2016-07-24 18:22:09 +02:00
Florian Nücke
add5bba4a0 Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2016-07-24 18:21:46 +02:00
Florian Nücke
05b7aa994c Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.8.9 2016-07-24 18:21:23 +02:00
Florian Nücke
67d595196c Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9 2016-07-24 18:21:04 +02:00
payonel
f4c18cc266 small fixes for term, cp, df, mv, rm, and init
make term resize event handler safer by adding it to each window. this will have the same memory cost, but is more reliable

fix cp path check for copying dirs into themselves. there was a bug where /path/a_dir looked like a parent of /path/a_dir_2

cleanup df format by not adding padding on the far right side of the table

make init event handler slightly more efficient by waiting specifically for the init signal, rather than a specified amount of time

mv had some weird problems with missing files or empty quoted args - fix and added unit tests

rm force should have no prompt and always return success
2016-07-24 08:14:18 -07:00
payonel
b1f20243d8 Merge branch 'master-MC1.8.9' of github.com:MightyPirates/OpenComputers into master-MC1.9.4 2016-07-22 22:48:01 -07:00
payonel
192c545d1c Merge branch 'master-MC1.7.10' of github.com:MightyPirates/OpenComputers into master-MC1.8.9 2016-07-22 22:43:54 -07:00