Daniel Ratcliffe
4f3be7963e
Merge pull request #304 from Wilma456/windowcheck
...
Add checks to window API
2017-06-04 13:57:51 +01:00
Wojbie
60e9ce1b68
Fix to redirection game.
...
Was not testing for correct file type. Game ended after first lvl cause it was looking from wrong name of file.
2017-06-04 14:51:49 +02:00
Wilma456
c9bf463419
Add checks to window API
2017-06-04 12:34:40 +02:00
Wojbie
a90e2a8bfd
Fix to setPaletteColour in rgb8 mode.
...
Was not saving color if called using rgb8 mode.
2017-06-04 11:59:30 +02:00
Daniel Ratcliffe
3828750ade
Merge pull request #302 from Wojbie/Wget-binary-mode
...
Switch wget to use binary mode.
2017-06-03 21:32:45 +01:00
Wilma456
fd842be37f
Remove second fix
2017-06-03 16:30:35 +02:00
Wojbie
0cc65adff9
Switch wget to use binary mode.
...
Allows wget to download all types of files not only text ones.
2017-06-03 13:19:57 +02:00
Wilma456
d6e4323f17
Fix Bug with term.setCursorPos
...
I fixed 2 Bugs:
1. If you call this function, without 2 numbers, you get a error in the window API and not in your Program
2. If you call, this function with 2 numbers lower then 1 (e.g. term.setCursorPos(0,0) ), CraftOS will hang forever and need to press Ctrl+R or rejoin the world.
2017-06-02 17:35:18 +02:00
Daniel Ratcliffe
114c49e3f6
Merge pull request #291 from Wilma456/apis
...
Add multishell to apis program
2017-05-29 16:57:42 +01:00
Wilma456
9770f103ed
Add multishell to apis program
2017-05-29 15:55:45 +02:00
Wilma456
07ae332c24
Add fileextension for Paint ( #260 )
...
* Add fileextension for Paint
* Change extension to .nfp
* Add setting
2017-05-29 14:05:19 +01:00
Wilma456
99b5534099
Add setting for .lua extension ( #278 )
...
* Add setting for .lua extension
* Feedback from SquidDev
* Feedback from dan200
* All requested changes are done
* Better description
* Cleaner check
2017-05-29 13:21:27 +01:00
Daniel Ratcliffe
9f35d2a2b7
Merge pull request #282 from apemanzilla/contributors_task
...
Dynamically generate contributors list
2017-05-28 12:06:12 +01:00
Daniel Ratcliffe
7b182e32b8
Update credits.txt
2017-05-28 12:03:23 +01:00
MineRobber___T
3d9d54beef
Update credits.txt
...
Add url of github repo to credits.
2017-05-25 10:15:01 -04:00
apemanzilla
51b9f3ca3b
Use template instead of separate task
2017-05-24 13:20:46 -04:00
apemanzilla
5ff3ae6434
Add Gradle task to generate contributor list
2017-05-24 12:35:41 -04:00
Daniel Ratcliffe
e66f0d7033
Merge pull request #268 from Wilma456/credits
...
Add Contributors to credits.txt
2017-05-24 13:21:52 +01:00
Nephi (AKA Lupus590)
5f2446009d
mass file rename, left some files...
...
... as they are levels for nitrogenfingers goldrunner
2017-05-22 21:34:49 +01:00
Wilma456
19fc491532
Remove Ingamename and sort alphabetical
2017-05-22 17:18:11 +02:00
Lignum
0a2cb7442d
Merge branch 'master' into fix-speakers
2017-05-20 13:23:12 +02:00
Wilma456
df2fe7c445
Add Contributors to credits.txt
2017-05-20 13:13:08 +02:00
Daniel Ratcliffe
6c85ca071f
Merge pull request #266 from Wilma456/leveldat
...
Add .dat extension to all redirection levels
2017-05-20 11:57:26 +01:00
Wilma456
b31518cfb5
Add .dat extension to all redirection levels
2017-05-20 12:51:01 +02:00
Wilma456
e8ecf5dcd5
Add .txt extension to all help files
2017-05-20 12:20:27 +02:00
Lignum
c8697d9158
nTicks -> nPitch in speaker help file
...
Not sure why this was called nTicks, but it had nothing to do with ticks.
2017-05-19 20:27:08 +02:00
Lignum
387fc13322
Pocket Computer upgrde -> Pocket Computer upgrade
2017-05-19 19:19:29 +02:00
Lignum
b30191638f
Ensure the existence, not existance
2017-05-19 19:17:23 +02:00
Lignum
95991694e0
Load modules, not modiles
2017-05-19 19:16:50 +02:00
Daniel Ratcliffe
9b6d335c5d
small fix
2017-05-19 14:13:08 +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
05e838ca5a
Strip ".lua" from program names in multishell title bar
2017-05-17 19:05:45 +01:00
Wilma456
1d905963e9
Add .lua extension to all programs and startup
2017-05-17 16:28:43 +02: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
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
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
Wilma456
68f4611abc
Add Default Settings
2017-05-16 20:35:46 +02:00
Daniel Ratcliffe
8c4331d15a
Added checks to window.setTextColor and window.setBackgroundColor
2017-05-16 19:23:08 +01:00
SquidDev
6ccffe9742
Refactor the filesystem and HTTP code
...
- Move the encoding/decoding from the Filesystem implementation to the
individual handles.
- Move each handle into an core.apis.handles package from the main fs
API.
- Move the HTTP response to inherit from these handles.
- Allow binary handles' read function to accept a number, specifying
how many characters to read - these will be returned as a Lua string.
- Add readAll to binary handles
- Allow binary handles' write function to accept a string which is
decoded into the individual bytes.
- Add "binary" argument to http.request and friends in order to return
a binary handle.
- Ensure file handles are open when reading from/writing to them.
- Return the error message when opening a file fails.
2017-05-13 22:47:28 +01:00
Wilma456
516bd8cf03
Make shell.programs filter .lua extension
2017-05-13 13:37:18 +02:00
SquidDev
9908f8c289
Do not insert empty or duplicate entries into shell history
...
If a string is empty or the same as the previous command then it will
not be inserted into history.
2017-05-11 21:01:23 +01:00
Lignum
259fe4b6b4
Remove unnecessary shell.resolveProgram call
2017-05-11 18:12:58 +02:00
Lignum
8acf43256c
Don't sort startup files
...
fs.list is already sorted, making this unnecessary.
2017-05-10 23:27:07 +02:00
Lignum
962e419098
Allow having a startup directory and a startup.lua file simultaneously
2017-05-10 23:21:04 +02:00
Lignum
2e7c9b163d
Enable the use of startup directories
2017-05-10 23:02:08 +02:00
ObloxCC
922818dfa5
Add setPaletteColor and rgb8 to help files ( #214 )
...
* Added rgb8 help
* Update colours
* Added rgb8 help
* Added setPaletteColor help
* Added setPaletteColor help
* Added setColorPalette and rgb8 to change log
* Fixed formatting
* Fixed formatting
* Fixed formatting
* Fixed formatting
* Added changes to change log
* Added changes to whatsnew
* Fixed changelog
* Fixed whatsnew
* Added setPalatteColor
* Fixed Palette spelling
* Added space after 'b'
* Added getPaletteColor
* Ddded getPaletteColor
* Added getPaletteColor()
* Added getPaletteColor
* Update changelog
* Added getPaletteColor
2017-05-07 22:24:32 +01:00
Daniel Ratcliffe
008663c0e1
Lua fix
2017-05-07 17:42:39 +01:00
Daniel Ratcliffe
38e09920fa
Lua fix
2017-05-07 17:40:23 +01:00
Daniel Ratcliffe
6fba381a4e
Merge pull request #211 from Lignum/shell-run-lua
...
Make shell.resolveProgram pick up on *.lua files
2017-05-07 17:33:44 +01:00
Daniel Ratcliffe
e063f5a6b8
Merge pull request #197 from Lignum/colour-palettes
...
Modifiable terminal colour palette
2017-05-07 17:31:14 +01:00
Daniel Ratcliffe
0b8b39ced0
colours.rgb8(r,g,b) and colours.rgb8(c) are now the inverse of each other
2017-05-07 17:29:59 +01:00
Daniel Ratcliffe
ebb7d7a8d9
Enabled window.setText/BackgroundColour with no grey colours. Some small optimisations
2017-05-07 17:19:21 +01:00
Lignum
c6abf0b890
Make shell.resolveProgram pick up on *.lua files
2017-05-07 16:21:15 +02:00
Lignum
c10e1ba78c
Get rid of setPaletteColour table overload
2017-05-07 15:04:09 +02:00
Lignum
70c2f50aa8
Un-break the non-table setPaletteColour overload
2017-05-07 12:55:16 +02:00
Lignum
4e55e03c8b
Don't sync the whole palette in window.setPaletteColour
2017-05-07 12:46:23 +02:00
Lignum
156e74b69c
setColour -> setPaletteColour
2017-05-07 12:40:31 +02:00
SquidDev
6020cd55b1
Added documentation and updated changelog/whatsnew
2017-05-07 08:09:36 +01:00
Daniel Ratcliffe
ff16868dd8
Merge pull request #206 from Lignum/update-craftos-version
...
Set CraftOS version to 1.8
2017-05-07 00:41:58 +01:00
Lignum
287c6f172c
Allow passing RGB8 hex values to term.setColour
2017-05-07 01:16:48 +02:00
Daniel Ratcliffe
cad10fa2c7
Fixed incorrectness in os.day(). Added os.epoch()
2017-05-06 23:56:28 +01:00
Lignum
1cc403191f
Add colours.rgb8(r, g, b)/colours.rgb8(hex)
2017-05-07 00:13:36 +02:00
Lignum
2c7ee1d7e7
Bump CraftOS version to 1.8
2017-05-06 23:26:45 +02:00
Daniel Ratcliffe
4b4e041f6f
Merge branch 'master' into master
2017-05-06 22:25:46 +01:00
Lignum
ac2382a861
Add setColour overload with table parameter
2017-05-06 20:22:16 +02:00
Tim Ittermann
e0e81a9b18
Put time functions into the OS API
2017-05-06 14:24:48 +02:00
Lignum
bfa5f6ec9c
Make palettes work properly with the window API
2017-05-05 20:23:57 +02:00
Lignum
088dab799e
Network the colour palette
...
Which means it actually has a visible effect! 🎉
2017-05-05 17:21:53 +02:00
Lignum
b0f0d8fd71
Add getColour/setColour to the window api
2017-05-05 16:14:13 +02:00
SquidDev
933bdcc6b7
Make monitor text glow in the dark
2017-05-04 22:24:39 +01:00
Daniel Ratcliffe
2a0556fa4c
Merge pull request #185 from SquidDev-CC/hotfix/unpack-length
...
Manually specify the number of values to unpack
2017-05-04 21:05:14 +01:00
SquidDev
bd14223ea8
Manually specify the number of values to unpack
...
table.unpack will often stop at the first nil value, meaning some event
arguments may be discarded. By storing the number of arguments through
table.pack, and then using that count when unpacking, we can ensure all
values are returned/resumed with.
2017-05-04 10:49:41 +01:00
SquidDev
6b6829e22b
Use tonumber when validating message format
2017-05-03 18:39:32 +01:00
SquidDev
67eecd4b1c
Use tonumber instead of checking type
2017-05-03 18:21:14 +01:00
SquidDev
7e5970673f
Ensure GPS coordinates are numbers
...
Fixes #138
2017-05-03 16:35:45 +01:00
SquidDev
65ef8a0937
Add config GUI description to changelog/whatsnew
2017-05-02 13:35:05 +01:00
SquidDev
ae04070915
Update documentation to include HTTP API changes
2017-05-01 18:05:04 +01:00
SquidDev
29952d5b4f
Various extensions to the HTTP API
...
- A response is returned on the event of a HTTP error (such as 404).
- Responses include the response headers.
2017-05-01 17:35:06 +01:00
Daniel Ratcliffe
e85cdacbc5
ComputerCraft 1.79 initial upload
...
Added the complete source code to ComputerCraft 1.79 for Minecraft
1.8.9, plus newly written README and LICENSE files for the open source
release.
2017-05-01 14:32:39 +01:00