FreeOrion

Forums for the FreeOrion project
It is currently Wed Oct 18, 2017 4:27 pm

All times are UTC




Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2
Author Message
PostPosted: Mon Feb 01, 2016 9:38 pm 
Offline
Space Kraken
User avatar

Joined: Sat Jan 30, 2016 11:29 am
Posts: 123
Yes, indeed..

I must have somehow mangled the file. II restored a backup from a fresh install, just copy-pasted your code and it worked.

Many thanks for the attention!

_________________
All contributions are released under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidelines.


Top
 Profile  
 
PostPosted: Wed Feb 03, 2016 2:45 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12001
Location: Munich
I think I've fixed the parser so that it can't get too deep into parsing a statistic before realizing it is a different type than it initially thought, so it should work without the "0.0 +" out front now.


Top
 Profile  
 
PostPosted: Wed Feb 03, 2016 6:41 pm 
Offline
Space Kraken
User avatar

Joined: Sat Jan 30, 2016 11:29 am
Posts: 123
Nice.

If you have some time at hand, you may want to have a look at when SitReps are processed. As it is now, looking from outside, I guess they are being processed before effects which affect the planet's meters.

In other words, the statistics I'm getting, both for Industry and Research, are 1 turn delayed. They give me the correct totals for the end of the last turn, not the beginning of the new one.

_________________
All contributions are released under GPL or LGPL v2 or later, or under appropriate Creative Commons licence, consistent with project guidelines.


Top
 Profile  
 
PostPosted: Wed Feb 03, 2016 6:54 pm 
Offline
Programming, Design, Admin
User avatar

Joined: Wed Oct 08, 2003 1:33 am
Posts: 12001
Location: Munich
Cpeosphoros wrote:
If you have some time at hand, you may want to have a look at when SitReps are processed. As it is now, looking from outside, I guess they are being processed before effects which affect the planet's meters.
You are writing an effect that generates sitreps, so it records the values in the gamestate before that execution of effects. Other sitreps are generated at other times, and if they include any gamestate information, it is from the time they are created. Most sitreps don't have things like meter values in them though, but rather just species names or object or empire IDs, which don't depend on timing with respect to meter updates.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page Previous  1, 2

All times are UTC


Who is online

Users browsing this forum: Bing [Bot] and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group