Jump to content




[LanteaCraft / SGCraft] == ccDHD ==

lua computer utility

  • You cannot reply to this topic
357 replies to this topic

#281 Dex_Luther

  • Members
  • 24 posts

Posted 27 May 2017 - 05:04 AM

First, I've got to say Dog, I hope you still hang around here. I assume you do because the OP seems to have been updated "recently" (as in this year), so I want to say thank you for this program. Reading through a few pages of this thread (because there's way too much to have gone through all of it!) you've spend a lot of time and effort making, updating and supporting this program, which is awesome. Again, Thank-you.

I'm using MC 1.7.10. I know old, but a lot of the mods I love haven't updated "yet" or were abandoned. Anyways, I have both SGcraft and Lanteacraft installed. Both whatever the latest version that could be found for my version of MC on Curse. Using the lastest version of the Direwolf20 pack for 1.7.10

I'm working on a world that a friend what has never played minecraft with mods before (Trying to pull him away from the PS4 Minecraft lol) and I are going to be playing on. Setting up a spawn with a few simple machines set up like automated farms and Tinker's smeltery, and autocrafters feeding into storage drawers so that he can see some examples of what the mods are like, and giving him the change to grab some food and simple tools out the drawers to give him a little bit of a head start with the basic wooden tools and such.

Anyways, my plan is that once we're done taking a tour of the spawn we head through a stargate to start our adventure, and the perfect place to feature ComputerCraft running your gate control program.

I really like the 3x3 monitors that show the gate, but was wondering if there was a way to have an option to have a second 3x3 monitor show the list of gate addresses? I would probably add an abort button down at the bottom in a corner that cancels dialing/disconnects the gate, but I could probably figure out how to add that myself. Kind of like what the 1x1 monitor displays only bigger, and without the need to click on the 3x1 monitor to start the dialing.

#282 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 27 May 2017 - 06:19 AM

Hey, Dex_Luther - thank you for the kind words, they're always appreciated.

Unfortunately, in order to provide the functionality you want, I would have to completely rewrite some not insignificant parts of ccDHD and provide a method to select which 3x3 monitor is which. Doing it during setup wouldn't work because you can add and remove monitor arrays whenever you like and a restart will always sort ccDHD out again. Figuring out a sane way to provide selection support for an unknown number of 3x3 monitor arrays (which is what would really need to happen to make this work well for anyone) is not something I'm keen to tackle and would (most likely) greatly complicate the ccDHD interface (which is already complicated enough).

If I can come up with a way to do with a 2 wide x 3 tall array (or something similar) I'll add it with one of the next updates. However, I'm not making any promises - ccDHD is basically feature complete - the only reason it's still in RC status is because LanteaCraft is still in flux and hasn't yet released with a full CC feature set yet.

FWIW, I like the idea, so I will definitely tinker with it - I just can't promise it'll make into the final product.

#283 Dex_Luther

  • Members
  • 24 posts

Posted 27 May 2017 - 05:55 PM

View PostDog, on 27 May 2017 - 06:19 AM, said:

Hey, Dex_Luther - thank you for the kind words, they're always appreciated.

Unfortunately, in order to provide the functionality you want, I would have to completely rewrite some not insignificant parts of ccDHD and provide a method to select which 3x3 monitor is which. Doing it during setup wouldn't work because you can add and remove monitor arrays whenever you like and a restart will always sort ccDHD out again. Figuring out a sane way to provide selection support for an unknown number of 3x3 monitor arrays (which is what would really need to happen to make this work well for anyone) is not something I'm keen to tackle and would (most likely) greatly complicate the ccDHD interface (which is already complicated enough).

If I can come up with a way to do with a 2 wide x 3 tall array (or something similar) I'll add it with one of the next updates. However, I'm not making any promises - ccDHD is basically feature complete - the only reason it's still in RC status is because LanteaCraft is still in flux and hasn't yet released with a full CC feature set yet.

FWIW, I like the idea, so I will definitely tinker with it - I just can't promise it'll make into the final product.

Cool beans. 2x3 seems like it would be a good fit.

Alternatively, I don't know how possible it would be, but a small button in the corner of the gate display on the 3x3 sounds like something that could be doable. Tap the button to switch it to the list display. With multi 3x3 arrays it would be a matter of hitting the button on one of them (or all of them).

I do really like the 'modularness' though. Glad you didn't just consolidate tons of information on one huge monitor array.

#284 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 27 May 2017 - 07:45 PM

I'll see if I can come up with something - I definitely like the idea; but I don't code as often as I used to so, even if I do manage to work it in, it'll probably be quite awhile before it's released.

#285 Aaronstar

  • Members
  • 27 posts
  • Locationmid transit in the T.A.R.D.I.S.

Posted 07 June 2017 - 12:16 AM

so i have a problem where if the computers unload they shut down and i have to go remove blocks so i can access both computers and turn them on every time. is there a way to fix this (without chunkloaders we dont have them)

#286 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 07 June 2017 - 12:34 AM

There aren't any known "solutions", but one workaround is to connect an easily-accessible computer to the others using wired modems, then give it a startup script along these lines:

peripheral.find("computer", function(comp, periph) periph.turnOn() end)
os.shutdown()


#287 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 29 June 2017 - 02:20 AM

View PostBomb Bloke, on 07 June 2017 - 12:34 AM, said:

There aren't any known "solutions", but one workaround is to connect an easily-accessible computer to the others using wired modems, then give it a startup script along these lines:

peripheral.find("computer", function(comp, periph) periph.turnOn() end)
os.shutdown()

Thank you, Bomb Bloke :)/>

View PostDex_Luther, on 27 May 2017 - 05:55 PM, said:

Cool beans. 2x3 seems like it would be a good fit.

Alternatively, I don't know how possible it would be, but a small button in the corner of the gate display on the 3x3 sounds like something that could be doable. Tap the button to switch it to the list display. With multi 3x3 arrays it would be a matter of hitting the button on one of them (or all of them).

I do really like the 'modularness' though. Glad you didn't just consolidate tons of information on one huge monitor array.

Hey Dex_Luther - I've figured out a way to add a dialing list to the 3x3 monitors, but there are some limitations. This feature only works for ccDHD monitors (not for gateLiaison monitors) and changing the view on one monitor changes the view on all monitors connected to that install of ccDHD. Handling the monitors separately is more than I wanted to tackle. Also note that in order to get this working I had to do an ugly hack in order to not break the program. Because of that, this will be the last feature I add to ccDHD.

I'm still testing the new version, but if you'd like to try it out before it's released let me know and I'll send you a download URL.

EDIT: RC9Y with 3x3 address book and dial/hangup support is released - you can download it via the instructions in the OP.

Edited by Dog, 02 July 2017 - 01:55 AM.


#288 JacenK

  • Members
  • 3 posts

Posted 21 July 2017 - 01:01 AM

I really like the look of your program, I am very new to ComputerCraft, so I'm sorry if it is an obvious question.
If I connect gateLiason and ccDHD with wireless modems will they set up the modems themselves during installation? Or will I have to manually do that before installation. Same goes for wired modems, do I have to set anything up or if they are connected via cable will the programs take care of it? if I do have to do it manually, how do I do it?
Thanks

#289 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 21 July 2017 - 03:42 AM

Hey JacenK,

Welcome to ComputerCraft and the CC forums!

All programs in the ccDHD suite autoconfigure themselves - you don't have to do anything. If that doesn't work for you for some reason, please let me know what you're trying and what result your getting and I'd be happy to help.

#290 JacenK

  • Members
  • 3 posts

Posted 25 July 2017 - 05:28 AM

Hey Dog,
I got the program setup and it works great! I only have three questions. First, is that when editing/creating an address in the address book, there is a "Drop" toggle, I can't find anything saying what it does and wanted to know. Second, is it possible to remotely lockdown your gate using ccDialer? Third, is there anything preventing someone else from connecting to my ccDHD's pSync host and copying the address book?
Thanks for the fabulous work,
JacenK

#291 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 26 July 2017 - 01:20 AM

Heya JacenK,

Glad to hear you're having a great experience with ccDHD :)


Let me answer your questions in order...

The "Drop" toggle tells ccDHD to automatically attempt to hang-up on the call if that particular address is dialing in (it's a way of blacklisting gates if the server allows both sides to terminate the connection).

Yes, you can remotely put another ccDHD system into lockdown by sending the lockdown password (this can also be used to clear lockdown). The iris password strictly controls the iris (and doesn't work if the target gate is in lockdown).

No and yes. When pSync is set to "Full", anyone with ccDialer can pull your address book (or send theirs) - that's why I added "Basic"; it allows control of the gate without allowing remote access to the address book. FWIW, what I do is leave it on basic and only turn it to full when I need to sync (or want to share) my address book.


If you have any other questions or comments, please let me know.

Edited by Dog, 26 July 2017 - 01:22 AM.


#292 JacenK

  • Members
  • 3 posts

Posted 14 August 2017 - 05:50 AM

How hard would it be to port this to OpenComputers? Because as much as I love ComputerCraft, the server I play on almost exclusively just removed it in favor of OC.

#293 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 14 August 2017 - 03:08 PM

Heya JacenK,

View PostJacenK, on 14 August 2017 - 05:50 AM, said:

How hard would it be to port this to OpenComputers?
For me, it would be a major project - not one I'd want to tackle. I've considered it in the past, but the differences would require re-writing major portions of all the programs in the suite.

View PostJacenK, on 14 August 2017 - 05:50 AM, said:

...the server I play on almost exclusively just removed (CC) in favor of OC.
I understand your frustration. Hopefully, when CC starts getting official opensource releases this will change.


EDIT: If you require an OC based DHD program check out DarknessShadow54's OpenComputers DHD program

Edited by Dog, 14 August 2017 - 05:07 PM.


#294 darkdragon

  • Members
  • 16 posts
  • LocationQueensland (AU)

Posted 24 December 2017 - 02:44 PM

i tried your ccDHD and gateLiaison 2.0 RC gives startup:26: attempt to index ? (a nil value) so cant finish setup

#295 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 24 December 2017 - 05:00 PM

Hey darkdragon. Sorry to hear you're having problems with ccDHD. You're actually the second person that has reported that error. Unfortunately, as far as I can tell, it's not something in my code (that line is just assigning variables) - it appears to be something in your modpack is overwriting either the term or the os APIs that are built into ComputerCraft.

If you could provide the following information it would go a long way toward helping me figure out what's really going wrong...

1. What modpack are you using?
2. What versions of MC / CC / Forge are you using?
3. What version of LanteaCraft or SGCraft are you using (and which mod)?

I'm going to guess you're using the latest ccDHD - if that's not the case, please let me know. Knowing the previous information should help me not only figure out what's going on but also whether there's a fix for it.


EDIT: Thanks to Bomb Bloke for pointing out my obvious blunder - a fix will be up shortly.

EDIT2: Fix is up - redownload gateLiaison and it should work fine for you now. My apologies for the inconvenience - especially for such an obvious issue.

Edited by Dog, 25 December 2017 - 12:44 AM.


#296 Bomb Bloke

    Hobbyist Coder

  • Moderators
  • 7,099 posts
  • LocationTasmania (AU)

Posted 25 December 2017 - 12:24 AM

You're also attempting to index into the os.getComputerLabel() string metatable (to get "sub"), but at that point you haven't ensured that the label is non-nil.

#297 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 25 December 2017 - 12:38 AM

View PostBomb Bloke, on 25 December 2017 - 12:24 AM, said:

You're also attempting to index into the os.getComputerLabel() string metatable (to get "sub"), but at that point you haven't ensured that the label is non-nil.

Oh my gosh - how did I not see that obvious mistake?!? Thank you Bomb Bloke - I can work around that.

EDIT: Fix is up!

Edited by Dog, 25 December 2017 - 12:44 AM.


#298 darkdragon

  • Members
  • 16 posts
  • LocationQueensland (AU)

Posted 25 December 2017 - 04:59 AM

View PostDog, on 25 December 2017 - 12:38 AM, said:

View PostBomb Bloke, on 25 December 2017 - 12:24 AM, said:

You're also attempting to index into the os.getComputerLabel() string metatable (to get "sub"), but at that point you haven't ensured that the label is non-nil.

Oh my gosh - how did I not see that obvious mistake?!? Thank you Bomb Bloke - I can work around that.

EDIT: Fix is up!

thank you for the quick fix and response it is an awesome add-on to a server with stargates on it just wish there where transport rings lol

now all i get is no stargate detected

gateliaison is offline

but the startgate base block is on top of the advanced wireless turtle

Edited by Bomb Bloke, 25 December 2017 - 10:51 AM.


#299 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 25 December 2017 - 04:47 PM

Do you have a stargate/CC adapter block installed between the stargate and the turtle? Without that adapter block the turtle or computer won't be able to see the stargate.

#300 darkdragon

  • Members
  • 16 posts
  • LocationQueensland (AU)

Posted 25 December 2017 - 11:39 PM

oh ok ill try that lol
ty





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users