Posted 14 December 2019 - 04:31 AM
Current Release: v2.2 STABLE
Post Edit: 11/01/2020 3:25PM UTC+10:00
Latest Topic Update: Updated upcoming features for 2.3
Ever wanted to set up toll points for public spaces? Or just wanted to give yourself that lovely ecoserver type feeling? ;)/>
Look no further.
This system currently works on Display name and item id, So very useful for password type things.
Apologies for my bluntness ;)/> . I will add screenshots etc of how this works in-game.
Regarding Auto Updater:
The Auto updater allows me to push non-important updates. Eg: appearance coding.
In other words, so long as you have auto-update enabled and have an internet connection it updates regardless.
if your config version is different to release version. your tollway will reboot to apply the downloaded update imemdiately.
This means you always have the updated version. Even if it doesn't show all of the changes right away before an update push.
This Update (v2.2 STABLE):
-Now works for MC1,12.2
-Easy Autoupdate toggling. Using the var autoUpdate near the top of the code.
-Hungry mode option. Now with item name and ID checking!
Next Update: V2.3 STABLE:
-Plethora tollway control. Using the Redstone Integrator and Manipulator. With more to come.
-Optional - Entry and No Entry screens.
Features under consideration:
-(my idea): Destination storage checking? Will check how full the destination inventory or chest is and alert you. Undecided how worthy this is to add.or how it will work.
-(my idea): Opencomputers tollway control integration
-(my idea): Opencomputers Tollway Edition
More info to come!
BUGS:
-If toll less than 64 and stack is less than toll. it will take stack and toll cost from the next stack.
if total chest count is or more than the toll cost and each stack is less than toll it will empty the chest without opening. however, all counts taken are counted towards debt.
So make sure you are shift-clicking or alt-shift-clicking your payment in so it auto stacks. (or use Merge button if have)
-Similar regarding hungry mode. However hungry mode is notably faster in terms of access speed.
Have added item condensing capabilities to keep these bugs under wraps.
-Hungry mode does not use note block (yet)
How it works:
You select all the options you want in the Easy Setup Config Wizard at first start. And it will handle your config file for you.
For certain updates. There might be a few patching questions to bring your config up to speed.
Check out update info to see if you need to answer any questions for update.
Features:
-3 modes of operation: freepass, debt-toll, and perma-toll
-Hungry mode for paid types with ID checking if set up.
-Easy Setup Config Wizard (ESCW)
-Status Screen (ESCW) (Optional)
-Display a title of your choosing on the Status screen (Optional)
-Display debt info if using debt-toll on Status screen (Optional)
-Note Block use for Insufficient funds (ESCW) (Optional)
-Peripheral Checking for chests and status screens (ESCW)
-Container size verification (ESCW)
-Networking Interface (ESCW)
-Auto Self Updating - Silent
-Current config screen for reference whilst setting up your wiring etc
-Select almost any amount for toll
-Redstone or Bundled cable output
Status screen example:

Note: Example Only! Debt info does not show for perma-toll as perma-toll is permanent.
It is not recommended to change the config unless you know exactly what you are doing.
Remember: If trouble stirs, simply delete config and restart.
Documentation still to be finished!
Documentation:
How to set up:
Make sure you have an internet connection or this won't work.
Then place down your computer and disk drive and type the following:
Make sure everything is connected up then just run through the setup wizard for the options you want. Done!
Regarding Patcher:
I have been able to patch up everything myself to a point. So updating over shouldn't be an issue. But if I've missed something. I apologize. And I recommend that you delete config and restart.
For those who had V2.1 STABLE and prior:
You will be asked to enter a network name of the chest or inventory used to deposit items.
Due to how CC now has wired modem blocks. It is now much easier to network all chests or inventories and allow the network to handle item moving.
Examples of tollway setups:
Here's my testing setup to show you guys.
Remember. Items can pass through network cables but not any computers themselves.

More setup examples still to come!
Other possible uses:
-Password point.
-Item dispenser, give players something in return for a cost.
-Possibly many more.
Notes:
-To avoid errors the maximum toll you can set in config is consize x 64. Unless set to hungry mode.
-If there are any problems. it is recommended to delete config and restart
This program is under constant updating.
So check back occasionally if you want for feature updates etc.
Enjoy your tollway :)/>
Feel free to share your weird and wonderful creations and other uses (I would be very curious what some of you guys come up with)
If you guys have any ideas for the tollway let me know below. You will receive full credit for your idea if it has or will be added on this topic and code as has Lupus590.
In future versions all prints not within config screen will be removed as the program is finalized. Keeping only your config screen visible. Let me know if you think there should be any specific prints anywhere or if I should keep any of the existing prints. And once again you will receive credit for your contribution.
(cleaned up the topic a bit)
Code: https://pastebin.com/QEai09dx
Changelog: https://pastebin.com/A1yHeBZ0
If you require the updater for any reason it is here:
https://pastebin.com/c55QLhtG
I have also added an os.reboot() and renamed "autoupdate" to "update" to simplify the updater
———CREDITS———
–Programming issues:
–Leo - Discord
–Ocawesome101 - Discord
–dael - discord
–SquidDev - Discord
–Fatbuychummy - Discord
–Gollark - Helping fix autoupdater
Post Edit: 11/01/2020 3:25PM UTC+10:00
Latest Topic Update: Updated upcoming features for 2.3
Ever wanted to set up toll points for public spaces? Or just wanted to give yourself that lovely ecoserver type feeling? ;)/>
Look no further.
This system currently works on Display name and item id, So very useful for password type things.
Apologies for my bluntness ;)/> . I will add screenshots etc of how this works in-game.
Regarding Auto Updater:
The Auto updater allows me to push non-important updates. Eg: appearance coding.
In other words, so long as you have auto-update enabled and have an internet connection it updates regardless.
if your config version is different to release version. your tollway will reboot to apply the downloaded update imemdiately.
This means you always have the updated version. Even if it doesn't show all of the changes right away before an update push.
This Update (v2.2 STABLE):
-Now works for MC1,12.2
-Easy Autoupdate toggling. Using the var autoUpdate near the top of the code.
-Hungry mode option. Now with item name and ID checking!
Next Update: V2.3 STABLE:
-Plethora tollway control. Using the Redstone Integrator and Manipulator. With more to come.
-Optional - Entry and No Entry screens.
Features under consideration:
-(my idea): Destination storage checking? Will check how full the destination inventory or chest is and alert you. Undecided how worthy this is to add.or how it will work.
-(my idea): Opencomputers tollway control integration
-(my idea): Opencomputers Tollway Edition
More info to come!
BUGS:
-If toll less than 64 and stack is less than toll. it will take stack and toll cost from the next stack.
if total chest count is or more than the toll cost and each stack is less than toll it will empty the chest without opening. however, all counts taken are counted towards debt.
So make sure you are shift-clicking or alt-shift-clicking your payment in so it auto stacks. (or use Merge button if have)
-Similar regarding hungry mode. However hungry mode is notably faster in terms of access speed.
Have added item condensing capabilities to keep these bugs under wraps.
-Hungry mode does not use note block (yet)
How it works:
You select all the options you want in the Easy Setup Config Wizard at first start. And it will handle your config file for you.
For certain updates. There might be a few patching questions to bring your config up to speed.
Check out update info to see if you need to answer any questions for update.
Features:
-3 modes of operation: freepass, debt-toll, and perma-toll
-Hungry mode for paid types with ID checking if set up.
-Easy Setup Config Wizard (ESCW)
-Status Screen (ESCW) (Optional)
-Display a title of your choosing on the Status screen (Optional)
-Display debt info if using debt-toll on Status screen (Optional)
-Note Block use for Insufficient funds (ESCW) (Optional)
-Peripheral Checking for chests and status screens (ESCW)
-Container size verification (ESCW)
-Networking Interface (ESCW)
-Auto Self Updating - Silent
-Current config screen for reference whilst setting up your wiring etc
-Select almost any amount for toll
-Redstone or Bundled cable output
Status screen example:
Spoiler


Note: Example Only! Debt info does not show for perma-toll as perma-toll is permanent.
It is not recommended to change the config unless you know exactly what you are doing.
Remember: If trouble stirs, simply delete config and restart.
Documentation still to be finished!
Documentation:
How to set up:
Spoiler
Save this to a floppy. call it whatever you want, in this instance, let's just call it tollway.install.Make sure you have an internet connection or this won't work.
function Update()
local h, err = http.get("https://pastebin.com/raw/QEai09dx")
if not h then printError(err) return end
local f = fs.open("startup", "w")
f.write(h.readAll())
f.close()
h.close()
os.reboot()
end
Update()
Then place down your computer and disk drive and type the following:
cd disk
tollway.install
Make sure everything is connected up then just run through the setup wizard for the options you want. Done!
Regarding Patcher:
I have been able to patch up everything myself to a point. So updating over shouldn't be an issue. But if I've missed something. I apologize. And I recommend that you delete config and restart.
For those who had V2.1 STABLE and prior:
You will be asked to enter a network name of the chest or inventory used to deposit items.
Due to how CC now has wired modem blocks. It is now much easier to network all chests or inventories and allow the network to handle item moving.
Examples of tollway setups:
Here's my testing setup to show you guys.
Remember. Items can pass through network cables but not any computers themselves.

More setup examples still to come!
Other possible uses:
-Password point.
-Item dispenser, give players something in return for a cost.
-Possibly many more.
Notes:
-To avoid errors the maximum toll you can set in config is consize x 64. Unless set to hungry mode.
-If there are any problems. it is recommended to delete config and restart
This program is under constant updating.
So check back occasionally if you want for feature updates etc.
Enjoy your tollway :)/>
Feel free to share your weird and wonderful creations and other uses (I would be very curious what some of you guys come up with)
If you guys have any ideas for the tollway let me know below. You will receive full credit for your idea if it has or will be added on this topic and code as has Lupus590.
In future versions all prints not within config screen will be removed as the program is finalized. Keeping only your config screen visible. Let me know if you think there should be any specific prints anywhere or if I should keep any of the existing prints. And once again you will receive credit for your contribution.
(cleaned up the topic a bit)
Code: https://pastebin.com/QEai09dx
Changelog: https://pastebin.com/A1yHeBZ0
If you require the updater for any reason it is here:
https://pastebin.com/c55QLhtG
I have also added an os.reboot() and renamed "autoupdate" to "update" to simplify the updater
———CREDITS———
Spoiler
–Lupus590: Up and coming hungry toll idea and programming issues.–Programming issues:
–Leo - Discord
–Ocawesome101 - Discord
–dael - discord
–SquidDev - Discord
–Fatbuychummy - Discord
–Gollark - Helping fix autoupdater
Edited on 11 January 2020 - 02:52 AM