[mod] Log changes

thanks eotinb :) I think most of my problems deal with the equipment that connects the chair to keyboard, not your program. if you want, you can pm me a version and i'll try to see if it's idiot proof tonight.
 
I was going to PM the rough version to the two of you, but I couldn't figure out how to attach a file to PM (if that is even possible). So you'll just have to wait like everyone else. :)
 
eotinb said:
Not sure what happened to you Shevek, but I suspect it had to do with editing the ini file for autosaving. It frustrated me that two people (that I know of) have felt the need to re-install to get my mod working. That should not be necessary and I know it can be a pain in the rear, so I'm sorry you did it. :(
...

Don't worry about that re-install thingy.:) It had really more to do with me not understanding how civ works. I think I now figured out that I had only to delete the files in 'My Games'. Civ will restore them with the next game start, right?

Overall I really appreciate all the efford you put into this. It's just great.
I am looking forward to the new version.
 
Sorry, double post.
 
Another nice option would be to be able to set a default prefix tag to be automatically entered when you Alt-E a comment, so it stands out from the other information. For instance I find I'm always starting my comments "Civgeek - ...." so I can easily see them in the log file. Just a thought.
 
Civgeek said:
Another nice option would be to be able to set a default prefix tag to be automatically entered when you Alt-E a comment, so it stands out from the other information. For instance I find I'm always starting my comments "Civgeek - ...." so I can easily see them in the log file. Just a thought.
That would be quite easy to do. It could be made optional or not, as well.
 
Grimshok said:
Can you have the prefix tag be the user name?
I think I can pull something like that out of the game, but I'm not sure. I can certainly make the tag one of the variables at the beginning of autolog.py so you can make it what you like.
 
fwiw eot, here is a thread on apolyton that explains some stuff. It also has some events that you might be interested in.

Initial Python Reference
 
What a wonderful mod, thanks eotinb.

I downloaded and unzipped the files, changed the path and it works fine :)
 
Tubby Rower said:
fwiw eot, here is a thread on apolyton that explains some stuff. It also has some events that you might be interested in.

Initial Python Reference
That was actually posted here as well. It is pretty helpful -- the link to the API has been critical to everything I have done.
 
I thought I would have enough time this morning to polish up the new version, but I don't. So to appease my clamoring fans, I will release the rough version. There is no readme, and no documentation of new features, so caveat downloader. I would recommend backing up the copy that works, as this will overwrite those files. Let me know about any problems. And don't be shy to sing my praises if you like it. :)

Edit: First post updated with cleaned up v1.1. File removed here.
 
eotinb said:
I thought I would have enough time this morning to polish up the new version, but I don't. So to appease my clamoring fans, I will release the rough version.

Used V1.1 over lunch ;) Seems to work fine. One small hiccup, the game seemed to hang briefly on start-up and I didn't get a chance to change the log file name. It came-up over the opening movie; is that right? Anyway, looks fine (here's an example). :goodjob: I think I may edit to make the comment prefix be bold.

----------------------------New entries----------------------------
Turn 130 (375 AD)
Civgeek: Stating new log with V1.1
Thebes finishes: Archer
Elephantine grows: 5
Elephantine finishes: Library
Kyoto finishes: Barracks
Judaism has spread: Kyoto

Turn 131 (400 AD)
Tech learned: Calendar
Civgeek: Cyrus offers Calander plus gold for Currancy (Accept)
Thebes begins: Market
Elephantine begins: Lighthouse
Kyoto begins: Lighthouse
Civgeek: Starting to build Lighthouses now we know Sailing.
Osaka finishes: Jewish Missionary
Alexandria finishes: Library
Kyoto grows: 5

Turn 132 (425 AD)
Osaka begins: Lighthouse
Alexandria begins: Lighthouse
Thebes grows: 9
Memphis finishes: Jewish Missionary
Heliopolis finishes: Granary
Osaka grows: 5
Tokyo grows: 6
Tokyo finishes: Library

Turn 133 (450 AD)
Memphis begins: Market
Tokyo begins: Lighthouse
Heliopolis begins: Barracks
Civgeek: Just another test comment.
Civgeek: Is there a way to turn off the sound when cities grow? It is annoying.
Memphis grows: 7
Giza's borders expand
Christianity founded in a distant land

Turn 134 (475 AD)
Civgeek: Caeser looks weak; no iron. So sad.
Judaism has spread: Tokyo
Judaism has spread: Heliopolis
Civgeek: Convert to Judaism; get some happiness and bonus on building construction.
Tech learned: Monarchy
Alexandria grows: 5
Kyoto finishes: Lighthouse
Christianity has spread: Pi-Ramesses
 
Is the crtl-E pop-up allowed while the diplo screen is up?

is it possible to record the deals made automatically?
 
@Civgeek: I have the movies turned off, so I'm not sure about your experience. If you have trouble, you could always save and reload -- that would trigger the file name event again. I can make the prefix stand out with bold or italics or something.

@Tubby Rower: Alt+E should work in the diplomacy screen -- try and find out. And I'm trying to autolog trade deals but it's going to be tricky.
 
eotinb said:
@Civgeek: I have the movies turned off, so I'm not sure about your experience. If you have trouble, you could always save and reload -- that would trigger the file name event again. I can make the prefix stand out with bold or italics or something.

I took a quick look (I'm not familiar with Python), but couldn't see where the actual text is written to the log file. :( I think it would help the readability of the log file to bold the prefix and add a line return after each user comment.
 
search the cvEventManager for "self.log.write". there's a section of code for each type of event (battles, building completions, etc). This would be useful to automatically add vbCode to these messages to change the color, bold, underline, etc. This could keep them seperate when glancing at them after copying & pasting them into a turnlog on CFC.

ie: Battles are always red and bold, research is always green, etc.

hmm.. I'll be editing mine tonight. eot, if you want me to upload it let me know
 
@Civgeek: Look in autolog.py at the function write(). type = 2 is custom user entries, so this is where you would add bold tags or whatever.

@Tubby Rower: Interesting idea. I think I might do this myself later tonight, and I don't think I'm going to do it the way you describe, so for now there is no need to upload. But let me know how it works out, and maybe show us an example.

@all: This is intended to be a tool to help you keep notes to write logs. I don't think a straight cut and paste from the text file into a forum post is a very good way to go. Of course, use it as you see fit, but what I've done is edit the text file after my turnset to combine the auto notes and my notes, and to add more notes after the fact (here is an example of what I mean). I just wanted to say that because I have seen some feedback in at least one SG that this autolog was eliminating the storytelling component, and I'd hate to see that happen.
 
Back
Top Bottom