Jump to content


XoX's Content

There have been 53 items by XoX (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#70568 Minecraft Chess

Posted by XoX on 07 January 2013 - 09:42 PM in Games

If you want you could contact me on skype I got a nice idea for the checkmate recognition.



#65267 Operate computers with redstone input

Posted by XoX on 28 December 2012 - 10:35 AM in Ask a Pro

If it's already in a loop just do
while rs.getInput("side") do

Edit: In your case.


repeat
until not rs.getInput("side")



#64869 Einfaches login program

Posted by XoX on 27 December 2012 - 12:59 PM in Programs

View Postbin3, on 27 December 2012 - 12:51 PM, said:

you must also do not like. I habs also said simple login program. So just give peace

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

View PostPixelToast, on 27 December 2012 - 11:14 AM, said:

View PostXoX, on 27 December 2012 - 11:11 AM, said:

Wrong language and this is basically the definition of a useless thread.
german isnt wrong .-.
its only useless in the way that there are 100 other login scripts

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?



#64825 RedScript

Posted by XoX on 27 December 2012 - 11:14 AM in Programs

Lol, I just realized it still had a few copy & pasted elseif 's in it, they don't affect the code though so whatever, lol



#64823 Einfaches login program

Posted by XoX on 27 December 2012 - 11:11 AM in Programs

Wrong language and this is basically the definition of a useless thread.



#64757 RedScript

Posted by XoX on 27 December 2012 - 07:56 AM in Programs

Some of you may know that on my server I restrict ComputerCraft to only my OS so to keep people from using malicious code.
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.



#49604 [HELP]Automatic night light

Posted by XoX on 13 November 2012 - 10:04 AM in Ask a Pro

The last code I posted work 100% fine, this mean you must have misspelled something when copying it, based on the error you gave me, you must have misstyped the variable name of either TimeOn or TimeOff.



#49576 [LUA] [PROGRAMMING] If / Else if statements not working :S

Posted by XoX on 13 November 2012 - 09:15 AM in Ask a Pro

Why all the "do" 's ?



#49574 [HELP]Automatic night light

Posted by XoX on 13 November 2012 - 09:13 AM in Ask a Pro

Well, the code is fine so you must have misspelled something.
Make sure you capitalize the variables the same way every time. That is most likely the issue,



#49567 [HELP]Automatic night light

Posted by XoX on 13 November 2012 - 08:58 AM in Ask a Pro

View Postcrackroach, on 13 November 2012 - 08:53 AM, said:

View PostLyqyd, on 12 November 2012 - 03:27 PM, said:

Try 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

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 :)/> :P/>


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

You have 2 options to get information about a block.

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.



#49562 Wireless problem, logistic tutor needed.

Posted by XoX on 13 November 2012 - 08:47 AM in Ask a Pro

I do realize that Lock1 and 2 were set but in the piece of code you posted it was neither of them it was just Lock.
So even though you set Lock1 and Lock2, you are still comparing Lock ( which is nil )



#49479 Wireless problem, logistic tutor needed.

Posted by XoX on 12 November 2012 - 11:17 PM in Ask a Pro

If that is the exact code then the other turtles never send anything because of this line.
while Lock==0 do
Because 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.



#49446 Break not working like I need

Posted by XoX on 12 November 2012 - 05:04 PM in Ask a Pro

It should work just fine.



#48883 [OS] XoXOS - Keep your server safe.

Posted by XoX on 10 November 2012 - 03:06 PM in Operating Systems

View PostPixelToast, on 10 November 2012 - 02:28 PM, said:

No idea what you mean.

seriously though
i dont get it :S

Well what were you referring to with this?

View PostPixelToast, on 10 November 2012 - 12:32 PM, said:

View PostMechaTallon, on 10 November 2012 - 12:27 PM, said:

xD XoX you're being trolled.
especially by me and mandrake :unsure:/>
were going to make a blog post about it after we finish geevancraft



#48852 [OS] XoXOS - Keep your server safe.

Posted by XoX on 10 November 2012 - 01:04 PM in Operating Systems

View PostHuman, on 10 November 2012 - 12:55 PM, said:

View PostXoX, on 10 November 2012 - 12:40 PM, said:

View PostPixelToast, on 10 November 2012 - 12:32 PM, said:

View PostMechaTallon, on 10 November 2012 - 12:27 PM, said:

xD XoX you're being trolled.
especially by me and mandrake :unsure:/>
were going to make a blog post about it after we finish geevancraft
??
LMFAO!!!
Funny shit. Leave it to Mk to realize something that is obvious.


No idea what you mean.

View PostHuman, on 10 November 2012 - 12:55 PM, said:


Ever heard of bytecode?

No idea what you mean.



#48843 [OS] XoXOS - Keep your server safe.

Posted by XoX on 10 November 2012 - 12:40 PM in Operating Systems

View PostPixelToast, on 10 November 2012 - 12:32 PM, said:

View PostMechaTallon, on 10 November 2012 - 12:27 PM, said:

xD XoX you're being trolled.
especially by me and mandrake :unsure:/>
were going to make a blog post about it after we finish geevancraft
??



#48841 [OS] XoXOS - Keep your server safe.

Posted by XoX on 10 November 2012 - 12:36 PM in Operating Systems

View PostMechaTallon, on 10 November 2012 - 12:27 PM, said:

xD XoX you're being trolled.

?



#48827 [OS] XoXOS - Keep your server safe.

Posted by XoX on 10 November 2012 - 12:08 PM in Operating Systems

Also, FYI, the loginserver now logs all PCID's which should help in case someone does make a script because I can simply look for these for the script in question.



#48824 [OS] XoXOS - Keep your server safe.

Posted by XoX on 10 November 2012 - 11:59 AM in Operating Systems

View PostHuman, on 10 November 2012 - 09:47 AM, said:

Spoiler

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

View PostHuman, on 09 November 2012 - 10:43 PM, said:

View PostXoX, on 09 November 2012 - 11:54 AM, said:

Updated to V1.2 ,
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.
Do all users have access to pastebin? If so then the point of this is useless because you can just download any script that exploits bugs in the outdated version of ComputerCraft.

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

Updated to V1.2 ,
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

Oh sorry, I didn't notice I messed that up in the instructions. I'm going to update this very soon, I think this time I will upload the collection of files in a .rar



#48481 [OS] XoXOS - Keep your server safe.

Posted by XoX on 09 November 2012 - 09:51 AM in Operating Systems

I never said anything bad about afterlifelochie and I'm sure he did a great job coding his BIOS file, my point is that as long as all users have access to run any lua script there is always a possibility that they find an exploit.