Jump to content


etopsirhc's Content

There have been 115 items by etopsirhc (Search limited from 10-February 22)


By content type

See this member's


Sort by                Order  

#109197 Can someone please assist me

Posted by etopsirhc on 12 April 2013 - 09:21 AM in Ask a Pro

the easiest way would be to have a setup where it knows 2 places and has a math and logic setup to find the other waypoints

for example:
a single pickup location
the lower end of a turtle only maitenance hatch
moveUp X blocks per floor
move forward into the hall ( i'd use the middle celing of the hallway )
then move forward Y to get to the rooms door
then go into the room and drop off the items



#93952 [FIXED]Whats Wrong with this Function? (Not Error)

Posted by etopsirhc on 06 March 2013 - 08:21 PM in Ask a Pro

well it could be the local arg1,arg2 = nil inside the function

XP beat me to it



#93869 checking if a variable exists

Posted by etopsirhc on 06 March 2013 - 12:10 PM in Ask a Pro

i kinda got into it first for c++ style for statements
for (int i = 0; i <= 100; i++) { ect...
then lazyness took over causing the rest to follow

i've used both b4, usualy i go with fs unless i need to flush info to a file that wont ever close until the program exits



#93867 checking if a variable exists

Posted by etopsirhc on 06 March 2013 - 11:53 AM in Ask a Pro

yeah lol *feels like a noob again* :P
way too used to simple letter variables , need to drop that habbit



#93863 checking if a variable exists

Posted by etopsirhc on 06 March 2013 - 11:46 AM in Ask a Pro

v is a table containing the returned values from a os.pullEventRaw()

crap , that may be the problem *fixes v to become votes



#93860 checking if a variable exists

Posted by etopsirhc on 06 March 2013 - 11:35 AM in Ask a Pro

what i'm doing is adding string based keys to a table when an event occures, but b4 that event it has to check to make sure that key doesnt alredy exist

http://pastebin.com/YGTZ8y3y

[edit i noticed something farther down thats wrong, but line 57 and 60 are the problematic ones]



#93857 checking if a variable exists

Posted by etopsirhc on 06 March 2013 - 11:22 AM in Ask a Pro

currently i'm using
if var[varname] == nil then ...
but its giving me the attempt to call nil error , witch with what i'm doing i expect that variable not to exist yet. but i need to be able to make sure it doesn't exist before continuing on with the rest of the program.

simply put, how can i see if a var in a table exists when i expect it not to exist?



#93657 parallel help

Posted by etopsirhc on 05 March 2013 - 02:21 PM in Ask a Pro

lol ok ^^ ty



#93655 parallel help

Posted by etopsirhc on 05 March 2013 - 02:17 PM in Ask a Pro

so the timeout = os.startTimer(3) is where i'd put the 5 min delay (300) and then the rest looks like it'd work perfictly

[edit] though not sure if i get the ( output and "activated" or "deactivated" ) part, is that just a simple inline if to return one of the strings?



#93652 parallel help

Posted by etopsirhc on 05 March 2013 - 02:02 PM in Ask a Pro

pretty much yes , player activates the detector , it turns on the farm for 5 min , but the player can then turn it off by hitting the detector again.
the hitting it again part ( and posibly the time out , havent tested that part yet ) doesnt work



#93650 parallel help

Posted by etopsirhc on 05 March 2013 - 01:57 PM in Ask a Pro

its the player detector from misc peripherals



#93645 parallel help

Posted by etopsirhc on 05 March 2013 - 01:45 PM in Ask a Pro

its kinda messy but heres what mine looks like ( and it isnt working )

http://pastebin.com/L6uf6PiD

i can get the program to run , but when after parallel startes it doesnt seem to get the event



#93636 parallel help

Posted by etopsirhc on 05 March 2013 - 01:30 PM in Ask a Pro

can parallel.waitForAny call functions that sleeps for 5 min while the other waits for an event to trigger ?



#93178 Watermill Setup Question

Posted by etopsirhc on 04 March 2013 - 09:02 AM in Ask a Pro

to get this to work you would need 2 relays , and a retreiver along with the turtle

use item, drop direction of outgoing relay , it will go to the watermill then have the retreiver constantly pulsing to get the bucket back that passes into the relay that puts the empty bucket in the turtle

its 10x easier with rp alone



#92707 Word Association

Posted by etopsirhc on 02 March 2013 - 02:49 PM in Forum Games

psychopath



#92706 The ban game

Posted by etopsirhc on 02 March 2013 - 02:46 PM in Forum Games

banned cause of math

Debian



#92701 which programming language's syntax do you like the best?

Posted by etopsirhc on 02 March 2013 - 02:36 PM in General

java and c++

from there it just goes down hill



#90219 [CC1.53][MC1.5.2] MiscPeripherals 3.3

Posted by etopsirhc on 22 February 2013 - 03:47 PM in Peripherals and Turtle Upgrades

any one know if the chat box has to be wrapped , cause i keep getting nil when i try to.



#85270 http api post

Posted by etopsirhc on 08 February 2013 - 05:20 PM in Ask a Pro

for what i'm doing i think i'll use xuma's method
though i may have to use tesla's later on



#85229 http api post

Posted by etopsirhc on 08 February 2013 - 02:36 PM in Ask a Pro

how do you format a post for the http api?

what i'm trying to do is send some text to a php page



#83792 Pathfinding Logic

Posted by etopsirhc on 04 February 2013 - 06:57 PM in Ask a Pro

the only way i could think of is having already mapped an area run a series of recursive path-finding algorithms to find the shortest way to get there

how i think of it is check if point A and point B can directly be accessed , if it cant, find an area that has the most open area to get closer , and then run itself to find a way to that point .

so you would need to recursively call a function that can get it closer to point B , and every time it runs point "B" is moving closer untill the path is found.
then theirs the return value , witch i think would best be created by a series of return a table of moves into a table or return the entire contents of that table using lua's ability to return multiple things at once

all in all its a huge thing to tackle , but not impossible.
though if u want them to auto map it gets exponentially harder lol.

edit :

just thought of another posible way
run the map though a loop finding all open areas with 2 or more space and return those positions for each direction then do a simmilar thing to what i mentioned above but on existing paths finding all that it can take , then find the shortest



#83125 [Lua][Error] attempt to index ? (a nil value)

Posted by etopsirhc on 02 February 2013 - 11:22 PM in Ask a Pro

unless you are setting turtle.right to turtle.turnRight ( as well as the lefts ) then that would be the biggest problem



#82853 use the contents of a var as a var?

Posted by etopsirhc on 02 February 2013 - 08:05 AM in Ask a Pro

ok , seems simple enough , =D thanks



#82844 use the contents of a var as a var?

Posted by etopsirhc on 02 February 2013 - 07:45 AM in Ask a Pro

essentially what i want to do is be be able to call a function with a string that is the variable name i want to use.
i'm doing it this way as the string will be grabbed from args ={ ... }
a = 1
function f(var)
  --some how print 1 instead of a
end
f("a")

if at all possible i'd also prefer not to have to set it up as a dictionary



#82267 [CC1.53][MC1.5.2] MiscPeripherals 3.3

Posted by etopsirhc on 31 January 2013 - 11:38 AM in Peripherals and Turtle Upgrades

i 'm having a problem with chunk loader turtles.
on the server i'm on they are set to load a 3x3 area, and with that i have a single turtle that runs around placing blocks to build my house
well , airship house thats about 16 chunks long and half as wide . but every now and then when its running , it unloads . i've actually watched it happen on /chunkloaders , no one was around and it was doing its job up until it just dissapeared. (unloaded)
at one point i did notice some force loaded chunks get separated from the 3x3 , but usually they reattached fairly quick.

any idea whats causing it ?