Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - FredrikLH

#1
I added power consumption increase, based on distance between the teleporter and the receiver. I also make a pull request, adding my updates to your teleporter code. It's your code now, feel free to do what you want with it.
#2
The Receiver can have multiple Teleporters link to it but a teleporter only links to the closest in direction, correctly facing receiver. In other words.
(= are belts, T are teleporters, R are receivers, ... are convection, [Space] are no connection)
=T...=T...R= R=
So the two teleporters are connected to the first Receiver.
(so yes my code work the way Rikiki describe)
#3
Hello. I just started playing Rimworld. And of course I install a few mods, including yours, A2B: Conveyor Belts & co. [v0.7.0]. To begin with, I must say that it is a very useful, and easy to use.

However, it had a little detail that did not quite fit my taste. The teleporter. Although I saw why it was desinad the way it was, I could not help wanting to expand its reach. A square was simply not enough for me.

So I start to check out your find source code. Good written code. Classes that were not to big, logical variable and method names. Easy to follow most of the time.
At first I was a little confused as to why Receivers and teleporters were put in the same class, but this ended up in my advantage. And after a couple of hours, I had a working teleporter that can teleport an item over the map.
So in my modification of your code, you can now teleport an item to a receiver that is facing the same direction as the teleport, and which is on the same X or Y (z in code) coordinate.
My question now is, is it ok from your part, that I post my change of your code in this thread?
With regards FredrikLH