Panakotta00 / FicsIt-Networks

Control, Monitor, Manage and Automate your Satisfactory.
https://ficsit.app/mod/FicsItNetworks
GNU General Public License v3.0
157 stars 51 forks source link

Crash calling WheeledVehicle.SetTargets #164

Closed yackimoff closed 2 years ago

yackimoff commented 3 years ago

Describe the bug Calling WheeledVehicle.SetTargets CTDs the game.

Provide the Debug-File you can generate with SMM.

To Reproduce Steps to reproduce the behavior:

  1. Build vehicle scanner and connect it to a computer with CPU and RAM.
  2. Execute this code:
    
    scanner = component.proxy(component.findComponent(findClass("VehicleScanner_C")))[1]

event.listen(scanner)

while true do e, s, v = event.pull() if e == "OnVehicleEnter" then print(v) computer.beep(1) v.isSelfDriving = false local targets = v:getTargets() for i, t in ipairs(targets) do if t.wait == 3.0 then t.speed = t.speed * 2 print(t.pos, t.speed, t.wait) end end v:setTargets(targets) end end


3. Enter the scanner with a vehicle (I was trying with tractor).

**Additional context**
dev build 147

[SMMDebug_2021-9-12_9-49-18.zip](https://github.com/Panakotta00/FicsIt-Networks/files/7149383/SMMDebug_2021-9-12_9-49-18.zip)