Author Topic: Player docking, player-use-ai and allowed ships  (Read 1615 times)

0 Members and 1 Guest are viewing this topic.

Offline Kiloku

  • 27
  • Buzzbuzz!
Player docking, player-use-ai and allowed ships
I was trying to work with the idea of having a player dock with an object, and noticed that there was no direct way to do so.
Cue an hour of scouring through searches all around the forum.

What I found was that supposedly, using player-use-ai would let me add the dock order to player as it was controlled by the AI. However, I get this message when I try to save the event: "Ship not allowed to have this order".

From what I can tell, this was a conundrum ever since 2003. Do we have a way to let players dock with things?
Potato!

 

Offline 0rph3u5

  • 211
  • Oceans rise. Empires fall.
Re: Player docking, player-use-ai and allowed ships
player-use-ai is the way to go

What a ship can do (=what is valid for its AI to do) is determined by it's type which is determined in the "$flags:"-section of its .tbl/.tbm-entry; see this page in the wiki, if the retail types don't work for you check out ObjectTypes.tbl
"As you sought to steal a kingdom for yourself, so must you do again, a thousand times over. For a theft, a true theft, must be practiced to be earned." - The terms of Nyrissa's curse, Pathfinder: Kingmaker

==================

"I am Curiosity, and I've always wondered what would become of you, here at the end of the world." - The Guide/The Curious Other, Othercide

"When you work with water, you have to know and respect it. When you labour to subdue it, you have to understand that one day it may rise up and turn all your labours into nothing. For what is water, which seeks to make all things level, which has no taste or colour of its own, but a liquid form of Nothing?" - Graham Swift, Waterland

"...because they are not Dragons."

 

Offline Kiloku

  • 27
  • Buzzbuzz!
Re: Player docking, player-use-ai and allowed ships
Nice! I added an ***-obt.tbm with a new valid orders entry, and it worked.

Now, the ship's pathing is a bit odd, but that's unavoidable I guess. It's also kinda weird to grab the cargo by the top of the ship, but the fighters and bombers only have that as a docking point (and I don't have the blender+PCS2 expertise needed to change that)
Potato!

  

Offline The E

  • He's Ebeneezer Goode
  • 213
  • Nothing personal, just tech support.
    • Steam
    • Twitter
Re: Player docking, player-use-ai and allowed ships
Nice! I added an ***-obt.tbm with a new valid orders entry, and it worked.

Now, the ship's pathing is a bit odd, but that's unavoidable I guess. It's also kinda weird to grab the cargo by the top of the ship, but the fighters and bombers only have that as a docking point (and I don't have the blender+PCS2 expertise needed to change that)

That's because that dockpoint is intended to be used by the supply ship. Adding more dockpoints is pretty easy in PCS2 though, no Blender expertise needed.
If I'm just aching this can't go on
I came from chasing dreams to feel alone
There must be changes, miss to feel strong
I really need lifе to touch me
--Evergrey, Where August Mourns