1028 Commits

Author SHA1 Message Date
Florian Nücke
1f333cd7e7 piping data between programs seems to work. needs a lot of testing, though. 2014-01-30 15:10:11 +01:00
Florian Nücke
588d1a7dec basic redirect support in shell, changed programs to use io.write instead of print to support their output being redirected; arguments in the shell can now be quoted 2014-01-30 12:50:08 +01:00
Florian Nücke
3c1eaf165b properly handling errors in module loaders in package library (avoid lingering entry in "loading" table); throwing an error in robot library if its not a robot; automatically trying to load modules in interpreter (somewhat experimental) 2014-01-29 20:37:41 +01:00
Florian Nücke
6df7c8aed1 renamed luaj 3 package because it collides with luaj version 2 (really, guys? really?) which borks cc computers 2014-01-29 19:51:05 +01:00
Florian Nücke
ffa5a3c2d9 fixed creating symlinks and mounts in real folders to "break" the file system (in that the virtual node overwrote the real one), virtual and real fs nodes/directories should now mix well. 2014-01-29 19:16:22 +01:00
Florian Nücke
9cc0a70643 analyzer prints info on attached components; extracted program loading part from shell.execute into shell.load and changed running program tracking to be hierarchical based on coroutine ownership; using _PROMPT global in lua interpreter if set 2014-01-29 16:10:14 +01:00
Florian Nücke
60d19c34c5 made the old recipe set the hardmode set and created a new, less complex default set. flattens recipes by not following an "upgrading" mechanic - i.e. tier 3 gpu doesn't require a tier 2 gpu and so on. also makes recipes a lot cheaper for the most part, not much to be done about that, but fits better with the simplicity anyway. 2014-01-29 13:24:59 +01:00
Florian Nücke
4da0b3acbf displaying a short help message when starting the lua interpreter. 2014-01-28 20:32:08 +01:00
Florian Nücke
4eff921f05 Merge pull request #105 from P-T-/master
make debug.traceback available in the sandbox
2014-01-28 11:09:17 -08:00
PixelToast
a6f731856c added debug.traceback 2014-01-27 18:50:27 -05:00
Florian Nücke
a88f8443b1 made loadfile standard lua conformant in that it skips the first line in a file if it starts with a # 2014-01-28 00:08:07 +01:00
Florian Nücke
982624503d added a bit of noise to the capacitor again, to make it fit better with the other blocks 2014-01-27 22:37:18 +01:00
Florian Nücke
54652f4e02 Merge branch 'master' of https://github.com/MightyPirates/OpenComputers 2014-01-27 22:11:50 +01:00
Florian Nücke
d9208461bb added a way to query the environments of running programs, returned as a second result from shell.running; made use of that in load and io.input/output to make them program sensitive 2014-01-27 22:11:25 +01:00
Florian Nücke
5ddbfb33af Merge pull request #104 from P-T-/master
improved capacitor textures
2014-01-27 11:10:51 -08:00
Florian Nücke
fc66b63ffe small fix to package lib; nicer error logging in autorun (location in lib shouldn't be in the message) 2014-01-27 18:25:52 +01:00
Florian Nücke
16a6f69853 wrapped some more functions to avoid LuaErrors being pushed to lua (i.e. userdata); added an init signal that's pushed after components are initialized, queuing autoruns until that arrives, makes autorun scripts less weird when rebooting (not having to do timer stuff in there e.g.) 2014-01-27 17:58:21 +01:00
Florian Nücke
fa6dae03eb lua.lua now behaves closer to vanilla Lua's interpreter, meaning entering an expression like 1+1 now gives an error, you'd have to write =1+1 to have the result of the expression returned and printed. 2014-01-27 16:36:13 +01:00
Florian Nücke
6a860927c6 split read and write buffers in buffer module (problematic for read/write buffers, e.g. for sockets); automatically flushing the write buffer when reading now 2014-01-27 14:59:38 +01:00
PixelToast
5bb699b45b gradient 2014-01-27 08:46:15 -05:00
PixelToast
47d736b0c5 lighter 2014-01-27 08:39:15 -05:00
PixelToast
83a11d88f0 improved capacitor textures 2014-01-27 08:32:51 -05:00
Florian Nücke
fae8200ea9 underped settings 2014-01-27 14:08:18 +01:00
Florian Nücke
79136733a9 Merge branch 'master' of https://github.com/MightyPirates/OpenComputers 2014-01-27 13:46:49 +01:00
Florian Nücke
d1ac04a7b4 added setting whether to pass the username along with input events (touch, key_x, walk); passing along the mouse button as a parameter for mouse events 2014-01-27 13:46:01 +01:00
Florian Nücke
8d0db46122 Merge pull request #102 from Wobbo/master
Fixed package module to propagate erros from loading module
2014-01-27 04:15:06 -08:00
Wobbo
a0b5f3ef53 Fixed package module to propagate erros from loading module 2014-01-27 13:09:25 +01:00
Florian Nücke
6ff3ffe95e adjusted color of internet card to match new tier 2014-01-27 01:08:57 +01:00
Florian Nücke
ee239fb3e2 cleaned up pastebin.lua a bit (indentation, general formatting) and fixed one or two bugs, as well as adding support for custom config and handling failed uploads ("Bad API request ...") 2014-01-27 00:24:39 +01:00
Florian Nücke
a78eb10804 Merge branch 'master' of https://github.com/MightyPirates/OpenComputers 2014-01-26 22:19:28 +01:00
Florian Nücke
2d7dcd984e Merge pull request #101 from Vexatos/patch-1
add support for uploading and directly running programs using pastebin.lua
2014-01-26 13:19:44 -08:00
Vexatos
ec9b16d613 Update pastebin.lua 2014-01-26 20:53:58 +01:00
Florian Nücke
a85bf6c5e1 made internet card tier 2 2014-01-26 20:49:03 +01:00
Florian Nücke
9c023a7ec0 underped socket read, was doing what the buffer already does but worse 2014-01-26 20:35:00 +01:00
Florian Nücke
68d0955ae2 fixed flushing in internet api 2014-01-26 20:23:37 +01:00
Florian Nücke
fb4d28bdae allow passing ips for internet card tcp socket opening 2014-01-26 19:26:26 +01:00
Florian Nücke
b8a448687c Merge branch 'master' of https://github.com/MightyPirates/OpenComputers 2014-01-26 19:07:52 +01:00
Florian Nücke
2ffa9db7a5 fixed internet api; shell.execute defaults to current env if none is specified; fixed texture load errors in preloader 2014-01-26 19:07:11 +01:00
Florian Nücke
feab38f468 Merge pull request #100 from Vexatos/patch-1
CPU -> Hauptprozessor in de_DE.lang
2014-01-26 08:47:20 -08:00
Vexatos
a2d4eb87af Update de_DE.lang 2014-01-26 17:19:25 +01:00
Johannes Lohrer
6e27dc1803 changed PCB in gregtech recipe to use sulfuric acid instead of grog
don't display items with recipe output 0 in item list
2014-01-26 17:05:20 +01:00
Vexatos
322e60f571 Well, this is German grammar! (Updated de_DE.lang) 2014-01-26 16:04:45 +01:00
Florian Nücke
8df1fdf5eb Merge branch 'master' of https://github.com/MightyPirates/OpenComputers 2014-01-26 15:39:36 +01:00
Florian Nücke
94c3cc2286 localized computer error messages and added explicit message when no cpu is installed, closes #96; cleaned up internet card's http logic a bit (since it should only ever be used by one computer at a time anyway it can be simpler than it was), and trying to persist its state (i.e. http request gets restarted after load automatically if it was running) 2014-01-26 15:39:06 +01:00
Florian Nücke
486b5f484d Merge pull request #99 from Vexatos/patch-1
Update shell.lua
2014-01-26 05:33:41 -08:00
Vexatos
7c4a539cb6 Update shell.lua 2014-01-26 11:09:55 +01:00
Florian Nücke
31f373de80 fixed wrong status bar message when opening file in edit 2014-01-25 22:52:22 +01:00
Florian Nücke
fb9d76d6f2 fixed internet library's request function, now properly waiting for first response event to tell whether it was a success or not, and not throwing from within the actual iterator function 2014-01-25 22:49:52 +01:00
Florian Nücke
f4a9d3dcc0 typo in german localization; adjusted other localizations for new analyzer message format 2014-01-25 22:01:24 +01:00
Florian Nücke
543ce31db4 Merge pull request #97 from Vexatos/patch-1
Updated de_DE.lang
2014-01-25 12:59:01 -08:00