Jump to content




[LanteaCraft / SGCraft] == ccDHD ==

lua computer utility

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

#101 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 12 July 2015 - 12:37 AM

View Postsquall2044, on 12 July 2015 - 12:28 AM, said:

Hello again Dog! I still don't know what was causing that error as I started using chunk loaders to keep the gates and computers loaded at all times.
What do you think about this: In ccDialer instead of at the top where it says "Host:<Gate-Address> have it say "Host:<Gate-Name>" if you named that particular gate?
Hey there, squall2044 :)

I have no idea what's causing that java error - a log file *might* help, but I'm not sure.

I thought about using the gate name in ccDialer instead of the address - there were some issues with trying to do that the way ccDailer is written. I'll revisit the issue, though, and see what I can do.

EDIT: I've made the change you requested - all hosts in ccDialer that are in the address book will be listed by name instead of address. With that change, I've updated the version numbers to RC8o and included a couple other minor fixes. Redownload ccDialer to get the new feature.

Edited by Dog, 12 July 2015 - 04:09 AM.


#102 squall2044

  • Members
  • 16 posts

Posted 13 July 2015 - 04:12 AM

Thank you that was quick

#103 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 13 July 2015 - 04:44 AM

You're quite welcome :) I just found a bug in the new code and fixed it so you might want to redownload ccDialer to make sure you have the latest.

#104 lieven121

  • Members
  • 14 posts
  • Locationsomewere in Belgium

Posted 13 July 2015 - 06:38 PM

Hi first I want to say thank you for how nice you have been : )
second I have cheked out your dialer and its really nice :)
third what is the os.queueEvent() for I have seen this but dont know what the use is

maybe concider adding pasting addresses (
 event, paste = os.pullEvent("paste') 
)

and found a few bugs
you can enter just any caracter ass address (this crashes the game btw(reported))
dissconect doesnt work if the gate has 9 chevrons locked but isnt connected (haven't found why)
and when clicking on that # number in the address gui and then click on somthing else the dialer returns
startup:1610: badd argument: double expected, got nil (ccdhd)


and great news I have looked at how you handel importing an exporting addressed and I will be able to support that and you dont need to do a thing :)

#105 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 13 July 2015 - 11:19 PM

Hey lieven121!

Thanks for checking out ccDHD - and especially, thanks for finding and reporting those bugs - I'll get on fixing those right away.

You're right - I need to add the ability to paste addresses - I'll add that in the near future. (EDIT: basic paste ability added to ccDHD & ccDialer and uploaded)

You are right, again - I don't do any validation checking on the characters entered - that's something I'll have to play around with and see if I can create something that works well. (EDIT: added to ccDHD & ccDialer and uploaded)

I'll look into the 9 chevron issue - not sure why that's happening. Can you tell me how you tested that? Did you let ccDHD lock nine chevrons then hit END Call? Or did you do it some other way?

The # in the address GUI is for changing the order of the gates in the address book - I'll look into that and get that fixed as well. (EDIT: fixed and uploaded)

That's great news about importing/exporting addresses! Thanks for considering that!

Edited by Dog, 14 July 2015 - 12:02 AM.


#106 lieven121

  • Members
  • 14 posts
  • Locationsomewere in Belgium

Posted 14 July 2015 - 12:06 AM

I added a address (to no real gate) then dialed it and when the 9 chevrons were locked I just pressed End Call it says disconnecting but the 9 chevrons stay locked

edit I have tested ant the reason this is happening is if the gate is connected you use
 line 420: onHook = pcall(gate.disengageStargate) 
but this only shuts down the gate and doesnt disengage the chevrons if you add
 disengageChevron() 
at line 421 the problem seems to be solved :)

and you might want to slow down the dialing time its a bit fast

note: concider having the program check if the last engaged chevron == the new one
if you engage the same schevron twice the kate makes a spinning sound but doesnt spin and actualy nothing changed (hope this is clear the way I say it )

Edited by lieven121, 14 July 2015 - 12:38 AM.


#107 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 14 July 2015 - 12:33 AM

Ahhh, gotcha. OK, I'll look into that and see if I can figure out what's wrong. Thanks!

#108 lieven121

  • Members
  • 14 posts
  • Locationsomewere in Belgium

Posted 14 July 2015 - 12:40 AM

View PostDog, on 14 July 2015 - 12:33 AM, said:

Ahhh, gotcha. OK, I'll look into that and see if I can figure out what's wrong. Thanks!
srr I was bussy testing and typing so i didnt see your post but look at my edited post

#109 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 14 July 2015 - 01:10 AM

If the gate is actually connected, disengageStargate() is supposed to disconnect and disengage all the chevrons, but I'm not sure how reliably it works - I haven't really done much testing yet. However if 9 chevrons are engaged, but the gate hasn't connected, the program *should* deal with that properly - I'll have to do some more testing with both of those cases.

EDIT: I have noticed that trying to disconnect immediately after connecting results in a long delay before the disconnect actually takes place - that had me thinking that the disconnect wasn't working at first. I'll file an issue report on that.

As for the dialing speed - I let the gate determine the dialing speed. The program waits for the gate to engage a chevron before starting with the next glyph and chevron. I'm not a big fan of slowing things down without a need so I probably won't change that.

The way ccDHD's dialing sequence is written there should be no way for the same chevron to be activated twice in a row. If you see that happen, please let me know because it really shouldn't be possible.

Thanks for all your help and testing! Please let me know if I can help with your dialer - once I get these dialing/hangup issues sorted out in ccDHD I'll take some more time and do some more testing on your program.

Edited by Dog, 14 July 2015 - 01:17 AM.


#110 lieven121

  • Members
  • 14 posts
  • Locationsomewere in Belgium

Posted 14 July 2015 - 01:25 AM

View PostDog, on 14 July 2015 - 01:10 AM, said:

...

As for the dialing speed - I let the gate determine the dialing speed. The program waits for the gate to engage a chevron before starting with the next glyph and chevron. I'm not a big fan of slowing things down without a need so I probably won't change that.

The way ccDHD's dialing sequence is written there should be no way for the same chevron to be activated twice in a row. If you see that happen, please let me know because it really shouldn't be possible.

Thanks for all your help and testing! Please let me know if I can help with your dialer - once I get these dialing/hangup issues sorted out in ccDHD I'll take some more time and do some more testing on your program.

I am planning to make the dialing speed optional (fast/realistic) because the dialing is now so fast the gate cant keep up but its handy if you need to get somewere

about the chevrons if you dial for example 111111111 you wil hear the gate spin but it doesnt spinn the not spinning is intentional the sound not but

finaly no problem for some reason I am good at finding bugs and Thanks I will keep that in mind and the same counts for you if you need help or so just let me know

#111 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 14 July 2015 - 01:30 AM

Ah, OK, I see what you mean about the spinning and the sound. Interesting - I'll keep an eye on that and file an issue report if it turns out to be undesirable behavior.

Again, thank you, lieven121!

EDIT: I discovered why ccDHD has problems disconnecting from invalid addresses - LanteaCraft generates a connect event when engageStargate() is called, not when a connection in established. ccDHD is fooled into thinking it has a valid connection. Hanging up in LanteaCraft is different depending on whether you're actually connected or not so ccDHD applies the incorrect method for hanging up. I'll have to rethink how ccDHD determines if there's a connection or not.

Edited by Dog, 14 July 2015 - 03:16 PM.


#112 Aaronstar

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

Posted 28 July 2015 - 11:24 PM

hey i know this happened a while ago, but in reference to the problem Jeremythewiz was having, it could be that if there is some kind of web filter on his computer or WiFi and pastebin is blocked. the computer might download the HTML code of the access denied page and think it is a program. i know this happened to me once, i tried having cc download a prog while on a school WiFi, and pastebin was blocked for whatever reason. the computer received data and thought the download was successful, however it received something completely different. it didn't throw an error until i tried to run it and it saw characters it didn't expect. try going to the page on a browser before downloading it just to be sure.

Edited by Aaronstar, 28 July 2015 - 11:46 PM.


#113 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 28 July 2015 - 11:59 PM

Thank you, Aaronstar, that didn't even occur to me - I'll keep that in mind for future reference :)

#114 sirjason

  • Members
  • 18 posts

Posted 07 August 2015 - 07:04 PM

Can anyone share with me how they got Biometics working via pictures and such? I must not understand it fully, also with Biometics is it possible to only allow certain people to dial it like in SG1?

#115 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 07 August 2015 - 11:30 PM

Hi sirjason,

Let me see if I can get you going with the biolocks. I'll start with a basic outline of what to do - feel free to ask questions and I'll do my best to clarify...

For the biometrics, you'll need to have Gopher's Peripherals installed. The first step is to connect a biometric lock (not a keypad) to the ccDHD computer either directly or via network cable & modems. The next step is to program the biolock using BioPup (available in the downloads section of the OP) - if you need help programming a scanner with BioPup let me know and I'll walk you through it. After that, you go into ccDHD settings and select what you want the biolock to do (require a swipe at startup or not, and/or control iris/lockdown/nothing after logged in).

Regarding your second question...there is no way to effectively 'control' who can use ccDHD and who can't other than to place the ccDHD computer and monitors in a location that only authorized people can get to. I've considered adding a locking mechanism to ccDHD but that introduces a whole new set of problems that I'm not really interested in trying to tackle, so it ultimately boils down to physical security being the only way control who has access and who doesn't.

#116 sirjason

  • Members
  • 18 posts

Posted 08 August 2015 - 05:50 AM

Ok, I setup a computer with biopup and a biometric lock which are linked to the same network the ccDHD is on. I scanned myself in and Biopup shows me as having an account on the scanner, but when I go to the setting section of ccDHD it says No BioLock present.

#117 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 08 August 2015 - 06:22 AM

Is the modem on the biolock turned on?

#118 sirjason

  • Members
  • 18 posts

Posted 08 August 2015 - 07:33 AM

Yes and it's on the network.

#119 Dog

  • Members
  • 1,179 posts
  • LocationEarth orbit

Posted 08 August 2015 - 04:02 PM

I built a setup similar to your description and it's working as expected, so let's start with which versions you are using...
(ccDHD, ComputerCraft, stargate mod, Gopher's Peripherals)

#120 sirjason

  • Members
  • 18 posts

Posted 08 August 2015 - 04:21 PM

Also I am getting a peripheral:74: Too long without yielding

ccDHD 1.5.00, ComputerCraft is 1.7.3, Stargate Mod is SGCraft-1.9.3, and BioLock 2.2 pr1.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users