Daniel Ratcliffe
f3c291cb4d
Merge pull request #205 from SquidDev-CC/feature/packet-network-api
...
Expose wireless network in the public API
2017-05-18 23:57:44 +01:00
SquidDev
d76ce22db7
Split transmit into two separate methods
...
This removes the interdimensional and range options from the packet
and ensures they are provides them from the transmit* methods instead.
2017-05-18 23:50:14 +01:00
Daniel Ratcliffe
6d590cee3b
Merge pull request #258 from Wojbie/Speaker-volume-fix
...
Speaker max hearable range limit
2017-05-18 22:32:38 +01:00
Wojbie
af07a78f76
Speaker rage limit
...
Limit max volume of speaker to volume of normal noteblock.
2017-05-18 23:12:55 +02:00
Daniel Ratcliffe
757b1efd7e
Merge pull request #255 from SquidDev-CC/feature/add-package-loaded
...
Include standard Lua libraries in package.loaded
2017-05-18 00:20:46 +01:00
SquidDev
d19bc53cb4
Include standard Lua libraries in package.loaded
...
PUC Lua includes all builtin libraries in the package.loaded table.
2017-05-18 00:15:21 +01:00
Daniel Ratcliffe
61b2ed36a9
Reworked how shell creates environments. Implemented require
...
"shell" now runs each program in a new lua environment, instead of
sharing that lua environment between all programs launched under a one
shell. Said environment now includes an implemenation of "require" and
the "package" API, so that programs can require modules into that
environment.
This means that programs can require in libraries without polluting the
global namespace, and without breaking the virtual computer model, as
each program has it's own set of requires, which are discarded when the
program ends.
2017-05-17 23:43:44 +01:00
Daniel Ratcliffe
4fb93853ce
Running "edit foo" will now create "foo.lua" if "foo" does not exist
2017-05-17 22:47:39 +01:00
Daniel Ratcliffe
6e6b8e7eef
Made os.loadAPI handle .lua files. Renamed all builtin APIs to .lua
2017-05-17 22:47:13 +01:00
Daniel Ratcliffe
50a4a961e5
Pressing tab in "edit" now inserts 4 spaces instead of 2, backspace now deletes them
2017-05-17 19:48:27 +01:00
Daniel Ratcliffe
f5edb32be9
Replaced tabs with spaces in all lua files
2017-05-17 19:48:27 +01:00
Daniel Ratcliffe
b86708aaf8
Merge pull request #253 from SquidDev-CC/hotfix/empty-files
...
Fix files not writing data when closed
2017-05-17 19:35:26 +01:00
SquidDev
5cf581e6c9
Fix files not writing data when closed
...
As the raw stream was being provided to the parent class, buffered data
was not written, resulting in empty files. This ensures the buffered
reader/writer is the one which is closed.
2017-05-17 19:25:13 +01:00
Daniel Ratcliffe
05e838ca5a
Strip ".lua" from program names in multishell title bar
2017-05-17 19:05:45 +01:00
Daniel Ratcliffe
25a18ee33a
Merge pull request #250 from Wilma456/luaex
...
Add .lua extension to all programs and startup (updated)
2017-05-17 18:13:56 +01:00
Wilma456
1d905963e9
Add .lua extension to all programs and startup
2017-05-17 16:28:43 +02:00
Daniel Ratcliffe
ebf8492198
Merge pull request #249 from SquidDev-CC/hotfix/speaker-server
...
Fixes speakers playing incorrect sounds on the server
2017-05-17 11:11:34 +01:00
SquidDev
12e61efd76
Fixes speakers playing incorrect sounds on the server
...
As a new SoundEvent was being created each time, the actual sound was
not in the registry, resulting in the sound -> id mapping yielding
incorrect values.
2017-05-17 08:00:14 +01:00
Daniel Ratcliffe
0a350077e9
Updated turtle speaker texture to match the style of the other turtle peripherals
2017-05-16 23:59:35 +01:00
Daniel Ratcliffe
19c8613dea
Better shell.programs() fix
...
Prevents duplicate entries
2017-05-16 23:34:53 +01:00
Daniel Ratcliffe
fb00698557
Merge pull request #239 from Wilma456/shellprog
...
Make shell.programs filter .lua extension
2017-05-16 23:00:14 +01:00
Daniel Ratcliffe
3d1eb830c7
Saner extension check
2017-05-16 22:59:39 +01:00
Daniel Ratcliffe
2bc72a883f
Merge pull request #228 from Lignum/startup-dir
...
Startup directories
2017-05-16 22:56:00 +01:00
Daniel Ratcliffe
c15fcd00ec
Merge pull request #248 from Cruor/master
...
Added help file for speakers
2017-05-16 22:55:43 +01:00
Cruor
cd2a51f816
Updated text... again...
2017-05-16 23:39:48 +02:00
Cruor
8b7c769ff9
Update speakers
2017-05-16 23:33:09 +02:00
Cruor
4101cb2dfb
Added help file for speakers
...
Added help file for speakers
2017-05-16 23:30:53 +02:00
Lignum
03794970ba
Merge master into startup-dir
2017-05-16 23:25:54 +02:00
Lignum
9d0afe9e18
Mention startup directories in whatsnew and changelog
...
Also makes the line endings in these files consistent to be LF only.
2017-05-16 23:22:34 +02:00
Daniel Ratcliffe
f833450a68
Changed permissions on deploy.sh
2017-05-16 21:57:57 +01:00
Daniel Ratcliffe
d6bf2c5dbc
Merge pull request #246 from SquidDev-CC/hotfix/at-stacked-block
...
Remove AT for Block.createStackedBlock
2017-05-16 21:38:49 +01:00
SquidDev
b5e75a86c8
Remove AT for Block.createStackedBlock
...
Access transformers do not propagate to sub classes, and so the access
transformer did not work here. Reverting to reflection fixes this issue.
2017-05-16 21:19:36 +01:00
Lignum
00943163c8
Replace type check with nil check
2017-05-16 21:53:50 +02:00
Lignum
eb9b7f3b8c
Ignore dirs inside startup directories
2017-05-16 21:50:35 +02:00
Daniel Ratcliffe
ba4b1e21fe
Merge pull request #238 from SquidDev-CC/feature/binary-handles
...
Refactor the filesystem and HTTP code
2017-05-16 20:02:34 +01:00
Daniel Ratcliffe
cd85a03429
Merge pull request #237 from Restioson/feature/speaker
...
[Peripheral] Speaker
2017-05-16 19:52:10 +01:00
Restioson
0113e7229f
Added speaker to whatsnew
2017-05-16 20:44:34 +02:00
Restioson
7e556acebc
Added Speaker to Changelog
2017-05-16 20:42:16 +02:00
Daniel Ratcliffe
aa8455e0b1
Merge pull request #245 from Wilma456/settings
...
Update Settings Help
2017-05-16 19:39:34 +01:00
Daniel Ratcliffe
2e22ca4ccf
Merge pull request #217 from SquidDev-CC/feature/logging
...
Add a basic logging system
2017-05-16 19:38:03 +01:00
Wilma456
68f4611abc
Add Default Settings
2017-05-16 20:35:46 +02:00
SquidDev
0e1135ed97
Disable peripheral logging by default
2017-05-16 19:35:07 +01:00
Daniel Ratcliffe
ebbdd29bd6
Merge pull request #243 from SquidDev-CC/feature/access-transformer
...
Replace reflection with access transformers
2017-05-16 19:25:10 +01:00
Daniel Ratcliffe
8c4331d15a
Added checks to window.setTextColor and window.setBackgroundColor
2017-05-16 19:23:08 +01:00
Restioson
4df4b91d09
Converted (!x == y) to x != y
2017-05-16 20:02:59 +02:00
Restioson
b28c565665
(Hopefully) addressed @dan200's concerns
...
Push your fix to thread safety if this doesn't cut it
2017-05-16 19:48:38 +02:00
SquidDev
efb0065ebd
Add config option to disable certain error messages
2017-05-16 15:59:09 +01:00
SquidDev
a0b6cbb671
Remove ILogger facade
...
Just use global Log4j logger on the ComputerCraft class.
2017-05-16 15:49:55 +01:00
SquidDev
44ba4069c1
Print stack traces/add logging messages in several places
...
This will hopefully make it easier to track down various issues which
might otherwise go unnoticed or provide little information.
The main areas modified are those that external APIs may provide values
for or interact with: various providers and ILuaObject/IPeripheral
implementations. However, we do also log in a couple of other places
which indicate a problem with this, or another, mod.
2017-05-16 15:49:55 +01:00
SquidDev
bdc438fc62
Add a basic logging system
...
This adds a common ILogger interface and two built-in loggers - one
which prints to stdout, the other using a Log4J logger. These are split
up as not to cause dependency issues for emulators.
The stdout logger is enabled by default, but the ComputerCraft mod class
will swap over to using FML's mod specific logger, which provides a more
consistent look with the rest of Minecraft.
2017-05-16 15:49:55 +01:00