- ComputerCraft | Programmable Computers for Minecraft
- → PomTom12's Content
PomTom12's Content
There have been 14 items by PomTom12 (Search limited from 30-March 23)
#250546 Ultimate Redstone Control
Posted by PomTom12 on 19 April 2016 - 12:18 PM in Pocket Programs
#232537 PomTom National Bank
Posted by PomTom12 on 14 September 2015 - 12:16 PM in Operating Systems
The create account screen now allows admins to set the starting balance and select the account type using buttons.
The code has now been updated to a newer version of computer craft and open peripherals and so for those with old versions it may not work.
Some of the screen shots have been changed and the manual has finally been updated too.
Thanks to all those that have had an interest in the Bank, I really appreciate it
#225603 PomTom National Bank
Posted by PomTom12 on 14 July 2015 - 09:22 AM in Operating Systems
when I post an update on here you just need to click the 'Update' button on the Admin Panel (see Screen Shots).
I have also included on the main screen a counter application to help those with lots of currency find out what they need to put in the deposit fields
I apologise for those who have already installed the bank, I will post the pastebins for the Counter and new Admin Screen update
Thanks to all those that have had an interest in the Bank I really appreciate it
#223475 LimeFyre 2 - A Simple DE
Posted by PomTom12 on 27 June 2015 - 07:44 AM in Operating Systems
#223416 PomTom National Bank
Posted by PomTom12 on 26 June 2015 - 11:00 PM in Operating Systems
PokeAcer, on 26 June 2015 - 08:28 PM, said:
If you dont wanna use Diamond Chest, YOU NEED TO USE REGULAR CHESTS!!!
Strongboxes do not get the item from creative ones, and I couldn't withdraw any funds from my bank in SSP when using resonant strongboxes next to the creative ones.
Also, PomTom12,
Deposit funds aren't working when I try. I place my item into the left and try but it fails. Maybe because I can't set the item (When I hit REF it skips to the make user page, no level 2/3/4/5 adding) so I've been manually using the programs. Also, you need to fix terminating...
Can you fix the REF error, or is it because I'm using a regular chest and not a strongbox on outside and a regular chest inside for levels (which is fine because I can withdraw perfectly)
Yeah thats correct you can use any chest for the withdraw computers. Thats strange it didn't work for you with the resonant strongbox, it seems to work fine with the withdraw computers.
The reason why I have diamond is when I was first creating the bank I wasn't going to have the creative strongboxes and needed a chest big enough to store the currency.
Once I changed the plan I couldn't be bothered changing it, I will mention that in the original post and manual that any chest can be used for that bit thanks
Okay I will have a look at that now to see whats happening. It shouldn't be to do with the chests at the front, the only reason why I have the resonant strongboxes there is that they can have a block above them and still be opened.
yeah I am working on making it so you can't terminate the programs, pretty insecure at the moment haha.
#223301 PomTom National Bank
Posted by PomTom12 on 26 June 2015 - 10:14 AM in Operating Systems
DannySMc, on 26 June 2015 - 10:10 AM, said:
accounts = { user1 = { -- Stuff here }, user2 = { -- Stuff here } }
yeah its the transaction file that would get too big really quickly. When a user is transferring funds to another player it creates a record for the sender and one for the receiver like this;
Sender
{
TranDesc = "Debt",
PayeeID = "PomTom",
UserID = "Tom",
TranAmount = 3,
TranID = 3,
TranType = "Transfer",
TranTotal = 247,
TranCRDR = "MINUS",
},
receiver
{
TranDesc = "Debt",
PayeeID = "Tom",
UserID = "PomTom",
TranAmount = 3,
TranID = 2,
TranType = "Transfer",
TranTotal = 253,
TranCRDR = "ADD",
},
#223296 PomTom National Bank
Posted by PomTom12 on 26 June 2015 - 10:08 AM in Operating Systems
DannySMc, on 26 June 2015 - 09:18 AM, said:
Creator, on 26 June 2015 - 09:15 AM, said:
Errr I wouldn't say a file per person, like on my database for the app store it isn't one app per table... it is a row per app...? So idk, depends what type of table you are using...
Well it is an array {} saved to a file and each account is seperated by a comma. An example of the userAccounts file is;
{
UserBalance = 10477523,
UserPin = "40853",
UserPass = "pass",
UserID = "PomTom",
UserType = "Admin",
},
I like the idea of the database option so the data can be accessed across multiple servers and will probably handle more users
#223280 PomTom National Bank
Posted by PomTom12 on 26 June 2015 - 09:10 AM in Operating Systems
Creator, on 26 June 2015 - 09:03 AM, said:
Do you imaagine what happens when you have got 1000 users. The table becomes huge and loading times too. I'd rather have a file per user.
I decided to go with tables because I thought it would be easier having everything in the one file. And thought it was a waste creating a file per user. I have one that holds all the transactions and another one that stores the user accounts. Do you think it would be better having separate files? I am always open to better alternatives
#223266 PomTom National Bank
Posted by PomTom12 on 26 June 2015 - 08:36 AM in Operating Systems
DannySMc, on 26 June 2015 - 08:32 AM, said:
PomTom12, on 26 June 2015 - 08:19 AM, said:
Also do you use a database? for your bank because this would be awesome across server?/>
Okay cool haha
No I don't have a database I just use tables saved to a file. I think it would be cool to do too, I just have no idea at the moment on how to do it.
#223262 PomTom National Bank
Posted by PomTom12 on 26 June 2015 - 08:19 AM in Operating Systems
#223221 PomTom National Bank
Posted by PomTom12 on 26 June 2015 - 02:24 AM in Operating Systems
#222592 [MC 1.7.10][CC 1.65] ÜNA - Über Networking Antennas
Posted by PomTom12 on 22 June 2015 - 03:54 AM in Peripherals and Turtle Upgrades
#222125 Quadracoptors 0.2.0 [MC 1.7.10 | CC 1.65+]
Posted by PomTom12 on 19 June 2015 - 12:39 PM in Peripherals and Turtle Upgrades
#221917 PomTom National Bank
Posted by PomTom12 on 18 June 2015 - 11:54 AM in Operating Systems
PomTom National Bank
What is it?
I have created a ComputerCraft Bank which allows players to store and retrieve upto 5 levels of currency.
Each currency level can be set to whatever item you want and has a field to set the worth.
The worth field is how much of the lowest currency each level is. It then calculates the difference between the levels for you the best it can.
For an example on my server the currency is;
Level 1: Shillings
Level 2: Pounds - 1 Pound is worth 50 Shillings
Level 3: Diamonds - 1 Diamond is worth 2,500 Shillings
Level 4: Jewels - 1 Jewel is worth 125,000 Shillings
Level 5: Crowns - 1 Crown is worth 6,250,000 Shillings
This all works out to be a 50 between each level.
You dont have to have the same difference per level. For our server we found it easier.
The Bank is made up of 8 computers;
- 4 Currency Withdraw computers
- 1 Database computer
- 1 Client Computer
- 1 Server and Withdraw in one
- Currency Board (Optional - scrolls through the worth of each level.)
Each player has a username, password and Bank Card (floppy disk).
This card does not hold any balances or passwords but has a unique 5 digit pin which is an added layer of security for player accounts.
Please feel free to make changes to it, I just ask that my Minecraft name PomTom12 be mentioned as the original developer.
I would like to mention the following people because without their tutorials on YouTube and programs such as NPaintPro I would not have gotten
the bank to where it is now, so thanks;
- Nitrogen Fingers
- TheStillRendering
- DireWolf20
- Dan200
What can Everyone do?
All players can do the following once logged in;
- Deposit Funds
- Transfer Funds
- Withdraw Funds
- View Recent Transactions
- Count Funds
- Change Password
What can Admins do?
For players with Admin access;
- Create Account
- Delete Account
- List Current Users
- Reissue a bank card to a player
- View Currency Levels
- Update currency levels
- Update Bank
- Reset Passwords
Screenshots
Front of Bank
Inside Bank
Main Screen
Counter Screen
Login Screen
Account Screen
Deposit Screen
Withdraw Screen
Transfer Screen
Admin Panel
Create Account
List Accounts
List Currency Levels
New Currency Screen
How to Install?
If you would like to download and build one on your server/single player world I have a manual here;
https://www.dropbox....anual.docx?dl=0
Requirements:
- Computercraft 1.74
- OpenBlocks-1.7.10-1.4.4.jar
- OpenModsLib-1.7.10-0.8.jar
- OpenPeripheralCore-1.7.10-1.2.jar
- OpenPeripheralIntegration-1.7.10-0.3.jar
- OpenPeripheralAddons-1.7.10-0.4.jar
Updates
Update 14.09.2015:
- The list account screen has been updated to allow for admins to reset passwords. It allows multiple users with pages.
- Create account screen has been updated to have radio like buttons for the account type and the starting balance isn't hard coded so can be whatever the admin wants.
- The account screen has been changed to include a settings button. This allows users to change their password.
- The code has been updated to a newer mod version, they are;
- Computercraft 1.74
- OpenBlocks-1.7.10-1.4.4.jar
- OpenModsLib-1.7.10-0.8.jar
- OpenPeripheralCore-1.7.10-1.2.jar
- OpenPeripheralIntegration-1.7.10-0.3.jar
- OpenPeripheralAddons-1.7.10-0.4.jar
How to update the Bank
Client
- Press the update button in the Admin Control Panel on the client computer.
- Press and hold Ctl+T until you get to a command line.
- type pastebin get eSgrKy6s updateServer and hit enter
- type updateServer and hit enter
- Reboot by pressing and holding Ctrl+R
Database
- Press and hold Ctl+T until you get to a command line.
- type pastebin get Z9viAGE6 updateDatabase and hit enter
- type updateDatabase and hit enter
- Reboot by pressing and holding Ctrl+R
Previous Updates
Update 14.07.2015:
- There is now a Counter Application on the main screen to help players determine how much to put in the deposit screen fields
- The Admin Panel has been updated to include a Update button for the client computer
if you have an existing version of the bank you can run the below command to get the update, after you do this you just use the button for future updates;
- pastebin get Yi3qzHk3 tempInstall
Update 27.06.2015:
- You don't have to have resonant strongboxes or diamond chests as shown in the pictures and manual. The diamond chest was because of an original build of the bank and hasn't been changed and the resonant strongboxes allows for a block to be placed on top while still be accessible.
- I have just made an update to stop termination on screens (Ctrl+T) and have applied some validation on a lot of the fields
[center]
- ComputerCraft | Programmable Computers for Minecraft
- → PomTom12's Content