Skip to content

Commit

Permalink
Merge pull request #80 from vinteo/shifter-2
Browse files Browse the repository at this point in the history
shifter: version 2.0.0
  • Loading branch information
vinteo authored Nov 30, 2022
2 parents afaf523 + ab91407 commit cfc0bf0
Show file tree
Hide file tree
Showing 53 changed files with 89 additions and 68 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Want to build your own ships? Try the [Welder Modular Ship Framework](https://eg
|---|---|---|---|---|---|
| <img src="rigger/images/rigger1.jpg" alt="Rigger" width="200" /> | [Rigger](rigger)<br />![Free Blueprint][bp-free] | The Rigger is a fast medium sized mining ship. Although it has a limited autopilot and crash avoidance systems, it is mainly designed to be used in the safe zone. | v1.2.0 | 100 | 2 |
| <img src="stocker/photos/20211013183158_1.jpg" alt="Stocker" width="200" /> | [Stocker](stocker)<br />![Free Blueprint][bp-free] | The Stocker is a 232 ore crate capacity mining ship. It is designed as a direct upgrade for those who have outgrown the [Rigger](rigger). | v1.1.1 | 232 | 4 |
| <img src="shifter/photos/20211219204001_1.jpg" alt="Shifter" width="200" /> | [Shifter](shifter)<br />![Free Blueprint][bp-free] | The Shifter is a 450 ore crate capacity mining ship with a spacious interior allowing for multi crew operations. The controls, tools and features are similar to the [Stocker](stocker). | v1.1.1 | 450 | 4 |
| <img src="shifter/photos/20221126225543_1.jpg" alt="Shifter" width="200" /> | [Shifter](shifter)<br />![Free Blueprint][bp-free] | The Shifter is a 450 ore crate capacity mining ship with two automated rotating laser drills for mining operations plus a spacious interior allowing for multi crew operations. | v2.0.0 | 450 | 8 |
| <img src="piercer/photos/20220225204743_1.jpg" alt="Piercer" width="200" /> | [Piercer](piercer)<br />![Free Blueprint][bp-free] | The Piercer is a 342 ore crate capacity mining ship with an automated rotating laser drill for mining operations. | v1.1.1 | 342 | 4 |
| <img src="piercer/photos/20220225204743_1.jpg" alt="Piercer" width="200" /> | [Piercer X](piercer/premium/)<br />![Blueprint for Sale][bp-sale] | The premium version of the [Piercer](piercer). | v1.0.1 | 342 | 4 |

Expand Down
1 change: 1 addition & 0 deletions piercer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,7 @@ If ISAN or NavGrid is not working, it can be reset using the `Reset ISAN` button
To approach an asteroid, point the center range finder at an asteroid and activate `Approach`. Once in range (optimum range is 10 to 14m on `Distance`), activate `Lasers` to turn on the mining lasers. Activating `Rotate` will rotate the laser drill.

The laser drill has three modes.

- `Fixed` mode will keep all lasers converged to the asteroid detected by the center range finder.
- `Manual` mode allows adjustment of the `Drill Pitch`. The pitch range is from `-15` to `20` degrees.
- `Auto` mode will activate `Rotate` and progressively increase the drill pitch with the rotations
Expand Down
73 changes: 53 additions & 20 deletions shifter/README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
# Shifter by EGOTech

[![CC BY-NC-SA 4.0](https://img.shields.io/badge/License-CC%20BY--NC--SA%204.0-lightgrey.svg)](http://creativecommons.org/licenses/by-nc-sa/4.0/)
[![Version](https://img.shields.io/static/v1?label=Version&message=1.1.1&color=blue)](#changelog)
[![Version](https://img.shields.io/static/v1?label=Version&message=2.0.0&color=blue)](#changelog)
[![Blueprint](https://img.shields.io/static/v1?label=Blueprint&message=Free%20Download&color=brightgreen)](#download-blueprint)

The Shifter is a 450 ore crate capacity mining ship with a spacious interior allowing for multi crew operations. The controls, tools and features are similar to the [Stocker](../stocker).
The Shifter is a 450 ore crate capacity mining ship with two automated rotating laser drills for mining operations plus a spacious interior allowing for multi crew operations.
The blueprint is provided for [free](#download-blueprint). All [feedback](#providing-feedback) is welcome and in game tips (in-game name Egomaniac) are appreciated. However support will be limited but I will try my best.

[Starbase Ship Shop Page](https://sb-creators.org/makers/Egomaniac/ship/%5BFREE%5D%20Shifter)

The Shifter (v1.1.0) is also available to buy in game at Central Showroom of Rando 1 Ship Shop at stations with Rando ship shops.

<img src="photos/20211219204020_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211219204001_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218213931_1.jpg" alt="Shifter" width="400" />
<img src="photos/20211219204038_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218215740_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214039_1.jpg" alt="Shifter" width="400" />
<img src="photos/20211218214052_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214101_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214110_1.jpg" alt="Shifter" width="400" />
<img src="photos/20211218214125_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214135_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214145_1.jpg" alt="Shifter" width="400" />
<img src="photos/20211218214158_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214218_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214228_1.jpg" alt="Shifter" width="400" />
<img src="photos/20221126225543_1.jpg" alt="Shifter" width="400" /> <img src="photos/20221126225621_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218213931_1.jpg" alt="Shifter" width="400" />
<img src="photos/20221126225605_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218215740_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214039_1.jpg" alt="Shifter" width="400" />
<img src="photos/20211218214052_1.jpg" alt="Shifter" width="400" /> <img src="photos/20221126230428_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214110_1.jpg" alt="Shifter" width="400" />
<img src="photos/20211218214125_1.jpg" alt="Shifter" width="400" /> <img src="photos/20221126230407_1.jpg" alt="Shifter" width="400" /> <img src="photos/20221126230358_1.jpg" alt="Shifter" width="400" />
<img src="photos/20221126230420_1.jpg" alt="Shifter" width="400" /> <img src="photos/20221126225335_1.jpg" alt="Shifter" width="400" /> <img src="photos/20211218214228_1.jpg" alt="Shifter" width="400" />
<img src="photos/20221126234439_1.jpg" alt="Shifter" width="400" /> <img src="photos/20221126234347_1.jpg" alt="Shifter" width="400" /> <img src="photos/20221126234422_1.jpg" alt="Shifter" width="400" />

More photos in the [`photos` folder](photos)

Expand All @@ -29,28 +30,27 @@ The ship has the following features:
- Standard Cruise function
- Turtle and Sloth functions with adjustable rates
- Transponder system with ping function
- Four mining lasers on turrets that point towards asteroids with pulse and sweeping
- Two ore collectors that point towards asteroids
- Two automated rotating drills with four mining lasers each
- Six ore collectors
- Material scanner with display of materials in stacks
- Approach and auto mine functions
- Two external and four internal resource bridges
- Auto generator rate script with adjustable minimum rate
- 32 T2 generators with 12 T2 fuel chambers and 48 spare rods on racks
- 36 T2 generators (with 40 T1 and 16 T2 enhancers) with 12 T2 fuel chambers and 48 spare rods on racks
- Radiators and heat sinks that provide more than adequate cooling
- Nine large propellant tanks with 108,000,000 units of propellant
- Estimated flight time of 4 hours and range of 2,000km
- Propellant time and fuel time panels
- 96 batteries
- 216 batteries
- 42 T2 box and 124 T2 triangle thrusters providing forward thrust
- 48 T2 triangle thrusters providing braking thrust
- 72 T2 triangle thrusters for maneuvers
- Eight T2 maneuver and 72 T2 triangle thrusters for maneuvers
- Basic crafting bench to craft refills with meter upgrade plus the other two benches
- Asteroid belt and moon atmosphere furnaces
- Extra two small propellant tank with its own resource bridge for emergency refueling
- Two extra hardpoints (all cabled and piped)
- [NavGrid by StandPeter](https://github.com/pcbennion/starbase-navgrid)
- [NavCas by fixerid](https://github.com/fixerid/sb-projects/tree/main/NavCas), using custom avoidance system and ISAN 3 in 1 from [Compass by Firestar99](https://gitlab.com/Firestar99/yolol/-/blob/master/src/compass/README.md), with ability to load target from NavGrid
- Warning lights and alarm for obstacle detection and avoidance, powered by 36 rangefinders
- Warning lights and alarm for obstacle detection and avoidance, powered by 35 rangefinders
- Speedometer
- Timer panel
- Odometer panel
Expand All @@ -59,7 +59,31 @@ The ship has the following features:

## Changelog

### v1.1.1 (Current) - 27/05/2022
### v2.0.0 (Current) - 01/12/2022

- Added EGOTech logo decal
- Removed chamber numbering plates to give way to enhancers
- Added four more T2 generators, 40 T1 and 16 T2 enhancers, increasing power generation to 68,000eps
- Added 22 more heat sinks
- Added six more radiator bases and 12 extensions
- Replaced sweeping mining lasers with two automated rotating drills with four mining lasers each
- Swapped center rangefinder with lower rangefinder to be in line with the drills
- Moved material scanner lower inside the ship to be more in line with the center rangefinder
- Added 120 more batteries
- Moved collectors and added four extra collectors behind the drills
- Added windows to where collectors used to be
- Updated dynamic generator script to take into account lasers
- Added eight maneuver thrusters around drills
- Remove belt and atmosphere furnaces
- Increased default min generator rate to 90
- Adjusted maximum backup rods to 48
- Added avoidance safety chip to disable avoidance when laser drills are not in starting position
- Moved a couple of guide rangefinders onto drill, disabled when drills are turned on
- Removed forward thrust total chip
- Split side thruster blocks into three blocks each for better balance
- Changed other rear thruster groupings

### v1.1.1 - 27/05/2022

- Replaced speedometer by MoriWatari with new speedometer
- Removed fast travel core
Expand Down Expand Up @@ -142,7 +166,7 @@ The left lever on the center console controls backwards thrust (braking) and the
| `Guides` | Activates rangefinders (except center one which can be activated separately). Can be used as guide lasers. `Red` warning lights show location of obstacles (left, right and centre). |
| `Range` & `Distance` | Activates center rangefinder, with `Distance` showing distance to object. |
| `Material Scanner` & `Materials` | Turns on the [Ore Scanner](#ore-scanner) and shows results of scan. |
| `Approach`, `Collect`, `Mine`, `Mining Lasers`, `Pulse`, `Eco`, `Laser Sweep Height` & `Laser Sweep Depth` | Mining controls. See [Mining](#mining). |
| `Approach`, `Collect`, `Mine`, `Lasers`, `Rotate`, `Eco`, `Drill Mode` & `Drill Pitch` | Mining controls. See [Mining](#mining). |
| `Nav`, `Autopilot`, `Avoidance` & `Target` | Autopilot controls. See [Autopilot and Crash Avoidance](#auto-pilot-and-crash-avoidance). |
| `ISAN2` | Current ISAN coordinates of ship. |
| `NavGrid`, `NavP`, `NavC` & `Attitude` | [NavGrid](https://github.com/pcbennion/starbase-navgrid) system, see [Using the Waypoint System](#using-the-waypoint-system). |
Expand Down Expand Up @@ -184,6 +208,8 @@ Use while the ship is stationary. Activating `Nav` will start point the ship tow
`Avoidance` will activate `Guides`. If the guides detect objects it will cut thrust and strafe up or down (will flash either the top or bottom `Blue` warning lights on the pilot center console according to the direction) while sounding an alarm (check game settings if you do not hear the alarm).
It will also flash `Red` warning lights on the pilot center console according to the position of obstacle detected. If `Autopilot` is activated, it will readjust and continue its flight.

**NOTE:** For safety, `Avoidance` will not activate if the mining lasers are turned on. Do not turn on `Avoidance`, `Autopilot` and `Nav` while lasers are turned on.

`Avoids` will show the counters for number of avoidances. The `Trip` counter can be reset by holding down the `Avoids` `Reset Trips` button.

**NOTE:** There is very limited coverage of range finders for the crash avoidance system. **Use at your own risk!**
Expand All @@ -199,12 +225,19 @@ The first time will show ISAN as offline, repeat clearing the value again to res

### Mining

To approach an asteroid, point the center range finder at an asteroid and activate `Approach`. Once in range (optimum range is 10 to 14m on `Distance`), activate `Mining Lasers` to turn on the mining lasers.
`Pulse` will activate pulsing of the lasers while `Laser Sweep Height` and `Laser Sweep Depth` will adjust sweeping distances of the lasers. `Eco` mode will only use the top two lasers to conserve power if needed.
To approach an asteroid, point the center range finder at an asteroid and activate `Approach`. Once in range (optimum range is 16 to 20m on `Distance`), activate `Lasers` to turn on the mining lasers. Activating `Rotate` will rotate the laser drill.

The laser drill has three modes.

- `Fixed` mode will keep all lasers converged to the asteroid detected by the center range finder.
- `Manual` mode allows adjustment of the `Drill Pitch`. The pitch range is from `-15` to `20` degrees.
- `Auto` mode will activate `Rotate` and progressively increase the drill pitch with the rotations

`Drill Pitch` can only be adjusted in `Manual` mode. `Eco` mode will only use two lasers to conserve power.

`Mine` is a button which will activate automated mining. Point the center range finder at an asteroid and activate. It will activate `Material Scanner` and `Approach`, and once in range it will automatically activate `Lasers`.

`Collect` turns on the two ore collectors. Ore collectors automatically adjust to point towards objects detected by the center range finder.
`Collect` turns on the six ore collectors.

If batteries start running out of charge while mining, turn on `Min Gen`. Continous use of the lasers and collectors at the same time requires a `Min Generator Limit` of around 90%.

Expand All @@ -221,7 +254,7 @@ Activate using the `Material Scanner` button. The laser will try to adjust to po
| `Propellant` | Total propellant remaining in propellant tanks, maximum of 108,000,000 units. |
| `PropTime` | Time and distance remaining of propellant based on current usage. Distance is calculated from speed. |
| `FuelTime` | Time and distance remaining of fuel based on current usage. Distance is calculated from speed. |
| `WithBackup` | Same as FuelTime but takes into account backup rods available. Use the switch for `Backup Rods` to set the number of backup rods available. As standard there are 20 extra rods. |
| `WithBackup` | Same as FuelTime but takes into account backup rods available. Use the switch for `Backup Rods` to set the number of backup rods available. As standard there are 48 extra rods. |
| `Fuel Rod 1` to `Fuel Rod 12` | Fuel remaining on fuel rods in individual fuel chambers, maximum of 300,000 units for each. |
| `Generator` | Current generator rate, maximum of `Generator Limit`. |
| `Min Gen` & `Min Generator Limit` | Toggle and sets minimum generator rate. See [Managing Power](#managing-power). |
Expand Down
Binary file modified shifter/blueprints/shifter.fbe
Binary file not shown.
Binary file added shifter/blueprints/shifter_v1.1.1.fbe
Binary file not shown.
Binary file modified shifter/images/build_cost.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shifter/images/pilot_center_console.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shifter/images/shifter1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shifter/images/shifter11.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shifter/images/shifter12.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shifter/images/shifter13.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shifter/images/shifter14.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/images/shifter16.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/images/shifter17.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/images/shifter18.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shifter/images/shifter2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shifter/images/shifter4.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified shifter/images/shifter8.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126225335_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126225543_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126225605_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126225621_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126230358_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126230407_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126230420_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126230428_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126234340_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126234347_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126234355_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126234422_1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added shifter/photos/20221126234439_1.jpg
2 changes: 1 addition & 1 deletion shifter/yolol/approach_pid_basic.yolol
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
s=16 m=1000 ib=5 t=20 g=0.200 p=0 i=0 x=ib+s u=0
s=18 m=1000 ib=5 t=20 g=0.200 p=0 i=0 x=ib+s u=0
if:Ap*(:M<m)then:Range=1 goto3+:insideSafeZone end goto1
Kp=0.056 Ki=0.001 Kd=5.4 h=0.50 l=1-h p=:M-s goto5 //NSZ
Kp=0.080 Ki=0.001 Kd=5.8 h=0.50 l=1-h p=:M-s goto5 //SZ
Expand Down
2 changes: 1 addition & 1 deletion shifter/yolol/avoidance/avoidance_rd_basic.yolol
Original file line number Diff line number Diff line change
@@ -1 +1 @@
k=1000 a=9*k :rd=:gd*((:r8+:r9+:rb+:c9+:c0+:ca+:l8+:l9+:lb)<a) goto1
k=1000 a=8*k :rd=:gd*((:r8+:r9+:rb+:c0+:ca+:l8+:l9+:lb)<a) goto1
1 change: 1 addition & 0 deletions shifter/yolol/avoidance/avoidance_safety_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
if:av*((:dcr1+:dcp1+:dcr2+:dcp2)!=0)then:av=0 :nav=0 :apt=0end goto1
1 change: 1 addition & 0 deletions shifter/yolol/avoidance/drill_guide_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
:dg=:guide*(:lasers<1)*(:dcr1==0)*(:dcr2==0) goto1
3 changes: 2 additions & 1 deletion shifter/yolol/dynamic_generator_basic.yolol
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
:GenRate=:MinEPS*:Min_EPS+(10000-:Battery)/50 goto1
:GenRate=:MinEPS*((:Min_EPS+:lasers*(:leco<1))>0)+(10000-:Battery)/50
goto1
3 changes: 0 additions & 3 deletions shifter/yolol/forward_thrust_basic.yolol

This file was deleted.

14 changes: 0 additions & 14 deletions shifter/yolol/lasers_basic.yolol

This file was deleted.

14 changes: 0 additions & 14 deletions shifter/yolol/lasers_bottom_basic.yolol

This file was deleted.

1 change: 0 additions & 1 deletion shifter/yolol/mine_depth_switch_basic.yolol

This file was deleted.

1 change: 0 additions & 1 deletion shifter/yolol/mine_height_switch_basic.yolol

This file was deleted.

2 changes: 2 additions & 0 deletions shifter/yolol/mining/lasers_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
if:lasers<1then:lsr1=0 :lsr2=0 :dp1=0 :dp2=0 :rf=0 goto1end
:lsr1=1 :lsr2=1-:leco :rf=1 goto1
6 changes: 6 additions & 0 deletions shifter/yolol/mining/lasers_convergence_1_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
x=1.68 y=-1.68 r=57.296 dd=8 s=10 m=14
if:lasers<1thena=1 goto2end rd=:rd1 d=rd+x
ifrd<1 or rd>m thend=dd+x end c=y/d*r ifc>s thenc=s end goto5+:dms
goto2 // manual
:dp1=c goto2 // fixed
:rot=1 ifa>0then:dp1=c a=0end goto2 // auto
6 changes: 6 additions & 0 deletions shifter/yolol/mining/lasers_convergence_2_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
x=1.68 y=-1.68 r=57.296 dd=8 s=10 m=14
if:lasers<1thena=1 goto2end rd=:rd2 d=rd+x
ifrd<1 or rd>m thend=dd+x end c=y/d*r ifc>s thenc=s end goto5+:dms
goto2 // manual
:dp2=c goto2 // fixed
:rot=1 ifa>0then:dp2=c a=0end goto2 // auto
2 changes: 2 additions & 0 deletions shifter/yolol/mining/lasers_pitch_switch_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
a=1 b=-15 c=20 d=-1 if:dms>d thengoto1end :dp1+=:dps*a
if:dp1<b then:dp1=b if:dp1>c then:dp1=c endend :dp2=:dp1 goto1
3 changes: 3 additions & 0 deletions shifter/yolol/mining/lasers_rotate_1_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
b=90 c=180 a=0.5*(:dms>0) if:lasers*:rot thengoto2end :dr1=0 goto1
if:dcr1==:dr1 then:dp1+=a :dr1+=b end if:dr1>c then:dp1+=a :dr1=0end
goto1
3 changes: 3 additions & 0 deletions shifter/yolol/mining/lasers_rotate_2_basic.yolol
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
b=90 c=180 a=0.5*(:dms>0) if:lasers*:rot thengoto2end :dr2=0 goto1
if:dcr2==:dr2 then:dp2+=a :dr2+=b end if:dr2>c then:dp2+=a :dr2=0end
goto1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pd=14 e=3 x=pd+e k=999
pd=16 e=3 x=pd+e k=999
if:mine<1thenn=0 goto2end if:Distance>k then:mine=0end l=n+3 gotol
:Approach=1 :scr=1 n=1
rd=:Distance d=rd+e ifd<1 or rd>x thengoto2end :lasers=1 :mine=0 goto2
3 changes: 0 additions & 3 deletions shifter/yolol/ore_collector_basic.yolol

This file was deleted.

2 changes: 0 additions & 2 deletions shifter/yolol/pulse_lasers_basic.yolol

This file was deleted.

4 changes: 2 additions & 2 deletions shifter/yolol/warning_lights/center_2_basic.yolol
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
k=1000 a=(4+:range)*k c=:distance*:range
:wa=:gd*((:c7+:c8+:c9+:ca+c)<a) :wb=:gd*((:c5+:c6+:c9+:c0+c)<a) goto1
k=1000 a=(3+:range)*k c=:distance*:range
:wa=:gd*((:c7+:c8+:ca+c)<a) :wb=:gd*((:c5+:c6+:c0+c)<a) goto1
4 changes: 2 additions & 2 deletions shifter/yolol/warning_lights/left_1_basic.yolol
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
k=1000 a=4*k b=6*k :w5=:gd*((:l2+:l3+:l6+:l7)<a)
:w6=:gd*((:l1+:l2+:l4+:l5+:l0+:la)<b) goto1
k=1000 a=4*k b=(5+:dg)*k :w5=:gd*((:l2+:l3+:l6+:l7)<a)
:w6=:gd*((:l1+:l2+:l4+:l5+:l0+:la*:dg)<b) goto1
2 changes: 1 addition & 1 deletion shifter/yolol/warning_lights/right_1_basic.yolol
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
k=1000 a=6*k b=4*k :w1=:gd*((:r0+:r2+:r3+:r6+:r7+:ra)<a)
k=1000 a=(5+:dg)*k b=4*k :w1=:gd*((:r0+:r2+:r3+:r6+:r7+:ra*:dg)<a)
:w2=:gd*((:r1+:r2+:r4+:r5)<b) goto1

0 comments on commit cfc0bf0

Please sign in to comment.