4246 Commits

Author SHA1 Message Date
Florian Nücke
d3aae03d88 moved things into separate folders to separate own source code from apis and libs; added a program to allow downloading files from the internet (called wget, although it's nowhere close) 2014-02-02 20:07:10 +01:00
Florian Nücke
abc3e4692a renamed an nbt tag used for server->client sync which may help resolve #111 (though it shouldn't, really); catching any errors generated when parsing tile entity description packets and logging them, which should avoid weird things like #111 crashing the game 2014-02-02 14:16:07 +01:00
Florian Nücke
190d8e1bab fixed bug in filesystem.mounts; autorun scripts can now also be called .autorun or .autorun.lua, to allow 'hidden' autorun scripts; filesystems do no longer count towards the component limit. this is to make utility filesystems feasible; internet card now also attaches a file system that contains internet library and specific programs (pastebin for now); robot also attaches an additional file system that contains robot specific library and programs (dig for now) 2014-02-02 13:49:45 +01:00
Florian Nücke
19d61646c8 fixed (harmless) warnings when resuming a stopped computer after loading ('missing filesystem' -> rom and tmp were not saved while stopped); fixed weird assertion error on client; making robot proxies' nodes use the same address as the robot's internal node. this is safe since the two networks will never be connected, and makes it more intuitive to interact with robots from the outside. 2014-02-01 20:43:33 +01:00
Florian Nücke
36612ffcaf robots' turn animation should be less jerky now; fixed issue where robots were not rendered on client for a while when moving from a chunk only loaded on the server to a chunk also loaded on the client 2014-02-01 19:14:18 +01:00
Florian Nücke
30388af26c decreased max robot experience, a lot, meaning they'll reach max level in a more reasonable amount of time now. also, robots now gain a tiny bit of xp by moving, and a bunch of xp when breaking ore blocks that give xp, to motivate "normal" use over just sitting there, breaking and placing the same block over and over to level up; adjusted adapter block to be more generic when detecting blocks, avoids issues where metadata of blocks is used for visuals (e.g. rotation) instead of sub-blocks. 2014-02-01 19:10:40 +01:00
Florian Nücke
847b4e820c fixed redstone i/o block getting derped when upgrading from 1.1 v1.2.0-pre1 2014-01-31 16:25:32 +01:00
Florian Nücke
636f4df433 fixed abstract bus cards being converted to memory when upgrading from OC 1.1 2014-01-31 16:07:14 +01:00
Florian Nücke
c96cc4ff0f made names of items more homogenous. no more prefixes, writing tier as postfix where necessary, added tier to name of memory and hard drives 2014-01-31 15:51:41 +01:00
Florian Nücke
6bac89ae2f fixed error messages in computers not being saved; showing additional information when using analyzer on servers (same as for computers now); increased default power tick rate a bit and increased default buffer size for power distributors (incl. server rack) to avoid servers running out of power that easily 2014-01-31 14:43:59 +01:00
Florian Nücke
37f8c4bfd1 fixed power converter not being properly cleaned up when broken; Lua: buffer won't allow writing after having been closed anymore; fixed server picking with analyzer (was upside down) 2014-01-31 14:20:39 +01:00
Florian Nücke
1aafa9657a updated ue api; added remark on single quotes to sh manpage 2014-01-31 13:02:42 +01:00
Florian Nücke
121dce4a93 moved shell alias initialization to extra file; fixed edit manual (wrong parameter char) 2014-01-31 00:45:37 +01:00
Florian Nücke
ef665390b4 fixed robots not storing their orientation. and redstone output. since the the save code cleanup. herp derp. 2014-01-31 00:17:25 +01:00
Florian Nücke
e03bede4c3 removed superfluous (and potentially derping) % from package module 2014-01-30 23:31:59 +01:00
Florian Nücke
0884a4590d more ingame help topics, closing #15 (for now) 2014-01-30 21:16:42 +01:00
Florian Nücke
48a41440c6 primitive ingame help system, still needs some more topics 2014-01-30 19:57:58 +01:00
Florian Nücke
11b9d50f08 removed usages of client side only methods from wireless network logic (screw the Vec3 class, seriously), fixes #107 2014-01-30 15:34:48 +01:00
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