Difference between revisions of "Tutorials/rlifesrc"

From LifeWiki
Jump to navigation Jump to search
m
(→‎What is rlifesrc: after careful observation of the rlifesrc visual display while searching, i believe this phrasing to be closer to what actually happens)
 
(6 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{stub}}
{{stub}}
RLifeSrc is the only official cross-platform search program. But how do you use it?
rifesrc is the only official cross-platform [[search program]]. But how do you use it?


== What is RLifeSrc ==
== What is rlifesrc ==
RLifeSrc stand for Rust Life Search. You can use it at https://alephalpha.github.io/rlifesrc/.
rlifesrc stands for Rust Life Search. You can use it at https://alephalpha.github.io/rlifesrc/.


Unlike [[apgsearch]], RLifeSrc doesn't follow traditional soup-searching. Instead, it goes through every pattern ever in a certain box until it finds the right one.{{citation needed}}
Unlike [[apgsearch]], rlifesrc doesn't follow traditional [[soup search|soup searching]]. Instead, it moves through the area provided in the direction set in settings, trying cell combinations until it finds a partial that it can expand into the real thing. If it runs out of extensions to a specific partial that could bring it to the real thing, it tries another partial.{{citation needed}}


RLifeSrc can search a wide variety of stuff, including [[still lives]], [[oscillators]], and [[spaceships]].
rlifesrc can search a wide variety of stuff, including [[still lives]], [[oscillators]], and [[spaceships]].


== Setting up your search ==
== Setting up your search ==
Go to settings and change "Rule" to your desired rule.
Go to settings and change "Rule" to your desired [[rule]]. rlifesrc is capable of searching [[life-like]], [[isotropic non-totalistic]], [[hexagonal]], [[non-isotropic]], and [[generations]] rules.


Change the width and height to the width and height of the pattern you want to search. Then, type in the period of the object. When you are searching for spaceships with a speed like 2c/4, don't type in 2 as the period because c/2 is the simplified form. Type in 4.
Change the width and height to the width and height of the pattern you want to search. Then, type in the [[period]] of the object. Make sure you type the unsimplified period of the object.  For example, you can use 2c/4 instead of [[c/2]].  rlifesrc is very slow for periods above 6 or 7.


Dx and dy are how far away the object moves in x and y at the end of one cycle.
Dx and dy are how far away the [[object]] travels in x and y at the end of one cycle.  This is used for spaceships.


Other options can be ignored for now. Scroll all the way down until you get to choice for unknown cells. You can set that to any of the options, but dead is best for searching spaceships, alive for still lifes, and randomized for oscillators.
Other options can be ignored for now. Scroll all the way down until you get to choice for unknown cells. You can set that to any of the options, but [[dead]] is best for searching [[spaceship|spaceships]], [[live|alive]] for [[still life|still lifes]], and randomized for [[oscillator|oscillators]].


Hit "apply settings", then hit start. Watch how the search pattern changes over time. You can toggle "Show max partial" to view the current best approximation.
Hit "apply settings", then hit start. Watch how the search pattern changes over time. You can toggle "Show max [[partial]]" to view the current best approximation.


Now let's go search for specific patterns.
Now let's go search for specific patterns.
Line 30: Line 30:


=== [[Glider]] ===
=== [[Glider]] ===
The value in dx or dy should be how much the glider increase the height and width by in one cycle. Instead of searching 3x3, you should search 5x5 because RLifeSrc is kinda buggy when you use dx and dy. Set period to 4.
The value in dx or dy should be how much the glider increase the height and width by in one cycle. Instead of searching 3x3, you should search 5x5 because rlifesrc is kinda buggy when you use dx and dy. Set period to 4.
   
   
Now press "apply settings" and press start.
Now press "apply settings" and press start.
Line 51: Line 51:
Set it to period 1, the rule to B2-a/S12, and press "apply settings".
Set it to period 1, the rule to B2-a/S12, and press "apply settings".


When you hit start, you immediately see a [[blinker]] that isn't moving. It is a still life.
When you hit start, you immediately see a [[blinker]] that isn't moving. It is a [[still life]].


Now search period 2 and 10x10.
Now search period 2 and 10x10.
Line 58: Line 58:


=== Optimizations ===
=== Optimizations ===
The result above is a good chance to practice optimizations. Those are important because RLifeSrc often doesn't give you the minimal pattern. Try to remove or reduce as many lines of the P2 as you can.  
The result above is a good chance to practice optimizations. Those are important because rlifesrc often doesn't give you the minimal pattern. Try to remove or reduce as many lines of the P2 as you can.  


In addition, when searching for spaceships, a large gap in the middle of the spaceship may indicate that there is a completed spaceship above the gap and RLifeSrc is trying to make a tagalong below the gap.
In addition, when searching for spaceships, a large gap in the middle of the spaceship may indicate that there is a completed spaceship above the gap and rlifesrc is trying to make a tagalong below the gap.


But, a way you can optimize patterns is by setting "find all results. Don't stop when found one" to on in the world page, and turning "Reduce the max cell count when a result is found" on in the settings page. This way, it will reduce the maximum cell count and research over and over again until it finds the most minimal pattern.
But, a way you can optimize patterns is by setting "find all results. Don't stop when found one" to on in the world page, and turning "Reduce the max cell count when a result is found" on in the settings page. This way, it will reduce the maximum cell count and research over and over again until it finds the most minimal pattern.


=== Settings bug ===
=== Settings bug ===
Sometimes, when you forget to stop a search and go to change a setting, it will set itself back to what it used to be when you click what you want. What you do is you give it what it wants, press the apply settings button, then go back to settings and put what you want, then press apply setings. This tricks it into giving you the settings you want, therefore getting rid of the bug.
Sometimes, when you forget to stop a search and go to change a setting, it will set itself back to what it used to be when you click what you want. You need to stop the search before entering your settings, otherwise it will automatically revert to the old settings.


== Now do it on your own ==
== Now do it on your own ==
Congratulations, you have learned RLifeSrc! You can now search for patterns yourself and try the other settings, and maybe post on the forums something entirely new and notable you find!
Congratulations, you have learned rlifesrc! You can now search for patterns yourself and try the other settings, and maybe post on the forums something entirely new and notable you find!
 
{{ Tutorial }}

Latest revision as of 01:12, 23 April 2026

Radiation.png This article is a stub. You can help LifeWiki by expanding it.

rifesrc is the only official cross-platform search program. But how do you use it?

What is rlifesrc

rlifesrc stands for Rust Life Search. You can use it at https://alephalpha.github.io/rlifesrc/.

Unlike apgsearch, rlifesrc doesn't follow traditional soup searching. Instead, it moves through the area provided in the direction set in settings, trying cell combinations until it finds a partial that it can expand into the real thing. If it runs out of extensions to a specific partial that could bring it to the real thing, it tries another partial.[citation needed]

rlifesrc can search a wide variety of stuff, including still lives, oscillators, and spaceships.

Setting up your search

Go to settings and change "Rule" to your desired rule. rlifesrc is capable of searching life-like, isotropic non-totalistic, hexagonal, non-isotropic, and generations rules.

Change the width and height to the width and height of the pattern you want to search. Then, type in the period of the object. Make sure you type the unsimplified period of the object. For example, you can use 2c/4 instead of c/2. rlifesrc is very slow for periods above 6 or 7.

Dx and dy are how far away the object travels in x and y at the end of one cycle. This is used for spaceships.

Other options can be ignored for now. Scroll all the way down until you get to choice for unknown cells. You can set that to any of the options, but dead is best for searching spaceships, alive for still lifes, and randomized for oscillators.

Hit "apply settings", then hit start. Watch how the search pattern changes over time. You can toggle "Show max partial" to view the current best approximation.

Now let's go search for specific patterns.

Searching for specific patterns

Block

Set the width and height to 2, and set the period to 1. Set the rule to B3/S23 and then press "apply settings".

Press start, and it should have found the block in an instant.

Glider

The value in dx or dy should be how much the glider increase the height and width by in one cycle. Instead of searching 3x3, you should search 5x5 because rlifesrc is kinda buggy when you use dx and dy. Set period to 4.

Now press "apply settings" and press start.

It should have found the glider in an instant.

Mold

Set dx and dy back to 0, change it to 6x6, press "apply settings", and press start.

You should see mold, which looks like a loaf with oscillating stuff on it.

Negative result

Set the period to 5 and set it to 3x3. Then press "apply settings" and then start.

It should say "No more result" after a few seconds.

Something in a different rule

Lets pick B2-a/S12.

Set it to period 1, the rule to B2-a/S12, and press "apply settings".

When you hit start, you immediately see a blinker that isn't moving. It is a still life.

Now search period 2 and 10x10.

It gives an on-off that looks way too big.

Optimizations

The result above is a good chance to practice optimizations. Those are important because rlifesrc often doesn't give you the minimal pattern. Try to remove or reduce as many lines of the P2 as you can.

In addition, when searching for spaceships, a large gap in the middle of the spaceship may indicate that there is a completed spaceship above the gap and rlifesrc is trying to make a tagalong below the gap.

But, a way you can optimize patterns is by setting "find all results. Don't stop when found one" to on in the world page, and turning "Reduce the max cell count when a result is found" on in the settings page. This way, it will reduce the maximum cell count and research over and over again until it finds the most minimal pattern.

Settings bug

Sometimes, when you forget to stop a search and go to change a setting, it will set itself back to what it used to be when you click what you want. You need to stop the search before entering your settings, otherwise it will automatically revert to the old settings.

Now do it on your own

Congratulations, you have learned rlifesrc! You can now search for patterns yourself and try the other settings, and maybe post on the forums something entirely new and notable you find!