View Issue Details

IDProjectCategoryView StatusLast Update
0004203Spring engineGeneralpublic2013-12-10 00:10
Reportermsafwan Assigned ToKloot  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
Product Version95.0.1+git 
Summary0004203: Air transport do not want to load unit at water surface
DescriptionZK's amphibious unit can float on water surface using impulses and can be loaded to air transport.

As in Spring 95.0.1-135-g3cbb04a air transport halt midway and no longer want to load floating unit. However it can load ship now.
Steps To ReproduceTesting procedure:
I have provided a replay.
Tagsair transport
Attached Files
20131209_203149_Small Supreme Islands V2_95.0.1-135-g3cbb04a develop.sdf (Attachment missing)
Checked infolog.txt for Errors

Activities

msafwan

2013-12-09 13:35

reporter   ~0012358

Last edited: 2013-12-09 13:37

Air transport do not want to unload unit at sea surface either :/
However it is not as important as being able to load unit in first place.

Rafal99

2013-12-09 18:07

reporter   ~0012362

Last edited: 2013-12-09 18:20

>> ZK's amphibious unit can float on water surface using impulses ...

But they don't float!
They are just hacked to move up to the surface but technicaly they still belong to the sea bottom.
Once the ZK finally switches from Spring 91.0, we will be able to use Spring.MoveCtrl.SetMoveDef() and make them really float on the water surface, but at the moment they don't float at all.

msafwan

2013-12-09 19:21

reporter   ~0012364

Last edited: 2013-12-09 20:39

So we change it to ship move-def at surface, and then back to amphib when sinking, and this allowed it to be transported like ship?

okay, I'll try this soon.

UPDATE: attempt:
local success = Spring.MoveCtrl.SetMoveDef(unitID,"BOAT3")
Spring.Echo(success)

do not work. It return false

Rafal99

2013-12-09 20:50

reporter   ~0012365

Last edited: 2013-12-09 20:52

Try lowercase?

msafwan

2013-12-09 21:15

reporter   ~0012366

Last edited: 2013-12-09 21:17

Lowercase "boat3" echo true, but it doesn't make the once crawling unit into a floating ship (it still need that impulse to stay afloat).

I also tried Hover to try floatOnWater, but still doesn't work:

local success = Spring.MoveCtrl.SetMoveDef(unitID,"hover3")
Spring.Echo(success)
Spring.MoveCtrl.SetGroundMoveTypeData(unitID,{floatOnWater=true})

Echo: "true, Warning cannot assign floatOnWater"
Unit still can't air transport at water surface

Issue History

Date Modified Username Field Change
2013-12-09 13:34 msafwan New Issue
2013-12-09 13:34 msafwan File Added: 20131209_203149_Small Supreme Islands V2_95.0.1-135-g3cbb04a develop.sdf
2013-12-09 13:34 msafwan Tag Attached: air transport
2013-12-09 13:35 msafwan Note Added: 0012358
2013-12-09 13:37 msafwan Note Edited: 0012358
2013-12-09 18:07 Rafal99 Note Added: 0012362
2013-12-09 18:20 Rafal99 Note Edited: 0012362
2013-12-09 19:21 msafwan Note Added: 0012364
2013-12-09 20:39 msafwan Note Edited: 0012364
2013-12-09 20:50 Rafal99 Note Added: 0012365
2013-12-09 20:52 Rafal99 Note Edited: 0012365
2013-12-09 21:15 msafwan Note Added: 0012366
2013-12-09 21:16 msafwan Note Edited: 0012366
2013-12-09 21:17 msafwan Note Edited: 0012366
2013-12-10 00:10 Kloot Changeset attached => spring develop ef8ea447
2013-12-10 00:10 Kloot Assigned To => Kloot
2013-12-10 00:10 Kloot Status new => resolved
2013-12-10 00:10 Kloot Resolution open => fixed