Im noot the best with lua so i thought i would post it here. What if someone could create a computercraft program were you can put your portal code in so people can log on to there computers and come visit you? This saves it being sent in chat and stuff. Just though this would be a good idea
I'm not exactly sure how you'd get a program to be sent to all computers on CC that could be edited and viewed by multiple people at the same time. It's like having two programs on your computer (a physical computer) try to access and change a file simultaneously, just won't work. So here's my solution: We can have something to compile all portal codes (similarly to the portal code thread in these forums) or have a computer at spawn that lists the portal codes and their owners. Perhaps have users use a touchscreen program on an adv. computer at spawn to enter in their code and name. The computer would then take that information and add it to the list of codes. There should also be options to edit/delete codes and a button (on the touchscreen monitor) to allow users to see what codes there are. With this solution though, takes quite a bit of trust from SKCraft players. To have a person delete every code could be devastating. EDIT: Hey you're 13 (like me) + welcome to SKCraft!
Would be a fairly complicated piece of code, depending on how you want it setup. If each person were to have their own computer that sends their player code a central code server, that would take much more time to setup the computer at each persons base than it would to simply type the code into the chat. Not to mention that a lot of people don't want their portal code given freely, but only to a few people. Having verification for each computer sending over wireless rednet would be complex as well. Overall, the amount of code it would require is very much not worth the benefit. Another option is to have just one computer at a set location that lists people's codes, but why bother coding that when you can just have a portal hub with a dialer, where everyone can add their own dialer code. But since the dialer doesn't honor the claimed/lock rules, its susceptible to griefing.
Yup im 13 and thanks for the welcome. I think it could be a good idea but yet we could just make a form post were people post them
We've already got a forum post up for portal codes, but hey...no one likes leaving MC and going to SKCraft.com just to find out a portal code.
That's what I said, but who would really want to code such an extensive program for something that's really not needed0
i'm tempted :3 and yea i kinda just skimmed over your your post in sort of a TL;DR fashion XD and a way you could set up new computers to the network would be for the person to go to the server and enter their computer ID manually into the computer
I thought you could only right-click dialers if you're not the owner. Even if you can break them, who would do it? It's a damn easy thing to notice so they'd get banned pretty quickly...
You can dial using CC so having a database for dialling computers would be awesome. Just search for the player you want to dial if they are in the database it requests the code and dials it. Sounds like a must from the coding wizards!
If you just have a single computer at a set location, it really isn't that hard to make, just need to setup a file database formatting for read/write, input field and string matching for search, unless we used a giant touchscreen that would have everyone's name on it in alphabetical order, that when you push it, dials the person's code. Edit: If in claimed land or locked, you cannot break a dialer, but you can delete the codes in the dialer
If you can get Lua to read JSON, XML or similar, a database shouldn't be too difficult. You know what would be cool? A button that makes the computer detect you and automatically dial whatever portal is set to be your home portal.
A simple text file would be just fine, separated by line, using a delimiter to separate the name from the code. Also without having some kind of lib installed that would add the formatting to the os, it would read the json or xml file as plain text anyways. I was just thinking about that. Having some kind of trigger that would add a player and the currently open portal code to the database, or something like that. I don't know if this is possible but I will be doing some testing later to see how much interaction the computer can have with a portal modifier/dialer Edit: So i have done some experimenting. It is not possible to get the current code of an active portal, or read the code from a dialer. Which means that in order for a player to add their code, they would have to have some kind of interaction with the computer, such as typing their code into the computer or saying it in chat, however the formatting (how they spell and space the portal code) would have to be exact.
Are we discussing about having a large touchscreen that allows people to call other people by simply clicking their name? That's near impossible to do with only 1 portal. We could potentially do something of that sort using Mystcraft, pretty similar to Direwolf20 but that's like copying his ideas. If we are talking about having a computer that lists portal codes when you click on a given person's name, then we could perhaps use a touchscreen monitor that has an on screen keyboard (complicated, I know) that gives options to add users and their codes. To have users type their name into the computer would not work due to people possibly deleting the program (people somehow find a way, even with code to prevent termination) and this wouldn't work because you can't use blocks at spawn . My idea: Touchscreen monitor at spawn, click buttons to add/delete/view (only mods should delete) portal codes. Upon clicking add, users will put their name and code into the system. Computer would save it to a file. Now if another player who clicks view would see a list of people, click a person's name to view their portal code (computer gets it from the file). Sounds simple, time taking to code though.
No it is possible to do a single monitor with everone's name on it. At the very least we could have either a single monitor with multiple pages on it, which would be a somewhat complicated gui, or have multiple monitors. The monitors would actually be the hardest part of the code, at least from my experience. Aside from the monitors, I could code the rest of it in a few hours
Well if that's something we can all agree on, we should get a coding team up. Chances are I won't be on it since I'm the youngest (and second most inexperienced person within this thread), but at least it's a start. EDIT: Wait deadman's here
What I was thinking is that all the players have a portal and a computer. These computers will have a small ui with a search function. The computer contacts a centralized database which contains the portal codes and their owner. The person types in the owner of their desired destination and it will search to see if there is a match on the owner. If there is it dials the portal. Obviously the database would need active administrators so that they can add people accurately to it. I am not sure that this would b possible in cc due to my lack of knowledge in lua.