[DiscordArchive] what's not working with the transport?
[DiscordArchive] what's not working with the transport?
Archived author: stoneharry • Posted: 2021-07-10T16:57:03.894000+00:00
Original source
what's not working with the transport?
Archived author: <o> • Posted: 2021-07-10T16:57:50.843000+00:00
Original source
i have successfully replaced everything except for the TaxiPath id (including a new gameobejct_template) at this point, symptom is that it just doesn't appear.
Archived author: <o> • Posted: 2021-07-10T16:58:45.312000+00:00
Original source
also did try the gaps thing before, no luck and I've noticed there are gaps in the existing ids too
Archived author: stoneharry • Posted: 2021-07-10T16:59:31.930000+00:00
Original source
I haven't tried having a pre-existing transport, I actually spawn it in with a script since I had a scripted transport when I was experimenting with it. Sample:
```lua
local function InitialiseShip(pUnit)
local instanceId = pUnit:GetMap():GetInstanceId()
INSTANCE_DATA[instanceId] = {}
local transport = pUnit:CreateTransport(50010)
if transport then
transport:EnableMovement(false)
INSTANCE_DATA[instanceId].TRANSPORT = transport:GetGUID()
transport:SummonPassenger(50071, 26.7, -1.6215, 20, 3.192701, 8) -- admiral
transport:SummonPassenger(50072, 34.14, 0.957912, 21, 3.133, 8) -- Navigator
local guards = {}
table.insert(guards, transport:SummonPassenger(50073, 1.45, -9.17, 10, 5.21, 8):GetGUID()) -- Guard
table.insert(guards, transport:SummonPassenger(50073, 10, 4.898, 10, 1.995732, 8):GetGUID()) -- Guard
table.insert(guards, transport:SummonPassenger(50073, -23.47, -1.33, 12.5, 0.12, 8):GetGUID()) -- Guard
table.insert(guards, transport:SummonPassenger(50073, -30.355, 4.23, 18.5, 2.6, 8):GetGUID()) -- Guard
table.insert(guards, transport:SummonPassenger(50073, -3.43, 0, 10, 0.0165, 8):GetGUID()) -- Guard
INSTANCE_DATA[instanceId].GUARDS = guards
end
end
```
Archived author: <o> • Posted: 2021-07-10T17:03:27.125000+00:00
Original source
it does appear if I use the old TaxiPath id, that id seems to be the only thing breaking it as all the other data is new rows. I'll try spawning it manually and see if that does something, otherwise just keep double-checking my stuff. Thanks for the advice
Archived author: stoneharry • Posted: 2021-07-10T17:04:59.735000+00:00
Original source
Yeah sorry it's been a while and I just remember that data being super fiddly as there are a lot of things that cause it to break:
- Having gaps in the primary key sequence in some DBC's
- Having too big a gap between coordinates on the path
- Other random issues
Archived author: stoneharry • Posted: 2021-07-10T17:15:51.726000+00:00
Original source
Can maybe put a breakpoint on the SummonTransport method and check if any validations are not passing