Looking for a computercraft pro!

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

MartenPalu

New Member
Jul 29, 2019
9
0
0
Hey, guys!

We have aserver that we are building a town in.
And the town will have:
Central bank
ATM's
Card payments in supermarket
Personalized Floppy disks as debit cards (they will ask a 4-digit pin)

Is there someone capable of doing that?
I know it is possible :)

Thanks!
 

MartenPalu

New Member
Jul 29, 2019
9
0
0
Well, it is :)
When I made a town in Tekkit, a guy in the server created the whole system.
Do you know someone who would like to try?
 

myrddraall

Active Member
Jul 29, 2019
13
0
26
I dont have the time personally or know anyone who would. But the best place to ask would be computercraft.info
 
Z

Zeek6728

Guest
well this work?


local n = 0
local function Go()
turtle.foward()
n = n + 1
end
local function Back()
turtle.back()
n = n - 1
end
local function Retern()
local r = n
turtle.turnLeft()
turtle.turnLeft()
for i = 1,n do
turtle.foward()
end
end
local function Retern_B()
turtle.turnLeft()
turtle.turnLeft()
for i = 1,r do
Go()
end
end

for i = 1,10 do
Go()
end
for i = 1,2 do
Back()
end
Retern()
Retern_B()
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
well this work?

Code:
local n = 0
local function Go()
  turtle.foward()
  n = n + 1
end
local function Back()
  turtle.back()
  n = n - 1
end
local function Retern()
local r = n
   turtle.turnLeft()
   turtle.turnLeft()
   for i = 1,n do
     turtle.foward()
   end
end
local function Retern_B()
  turtle.turnLeft()
  turtle.turnLeft()
  for i = 1,r do
    Go()
  end
end

for i = 1,10 do
  Go()
end
for i = 1,2 do
  Back()
end
Retern()
Retern_B()
Putting your code between code tags will make it easier to read as it should keep the spaces. Another thing I need to ask is what your code has to do with the question as I don't see even the slightest need for a turtle depending on what peripherals he has access too (even if there are none he probably doesn't need a turtle anyway)

As for what the op wants, it will indeed be a lot of work. You would first need to implement a way that randomly creates unique strings so the different floppy drives can be identified. These strings need to be large and "random" enough that players won't be able to fake others. Then there is also the problem that unless something got changed even the cables of CC are NOT secure AT ALL! Thus you will need to implement a way to handle the data between the central server and all the shops securely.
You will also need to think of a way to store all the data as computers can only store a limited amount of stuff (you can increase this in the config file I believe). This probably means you want to store all the actual data on a real database but unless I am forgetting something CC can't talk directly to a database thus you need to setup a http server that can communicate with both of them.

After you have made all this you will soon realize that certain parts of town probably won't work, this is because even the cables have a limit on how many blocks a message can be transfered. To solve this you will need to setup computers that can receive messages and send them further again. There might (and probably is already) code for this.

As you can see your request has become pretty big, this is the problem with it. There are probably many people that like this kind of stuff, myself included but I won't have the time for it and I suspect that most people that can do and like this kind of projects have the same problem. I would suggest to look for more help at the computercraft forum, or try to reuse the code that was made on the tekkit server. (Assuming you still have access to that)
 

ratchet freak

Well-Known Member
Nov 11, 2012
1,198
243
79
That was a worthless necro of a 2 year old topic. It's a bit of a nerd snipe TBH...

You can get around the cable limitation with wireless communication and relay satellites. Combine with existing real world encryption like SSL and communication portion can be secure.

However there is no way to keep the disk contents secret reliably. It'll be pretty easy to setup a fake payment booth that'll copy the disk and store the pin and then proceed to do the actual payment man-in-the-middle style.

There will need to be a peripheral that detects the actual player doing the payment and that data is then used to verify identity. There used to be one in open-peripherals I believe.