33 posts
Posted 18 August 2017 - 06:05 PM
So I found out that there was a bug about a disk labeled nil. If you insert it into something and you have like a disk lock door it will return an error as nil.
8543 posts
Posted 19 August 2017 - 01:23 AM
Please provide all code involved and more precise reproduction instructions. This sounds on its face like it may be a misunderstanding or user error, so I'd appreciate additional information so that we can classify this correctly.
33 posts
Posted 19 August 2017 - 10:43 AM
It's a little bug. It may already be found. The only thing you have to do is name everything on the floppy nil. Here is why.
If disk entered
a must be 010101
But if a is nil it will return nil making the computer shoot an error.
This is meant for a labeled disk password door.
7083 posts
Location
Tasmania (AU)
Posted 19 August 2017 - 10:55 AM
I also suspect the bug is not within ComputerCraft, but within the code of the script you're running.
If you believe nil values automatically lead to errors, then you are mistaken.
33 posts
Posted 19 August 2017 - 09:19 PM
It is not my code. It worked on a lot of disk ulock codes
1426 posts
Location
Does anyone put something serious here?
Posted 19 August 2017 - 09:31 PM
We're really going to need a little bit more information. When reporting a bug it's always best to include as much detail as possible - remember that other users of the forum aren't omniscient (yet), and so more info makes everyone's life easier. A couple of things which would be useful:
- Minecraft version and ComputerCraft version
- Whether this is single-player or multi-player.
- Detailed reproduction steps, with screenshots if possible.
- What error does it produce? "error as nil" doesn't really mean anything.
I'd recommend looking through some of the
previous bug reports to get an idea of how one should format a bug report.
Edited on 19 August 2017 - 07:32 PM
467 posts
Location
Van Diemen's Land
Posted 06 September 2017 - 06:59 AM
What do you mean "return nil"?
Please don't just say "it returns nil whenever I get the floppy's label", because I'm afraid to say you just played yourself…
Edited on 06 September 2017 - 05:00 AM