Wilma456
bcf79165f9
Merge pull request #455 from Wilma456/ComputerCraft-1/fileread
...
Add read() to Filehandle
2017-11-14 23:48:38 +00:00
Steven Dirth
9b2a50cdfc
Merge pull request #362 from KingofGamesYami/ComputerCraft/featurecommand-event
...
Command Event
2017-11-14 23:27:11 +00:00
Wilma456
c5d99db654
Merge pull request #411 from Wilma456/ComputerCraft-1/copyfixup
...
Fix Bug in copy.lua, mkdir.lua and rename.lua (updated)
2017-11-14 23:24:11 +00:00
SquidDev
5253ab3e58
Merge pull request #463 from josephcsible/ComputerCraft/notnull
...
Remove some unnecessary null checks
2017-11-14 22:58:36 +00:00
SquidDev
11d8253d9c
Merge pull request #464 from josephcsible/ComputerCraft/unnecessary
...
Remove unnecessary code
2017-11-14 22:57:36 +00:00
SquidDev
bc2b481918
Merge pull request #289 from Wojbie/ComputerCraft/Speaker-pocket-computer-light
...
Add pocket computer light support to Speaker.
2017-11-14 22:46:01 +00:00
SquidDev
540e2e25aa
Merge pull request #163 from SquidDev-CC/ComputerCraft/feature/cobalt
...
Replace LuaJ with Cobalt
2017-11-14 21:48:47 +00:00
SquidDev
845118e9e2
Merge pull request #218 from SquidDev-CC/ComputerCraft/feature/new-computer-thread
...
Rewrite the computer thread system
2017-11-14 21:33:20 +00:00
SquidDev
b2b8753ee7
Merge pull request #227 from SquidDev-CC/ComputerCraft/feature/improved-cable
...
Improving cable/wired modem interactions
2017-11-14 21:32:53 +00:00
SquidDev
060fb21bdb
Merge pull request #298 from SquidDev-CC/ComputerCraft/feature/luaj-bit32
...
Replace BitAPI with a LuaJ implementation of bit32
2017-11-14 21:32:19 +00:00
SquidDev
ef008709c7
Merge pull request #402 from SquidDev-CC/ComputerCraft/feature/shell-resolution
...
Tweak shell program resolution slightly
2017-11-14 21:31:10 +00:00
SquidDev
09da119f27
Merge pull request #451 from SquidDev-CC/ComputerCraft/hotfix/disk-drive-stop
...
Use custom packet to play records, instead of using block events
2017-11-14 21:30:52 +00:00
SquidDev
f8487d1e1c
Merge pull request #453 from SquidDev-CC/ComputerCraft/hotfix/eager-remove-te
...
Remove tile before calling destroy
2017-11-14 21:15:47 +00:00
SquidDev
b6f773ffce
Merge pull request #457 from SquidDev-CC/ComputerCraft/hotfix/computer-reload
...
Turn on ServerComputer instances if they have timed out
2017-11-14 21:14:49 +00:00
SquidDev
c8673473ef
Merge pull request #476 from SquidDev-CC/ComputerCraft/hotfix/printer-clear
...
Fix the printer overwriting the current page
2017-11-14 21:14:10 +00:00
SquidDev
3829815756
Merge pull request #479 from SquidDev-CC/ComputerCraft/feature/network-optimisations
...
Only send terminal state to interacting players
2017-11-14 21:13:17 +00:00
SquidDev
0bd0f4d313
Prefix all loaded strings with "="
...
Whilst this is not consistent with normal Lua, this is required in order
to remain compatible with LuaJ.
2017-11-14 18:41:01 +00:00
SquidDev
73873eb8cb
Change timeout system to occur on instructions instead of API calls
...
This means loops which do not touch CC specific methods will still
produce an error, rather than terminating the computer.
2017-11-14 18:41:00 +00:00
SquidDev
0420b6c831
Remove string metatable protection
...
The string metatable and environment are no longer shared, so this
sandboxing is no longer required.
2017-11-14 18:41:00 +00:00
SquidDev
bb741975b7
Migrate LuaJLuaMachine to use Cobalt
2017-11-14 18:41:00 +00:00
SquidDev
d9d025e33b
Add simple JEI integration
...
- Ensure pocket computers and turtles are distinguished by upgrades and
computer family.
- Ensure disks are distinguished by colour.
- Hide treasure disks from the list
2017-10-25 13:40:35 +01:00
SquidDev
53f16782ab
Only send terminal state to interacting players
...
This splits the computer state (blinking, label, etc...) and terminal
state into two separate packets. When a computer changes, the computer
state is sent to all players and the terminal state is sent to players
who are curerntly using the computer.
This reduces network usage by a substantial amount.
2017-10-12 10:45:38 +01:00
SquidDev
bfb4f88304
Fix the printer clearing the previous page
...
When printing on top of an already printed page, the previous contents
should be preserved. However, this did not occur as the stack had been
shrunk and so the item was no longer considered a printout.
Closes SquidDev-CC/ComputerCraft#2
2017-10-06 12:04:49 +01:00
SquidDev
fb6d65ec23
Invalidate the network when the peripheral is removed
...
Fixes #83
2017-10-04 21:49:41 +01:00
SquidDev
6b364052c7
Only render breaking animation on the part being hit
2017-10-04 21:49:40 +01:00
SquidDev
7169abcd7b
Ensure the modem's peripheral is incorrectly invalidated when changed
2017-10-04 21:49:40 +01:00
SquidDev
75ccfbdb3d
Migrate cable core block state to an enum
...
This allows us to render the cable "core", as was done pre-1.8.
2017-10-04 21:49:40 +01:00
SquidDev
728644c104
Initial attempt at improving cable/wired modem interactions
...
- Cable and modem can be broken individually
- Ray tracing will go through "holes" in the cable.
- Pick block will determine which part you are looking at.
- Selection box will only highlight the region you are looking at:
modem or cable.
2017-10-04 21:49:37 +01:00
Joseph C. Sible
80ec54eaf6
Remove unnecessary code
...
- Remove unnecessary casts
- Use the diamond operator where possible
- Remove "throws" declarations that aren't actually thrown
- Remove unused local variables
- Remove unused imports
- Remove redundant superinterfaces
2017-09-24 01:23:29 -04:00
Joseph C. Sible
9e4ae3a494
Remove some unnecessary null checks
...
We know turtle can't be null in any of these places, since in preceding code,
we called methods on it, so we would have gotten a NullPointerException then
and never gotten here if it were null.
2017-09-24 01:00:55 -04:00
Daniel Ratcliffe
19e4c03d3a
Merge pull request #456 from Wilma456/ioerror
...
Set errorlevel for "Unsupported format" to 2
2017-09-22 13:20:34 +01:00
SquidDev
01f5d006fc
Fix BlockFaceShape not being overridden for turtles and peripherals
...
This meant one could perform various illogical actions to
non-full-blocks, such as connecting fences and placing paitings.
We also modify the behaviour of isOpaqueCube and isFullCube for
peripherals, only returning false for the case of modems and cables.
2017-09-18 08:33:40 +01:00
SquidDev
cd6b076efe
Turn on ServerComputer instances if they have timed out
2017-09-16 20:09:51 +01:00
Wilma456 (Jakob0815)
f8193a4d23
Set errorlevel for "Unsupported format" to 2
2017-09-16 16:11:36 +02:00
SquidDev
60305cd106
Remove tile before calling destroy
...
This ensures that the tile will updating neighbouring blocks, and so
the destroyed tile will not be wrapped as a peripheral.
2017-09-15 17:40:53 +01:00
Daniel Ratcliffe
1c8480a329
Merge pull request #441 from SquidDev-CC/hotfix/paintutils-read
...
Fix a non-existent method being used in paintutils
2017-09-13 17:10:07 +01:00
Daniel Ratcliffe
5219648128
Merge pull request #445 from SquidDev-CC/hotfix/container-backgrounds
...
Fix background and tooltips not rendering within containers
2017-09-13 00:43:10 +01:00
Bomb Bloke
70c6f3498b
Correct minor typo in rednet.receive
...
Caused attempts to set a time-out value to throw "expected number, got number".
2017-09-13 01:06:59 +10:00
SquidDev
afec3743f3
Use custom packet to play records, instead of using block events
...
Breaking a disk drive was not stopping the record being played as the
block event never reached the client. Instead, we send a custom packet
which starts/stops music at a given location.
We also remove all the plumbing for eventReceived/sendBlockEvent from
the generic block/tile classes, as they are no longer used.
Closes #443
2017-09-12 15:46:46 +01:00
SquidDev
baa8993999
Fix background and tooltips not rendering within containers
...
The methods to draw these now have to be explicitly called, hence not
showing up.
2017-09-12 15:05:32 +01:00
SquidDev
12abd4292e
Fixes a non-existent method being used in paintutils
2017-09-12 09:52:21 +01:00
Daniel Ratcliffe
1fdfcdb5f2
Merge pull request #378 from MineRobber9000/patch-3
...
Add ability to load raw data from a string [paintutils]
2017-09-11 13:28:27 +01:00
Daniel Ratcliffe
6c32d8a57e
Merge pull request #394 from Wojbie/bugfix/Filesystem-dots-#35
...
Modify logic behind ... and more in file path.
2017-09-11 13:27:13 +01:00
SquidDev
5f323a85a7
Rethrow/retrigger interrupted status where appropriate
2017-09-10 22:08:08 +01:00
SquidDev
85c556d324
Rewrite the computer thread system
...
This makes a couple of significant changes to the original system, to
reduce the number of threads created and allow for multiple threads in
the future. There are several notable changes from the original
implementation:
- A blocking queue is used for the main task queue queue. This removes
the need for the "monitor" variable and allows for multiple threads
polling this queue in the future.
- The thread used to execute tasks is "cached" between tasks,
significantly reducing the number of threads which need to be
created. If a task needs to be stopped then the thread is then
terminated and a new one constructed, though this rarely happens.
2017-09-10 22:08:08 +01:00
Daniel Ratcliffe
61ff91f237
Merge pull request #316 from SquidDev-CC/feature/minecraft-1.12.2
...
Update to 1.12. Bam!
2017-09-10 20:52:26 +01:00
Wojbie
6aa4a385a3
Requested changes to logic behind ... in file path.
2017-09-10 17:51:29 +02:00
SquidDev
a2da6d9601
Pass the original block in redstone propagation
...
notifyBlockOfStateChange and notifyNeighborsOfStateExcept expect the
block which caused the redstone update, rather than the neighbor block.
Fixes #393
2017-09-10 09:32:02 +01:00
Daniel Ratcliffe
88b1124204
Merge pull request #399 from SquidDev-CC/hotfix/http-encoding
...
Fix setting an invalid content-encoding header
2017-09-10 00:28:39 +01:00
Daniel Ratcliffe
51644e32ed
Merge pull request #415 from Wilma456/palletecheck
...
Add valid check to term.setPaletteColor/getPaletteColor
2017-09-10 00:12:46 +01:00