Spring 100 flying with fuel - Page 2

Spring 100 flying with fuel

Discuss your problems with the latest release of the engine here. Problems with games, maps or other utilities belong in their respective forums.

Moderator: Moderators

User avatar
yuritch
Spring 1944 Developer
Posts: 1018
Joined: 11 Oct 2005, 07:18

Re: Spring 100 flying with fuel

Post by yuritch »

hokomoko wrote:RFC
IMO the land/take off callins should be sent to both air unit and the 'airpad' unit it lands on.
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: Spring 100 flying with fuel

Post by hokomoko »

yuritch wrote:IMO the land/take off callins should be sent to both air unit and the 'airpad' unit it lands on.
Yes they should probably be
UnitEnteredPad(unitID, padID, pieceNum)
UnitLeftPad(unitID, padID, pieceNum)

And from there you'd be able to call script functions or whatever you want.
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Spring 100 flying with fuel

Post by abma »

hokomoko wrote:UnitEnteredPad(unitID, padID, pieceNum)
UnitLeftPad(unitID, padID, pieceNum)
isn't that the same as for transports?

-> make it more generic: UnitAttached / UnitDetached ?!
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: Spring 100 flying with fuel

Post by hokomoko »

What they mean is very different though, I think.
(Entirely different code should run for repaired units and loaded units)
abma
Spring Developer
Posts: 3798
Joined: 01 Jun 2009, 00:08

Re: Spring 100 flying with fuel

Post by abma »

hokomoko wrote:What they mean is very different though, I think.
(Entirely different code should run for repaired units and loaded units)
thats not what i mean, a transported unit attachs to an other unit like a unit that lands on a repair pad, they both attach to a piece of a different unit.

imo repairing/refuel should go to lua, a transport could do the same only difference to a repair pad is, that a transport is a moveable unit.
User avatar
PepeAmpere
Posts: 591
Joined: 03 Jun 2010, 01:28

Re: Spring 100 flying with fuel

Post by PepeAmpere »

Once we talk about the changes, airpad is not only static concept, there are carriers and airpad spiders moving around.

From game dev perspective the only features i need in engine is:
  • reliable option of general attaching unit to other unit piece
  • landing assistance on given spot (because flight itself is driven by the engine) - that spot can move - so its about having command which can take as parameter position or position on a unit => so in the end it can be just the second case, position on a unit as general use case.
  • disable current hardcoded behavior of planes without fuel (which also causes the the crash i think)
Things i can handle in lua:
  • implement fuel gain + repair
  • keep automatic control of plane without fuel (once engine default behavior is disabled)
hokomoko
Spring Developer
Posts: 593
Joined: 02 Jun 2014, 00:46

Re: Spring 100 flying with fuel

Post by hokomoko »

abma wrote:
hokomoko wrote:What they mean is very different though, I think.
(Entirely different code should run for repaired units and loaded units)
thats not what i mean, a transported unit attachs to an other unit like a unit that lands on a repair pad, they both attach to a piece of a different unit.

imo repairing/refuel should go to lua, a transport could do the same only difference to a repair pad is, that a transport is a moveable unit.
You were more correct than I thought, it appears I need to refactor transporting as well.
Post Reply

Return to “Help & Bugs”