Rules and Strategy for our beloved game

[Posting] Phost experience
Thread opener
Posted Wed, 2018-03-21 08:06 GMT

Hi all

I've been doing some test games with phost and i'm training a sirius with supplies via ext.mission but in the next turn the level of the ship hasn't changed and the supplies don't change.

I'm using the pconfig from pleiades12 and i've checked the options and they are enabled.

Is there anything i need to do while hosting ?

Thanks

[Posting] Re: Phost experience
Posted Wed, 2018-03-21 17:36 GMT

Hi.

From phost's docs:

Training

Preconditions:

ship has fuel
ship is orbiting a friendly planet
experience is enabled (NumExperienceLevels is not zero)
ExperienceLimit not yet reached

And you should use a client with extended missions support.

[Posting] Re: Phost experience
Thread opener
Posted Wed, 2018-03-21 18:51 GMT

I think so. Is there a detailed log in the host director?

Hi.

From phost's docs:

Training

Preconditions:

ship has fuel
ship is orbiting a friendly planet
experience is enabled (NumExperienceLevels is not zero)
ExperienceLimit not yet reached

And you should use a client with extended missions support.

[Posting] Re: Phost experience
Posted Wed, 2018-03-21 19:18 GMT

There should be a message from phost about exp levels of your ships. Is it present?

If you want a help from someone you should post here at least full info about the problem, your phost version and client.

[Posting] Re: Phost experience
Thread opener
Posted Wed, 2018-03-21 19:23 GMT

You know what they use to say

The problem is between the keyboard and the chair

The warp was nota zero

Thanks

I think so. Is there a detailed log in the host director?

Hi.

From phost's docs:

Training

Preconditions:

ship has fuel
ship is orbiting a friendly planet
experience is enabled (NumExperienceLevels is not zero)
ExperienceLimit not yet reached

And you should use a client with extended missions support.

[Posting] Re: Phost experience
Posted Wed, 2018-03-21 20:15 GMT

You know what they use to say

The problem is between the keyboard and the chair

The warp was nota zero

Nonzero warp does not prevent training - training prevents nonzero warp :smile:

If training fails, you get an information in util.dat. PCC1 and EchoView can show that file. For example, training in free space will generate this:

   Type 44, Length 14 -- Failed Action
     Action:         10000
     Ship Id:        78
     Planet Id:      0
     Cause:          no matching target (19)
       Mission:      38
       Intercept:    400
       Tow:          0

("no matching target" is the error code for "I didn't find the planet I need to get supplies from")

A little-known feature of PHost is that can also write a special log file (trace.log) intended for debugging. Unfortunately, that file is currently lacking the mission failure reasons. Successful training shows up as

   Training:ship8: 300 supplies

in that file (invoke PHost as "phost -Lship8" to receive all information that applies to ship 8).


--Stefan

Note to self: add a util.dat viewer to PCC2 and PlanetsCentral

[Posting] Re: Phost experience
Posted Thu, 2018-03-29 08:33 GMT

Nonzero warp does not prevent training - training prevents nonzero warp :smile:

From all my personel evidence this is disproved. Whenever I set the mission to training I get no results if I forget to set the warp to zero manually. (this evidence is taken from PCC2)
I'm not sure if the ship is moving if I set a waypoint with the training mission, since I usually don't set any. :smile:

[Posting] Re: Phost experience
Posted Thu, 2018-03-29 18:48 GMT

Nonzero warp does not prevent training - training prevents nonzero warp :smile:

From all my personel evidence this is disproved. Whenever I set the mission to training I get no results if I forget to set the warp to zero manually. (this evidence is taken from PCC2)
I'm not sure if the ship is moving if I set a waypoint with the training mission, since I usually don't set any. :smile:

At the time I wrote the previous reply, I had experimented manually. I have now also written a test case for PHost's automatic test suite that also shows that training works.

begin init
  (delete-all-ships)
  (delete-all-bases)
  (delete-all-minefields)

  ;; Create ship #1 at planet #20, owned by player 3
  (setq sid (create-ship 3 21 9 nil nil nil nil))
  (create-planet 20 3 0)
  (move-ship-to-planet sid 20)

  ;; Configure the ship: Training for 100 supplies, starting with 500 EP, warp 4
  (assert '(eq (ship-crew sid) 410))
  (assert '(eq sid 1))
  (put-ship-mission sid 38)
  (put-ship-intercept-target sid 100)
  (put-ship-exp-points sid 500)
  (put-ship-speed sid 4)
  (put-ship-waypoint-dx sid 20)
  (put-ship-waypoint-dy sid 20)

  ;; Configure the planet: 1000 supplies, 12 factories
  (put-planet-cargo 20 CARGO:SUPPLIES 1000)
  (put-planet-factories 20 12)
end

begin check
  (setq sid 1)
  (assert '(eq (ship-exp-points sid) 643))              ; gained 143 points
  (assert '(eq (ship-speed sid) 0))                     ; speed reset to 0
  (assert '(eq (ship-waypoint-dx sid) 20))              ; waypoint still remains
  (assert '(eq (ship-waypoint-dy sid) 20))
  (assert '(eq (ship-location-x sid) (planet-location-x 20)))  ; not moved
  (assert '(eq (ship-location-y sid) (planet-location-y 20)))
  (assert '(eq (planet-cargo 20 CARGO:SUPPLIES) 912))   ; 100 lost, 12 produced
end

I don't want to to claim PHost to be bug-free, it surely isn't, but I cannot reproduce a problem :sad:

PCC2 will color the mission yellow if you are training and have nonzero warp. This sends the message "the mission will not work", but in fact it's the move that will fail.


--Stefan

[Posting] Re: Phost experience
Posted Thu, 2018-03-29 18:58 GMT, edited Thu, 2018-03-29 18:58 GMT

I don't want to to claim PHost to be bug-free, it surely isn't, but I cannot reproduce a problem :sad:

PCC2 will color the mission yellow if you are training and have nonzero warp. This sends the message "the mission will not work", but in fact it's the move that will fail.


--Stefan

There is no problem as long as you set the warp to zero. Then training works perfectly well.

It's also true that PCC2 will color the mission yellow if you forget. What part of the code exactly is failing when you keep a nonzerospeed beats me. If you say it's the moving so be it. But what I can see is that the mission will fail and that's what is usually affecting me. (since I know I can't move and won't try to - I just forget to set the speed properly)
Which means we are speaking about different things. I am speaking as player and you are speaking as programmer. :smile:

[Posting] Re: Phost experience
Posted Fri, 2018-03-30 13:41 GMT

I don't want to to claim PHost to be bug-free, it surely isn't, but I cannot reproduce a problem :sad:

PCC2 will color the mission yellow if you are training and have nonzero warp. This sends the message "the mission will not work", but in fact it's the move that will fail.

There is no problem as long as you set the warp to zero. Then training works perfectly well.

It's also true that PCC2 will color the mission yellow if you forget. What part of the code exactly is failing when you keep a nonzerospeed beats me. If you say it's the moving so be it. But what I can see is that the mission will fail and that's what is usually affecting me.

If you can point me to a place where you wanted to train, but failed to, I'll take a look.

But in the end, PCC2 has no say in whether a mission will succeed. It will give you hints where it thinks something fails, but the final word is at the host.


--Stefan

[Posting] Re: Phost experience
Posted Fri, 2018-03-30 17:37 GMT

If you can point me to a place where you wanted to train, but failed to, I'll take a look.

I had a deep look into my pleiades 12 safes and at least now it seems to work exactly as you say. The only time the training failed was once when there were no supplies left on the surface though it seems I forgot te set the speed quite often.
Further more at that particular time PCC did not mark the mission yellow but the line for crew and experience. *thumps up*

One last thing I never, not even once, had set a waypoint anywhere else then the current position. So it really was just the warp speed which was out of order.

But in the end, PCC2 has no say in whether a mission will succeed. It will give you hints where it thinks something fails, but the final word is at the host.

Obviously. :smile: