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

Villager Shopping Mall-COMPUTER CONTROLLED :D

Started by steel_toed_boot, 30 June 2013 - 11:57 AM
steel_toed_boot #1
Posted 30 June 2013 - 01:57 PM
This project took me about 2 weeks to do (~20 hours) and finished it about a month ago. I was designing my Screen Designer v1 API at the same time as I was making this system, effectively making the project drag on.

Sorry about the jumpy cuts and awkward demonstrations. The computer never crashed at any time (exception:before demo started) in case you are wondering. The code is completely stable.

View it! :)/>
http://www.youtube.com/watch?v=Xasa_Jr-lcI


Code:
https://github.com/steel-toed-boot/Vi...


CREDITS:

Music:
Bottlesmoker - "PIXEL HEART"
Bottlesmoker - "GLITTER OF SUNRISE"


Inspired by Direwolf20. :)/>
Inspiration video:
http://www.youtube.com/watch?v=n4lZ4DSwR0E




How it all works:
There are really only 16 buttons for all the villagers in the system, plus the send button and config button.
All data is read from a text file labeled "idNames.txt" and thrown into a table.
The page number and button id combined give me the unique villager number.
So villager 17 would be buttonId+(pageSize*(page-1)) where pageSize = 16 and buttonId=1, since the first button is pushed.
[1+(16*(2-1))=17]
It then goes into the table with that number and the button copies the required information and displays it on the button.

It then takes that identifier and sends a wireless redstone signal to the required cart and sends it to you.
Popeye #2
Posted 30 June 2013 - 03:21 PM
Wow! This is amazing.
TheOddByte #3
Posted 02 July 2013 - 02:48 PM
Truly awesome! :)/>
I could see that this would be useful and awesome on servers too :)/>
Galactica4 #4
Posted 11 July 2013 - 01:33 AM
Really usefull for passive servers!!