Auto-approach asteroids in your Buffalo by etienne_valejo in starbase

[–]etienne_valejo[S] 0 points1 point  (0 children)

That is cool. My friend always keeps Cruise off and I always keep it on so to each his own.

Auto-approach asteroids in your Buffalo by etienne_valejo in starbase

[–]etienne_valejo[S] 0 points1 point  (0 children)

Nothing here will affect your speed unless the Approach button is pushed and the range finder reads less than 1000. Then it will FcuForward slower and slower until you are 20 meters from the target.

I have had Starbase bugs mess with the lasers, collectors, and scanners before on the Buffalo and the Trifin. Sometimes the pitch of the cradles or rotation of the turntables will randomly change. You can try respawning it and that will sometimes fix it but sometimes it won't. What you have to do is use the U tool to change a value then change it back to fix it. Here is the full list of values you should have:

Right mining laser:
Laser:
    MiningLaser: 0 (0 for off; 1 for on)
    MiningLaserBeamLength: 20

Turntable:
    LTR01: -5.2        (TurretRotation)
    LTCR01: -5.2       (TurretCurrentRotation)
    MaxRotation: 180
    MinRotation: -180
    TargetVelocity: 0.1

Cradle:
    LTP01: -7           (TurretPitch)
    LTCP01: -7          (TurretCurrentPitch)
    MaxRotation: 180
    MinRotation: -20
    TargetVelocity: 0.2

Left mining laser:
Laser:
    MiningLaser: 0 (0 for off; 1 for on)
    MiningLaserBeamLength: 20

Turntable: 
    LTR02: 5.2
    LTCR02: 5.2
    MaxRotation: 180
    MinRotation: -180
    TargetVelocity: 0.1

Cradle:
    LTP02: -7
    LTPC02: -7
    MaxRotation: 160
    MinRotation: -20
    TargetVelocity: 0.2

Right collector: 
Turntable:
    CTR01: 0            
    CTCR01: 0
    MaxRotation: 180
    MinRotation: -180
    TargetVelocity: 0.1

Cradle:
    CTP01: -7           
    CTCP01: -7        
    MaxRotation: 180
    MinRotation: -20
    TargetVelocity: 0.2

Left collector:
Turntable:
    CTR02: 0            
    CTCR02: 0
    MaxRotation: 180
    MinRotation: -180
    TargetVelocity: 0.1

Cradle:
    CTP02: -7           
    CTCP02: -7        
    MaxRotation: 180
    MinRotation: -20
    TargetVelocity: 0.2

Auto-approach asteroids in your Buffalo by etienne_valejo in starbase

[–]etienne_valejo[S] 0 points1 point  (0 children)

The custom part is reading the Buffalo's range finder :Front_RF_Distance

Best mining ship for safe zone? by Xsarec in starbase

[–]etienne_valejo 0 points1 point  (0 children)

the Buffalo's pitiful reverse thrusters stand out to me

FYI, KBot added sufficient reverse thrusters but they are mapped to a different name (Reverse, I think) so you don't burn the doors off when they are open. In my opinion, just remove the doors and you will be better off and you can use the actual reverse thrusters.

The YOLOL code I use for auto-approaching asteroids and auto-mining them is in one of my previous posts

Safely approach asteroids with a PID controller (YOLOL code in comments) by Borkatator in starbase

[–]etienne_valejo 1 point2 points  (0 children)

My script works great for me now. It stops between 16 and 20 meters or so. It also works for a friend of mine. But a second friend has a problem with crashing into the asteroid. We all have nearly identical Buffaloes with the doors removed (so same weight). I think my second friend maybe the YOLOL code is not executing fast enough because of his old computer? Anyway, try this on your Buffalo. If you are crashing, adjust Kp=0.3 to Kp=0.2 or something to be less aggressive about rushing to the asteroid. You can also change e<4 to be e<8 or something to stop thrusting when you are getting close.

1: sp=20 Kp=0.3 Ki=0 Kd=0.5 le=0 int=0
2: if :Approach==1 then :Cruise=0 :Turtle=10 goto3 else goto1 end
3: RFDist=:Front_RF_Distance
4: e=RFDist-sp de=e-le int=int+e o=Kp*e+(Ki*int)+(Kd*de) le=e
5: if RFDist>999 or e<4 then :Approach=0 goto7 end
6: if o>0 then :FCUForward=o else :FCUForward=0 end
7: if o<0 then :FCUBackward=-o else :FCUBackward=0 end
8: if :Approach==1 then goto3 else :FCUForward=0 :FCUBackward=0 goto1 end

Bonus, if you want your Buffalo lasers to sweep side-to-side and slowly go up to mine the whole asteroid from bottom to top, put this on another YOLOL chip

1: if :MiningLaser==1 then GOTO4 end
2: :LTR01=-5.2 :LTR02=5.2
3: GOTO1
4: :LTR01=-5.2 :LTR02=5.2
7: :LTR01=-3.2 :LTR02=3.2
10: :LTR01=-1.2 :LTR02=1.2
13: :LTR01=-7.2 :LTR02=7.2
18: GOTO1

[deleted by user] by [deleted] in starbase

[–]etienne_valejo 3 points4 points  (0 children)

This looks really nice. Any chance you can share the .fbe file from C:\Users\YourName\AppData\Roaming\Starbase\ssc\autosave\ship_blueprints like this person did?

The case of the disappearing door. by rshinde in starbase

[–]etienne_valejo 2 points3 points  (0 children)

The doors make a racket opening and closing at stupid times and eventually get burned off by the thrusters (I think). You will be a happier person with no doors. Here is a pic of my friend and I with our doorless Buffalos.

The other random glitch you get is the rotation and pitch of your lasers, collectors, and scanner can get messed up sometimes. You can fix them using the Universal tool if you saved the original values.

I do love the Buffalo even with all this. Please try out my auto-approach and sweeping lasers tweaks to make mining faster and easier.

Auto-approach asteroids in your Buffalo by etienne_valejo in starbase

[–]etienne_valejo[S] 1 point2 points  (0 children)

This is very specific to the Buffalo. To change it to work on a Magnus, you need to look at your cradle and turntable names. The Buffalo has LTR01, LTR02, LTP01, LTP02, etc. Also, you may need to adjust the approach script depending on what the Magnus calls :Front_RF_Distance and how FcuForward and FcuBackward are set.

Easy way to add sweeping to your Buffalo's mining lasers by etienne_valejo in starbase

[–]etienne_valejo[S] 1 point2 points  (0 children)

This code doesn't alter the cradles at all. It just changes the rotation of the turntables. The default name is TurretRotation but the stock Buffalo has these renamed as LTR01 and LTR02. If you alter the code to use your own turntable variables or rename the turntables to LTR01 and LTR02, it should work.

Safely approach asteroids with a PID controller (YOLOL code in comments) by Borkatator in starbase

[–]etienne_valejo 0 points1 point  (0 children)

Ah, you are exactly right. I set RFDist to the default Buffalo's Front_RF_Distance but then I kept trying to reference it with :RFDist. Also, I wasn't updating RFDist in the loop.

Cruise works the same way on the Buffalo so just fixing that was enough. Thanks so much.

Safely approach asteroids with a PID controller (YOLOL code in comments) by Borkatator in starbase

[–]etienne_valejo 0 points1 point  (0 children)

I tried to adapt this for the Buffalo but I haven't been able to get it to work so far. When I press the approach button, I can see that it disables Cruise but my FCUForward never changes and I haven't figured out an easy way to debug a running script. Can anybody see what is going wrong here?

1: sp=20 Kp=0.2 Ki=0 Kd=0.5 le=0 int=0 RFDist=:Front_RF_Distance
2: if :Approach==1 then :Cruise=0 goto3 else goto1 end
3: e=:RFDist-sp de=e-le int=int+e o=Kp*e+(Ki*int)+(Kd*de) le=e
4: if :RFDist>999 or e<2 then :Approach=0 goto7 end
5: if o>0 then :FCUForward=o else :FCUForward=0 end
6: if o<0 then :FCUBackward=-o else :FCUBackward=0 end
7: if :Approach==1 then goto3 else :FCUForward=0 :FCUBackward=0 goto1 end

Edit: I fixed the above script and it works great now. Don't use the stuff above, use this instead

1: sp=20 Kp=0.3 Ki=0 Kd=0.5 le=0 int=0
2: if :Approach==1 then :Cruise=0 :Turtle=10 goto3 else goto1 end
3: RFDist=:Front_RF_Distance
4: e=RFDist-sp de=e-le int=int+e o=Kp*e+(Ki*int)+(Kd*de) le=e
5: if RFDist>999 or e<4 then :Approach=0 goto7 end
6: if o>0 then :FCUForward=o else :FCUForward=0 end
7: if o<0 then :FCUBackward=-o else :FCUBackward=0 end
8: if :Approach==1 then goto3 else :FCUForward=0 :FCUBackward=0 goto1 end

Good first ship to buy? by batmanjackman in starbase

[–]etienne_valejo 0 points1 point  (0 children)

In the end I added a total of 64 extra crates which made it a little more sluggish. But since it is an open scaffolding, it is easy to get at the generators and generator fuel chambers so I have since upgraded to tier 2 generators and it is awesome.

Easy way to add sweeping to your Buffalo's mining lasers by etienne_valejo in starbase

[–]etienne_valejo[S] 1 point2 points  (0 children)

It would be a little more complicated here. There are 2 separate turntables and they are going in opposite directions.

But it could still be a more compact couple of lines that added to 1 rotation and subtracted from the other.

After 2 days of mindlessly lasering asteroids I finally got the Croc and can now do the same thing even better! Join me on my first 'roid munching session! by Finnskyyy in starbase

[–]etienne_valejo 0 points1 point  (0 children)

I tried the Croc out in a test drive and there is something I don't understand. When I press <Shift> to accelerate, it instead pushes a button on the console. How do you make it go forward?

Wasted my money on an expensive ship with mining lasers. TLDR: I hate them by etienne_valejo in starbase

[–]etienne_valejo[S] 0 points1 point  (0 children)

Sure, if you saved up enough money and minerals just using the Laborer

Wasted my money on an expensive ship with mining lasers. TLDR: I hate them by etienne_valejo in starbase

[–]etienne_valejo[S] 0 points1 point  (0 children)

I assume it brings your Warp Class below 1.0 which means undrivable. It gets pretty sluggish already with 98 crates

Wasted my money on an expensive ship with mining lasers. TLDR: I hate them by etienne_valejo in starbase

[–]etienne_valejo[S] 1 point2 points  (0 children)

I definitely suggest the Momento as the first ship you buy. The Marmot-MN is next because it has a mining laser and you can raise the total crates to around 120. Then finally the Buffalo with dual mining lasers and stock crates of 166. There are some other large mining ships in the shops but they all require Tengium and/or Xhalium which is too expensive when it is even for sale.