This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
jimthenerd1999's profile picture

PDATerm - A Tele-Communication Terminal for Pocket Computers

Started by jimthenerd1999, 19 April 2014 - 03:44 PM
jimthenerd1999 #1
Posted 19 April 2014 - 05:44 PM
PDATerm v0.1

A Tele-Communication Terminal

for Portable Computers


This is a mobile terminal made for Portable Computers introduced in ComputerCraft 1.6. I was amused by the possibilities of what the portable computers can do so I built the mobile terminal. How the terminal works is just like the mobile phones in real life. When they start up, they will automatically search for mobile base stations around the terminal. Once it finds one, it registers itself with the base station, and you are online.

Submit BUG REPORT / SUGGESTIONS [Here]

Functionality in Version 0.1
- Auto-Detect available base stations and connect at startup.
- Registration with the base station
- Start up password (since when you die the computer shuts down and it requires a password on the next startup
- Rednet console. It allows you to do nearly everything you can do with the Redstone API on a graphical user interface.
- Displaying current GPS position.
​- Integration with the chat program.

What I will add in later version
- A functioning mail server and client (with GUI of course)
- Modified firewolf client (if I am allowed)
- A 1 on 1 calling system (in text)

Screenshots:
Spoiler




Getting PDATerm:
You can download PDATerm here:
(Pastebin)
Server: http://pastebin.com/r6UYySPN
Client: http://pastebin.com/aF9xrt9q
(On Computer)
Server: pastebin get r6UYySPN server
Client: pastebin get aF9xrt9q client
Edited on 22 April 2014 - 10:26 PM
CastleMan2000 #2
Posted 21 April 2014 - 10:01 PM
Interesting concept, but I can't really get it to work that easily, (that is, without hassle) because of at least two, perhaps more (I haven't checked yet) reasons: first, the red net.open() modem position is set, which isn't really a big problem, just a little bit of work in some situations, and second, there is no fs.exists() checking for files, so the local variables at the beginning attempt to call nil. Perhaps you could fix these, I'd love to try it!
jimthenerd1999 #3
Posted 21 April 2014 - 11:04 PM
Interesting concept, but I can't really get it to work that easily, (that is, without hassle) because of at least two, perhaps more (I haven't checked yet) reasons: first, the red net.open() modem position is set, which isn't really a big problem, just a little bit of work in some situations, and second, there is no fs.exists() checking for files, so the local variables at the beginning attempt to call nil. Perhaps you could fix these, I'd love to try it!

Thank you for your ideas, and I will definitely try my best to fix those problems.

I don't really understand your first point. The position of the portable computers is fixed to the back. So there is no need to detect anything or let the user enter anything, it is just there. I am enabling the rednet at the start up, I think there is some confusion.
CastleMan2000 #4
Posted 22 April 2014 - 01:44 AM
Oh, I meant the server, which I presume is meant to run on a base station i.e. stationary computer.
jimthenerd1999 #5
Posted 22 April 2014 - 08:26 PM
Oh, I meant the server, which I presume is meant to run on a base station i.e. stationary computer.

Oh. You meant the server. I am sorry for the misunderstanding.
Livewire13 #6
Posted 16 June 2014 - 06:50 PM
I'm having a similar problem, I also had to change the side of the modem. I also get an error,

PDATermServer:7: attempt to index ? (a nil value)

Can you try your code with the modem set on the back and test it?

sorry for double

After further investigation, this code is pretty broken. I solved the first nil errors by creating the file it wants and putting a line in each, but then it throws an error at line 14


PDATermServer:14: attempt to perform arithmetic __sub on nil and number
DigitalMisha #7
Posted 20 November 2014 - 12:49 PM
There are no such files on my in-game computer. I tried to create them manually, but then there is such mistake:

PDATermServer:14: attempt to perform arithmetic __sub on nil and number

What format must be that files?
Dragon53535 #8
Posted 20 November 2014 - 11:31 PM
Set line 1 in your "services" file to be 0
TheEvilSocks #9
Posted 20 January 2015 - 08:00 PM
It's sad to see this project go, this was pretty cool.
gametechish #10
Posted 16 March 2015 - 05:53 PM
did the messaging and mailing system ever work on here. Also, this topic should be renamed to smartphone system
Edited on 16 March 2015 - 04:58 PM
ry00000 #11
Posted 07 May 2015 - 02:54 PM
It says startup: 20:attempt to perform arithmetic sub on __nil and number
Bomb Bloke #12
Posted 07 May 2015 - 11:45 PM
Yes, the scripts appear to be unfinished - Jim hasn't logged into this forum for over a year now, so that's unlikely to change.
Bendymelon1 #13
Posted 20 May 2015 - 12:59 AM
I've decided to fix the scripts, so they are usable. I have been, and still am in contact with the developer, Jim. Because of this, the fixes made here will be in the next (official) version of PDATerm.



Client: http://pastebin.com/F1w35yV0
Server: http://pastebin.com/EKv2ZS9L

**EDIT: The server has a relatively minor bug that can fixed by running the setup script provided!

Setup: http://pastebin.com/P4rMeDKu



This bug will be fixed soon, so this setup file is temporary.
Edited on 20 May 2015 - 08:24 PM
jimthenerd1999 #14
Posted 05 June 2015 - 03:09 AM
I've decided to fix the scripts, so they are usable. I have been, and still am in contact with the developer, Jim. Because of this, the fixes made here will be in the next (official) version of PDATerm.



Client: http://pastebin.com/F1w35yV0
Server: http://pastebin.com/EKv2ZS9L

**EDIT: The server has a relatively minor bug that can fixed by running the setup script provided!

Setup: http://pastebin.com/P4rMeDKu



This bug will be fixed soon, so this setup file is temporary.

Thanks.

The code works pretty well now, really appreciate the update.

xD
Bendymelon1 #15
Posted 29 November 2015 - 05:29 PM
Jim and I have been working on this on and off for about half a year.

We have created an experimental home screen GUI that can be enabled from the home screen.
You return to the classic home screen design, by pressing the returnbutton in the bottom-right corner of the new GUI.

New Features:
  • Plans (# of texts, and # of websites you can browse every 20 minutes (real life time)*)
  • New Client GUI
  • Server Logs
  • Registration Function for Server
Currently, the server can only handle one request at a time, and the client will select the server that responds the fastest when searching for a carrier.

Here are the pastebins:
http://pastebin.com/cwZk4B5S - Client
http://pastebin.com/HBNEf7G6 - Server