Transponder Control/Display | ByteSized Starbase Tutorial
Dislikes: 0
-----------------
In this tutorial I show you how to set up a transponder in Starbase. You will learn how to add a small button to your ship that acts as both a control for your transponder being on/off and also a display for whether you are inside a safe zone or not. The code for the program is listed below. If there is something you'd like a short tutorial on, tell me about it in the comments!
Edit: I have added the program based on the comments from @JerbilKonai. It is more responsive now. However, the added speed will now sometimes undo your button presses if you press the button while the update line is being read. Besides the increased speed, the reduction in line count means that I could fit a little display key at the bottom too.
Needed Materials:
Transponder
Basic Yolol Chip
Yolol Chip Socket
Warning Light Button
Control Panel (place to put the button)
- - - - - - - - - - - - YOLOL PROGRAM RESPONSIVE- - - - - - - - - - - - - - - - -
//Safezone Indicator and Transponder Control
transN=:trans transO=:trans btnN=:SZ btnO=:SZ //Setup First Values
blnkN=:SZblink blnkO=:SZblink
blnkN=:trans*(1+9*:inSZ) btnN=(NOT (:inSZ*(NOT :trans)))//UpdateStates
IF :SZ!=btnO THEN transN=(NOT transO) btnN=(NOT btnO) END //Press
:trans=transN :SZBlink=blnkN :SZ=btnN //Set Button & Trans.
transO=transN btnO=btnN blnkO=blnkN GOTO4 //Set Olds to News
//Variable Table:
//Warning Button :SZ = ButtonState, :SZblink = ButtonEnableBlink
//Transponder :trans = transponderActive, :inSZ = insideSafeZone
//Internal transN = transponderOnNew, transO = transponderOnOld
// btnN = buttonOnNew, btnO = buttonOnOld
// blnkN = ButtonBlinkNew, blnkO = buttonBlinkOld
//Display Key:
//In SZ | Trans On | Blink
// No | No | Solid
// No | Yes | Fast
// Yes | No | Off
// Yes | Yes | Slow
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - YOLOL PROGRAM EASY TO USE - - - - - - - - - - - - - - - -
//Safezone Indicator and Transponder Control
transN=:trans transO=:trans btnN=:SZ btnO=:SZ //Setup First Values
blnkN=:SZblink blnkO=:SZblink
IF (NOT :inSZ) AND (NOT :trans) THEN blnkN=0 btnN=1 END //Update...
IF :inSZ AND (NOT :trans) THEN blnkN=0 btnN=0 END //Internal...
IF (NOT :inSZ) AND :trans THEN blnkN=1 btnN=1 END //States
IF :inSZ AND :trans THEN blnkN=10 btnN=1 END
IF :SZ!=btnO THEN transN=(NOT transO) btnN=(NOT btnO) END //Press
IF transN!=transO THEN :trans=transN END //Set Button & Trans.
IF blnkN!=blnkO THEN :SZBlink=blnkN END
IF btnN!=btnO THEN :SZ=btnN END
transO=transN btnO=btnN blnkO=blnkN GOTO4 //Set Olds to News
//Variable Table:
//Warning Button :SZ = ButtonState, :SZblink = ButtonEnableBlink
//Transponder :trans = transponderActive, :inSZ = insideSafeZone
//Internal transN = transponderOnNew, transO = transponderOnOld
// btnN = buttonOnNew, btnO = buttonOnOld
// blnkN = ButtonBlinkNew, blnkO = buttonBlinkOld
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Table of Contents:
00:00 Intro - You Know Why by Loyalty Freak Music
00:13 Showcase
00:37 Materials - Hydro Dip Different Items by Crafsman
01:17 Adding the Program & Setting up Devices
02:40 Demonstration & Explanation
03:31 Outro - Stardust by Loyalty Freak Music
----------------------------------------------------------------------------------------------------------
Music:
"You Know Why" by Loyalty Freak Music
https://www.chosic.com/free-music/all/?keyword=Loyalty Freak Music
"Hydro-Dip Different Items"
By @TheCrafsMan
Used with permission from Crafsmama
"Stardust" by Loyalty Freak Music
https://www.chosic.com/free-music/all/?keyword=Loyalty Freak Music
Find me on...
Odysee:
https://odysee.com/$/invite/@XenoCow:8
BitChute:
https://www.bitchute.com/channel/zdXFBXRs9Awm/
Rumble:
https://rumble.com/c/c-343105
YouTube:
(Don't mind us tags here)
#starbase #mmo #tutorial
Other Videos By XenoCow Entertainment
Other Statistics
Starbase Statistics For XenoCow Entertainment
XenoCow Entertainment presently has 107,934 views for Starbase across 45 videos, with approximately 5 hours of Starbase video on his channel. This is 30.91% of the total watchable video on XenoCow Entertainment's YouTube channel.