- Sky
- Blueberry
- Slate
- Blackcurrant
- Watermelon
- Strawberry
- Orange
- Banana
- Apple
- Emerald
- Chocolate
- Charcoal
-
Content Count
250 -
Joined
-
Last visited
-
Days Won
28
Posts posted by Lizzian
-
-
did you make sure the tape was at the beginning before writing it? Also I think (depending on how the script does it) that the dropbox url gets forced to https so that my be causing issues
-
I'm trying to use this on a online server and when i followed your google docs tut, I keep getting this message.
http://gyazo.com/18d...916229bb00e2a4a
I have no clue what to do?!
remove the <> around the url
-
local component = require("component")
you seemed to have a wild extra "end" in the middle of your program, this should work but i cant test since i'm not at a mc capable computerlocal modem = component.modem
local term = require("term")
local event = require("event")
local prgms = {"move to","home","unready","reportPos","exit"}
local port = 100
print("Starting Robot Commander...")
print("Opening port "..port.."...")
modem.open(port)
print("Port "..port.." open: :"..tostring(modem.isOpen(port)))
os.sleep(1)
local select = 0
while prgms[select] ~= "exit" do
print("\n\nRobot Commander\n")
print("1) Move robot to...")
print("2) Send robot home")
print("3) Exit robot ready state\n (unable to restart remotely)")
print("4) Report robot position")
print("5) Exit Robot Commander\n")
select = tonumber(io.read())
if prgms[select] == "move to" then
local mode
local valid = false
while valid == false do
print("\n(R)elative or (absolute) movement?")
mode = io.read()
if mode == "r" or mode == "R" then
print("Enter x-distance:")
xTarget = io.read()
print("Enter y-distance:")
yTarget = io.read()
print("Enter z-distance:")
zTarget = io.read()
valid = true
elseif mode == "a" or mode == "A" then
print("Enter x-target:")
xTarget = io.read()
print("Enter y-target:")
yTarget = io.read()
print("Enter z-target:")
zTarget = io.read()
valid = true
else
print("Error: Must enter 'a' or 'r' for mode...\n")
end
end
valid = false
while valid == false do
print("\nMode\tx\ty\tz")
print(tostring(mode).."\t"..xTarget.."\t"..yTarget.."\t"..zTarget)
print("Send command? ('y' or 'n')")
option = io.read()
if option == "y" or option == "Y" then
modem.broadcast(100,1,xTarget,yTarget,zTarget,tostring(mode))
print("Command sent")
valid = true
elseif option == "n" or option == "N" then
print("Please re-select command.")
valid = true
else
print("Error: Must enter 'y' or 'n'")
end
end
if prgms[select] == "home" then
modem.broadcast(port,2)
end
if prgms[select] == "unready" then
modem.broadcast(port,3)
end
if prgms[select] == "reportPos" then
local pos = {}
modem.broadcast(port,4)
pos = {event.pull(10,"modem")}
print(pos[6].." "..pos[7].." "..pos[8])
print("press any key to continue")
os.sleep(3)
io.read()
end
if prgms[select] == "exit" then
print("Exiting Robot Commander...")
os.sleep(1)
end
end
-
this seems like a similar issue to issue #637 on github (tablet wont let me paste link)
-
Might as well keep you guys in the loop with server development:
I plan to revise the pack and the server before the end of the year (I've got college and job stuff to do so not much time for recreating stuff) since the mods I was originally going to use are now up to date and the current pack is a bit resource intensive. I'll post more details when I can / when i think of them.
-
I really need to look at this more often, Cat & CoLDarkness: Accepted, see me on IRC (Either as "Ender" or "Slender", depends on when you read this) for server details and the pack download. (Currently updating it)
-
This was (or something similar) discussed in IRC and I think the general outcome was "No", mainly because having a full computer in a single (or two) block space(s) completely goes against the look and feel of OC
-
This is also a fairly old topic (started in June)
-
No Problem
-
Computronics is it's own mod made by Asie, it adds a load of extra things besides the chat boxes
-
Computronics adds a "chat box", probably the one you used. With that you can do the event.pull("chat_message")
-
I've notified Michiyo via IRC about the 500 error so I guess she'll look when he can
-
1st part was discussed on IRC so I'll copy the bit of the log that matters:
[16:20] <@Ender> iceman11a: put a switch between them, it can transfer network messages but components wont be visible from the other side
[16:21] <@Ender> if you want to transfer power, the Power Distributor block is what you want[16:23] <iceman11a> Ender, The idea I had was to let the server have that option. Let the server have all the components and have to send that information to the pc requesting it.[16:24] <iceman11a> Ender, Your saying put a switch between each pc and sever. Is that right[16:26] <iceman11a> Ender, Or can I plug 2 pc's into the switch and plug the switch into the server,[16:27] <Magik6k> iceman11a: yep, you can[16:28] <iceman11a> Ender, So all of the above.[16:28] <iceman11a> It doesn't matter as long as these's a switch between them[16:36] <@Ender> iceman11a: yes, as long as the connections between the pcs have at least 1 switch inbetween it should be fineas for the modem stuff, if you write at the top of your script something like
server = "UUID HERE" computerA = "Blah"
then you can simply reference it as modem.send( server, port, data )
-
Copying from OC is a lot harder than pasting, if you want to edit it outside the game and have it show up instantly ingame, set bufferedFilesystems to false in the OC config. As for pneumaticcraft stuff, have you looked at the pressure monitor that can be attached to pipes? That will output a RS signal strength in correlation to the pressure inside the tube.
-
If you can get a mod to load the sound file, there's no reason why Masssound shouldn't be able to play it
-
Are you on a server when you're trying to access it? because you would need OpenComponents on the server as well (all luia stuff is done server side)
-
have you looked at the Wiki? If not then it's at http://ocdoc.cil.li
-
I think that is done by one of the robot upgrades but I cant remember what one (inventory manager or something), have a look on the OC Wiki ( http://ocdoc.cil.li ) for information on the component methods
-
I will experiment and post my findings later, if you could specify what MC version you want the info for that would be helpful
-
If you're using railcraft, why not use it's world anchors? (chunk loaders) yes, they may need enderpearls but they load the chunk fine (they load a 3 x 3 chunk area with the center one being the chunk the anchor block is in)
-
Sometimes CC stuff only gets loaded when CC is present so you may need it to even use it from OC (OpenComponents can only convert/use what it sees, if the CC stuff isn't loaded because CC isn't there then it's not going to do much good)
-
Updates are here, \o/
-
Dont use "local" in the luau prompt, it'll make it local to that line
-
Sirdabalot, accepted. Remind me tomorrow to whitelist you
Why is os.time so random(and stupid)?
in Programming
Posted
Its the seconds since the epoch (or in this case, world start)