- ComputerCraft | Programmable Computers for Minecraft
- → tesla1889's Content
tesla1889's Content
There have been 49 items by tesla1889 (Search limited from 10-February 22)
#168210 cclint - lua linter with cc-specified features
Posted by
tesla1889
on 15 March 2014 - 03:08 PM
in
APIs and Utilities
pretty ambitious from what i've read
i'm glad someone has implemented this
#166488 Hosting Blank Webpage
Posted by
tesla1889
on 28 February 2014 - 08:38 PM
in
Ask a Pro
write via http://www.your-url....data=some_value
read via http://www.your-url....some_identifier
then, in script.php, get the input and generate the appropriate response html
#164834 Rednet Problems
Posted by
tesla1889
on 14 February 2014 - 10:31 AM
in
Ask a Pro
also, in the second block, you never update ev, id, msg, and dist in the while loop
Edit: in the first block, you're missing the event variable when you call os.pullEvent. even if you specify an event to pull, os.pullEvent returns the event first, before the parameters
#164800 CC Operating Systems and their uses
Posted by
tesla1889
on 13 February 2014 - 10:17 PM
in
General
it all pretty much started when someone wrote a desktop environment for CC and called it an "OS"
#163062 How would you simulate a programming language in the language Lua?
Posted by
tesla1889
on 02 February 2014 - 02:10 AM
in
General
Plus, if you implement it with an intermediate assembly-like language, it would be easier to decompile to the source code again (unless it was obfuscated).
#159690 What has your first OS?
Posted by
tesla1889
on 07 January 2014 - 08:45 PM
in
General
Dog, on 07 January 2014 - 01:50 PM, said:
tesla1889, on 07 January 2014 - 01:28 PM, said:
switching away from unix to dos-based is a really painful direction though. such a bad development philosophy.
#159418 I'm new; I need some help. Hi!
Posted by
tesla1889
on 05 January 2014 - 04:30 PM
in
Ask a Pro
http://computercraft.../wiki/Main_Page
http://computercraft.../wiki/Tutorials
Edit: sorry if I seem terse: the general mentality around here is to provide links to documentation and examples, then answer questions to specific errors once code is written
#159071 which programming language's syntax do you like the best?
Posted by
tesla1889
on 02 January 2014 - 11:52 PM
in
General
6677, on 02 January 2014 - 07:25 AM, said:
if there's a language that bothers me almost as much as C++, it's Objective-C, for the same reason. wtf is up with all the plus and minus signs?
#155029 ComputerCraft teaching programs
Posted by
tesla1889
on 03 December 2013 - 07:16 PM
in
Ask a Pro
error messages are too, but sometimes they lead back to the API they came from rather than your program.
as with everything, nothing beats experimentation.
just program something with the expectation that you are going to fail the first hundred times.
no professional developers get it right on the first build either.
#154094 get function from coroutine
Posted by
tesla1889
on 25 November 2013 - 10:32 PM
in
Ask a Pro
function fork() local C = coroutine.running() local F = someMagic(C) local C_child = coroutine.create(F) passCoroutineBackToScheduler(C_child) end
or something similar such that one simply has to call fork to branch into two coroutines
#148216 See - Standard Execution Environment
Posted by
tesla1889
on 07 October 2013 - 12:19 PM
in
APIs and Utilities
for example, FileInputStream will not call __gc when the object is garbagecollected.\
__gc is pretty much pointless in CC, unless you're writing a mod or dan200 is using a non-standard version of lua
- ComputerCraft | Programmable Computers for Minecraft
- → tesla1889's Content


