Jump to content


crazyguymgd's Content

There have been 139 items by crazyguymgd (Search limited from 29-March 23)


By content type

See this member's


Sort by                Order  

#71941 INPUT NEEDED - Spam

Posted by crazyguymgd on 10 January 2013 - 11:34 AM in Forum Discussion

View Postzekesonxx, on 10 January 2013 - 11:31 AM, said:

What about http://areyouahuman.com/? They've worked pretty well in my creations.

Ha that was kind of fun too.



#71889 INPUT NEEDED - Spam

Posted by crazyguymgd on 10 January 2013 - 10:38 AM in Forum Discussion

 AfterLifeLochie, on 10 January 2013 - 10:20 AM, said:

 tiin57, on 10 January 2013 - 10:14 AM, said:

 Cranium, on 10 January 2013 - 10:10 AM, said:

Although I think we might have to make it multiple choice for those who cannot spell ANYTHING.
Lol, if they can't spell "dirt", then I say they shouldn't even be in here in the first place :P

Cloudy, dan, Lyqyd, Cruor, Lochie, FuzzyPurp, casper (is he still alive?) and other assorted forum staff; have you thought about adding more moderators? :D

The number of moderators is certainly not the issue, I'll tell you that.

The fact of the matter is, the quantity and the rate of the spam becomes unmanageable. Last night I just sat on the forums, and after I'd delete three spam users, another two would reappear and litter the place with posts. I had to sit here and entirely devote my attention to watching the forums like a hawk and remove stuff straight away - and when I wake up, it's the same thing - go through the list of reports and clear them all out. There is an almost unbroken wall of spam-reports in the Reports Center, stretching back to at least, and if not further than, Page 8 now.

I still really, really suggest we approve new member's (<10) posts. It's much easier to delete content before it appears - and it keeps the Reports system in a manageable state.

I don't know what the number of spam posts really is but I sorted New content by Past 24 hours and found 15 posts on the first page, started by users with < 25 posts. Would approving all these new posts and disapproving all the spam posts be any better than just deleting spam posts?



#80661 SelectOS v.1.4.4 Alpha [ Colours ] [ Programs ]

Posted by crazyguymgd on 26 January 2013 - 03:54 PM in Operating Systems

Well I'm not exactly interested in working on developing this project with you, I do always like helping people solve problems. So if you have any specific problems that you come across during development, post them here and I'd be happy to take a look.



#74392 Program error.

Posted by crazyguymgd on 14 January 2013 - 03:01 PM in Ask a Pro

when you return, that means stop the function right there. So here's what I would do:

function value()
  if not turtle.detect() then
    return false
  else
    for i = 1 , 3 do
    print("comparing "..i.." now")
    turtle.select(i)
      if not turtle.compare() then
        return true
      end
    end
    return false
  end
end

As you can see, it will return true if it finds something at i, and returns false only if the for loop exits, and it hasn't returned true yet.
However, this might cause a problem if there is something at 1 and 2 because it'll return true at 1, then skip 2 because it returned.



#74371 Program error.

Posted by crazyguymgd on 14 January 2013 - 02:13 PM in Ask a Pro

I keep wanting to like your posts...
dam facebook



#74365 Program error.

Posted by crazyguymgd on 14 January 2013 - 02:01 PM in Ask a Pro

yup yup



#74398 Program error.

Posted by crazyguymgd on 14 January 2013 - 03:11 PM in Ask a Pro

 TheOriginalBIT, on 14 January 2013 - 03:07 PM, said:

Here is what I would do:
function value()
  if not turtle.detect() then
	return false
  end

  for i = 1 , 3 do
	print("comparing "..i.." now")
	turtle.select(i)
	  if turtle.compare() then -- I'm assuming this was meant to be when it finds something
		return true
	  end
	end
  end

  return false
end
Its not any different logically, but it has a slightly better flow, then also if you decide to add anything else in later you wont forget to put return false in at the end of the function...

also just a question, shouldn't

How is it not different logically? Originally, if the compare with the block at slot 1 was false, he would return false and never check slot 2 or 3. This checks slots 2 and 3 if 1 fails. Which is differentt



#74411 Program error.

Posted by crazyguymgd on 14 January 2013 - 03:35 PM in Ask a Pro

congrats!



#74535 Program error.

Posted by crazyguymgd on 15 January 2013 - 01:55 AM in Ask a Pro

Nice job :)



#74435 Program error.

Posted by crazyguymgd on 14 January 2013 - 04:09 PM in Ask a Pro

View PostTheOriginalBIT, on 14 January 2013 - 04:02 PM, said:

the do is required for the while... but when I looked at your completed code post before a wild 'do end' has appeared....

I'm having a hard time not photoshopping an image of this pokemon battle...



#74434 Program error.

Posted by crazyguymgd on 14 January 2013 - 04:08 PM in Ask a Pro

View Postdetsuo04, on 14 January 2013 - 03:57 PM, said:

edit: i added a turn right command after it collects ore so that should fix that. thanks

ok let me know how that goes



#74361 Program error.

Posted by crazyguymgd on 14 January 2013 - 01:54 PM in Ask a Pro

sorry, I missed that do,
for i = 1, 3 do
  if turtle.compare..........
end



#74404 Program error.

Posted by crazyguymgd on 14 January 2013 - 03:18 PM in Ask a Pro

Ahh and yes it should be if turtle.compare() then.... without the not. thanks for the catch



#74319 Program error.

Posted by crazyguymgd on 14 January 2013 - 12:28 PM in Ask a Pro

I rode a turtle all the way to bedrock with this code.
z = 0
while true do
  print("2")
  f = turtle.getFuelLevel()
  if f < z + 10 then 
    rn (base , "Danger! fuel levels low.")
    turtle.select(16)
    turtle.refuel()
    z = turtle.getFuelLevel()
    if f < z + 10 then
      rn (base , "Insuficient Coal, Returning.")
      home()
    end
  elseif turtle.detectDown() then
    turtle.digDown()
    --turtle.detectDown()
    print("3")
    if turtle.detectDown() then
      rn (base , "I hit bedrock, Returning")
      print("Your home function")
      --home()
      break  -- to break out of the while loop
    end
  else
      turtle.down()
      print("your walls function")
      --walls()
      z = z + 1
  end
end 



#74023 Program error.

Posted by crazyguymgd on 13 January 2013 - 11:42 PM in Ask a Pro

so nested ifs?

if condition then
  if condition then
    -- do something
  end
else
    -- do something else
end

but you only need that else if you're actually going to do something else. otherwise just an end.
if that's not clear i'm sure there's a wikipedia page that explains ifs and elses better than I can. or someone else on here.



#74018 Program error.

Posted by crazyguymgd on 13 January 2013 - 11:29 PM in Ask a Pro

well the extra else's aren't necessary so did you try just getting rid of them? also, there are a couple of places where you have

if condition then
   ...
end
else
  ...
end

that first end isn't necessary. so you can find those and get rid of them too.



#74011 Program error.

Posted by crazyguymgd on 13 January 2013 - 11:12 PM in Ask a Pro

examples:

function foo()
  ... 
end

if condition then
   ...
end

if condition then
   if condition2 then
      ...
   end
else
  ...
end

while something do
  ...
end

for x = 1, n do
  ...
end

and so on



#74004 Program error.

Posted by crazyguymgd on 13 January 2013 - 10:59 PM in Ask a Pro

you're missing ends to a lot of your functions. The one's I found were to value(), walls(), home(), and mine().
Also, turtle.turnRight() not turtle.turn("right")
In your home() function you use os.shutdown instead of os.shutdown()...
and maybe some other things. try going through your code and seeing if you can find any more problems :P debugging code is like a game, the more problems you find, the more points you get. so far, I'm winning.



#74033 Program error.

Posted by crazyguymgd on 14 January 2013 - 12:01 AM in Ask a Pro

it often helps to put some debugging print statements in this situation. also, make sure you're actually calling the main function after all these edits. sometimes that could get missed.



#74045 Program error.

Posted by crazyguymgd on 14 January 2013 - 12:23 AM in Ask a Pro

your while true do mine() end needs to be outside of the mine() function.



#74303 Program error.

Posted by crazyguymgd on 14 January 2013 - 12:00 PM in Ask a Pro

I also saw a point where you use turtle.Up(z + 2). These don't take parameters. To get this effect, you would do:

for i = 1, z+2 do
  turtle.up()
end



#74302 Program error.

Posted by crazyguymgd on 14 January 2013 - 11:57 AM in Ask a Pro

turtle movements:

turtle.up()
turtle.down()
turtle.turnRight()
turtle.turnLeft()

notice where everything is capitalized. You often try to use turtle.Down() which wont work. Neither with turtle.turnright() and so on.



#74061 Program error.

Posted by crazyguymgd on 14 January 2013 - 12:50 AM in Ask a Pro

one thing I also noticed when I ran this on a turtle is tmDown() doesn't actually work. This is because the command to move down is just turtle.down(). And the reason it seems to do nothing when you run it is because you have a ton of sleep(1)s in there. just wait 15 seconds and you'll start getting errors that will help you find all the problems.



#74057 Program error.

Posted by crazyguymgd on 14 January 2013 - 12:45 AM in Ask a Pro

View PostTheOriginalBIT, on 14 January 2013 - 12:41 AM, said:

ok I've gone and commented your code with all the mistakes that you have made ( hope i didn't miss any )

http://pastebin.com/eCHabxgj

I was just getting into doing this as well...



#74344 Program error.

Posted by crazyguymgd on 14 January 2013 - 01:24 PM in Ask a Pro

Here's your value function with proper indentation. As you can see, you're missing key ends (and you have unnecessary ends)

function value()
  if turtle.detect() == false then
	return false
  end
  else
	for i = 1 , 3
	  if turtle.compareTo(i) == true then
		return false
	  end
	  else
		return true
	  end
	end
And here's the correct way to use the if's, else's and ends

function value()
  if turtle.detect() == false then
	return false
  else
	for i = 1 , 3
	  if turtle.compareTo(i) == true then
		return false
	  else
		return true
	  end
	end
  end
end