82 posts
                
             
            
                Posted 20 January 2013 - 12:47 AM
                Hi In my tekkit server i have built a jail. In each jail there is a chest. What i wish to do is to have  a sensor controller and when the player joins the server and lands in the jail, the sensor controller would detect it and send out a redstone signal.
Each Jail dimensions are 5*5.
Once the signal would be sent a filter would send out food.
Thanks in advance
                
             
         
        
        
            
            
                
                    
                
                2088 posts
                
                    
                        Location
                        South Africa
                    
                
             
            
                Posted 20 January 2013 - 12:49 AM
                You would have to have the computer for updates from the sensor for when a player joins. And then it fires, send a redstone signal.
I've never used the player sensor card, there is one right?
                
             
         
        
        
            
            
                
                    
                
                82 posts
                
             
            
                Posted 20 January 2013 - 12:54 AM
                Yes a proximity sensor i think. I can get it to detect my co-ordinates but nothing more
                
             
         
        
        
            
            
                
                    
                
                2088 posts
                
                    
                        Location
                        South Africa
                    
                
             
            
                Posted 20 January 2013 - 12:59 AM
                Well, store the co-ordinates that you will be if you were to be in the jail with the max X and min X etc like:
one corner - 2x, adjacent corner - 10x
etc.. I don't know how to explain that part and then when the 'proximity' sensor sends the co-ords check if the co-ords are between the co-ords within the jail, if it is then do the code
                
             
         
        
        
            
            
                
                    
                
                82 posts
                
             
            
                Posted 20 January 2013 - 01:01 AM
                I understand what you mean but im near useless with LUA coding. Could you explain a bit more
                
             
         
        
        
            
            
                
                    
                
                7508 posts
                
                    
                        Location
                        Australia
                    
                
             
            
                Posted 20 January 2013 - 01:07 AM
                Here is a program I wrote for another kind of sensor. Some things will obviously need changing but it should help point you in the right direction. 
http://pastebin.com/asSLPyqZSorry I can't help more and/or explain more, but I'm on my phone. I'll try to explain more when I get back to my computer…
 
                
             
         
        
        
            
            
                
                    
                
                82 posts
                
             
            
                Posted 20 January 2013 - 01:19 AM
                Thanks for all your help
                
             
         
        
        
            
            
                
                    
                
                730 posts
                
                    
                        Location
                        London, UK
                    
                
             
            
                Posted 20 January 2013 - 01:20 AM
                On a tekkit server you'll really struggle to get CCSensors working properly and reliably. I'd really recommend just trying to get the information you need with a very very small setup first before planning anything bigger.
                
             
         
        
        
            
            
                
                    
                
                82 posts
                
             
            
                Posted 20 January 2013 - 01:21 AM
                Yes when you get home could please explain what needs changed, thanks so much by the way!
                
             
         
        
        
            
            
                
                    
                
                7508 posts
                
                    
                        Location
                        Australia
                    
                
             
            
                Posted 20 January 2013 - 01:21 AM
                On a tekkit server you'll really struggle to get CCSensors working properly and reliably. I'd really recommend just trying to get the information you need with a very very small setup first before planning anything bigger.
I've found it quite easy and no big problems… What problems are you having getting it working?
 
                
             
         
        
        
            
            
                
                    
                
                7508 posts
                
                    
                        Location
                        Australia
                    
                
             
            
                Posted 20 January 2013 - 01:21 AM
                -snip-
Oops damn phone!
                
             
         
        
        
            
            
                
                    
                
                7508 posts
                
                    
                        Location
                        Australia
                    
                
             
            
                Posted 20 January 2013 - 04:00 AM
                Yes when you get home could please explain what needs changed, thanks so much by the way!
Sorry this is taking so long… remiX and I are making up a text tutorial for these forums… we will give you a link to the post when its up :)/>
 
                
             
         
        
        
            
            
                
                    
                
                2088 posts
                
                    
                        Location
                        South Africa
                    
                
             
            
                Posted 20 January 2013 - 04:23 AM
                When TheOriginalBit posts the Tutorial, there is a sample code for Proximity which seems to not show the readings of a selected target now and then, other times it will… Don't know why though.
                
             
         
        
        
            
            
                
                    
                
                7508 posts
                
                    
                        Location
                        Australia
                    
                
             
            
                Posted 20 January 2013 - 04:34 AM
                
                
             
         
        
        
            
            
                
                    
                
                82 posts
                
             
            
                Posted 20 January 2013 - 11:17 AM
                Hi thanks. I tried using your program today and it said too many emc things around or something like that what does this mean and how do i fix this
                
             
         
        
        
            
            
                
                    
                
                7508 posts
                
                    
                        Location
                        Australia
                    
                
             
            
                Posted 20 January 2013 - 11:25 AM
                Hi thanks. I tried using your program today and it said too many emc things around or something like that what does this mean and how do i fix this
The program that I wrote was intended for displaying the power levels of BatteryBoxes, MFE's and MFSU's on a computer monitor. However there is only a limited amount that can be displayed on a monitor so when this is the case, I programmed the computer to tell you there are too many to display so that your not like "HEY its not showing them all!"
The ways to fix this are:
- Add more height to the monitor thats attached to the computer
 - Reduce the amount of power storage units the sensor can see by spreading them out
 
However since you were wanting to detect players I suggest that you read through the tutorial that remiX and I made… ( link in the last reply by me )…