Gustavo6046 wrote:Is my Hersrch input right?
Code: Select all
hersrch.exe -d 0 -12 73 F -u 73 -l 6 -x 250 -n 10 -f gglog.log -o ggop.rle -m
I want a GFnG where n is anything and the glider changes color.
Right or wrong partly depends on which H-to-G you are planning to use.
This is a very good first try, actually. I'm impressed. Most people get scared away from Hersrch without even trying to make it work.
You got about half of the command-line switches right. I see some things that won't work:
"-l 6" doesn't do anything -- there's no such thing as a track length less than 64 anyway.
"-u 73" will keep you from getting get any results.
As you'll see, you'll need a few more than 73 ticks to get the signal to where you want it. Leave out
-u and just use the default for now.
"-x 250" is too small -- you'll need more space than 16x16 or so. -x specifies the total number of cells in the bounding box, so the number should be pretty big. Just leave the
-x switch out, too.
"-m" you won't need -- this isn't a very long or difficult search.
"-d 0 -12 73 F" -- Output in the same orientation (F) as the start orientation (0 0 0 F by default), so Hersrch won't bend the track around in a loop. I don't quite see why you picked the three numbers. I would expect something like "-d 51 0 100 F" which means "move the Herschel an odd number of cells (51) horizontally, stay on the same line vertically, and the conduit will take at least 100 ticks to get the Herschel signal to that output point".
So that gets us down to
Code: Select all
hersrch -p 1 -u 999 -d 51 0 100 F -n 10 -f gglog.log -o ggop.rle
pause
Theoretically I think this ought to give you some results. Unfortunately it doesn't (!).
For some reason Hersrch doesn't think that any of its conduits are compatible with the
-p 1 setting. I asked Hersrch's author about this years ago, but never managed to get this kind of search working, and really I still think this is a bug.
I've never had to worry about it, because the alternate way of specifying multiple targets works really really well... so let's go on to that, because you're going to need to be able to search for multiple output locations anyway.
Here's the idea. You really don't just want to tell Hersrch
one place where the signal has to end up -- e.g., in the sample above, exactly at (51,0) relative to the input. There won't be many results for that search, quite possibly none at all if the conduits don't happen to line up right.
Instead, you want to tell Hersrch
all the possible places where a signal could go and still give you the right color glider. If there are a lot of possible places, then the odds go way way up that Hersrch will be able to find you a working Herschel track that takes the signal to one of those places.
-- Okay, so we write a script that says basically
put a Herschel on any chessboard square of the same color -- could be BLACK or WHITE depending on how you color it, or you could just say it's ODD cells (sum of coordinates is odd)... but anyway all the same-color squares are okay.
Here's how you set up that script in Hersrch:
Code: Select all
#CXRLE Pos=-30,-31
x = 95, y = 61, rule = LifeHistory
64.D$63.D.D$62.D3.D$61.D5.D$60.D7.D$59.D9.D$58.D11.D$57.D13.D$56.D15.
D$55.D17.D$54.D19.D$53.D21.D$52.D23.D$51.D25.D$50.D27.D$49.D29.D$48.D
31.D$47.D33.D$46.D35.D$4.D40.D37.D$5.D38.D39.D$3.3DB36.DA40.D$4.4B10.
A23.D.3A39.D$5.4B7.3A22.D5.A39.D$6.4B5.A24.D5.2A40.D$7.4B4.2A22.D6.4B
39.D$2A6.9B21.D9.3B19.A7.2D10.D$.A7.6B22.D10.4B16.3A6.DBD11.D$.A.2A5.
6B3.B2.2B2.2B8.D12.10B8.A8.3BD12.D$2.A2.A4.19BD5.D14.5BD4B7.2A6.4B14.
D$3.2AB3.20BDBD2.D16.2B3D4B2.B.5B5.4B16.D$4.14B2A9B3DB2.D14.3BDBD4B.
6B6.4B16.D$5.13B2A11BD4.D14.2BD14B4.4B16.D$6.24B7.D13.24B16.D$6.17B.B
.2B10.D14.21B16.D$7.15B4.3B10.D15.20B14.D$7.15B5.A2B.2A7.D15.20B12.D$
8.13B5.A.A2B.A8.D14.19B2A10.D$10.13B2.A.AB2.A10.D11.8B2.11B2A9.D$9.8B
4.2A.A.A3.A12.D10.2A3.B5.11B9.D$9.6B6.2ABA2.4A.A11.D10.A7.11B10.D$9.
5B8.B2.A.A3.A.A11.D6.3A8.2A5.4B9.D$9.B.B9.2A.2A2.A2.A.A12.D5.A11.A17.
D$10.3B9.A.A2.2A3.A14.D13.3A17.D$9.B2AB9.A.A23.D12.A18.D$10.2A11.A25.
D29.D$50.D27.D$51.D25.D$52.D23.D$53.D21.D$54.D19.D$55.D17.D$56.D15.D$
57.D13.D$58.D11.D$59.D9.D$60.D7.D$61.D5.D$62.D3.D$63.D.D$64.D!
Use Ctrl+Shift+O in Golly to open this template pattern from the clipboard. That will put the input Herschel's center at (0,0), so you can see that you want to move the input Herschel by (+24,-1) and flip it upside down (Fx). The batch file will look like this:
Code: Select all
hersrch -p 997 -o ggop.rle -n 10 -f ggoplog.log -s -e (t=0..300,j=-10..20,k=-10..20)F(0)[0,0]..Fx(t)[24+j+k,-1-j+k]
pause
Hersrch will try any value of t from 0 to 300, any value of j from -10 to 20, and any value of k also from -10 to 20 -- all combinations of those variables in one search.
Try putting in different numbers for j and k, and you'll see that the "Fx(t)[24+j+k,-1-j+k]" at the end of the script basically just means "inside the red diamond in the template, any cell that is the same color as the output Herschel's center cell".
Hersrch will make some RLE for you, showing every different string of conduits that it finds, that moves a Herschel to any correct-color cell inside that red diamond. Just pick the shortest conduit, connect the ends to the pieces in the template, and you're guaranteed to have a color-changing G-to-G.
See how all of that works? Ask questions if you don't. Hersrch is definitely not easy to figure out the first time around!