dan200 / computercraft Goto Github PK
View Code? Open in Web Editor NEWProgrammable Computers for Minecraft
License: Other
Programmable Computers for Minecraft
License: Other
Reposting:
http://www.computercraft.info/forums2/index.php?/topic/23356-smp-able-to-crash-server-with-redstone/
Prof it still happens:
http://pastebin.com/HyBruP6h
Edit: Sorry i forgot to remove side mods before testing.
Here is clear one.
http://pastebin.com/pqije6a7
Tall monitors may bug out when viewed from specific angles / distances. The taller the display, the easier it is to reproduce; I find it needs to be at least 4 blocks high before I can trigger it. Compass direction does not appear to matter, but world height does.
To trigger, move close to the top of an affected display, then slowly tilt your view upwards.
For example, building a staircase of monitors at around y110, I get:
I believe the page up and down buttons used to work in ComputerCraft. They currently do not seem to be working. (CCv1.6.4) Tested with: while true do print(os.pullEvent()) end
It'd be much easier to make my thing work if color 0 didn't bother with background color... Alternatively add a way to disable background color?
Crashlog: http://pastebin.com/VQ5Z0fqq
Might be related to MinecraftForge/MinecraftForge#2005
I did not think it would have many, (if any) methods. I just wanted to see if any methods what so ever were listed. So I got a peripheral proxy and connected it to the FunkyLocomotion Pusher and clicked the modem. The result of this is http://pastebin.com/mKBPz0zU.
Documenting for my own benefit so I don't forget
Reproduce:
-Summon a cow
-run commands.entitydata("@e[r=10]",{Motion={0.0001,1.8,1.8}})
Expected result:
-cow flying into the distance
Real result:
NBT of cow: {"Motion":[0.00001,1.8,1.8],Motion:[0,0,0]}
This isn't really an issue, but something I've been struggling with the past week. I couldn't find a better place to post this than here. What I'm trying to do is find a certain name for turtles. The name is supposed to be used in a format similar to: ThermalExpansion:Strongbox, ThermalExpansion:Cache, or MineFactoryReloaded:machine.1. I've tried multiple variations of the name. BlockType, Class name, real name, different capitalization-- I've tried a lot. Not one of my guesses has been successfully recognized. All of them are listed here: http://pastebin.com/8cNP9tpH . I've tried googling around to find the right answer, but nothing has helped me. I was hoping some of you might be able to help a brother out by offering your thoughts on what name is supposed to be used.
No idea how to explain to so here are 2 gifs.
Modem and turtle dance party?
If you place wireless modems (both types) and turtles.
Make a large stream of water going downwards and then break source block.
Disappearing water will cause turtles to blink and modems to act like (trap)doors.
It appears to be purely graphical.
First is in ssp 2nd in smp.
http://gfycat.com/WholeRealBaldeagle
http://gfycat.com/WearyCautiousBufeo
When using the edit program on pocket computers, line numbers will not show up properly due to the "Press Ctrl to access menu" text covering them up. My suggestion to fix this is to not write "Press " on pockets. (or something of that nature)
if not pocket then
term.write("Press ")
end
term.write("Ctrl to access menu")
turtle.attack does not allways return true when there is a mob infront of it and it has a weapon.
Skeletons keep spooting at the spot where the turtle has been while attacking.
Creepers blow up, once they have been hit.
Steps to reproduce:
/gamemode 0
place turtle on your head level
walk towards turtle
result:
turtles are cacti now
Resolving commands (from the commands API available to command computers) may interfere with the event system, seemingly at random.
The more that are requested between yields (eg by using commands.execAsync()), the less likely it becomes that the computer which executed the commands will receive all events that should be due to it (other computers in the world do not appear to be affected at all).
Most often task_complete events are affected, as they're the most common events flooding into the event queue while command-heavy scripts execute, but using eg os.startTimer() in an attempt to "time-out" while waiting for these events is a poor workaround - it's just as possible to miss the timer events as well!
A sample script can be found here:
It orders as many commands as are allowed by "commandLimit" (setblock'ing stone in the square directly above the system), and then yields until it detects a task_complete event (at which point it executes another command, resumes yielding, etc). This goes on until 10000 commands have been executed, and if 10000 task_complete events are detected in return, the script ends.
Often there's a mismatch in the number of events received and so the script never finishes. I find it has about a 9/10 chance of running to completion as-is (with "commandLimit" at 30). Changing "commandLimit" to ~100 decreases that to about a 2/3 chance, whereas ~230 is more like 1/2.
Other commands may be used (eg "tell" instead of "setblock") with much the same result, though I've not had problems with commands.getBlockInfo(). Regardless as to whether the resulting events are received, best I can make out the commands do always execute correctly and perform their proper function.
Pasting in any character (except ¶ and §) in the ASCII range of 1 through 31 into a computer results in ?s to be displayed.
¶ works properly. § doesn't paste at all.
EDIT: clarified the description
Well i just turned my server on for the first time in a week and got a Fatal Error. Server crashed on start up and failed to load
If turtle mines any banner it gets black banner with all customization wiped out.
Feel free to speculate about why i'm logging this bug!
... or cd with any other number of additional periods over two (or, since pr3, over three).
Under Windows 8.1 with an NTFS file system, when the shell is working within a folder other than the root of the drive, shell.resolve("...") returns "current directory + ..." (as opposed to the expected "current directory alone"). It should act in the same manner as shell.resolve(".").
Because fs.exists( shell.resolve( "..." ) ) always (correctly) resolves as true, typing "cd ..." into the command line leads to the shell switching to a non-existant directory (as shell.resolve() brings it to the wrong location). Auto-complete promptly crashes shell when the next character is typed ("Java Exception Thrown: java.lang.NullPointerException").
I made some files "player:nbs.lua" "player:monitor.lua" etc, and they can't be opened with fs.open(). Trying to make a file "player:test.lua" from in-game removes the ":".
EDIT: Why I want to use ":"? Well, MC items are named e.g. "minecraft:stone", so I decided to name my files like that because it's better.
Reposting from:
http://www.computercraft.info/forums2/index.php?/topic/24449-174-major-window-api-bug/
Tested under pr2 and still valid bug.
My current issue is that with my ITurtleUpgrade it appears that all upgrades are instances of the same IPheripheral, this makes it difficult/nearly impossible to store data on the peripheral unique to each turtle, or even a reference to the turtle who "owns" the peripheral - to allow for use of the turtle's location and inventory when executing commands
If there is a workaround that I am just not seeing I'd really appreciate some advice, but it does seem unnecessarily difficult as it currently stands
If a command of a command computer fails there is currently no way of knowing why it failed since the error message is in the language of the player (or the server). There is no way a command computer program can check for a spezific errormessage in every language minecraft offers. Most of the languages are not even printable (e.g. german because of äüö).
Please make commands return the untranslated string. So that an lua program written on an english server does still work on a german server and vice versa.
Steps to reproduce:
-Turn language of the server to spanish, swedish, german or chinesse.
-run the lua program
-enter: commands.entitydate("@e","{}")
In pr2 it crashes because of the window api, in pr3 it probatly wont, but it is still not comparable and therefore not useful.
The only thing that can be done with an translated string is outputing it to the minecraft chat, but with the tellraw command a string can be translated as well.
A workaround is to call sleep(0.05) in a loop:
function fixsleep(n)
sleep(n % 0.05) -- at least a 1-tick sleep
for i=2,math.floor(n * 20) do
sleep(0.05)
end
end
Versions: 1.57 - 1.63
Current links for your convenience:
Wireless modems don't change color of border to red when they have open channel. Happens on: turtles and standalone blocks and wireless pocket computers(little knob don't turn red). Channel still opens and messages go trough. It just don't indicate that visually like it used to.
Wired ones are ok.
One person on pr2 server had wierd disconnects. not sure if cc related or someone derped something on server. Posting client log from that person just in case its cc related. If not sorry for false alarm.
http://pastebin.com/W21U6dat
EDIT: Wrong pasebin link fixed.
There is a problem when mining in the nether with turtles (netherores) or having creepers explode next to turtles, where the turtle disappears. I believe it should be an option in the config to have this happen, or an option so advanced turtles are more blast resistant and tnt proof.
In line 245 of rednet api:
if sProtocol == "dns" and tMessage.sType == "lookup" then
If rednet is open and computer receives message on sProtocol = "dns" but tMessage if different type from table (like string or number) this line crashes/turns off the computer by causing rednet.run to error.
It can be simply fixed by adding type() test in said line. Per example:
if sProtocol == "dns" and type(tMessage) == "table" and tMessage.sType == "lookup" then
The characters 128 to 159 split each character spot in a 2*3 grid that can be switched off and on individually. Except the bottom right pixel, but that can be archived by inverting the colors. But at the border of the computerc screen the background is bigger than the text area. So the inverted character looks strange.
test script: http://pastebin.com/xT3U7PSp
Hey Dan it would be TOTALLY awesome if you would add a turtle which could remotely control other turtles (i.e. restart them) and to give them the possibility to copy code for other turtles from floppy disks
Place a monitor.
Place 2nd one to right of first so they connect.
Break left(first) one.
Crash.
monitor.write(nil) doesn't error right. I had to add a bunch of .. ""
to find where it was erroring.
I tried to run CC server locally for me and fiends.
It crashed on startup and spew out this:
http://pastebin.com/B8phY71t
@dan200, I can be publish to here API and Localization?
The turtle.place("text") function crashes the game because signs are like tellraw/books now.
I beg you, please let us be able to make colorful signs with the turtles 🙏
http://pastebin.com/NxzYjB2h
Always crashes opon startup
Using Advanced turtle with pickaxe excavating a 2x2 landform, i dropped a creeper in, when it hit it it froze and crashed
Crash report: http://pastebin.com/N9WVcev8
There is bug report:
http://www.computercraft.info/forums2/index.php?/topic/21188-cc165smpssp-invalid-value-in-keysrightctrl/
Hoover when testing in latest cc error seems to be opposite for me and Bomb Blocke like in the post.
Is it some weird keyboard magic OR real issue?
This isn't that much of a issue, but there is no language support. I'm german, with about 75% or more english.
Computercraft website is down so I am bug reporting here...
I hope my error report is in the correct format. either way, I'm sure you'll fuigure it out.
I will also put this report on the forums when I notice the site back online.
Versions
Computercraft version 1.64pr4
minecraft 1.7.10
Action:
Executing any turtle.place(), turtle.placeDown() etc.. command with or without a string in the parameters, with a vanilla sign in the selected turtle inventory slot on any type of turtle.
Expected outcome:
Turtle successfully places a sign with any sting in the parameters.
Actual outcome:
Minecraft crashes. Upon restarting, a blank sign is placed and the turtle's inventory remains unchanged.
Crash report:
http://pastebin.com/raw.php?i=hfpgfgx8
Reposting from.
http://www.computercraft.info/forums2/index.php?/topic/23448-175smpssp-rom-program-functions-in-env/
I know its kinda old but it should be fast to fix with line numbers.
adventure:610: attempt to create global function "doCommand" in the current environment
adventure:476: attempt to create global function "findItem" in the current environment
worm:20: attempt to create global function "printCentred" in the current environment
help:1: attempt to create global table "tArgs" in the current environment
monitor:2: attempt to create global function "printUsage" in the current environment
edit:31: attempt to create global number "stringColour" in the current environment
redirection:178: attempt to create global table "fLevel" in the current environment
Also there is a letter ’ in the help/changelog file in line 124 "Conway’s Game of Life" that makes said file not readable correctly in-game. Reposting from: http://www.computercraft.info/forums2/index.php?/topic/24475-174-stray-%E2%80%99-in-changelog/
Not actually a bug, but reporting anyway.
Forge has deprecated Minecraft's IBakedModel
in favour of net.minecraftforge.client.model.IFlexibleBakedModel
(used in the Turtle upgrades). Not sure though if there are issues with rendering a IFlexibleBakedModel
compared with the original one.
For getItemModel
you can always wrap the IBakedModel
with IFlexibleBakedModel.Wrapper
.
Boats can be attacked.
Not being able to break an armorstand will make the excavate program wait forever infront of it.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.