Jump to content




[Railcraft Mod] Elevator Control


  • You cannot reply to this topic
137 replies to this topic

#1 OminousPenguin

  • Members
  • 93 posts

Posted 16 April 2012 - 02:03 AM

Latest version: 2.2.0b - (18 September 2013)

For use with Railcraft Mod.

Posted Image



Description
Your elevator may have as many floors as you wish. - They discover each other automatically.
Computer console with modem on each floor wired to; the elevator, a cart detector and a boarding (or holding) rail.
The user arrives at the boarding or holding rail and activates the computer. They see this:

Posted Image

The number is the height coordinate. They use the up/down arrow keys to select their destination and then press Enter. They are then moved onto the elevator by the boarding rail.
The console at the destination floor displays the message "Incoming cart, Please clear the track". All other consoles display the message "Elevator busy, please wait" and do not accept input until the cart has cleared the elevator.

Physical Setup
MineFactory Reloaded:
Posted Image

RedPower2:
Posted ImagePosted ImagePosted Image

The three colours are currently (2.2.0b) hard coded as easily accessible variables at the top of the program.

Software Installation

Pastebin code: VYwxa3su

Using the pastebin API:
1. Right click the computer and type: pastebin get VYwxa3su setup and press Enter/Return
2. Type setup and press Enter/Return
3. Follow the on screen instructions

Manual installation:

Setup wizard: http://pastebin.com/VYwxa3su
Main elevator control program: http://pastebin.com/iJWyUQVr

Very important note on using GPS
GPS can not work if all the hosts are on one axis. For example if all your hosts are exactly vertically above/bellow eachother it won't work. Place a computer off to the side and run gps host x y z

Feedback welcome. Please report any bugs or problems so I can fix them!

Posted Image
ComputerCraft + Railcraft: Elevator Control by Hamish Robertson aka OminousPenguin is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 Unported License.

Edited by OminousPenguin, 18 September 2013 - 04:15 PM.


#2 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 16 April 2012 - 08:14 PM

Looks amazing! I'll install this on my tekkit server tomorrow!
To fix disk drives, you should take a look at http://thetekkit.wik...Craft_Bug_Fixes or tell the server owner about it. :)/>

#3 OminousPenguin

  • Members
  • 93 posts

Posted 17 April 2012 - 01:08 AM

Let me know how you get on and what your users think.

Thanks for that link. I'll pass it on.

#4 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 17 April 2012 - 07:29 AM

I maybe could help you with the peer system thingy :)/>

#5 OminousPenguin

  • Members
  • 93 posts

Posted 17 April 2012 - 03:31 PM

Go for it. Just share your work here.
Or we could use an online collaborative editor like this: http://piratepad.net/uov5M1grVf

I guess the first thing to do would be removing
if inputFloor==tonumber(thisFloor) or inputFloor<0 or inputFloor>5 then
And adding instead a table of floors. The key could be the ID of the computer and the value could be the label of the floor.

We'd need to have a unique ID for the elevator so that you could have multiple elevators within range of each other without it messing up.
The announcement would have to specify the elevator ID and the label for that floor - These would both be provided by the user on installation.

Each computer maintains its own table of floors and listens for new computers announcing their addition to the system. When a new computer broadcasts it's presence, all existing computers would send their details to that computer.

Now that we've got labels instead of sequential numbers as floor identifiers, it'd make sense to have a 'graphical' interface.. Probably a list of floors with the selected floor indicated by square brackets and you change the selection with the arrow keys.

#6 Leo Verto

  • Members
  • 620 posts
  • LocationOver there

Posted 18 April 2012 - 08:17 PM

One more thing, I really like the idea of combining Railcraft and Computercraft, there are so many possibilities!

#7 OminousPenguin

  • Members
  • 93 posts

Posted 19 April 2012 - 06:19 PM

Post deleted

Edited by OminousPenguin, 23 March 2013 - 04:02 PM.


#8 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 19 April 2012 - 08:17 PM

View PostOminousPenguin, on 19 April 2012 - 06:19 PM, said:

Latest code here: http://piratepad.net/uov5M1grVf (Not for general use. Still has hard coded test data.)
I changed it slightly :)/>
I added a configuration program where the user can input the required data without messing with the code. It is a simple wizard. It gets called at the start of the prorgam. You can delete that line or chnage it if you want

Functions:
Spoiler


#9 OminousPenguin

  • Members
  • 93 posts

Posted 19 April 2012 - 08:38 PM

Let's keep dev chat to PiratePad.

#10 Wolvan

  • New Members
  • 384 posts
  • LocationIn the TARDIS

Posted 20 April 2012 - 10:52 AM

Oh sry Omni

#11 grazazel

  • Members
  • 11 posts

Posted 24 November 2012 - 10:41 AM

Hi was looking for something like this to use on a tekkit server I play on. Is there anyway you can upload a saved world witht eh elevator setup so i can see exactly how it is built please

#12 grazazel

  • Members
  • 11 posts

Posted 27 November 2012 - 02:20 AM

I have tried following the instructions but not working for me

#13 Kubikiri

  • New Members
  • 1 posts

Posted 30 November 2012 - 12:56 PM

Same here, on the install I am getting: bios:206: [string "install"]:4: ')' expected .. I'm trying to figure it out

#14 johnm109

  • New Members
  • 1 posts

Posted 18 December 2012 - 08:29 AM

i would love to do this on the server i play on but can you post more pictures or make a video of all this block placements for 2 floors thanks.

#15 OminousPenguin

  • Members
  • 93 posts

Posted 23 March 2013 - 02:59 PM

Hi all. I was just sorting through my bookmarks and found this site and thought I'd come and check it out.
computercraft.info was down for a few months lask year so I kinda assumed it was down for ever and stopped checking. (I just looked on wayback-machine and it was down for May and June)

I see some people have had problems. Please use the code from my original post, not anything from pirate pad

If anyone else has any queries or wants help getting my program running, just reply to the thread. I've turned on email notifications so you won't have to wait three months for a reply!!!

#16 Shnupbups

  • Members
  • 596 posts
  • LocationThat place over there. Y'know. The one where I am.

Posted 23 March 2013 - 03:10 PM

NO! THE NECROMANCY!!!!!

#17 OminousPenguin

  • Members
  • 93 posts

Posted 23 March 2013 - 04:12 PM

View PostShnupbups100, on 23 March 2013 - 03:10 PM, said:

NO! THE NECROMANCY!!!!!

NOOOOO!!!! WE'RE ALL GOING TO DIE!!!!

People have this notion that necroing an old thread is inherently bad. That is rubbish.
Necroing when you have nothing constructive to add, or if it was a discussion thread and the discussion came to an end, then it would be bad to necro. But I made a constructive post for the benefit of other people who may find this thread as grazazel did 7 months after it was abandoned.

#18 SyberSmoke

  • Members
  • 98 posts

Posted 21 May 2013 - 02:23 PM

I have been looking to use this also, I have been building a tower that would benefit from it. But at the same time some of the description is a touch confusing. Like you talk about an update computer in the text but make no mention of setting it up. So may be a little added detail would be nice.

Oh yes and Arise Chicken, CHICKEN ARISE!!!

#19 OminousPenguin

  • Members
  • 93 posts

Posted 21 May 2013 - 05:05 PM

Ok. First question is are you in multiplayer with no access to the server files and so need to type programs in manually? Or can you copy and paste files into the mod directory?

#20 SyberSmoke

  • Members
  • 98 posts

Posted 21 May 2013 - 05:51 PM

View PostOminousPenguin, on 21 May 2013 - 05:05 PM, said:

Ok. First question is are you in multiplayer with no access to the server files and so need to type programs in manually? Or can you copy and paste files into the mod directory?

Multiplayer: Yes
HTTP Access: Enabled
So I can run the pastebin commands and in fact have a masterControl computer with all the programs in it.

I am figuring it out as I go. What I am curious about is if you will be adding extra options to your code in the future. Things like touch monitor support, floor naming, spiffy menus...things like that. The niceties.

I am also a little curious, I do not see a "cart detector" (Feed the Beast: MindCrack) so would "Detector - ANY" be aplicable or is there another detector you had in mind.

Addition: Bug - attempting to use the install program returns "bios:338: [string "install"]:19: ')' expected





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users