- ComputerCraft | Programmable Computers for Minecraft
- → XoX's Content
XoX's Content
There have been 53 items by XoX (Search limited from 10-February 22)
#64869 Einfaches login program
Posted by
XoX
on 27 December 2012 - 12:59 PM
in
Programs
bin3, on 27 December 2012 - 12:51 PM, said:
You have to see, what you posted was very basic and if everyone who wrote a script like that for the first time would post it here the forums would be flooded. I'm sure you are very excited about coding and writing an awesome login script, but it's very basic and not worth a forum thread.
#64828 Einfaches login program
Posted by
XoX
on 27 December 2012 - 11:18 AM
in
Programs
PixelToast, on 27 December 2012 - 11:14 AM, said:
It is on an English forum. I speak German, I know the language itself is not wrong but on here, it is.
And that makes it useless, I look at this section to see other people's cool work, but anyone who knows how to code can write a more helpful script in 30 seconds, so the only people who would learn anything from seeing it would be people who don't know how to code, and if they don't know how to code, what are they doing on here?
#64757 RedScript
Posted by
XoX
on 27 December 2012 - 07:56 AM
in
Programs
Unfortunately this keeps people who like to use computers for their farms or doors from using them.
So I had an idea, I could let people access the "redstone side" of computercraft, and this is how:
Redscript
So what does it do?
Redscript is a scripting language I made which uses VERY simple commands to execute basic redstone operations and a bit more.
You can toggle redstone signals, wait for inputs, go to different lines ( for loops, etc )
and soon you will be able to compare text to user input ( good for password doors )
Here it is:
http://pastebin.com/YBJxRbSt
How to write scripts:
Basic functions are
SIDE on/off
wait #
wait SIDE
goto #
compare a b ( soon )
There you go, always happy about input and suggestions.
#49567 [HELP]Automatic night light
Posted by
XoX
on 13 November 2012 - 08:58 AM
in
Ask a Pro
crackroach, on 13 November 2012 - 08:53 AM, said:
Lyqyd, on 12 November 2012 - 03:27 PM, said:
TimeOn = 18.00
TimeOff = 6.00
while true do
if os.time() >= TimeOn or os.time() < TimeOff then
rs.setOutput("bottom", true)
elseif os.time() >= TimeOff and os.time() < timeOn then
rs.setOutput("bottom", false)
end
sleep(1.0)
end
That code gave me an error, it was written :"attemp to compare nil with number" at line 6. Thanks for trying to help me.
I've try to correct the typo error Espen, but it did'nt changed anything... i'm running out of idea.
Should i use some pullEvent?? or even some os.setAlarm() Event?? if it is the case i really don't know how to do it
Have you tried it like this?
TimeOn = 18.00
TimeOff = 6.00
while true do
if os.time() >= TimeOn or os.time() < TimeOff then
rs.setOutput("bottom", true)
elseif os.time() >= TimeOff and os.time() < TimeOn then
rs.setOutput("bottom", false)
end
sleep(1.0)
end
It should work, if not, please tell me the error.
#49563 MiningTurtle + BeeHive
Posted by
XoX
on 13 November 2012 - 08:51 AM
in
Ask a Pro
a.) You get a peripheral which lets you get more information about blocks, there is many that output the block ID.
b.) You can use turtle.compare() to compare the item in front of the turtle ( or compareUp / compareDown ) with the current selected slots. Now with this you would have to have the block in question in the turtles selected slot and then you can use compare to determine if the block in front of the turtle is said block.
#49479 Wireless problem, logistic tutor needed.
Posted by
XoX
on 12 November 2012 - 11:17 PM
in
Ask a Pro
while Lock==0 doBecause Lock is nil , you only got Lock1, and Lock2. If this is not the exact code then please give us the exact code because we can't look for errors in a poor copy of the code.
Also, tip for the future, instead of color-coding everything you can simply use the code tags, makes everything easier to read.
#48883 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 10 November 2012 - 03:06 PM
in
Operating Systems
#48852 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 10 November 2012 - 01:04 PM
in
Operating Systems
#48843 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 10 November 2012 - 12:40 PM
in
Operating Systems
#48841 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 10 November 2012 - 12:36 PM
in
Operating Systems
#48827 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 10 November 2012 - 12:08 PM
in
Operating Systems
#48824 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 10 November 2012 - 11:59 AM
in
Operating Systems
Human, on 10 November 2012 - 09:47 AM, said:
XoX, on 10 November 2012 - 03:13 AM, said:
Human, on 09 November 2012 - 10:43 PM, said:
XoX, on 09 November 2012 - 11:54 AM, said:
Major changes
- Added DevNet . Chat for Devs
- Added version for turtles, lets users use excavate and tunnel..
Minor changes:
- Added Pastebin support into the UI
- Maybe some bugfixes if I found any, dont remember.
My point is that to protect a server you do not deny access to features, you have to fix the bugs and let people do what they want. Somebody could spend a while coding a script that exploits the bugs, try to use it on a server that has patched the bugs, then the malicious coder will then rage quit after finding the bugs have been patched. Do you see my point now? You never want to change the base place for coding in ComputerCraft, if there is a bug patch it, don't just restrict access to the main part of the mod.
As for the code, you could of done better on indenting and comments. Also, the code could of been better. The base propose of it is to protect the server, which is done well, however in my opinion not in an ethical way.
Your entire argument so far is that it could be done simply with bug-fixing but your logic is flawed because it is based on your believe that it is possible to fix all bugs. I bet you that if you set up a server with whatever bugs fixed etc, I would still find a way to crash it with computercraft.
Also, it seems as if you think that as soon as someone says "I know Lua" they get dev access on my server. No, if I see someone has played for a few days and built a house and town, etc that's when they even become eligible, because if they are actually willing to waste all that time just to crash the server once and then get banned then sure, go ahead.
No matter how good your bug fixing is, if there is even a single bug left that can be exploited then ANYONE can join and crash your server without any effort.
With this there can 10000 bugs that could crash the server but no one can abuse them because the time they would have to spend on the server to get access to computercraft just isn't worth it, and the people who are actually interested in staying can play normally and eventually ask for access.
As for what you said about my code.
The main XoXOS file is tabbed fine now, the others aren't because I wrote them ingame most likely.
As for comments, as I don't plan to show this code to anyone who plans to learn from it I don't comment, no need to comment if I'm the only one reading it.
And don't just say "Could be done better" without suggesting even a single thing I could improve.
Think about it this way, if you are a game dev and there is a map that has a glitch in it, are you going to take the map out or are you going to fix the glitch?
I used to grief a lot. I would spend about a week doing recon on a server and gaining people's trust just to destroy everything. Also, you can exit out of your program if you cause one of the programs to crash some how. Also, tell me how you would know who crashed the server? I can easily name quite a few exploits in ComputerCraft 1.3 that can crash a server fairly quickly. Two of them are, the coroutine exploit and DVX.1(Abuses rednet and the FS API).
Now if you would excuse me, I am going to go play some Medal Of Honor: Warfighter.
You are again completely disregarding my statement about your logic being flawed because it is simply not possible to fix all bugs, Also, if you exit out of the other scripts you simply return to XoXOS, the script it was loaded from.
#48722 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 10 November 2012 - 03:13 AM
in
Operating Systems
Human, on 09 November 2012 - 10:43 PM, said:
XoX, on 09 November 2012 - 11:54 AM, said:
Major changes
- Added DevNet . Chat for Devs
- Added version for turtles, lets users use excavate and tunnel..
Minor changes:
- Added Pastebin support into the UI
- Maybe some bugfixes if I found any, dont remember.
My point is that to protect a server you do not deny access to features, you have to fix the bugs and let people do what they want. Somebody could spend a while coding a script that exploits the bugs, try to use it on a server that has patched the bugs, then the malicious coder will then rage quit after finding the bugs have been patched. Do you see my point now? You never want to change the base place for coding in ComputerCraft, if there is a bug patch it, don't just restrict access to the main part of the mod.
As for the code, you could of done better on indenting and comments. Also, the code could of been better. The base propose of it is to protect the server, which is done well, however in my opinion not in an ethical way.
Your entire argument so far is that it could be done simply with bug-fixing but your logic is flawed because it is based on your believe that it is possible to fix all bugs. I bet you that if you set up a server with whatever bugs fixed etc, I would still find a way to crash it with computercraft.
Also, it seems as if you think that as soon as someone says "I know Lua" they get dev access on my server. No, if I see someone has played for a few days and built a house and town, etc that's when they even become eligible, because if they are actually willing to waste all that time just to crash the server once and then get banned then sure, go ahead.
No matter how good your bug fixing is, if there is even a single bug left that can be exploited then ANYONE can join and crash your server without any effort.
With this there can 10000 bugs that could crash the server but no one can abuse them because the time they would have to spend on the server to get access to computercraft just isn't worth it, and the people who are actually interested in staying can play normally and eventually ask for access.
As for what you said about my code.
The main XoXOS file is tabbed fine now, the others aren't because I wrote them ingame most likely.
As for comments, as I don't plan to show this code to anyone who plans to learn from it I don't comment, no need to comment if I'm the only one reading it.
And don't just say "Could be done better" without suggesting even a single thing I could improve.
#48505 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 09 November 2012 - 11:54 AM
in
Operating Systems
Major changes
- Added DevNet . Chat for Devs
- Added version for turtles, lets users use excavate and tunnel..
Minor changes:
- Added Pastebin support into the UI
- Maybe some bugfixes if I found any, dont remember.
#48501 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 09 November 2012 - 11:26 AM
in
Operating Systems
#48481 [OS] XoXOS - Keep your server safe.
Posted by
XoX
on 09 November 2012 - 09:51 AM
in
Operating Systems
- ComputerCraft | Programmable Computers for Minecraft
- → XoX's Content


