Log Tech Trading and Lightbulbing

ruff_hi

Live 4ever! Or die trying
Joined
Oct 24, 2005
Messages
9,135
Location
an Aussie in Boston
silverbullet_z via sourceforge said:
Hi,
I would like to see more details of tech trading in the autolog.

Currently, every tech discovered appears as "Tech Learned:", even if it was
received through trade.
When reading the log after a long time, it is hard to tell how the tech was
received.
I would like to see a message like that:
"Traded Code of Laws and Mathematics to Hammurabi for 50 gold and
Monarchy"

In addition, I would like the option of logging GP bulbs
"Great prophet bulbed ### beakers towards divine right", etc.
This is a good idea - the 'tech learned' bugs me no end too - especially when looking at HOF logs to see how players play their games.

There might be an issue that no 'event' is fired when a trade or lightbulb occurs. I will look at the events and see what I can put together.
 
The logger has a variable that is used to determine if it is the players turn or the AIs turn. It controls the "While Defending / Attacking" code. I can use this variable coupled with the 'tech learnt' event to see if a tech was learnt via research (ie not during the players turn) or by other means.

The only way of learning a tech during the player's turn is via player initiated trade (including peace deal), by AI initiated trade, by lightbulbing or by popping a hut. Is there another way?

I think I can separate ligthbulbing and popping a hut already generates a logger message so all of this might be do-able. I'm not sure I can determine AI initiated trade from tech researched - will have to think about that.

One thing I cannot do is tell what the terms of the trade was or with whom.
 
dang - another one. Yes you can but that is similar to lightbulbing in that you execute a mission. Again, I think I can isolate that.
 
Back
Top Bottom