From: | Vchc |
---|---|
Thread: | new VPA 3.7x released |
Forum: | Talk |
In reply to: | Re: VPA 3.76 released |
Date: | Tue, 2018-01-02 11:11 GMT |
Edited: | Tue, 2018-01-02 11:27 GMT |
Wow interesting.
- How can I reproduce this? - Only with Dark Sense? - What effect hat +p-alliance? - Only with vpamm? - Do you have game-data, which is not confidential?
If surf and core in the first run is correct, and the $$ and sups are from the turn before, this might be because there are no later information, or just wrong? What is written in the messages, did you compare the (dark sense) message with planet info? Which VPA.MSG do you use? Have you checked the entries in VPA.MSG?
Maybe different interpretation from messages and utilx.dat, I can imagine.
It is Empire specific bug and it always shows up.
The planet level of alliance generates records in utilx.dat with the current (at the end of turn) funds and surface minerals of allied planets.
Dark Sense phost's stage comes before planetary processes so Dark sense message contains funds and total minerals info excluding planetary processes of the current turn! For minerals it is not important because the total amount can not be changed during planetary proceseses. But funds do change (taxation).
To calculate the correct full planetary info you should:
- Take Funds from the record in utilx.dat
- Take Surf minerals from the record in utilx.dat.
- Calculate Core minerals taking total minerals from dark sense message and subtracting Surf minerals from the previous step.
Looks like the parsing process directly overwrite the final funds info but instead there should be a check if the utilx.dat info is present.
Once calculated the Core minerals should be saved to DB and always used if present, not only during the parse process.
It is up to you how to handle all this mess
I use VPA 3.77 and vpa.msg from the sourceforge archive.
Thank you.