Smiffy
Skeletron Prime
Logic Gates Mod
Current Version: v0.1.1
tModLoader Version: v0.3.0.1
After seeing some of the crazy wiring mechanisms on places such as TMEC and Youtube, I has a thought about how much different it would be if logic gates were easy to implement into your wiring (or at least a lot easier than what we currently have). So I made this mod, with the hopes to add logic gates and other useful wiring components into the game.Current Version: v0.1.1
tModLoader Version: v0.3.0.1
Credits:
Re-Logic for creating Terraria
bluemagic123 for creating tModLoader and for a bit of help with the wiring code.
Current Features:
- Logic Gate base (crafted with two Iron bars and one wire at an anvil), used to craft the components of this mod (not placeable).
- OR gate (crafted with 3 Logic Gate bases at an anvil). If either of the two states of the gate are toggled on, the gate outputs a signal.
- AND gate (crafted with 3 Logic Gate bases at an anvil). If both of the two states of the gate are toggled on, the gate outputs a signal.
Planned Features:
- XOR gate. If both of the two states of the gate are different (either 1 & 0 or 0 & 1), the gate outputs a signal.
- Repeater. Outputs a signal some amount of time after an input is received. Most likely crafted with Logic gate bases and timers / watches.
- Taking suggestions!
How it works:
Each logic gate is a 3x2 TileObject (piece of furniture) that takes an input from the bottom-left and bottom-right. The gate's output is the top middle. I have set this up so that the logic gate works without having to use multiple colours of wiring. When a signal goes into one of the inputs, that side's state toggles (just like a torch does when you give it a signal). When one of these states changes, that is when the gate will output a signal if the conditions are met.
Current Issues (working on, suggestions on how to fix these are welcome):
- Currently it is rather difficult to tell whether a state is activated or not. You may want to add torches to the wiring on both the inputs and the output of each gate to identify what side is activated or not.
- Sprites. I am not a very experienced spriter, but I have tried my best. I have tried adding symbols to the logic gates themselves to help identify what kind of gate they are but they are still rather tiny, so it may be difficult for some people to tell what the gates are without looking on the map or picking them up.
Download: Version 0.1.1
Changelog:
Version 0.1.1
- Fixed a bug involving wiring two inputs of a gate on the same wire (thanks billybao).
- Gates should now display wires when held.
- Initial WIP release
Any suggestions for features or improvements are welcome. Also post any problems you may find. Hopefully the very first release won't break.. hopefully.
Last edited: