Jump to content


GopherAtl's Content

There have been 6 items by GopherAtl (Search limited from 30-March 23)


By content type

See this member's

Sort by                Order  

#278943 CC seems to be dead.

Posted by GopherAtl on 19 April 2019 - 12:19 AM in General

CraftOS 2.0 was never intended to be a CC/MC thing at all - it was a lua API for game development based on CC's APIs. That detail aside, what Lupus said.



#278936 Turn user input to code?

Posted by GopherAtl on 13 April 2019 - 12:44 AM in Ask a Pro

what he said. I did see your edit, and added on additional info that seemed highly relevant. AAP is an archive resource as well as a live one.



#278933 Turn user input to code?

Posted by GopherAtl on 12 April 2019 - 11:50 AM in Ask a Pro

Actually throwing errors on user-entered code like that seems a bad idea, typos happen and you'll have to handle it gracefully or just have the program crash every time the user doesn't get the code they're entering perfect the first time. You'll want to use pcall() to call the function once loadstring() has done the parsing, I'd recommend something more like this:

function executeCode(codeString)
    --try to parse the string as code
    local func,err=loadstring(codeString)
    local success=false
    --did we succeed?
    if func then
   	 --have a func, safely call it and catch the result
        success,err = pcall(func)
    end

    return success,err
end

Simple use example:
while true do
    write("]")
    local succ,err=executeCode(read())
    if succ then
        print("code executed!")
    else
        print("error:"..err)
    end
end



#278927 Bundled Cable Support

Posted by GopherAtl on 08 April 2019 - 12:28 PM in Ask a Pro

aaah, it wasn't deleted, just split and moved! Would be nice of the forum software had notified me of this, or at least corrected it's own links to replies, but apparently I stumbled into it.

@Bomb Bloke I didn't know PR:Compat was even a thing, so that is probably my problem, yes. I feel dumb now. Seems an odd design choice to have it *be* a separate thing, to me, but w/e.

Of course, if SimpleLogic Wires has the wires without all the other stuff, I'm probably going to go that route instead, anyway - literally all I want from P:R is that, and if Ender IO's had compatibility, I wouldn't need either.

Thanks everyone for the help/info!



#278922 Bundled Cable Support

Posted by GopherAtl on 07 April 2019 - 11:08 PM in Ask a Pro

View PostBomb Bloke, on 06 April 2019 - 03:50 AM, said:

I haven't done much experimentation with inter-mod compatibility since MC1.7.10, as it's seemed to me that it's been relatively easy to find working combinations from MC1.8 onwards. Certainly it looks to me like ProjectRed should be working in MC1.12 (so long as you don't make the mistake the linked user did!).

Yeah, no, with latest versions of CC:T and CC and latest versions of P:R, bundled cables do not connect to computers. I didn't dig around trying various recent versions, but did make sure I was using the latest of all mods for 1.12.2

View PostSquidDev, on 06 April 2019 - 07:40 AM, said:

<snip!>
If the mod has an API, I generally try to add support on my end - that's what I've done for SimpleLogic Wires. It's just sadly a lot of mods don't really seem to expose any way of adding your own support - it has to be baked into them. I'll definitely have another look at EnderIO and P:R compat. I don't tend to play heavily modded packs these days, so don't really notice these integration issues - sorry for not picking this up earlier :/.

Oh, will try simplewires at some point; if there is literally a single form of bundled cables that works, that's enough to keep me happy. Even if it doesn't work, frankly, I'd recommend not going out of your way if I'm the only person who's even noticed, or at least, cared enough to even mention it. Cheap as CC computers are, most people seem perfectly happy to throw down computers at every control point; I just personally enjoy making a single, central computer do it all. Your no-doubt limited time would be better spent on stuff people *do* care about, whether that's stuff more players want or stuff that makes CC less scary for servers.



#278918 Bundled Cable Support

Posted by GopherAtl on 05 April 2019 - 05:05 PM in Ask a Pro

So, Squid. I'm curious here. Note I come to you only because you're the most currently-active person who's been involved in what is, at this point, years of minor irritation.

My very first experience with CC was waaay back when RedPower was king, and one of my favorite synergies was using RP's bundled cable with computercraft. Then RP went away, and bundled cables with it.

Since then, more bundled cables have come and gone, and at no point - at least, no point when I've had the itch and decided to break out MC+CC again - have I been able to get any of them to work with any version of ComputerCraft.

Came in this time hoping EnderIO cables might work, with either the official 1.12 version of CC, or with CC:T, but it seems they do not, at least not as bundled cables; they'll output a redstone from a selected signal color, but that's it. So added Project Red transmission, and tried it's bundled cables - and they don't connect to computers, CC or CC:T. Just ignore them entirely. Went googling, and an issue on github from last year, where you said you'd fixed Project:Red cables, and a follow-on comment seemed to imply that you *had* fixed EnderIO before that before EnderIO apparently removed support on their end.

So, not accusing you or complaining here, I'm just honestly wondering... why is it such an issue? I accept that it is, because as I said, this has been a persistent issue for more years than CC:T has existed, and you're just the latest to wrestle with it. I'm just honestly curious if there's a reason it is, apparently, an insurmountable problem, and thought you might have some insight, having wrestled with it yourself?

:edit: clarifying addendum, it's been possible for a long time to accomplish all the same things with a network of computers, or using one of a variety of redstone peripherals that have existed over the years. My semi-annual attempts to use computers with bundled cable are motivated in significant part by nostalgia - like I said, that was my original methodology for doing a wide variety of computer-controlled devices. I also just like the idea of having one master computer controlling a whole base directly, rather than a network of computers with the added indirection that involves.