A "Special" Domestic Advisor (Please try out!)

Mylon said:
Well, I didn't intend those ideas to apply to the domestic advisor, but since you seem to have a good handle on the interface... :)

As for the bottom center, I'm not sure if that's accessible when the city prompts me on what to build (so I could ignore the popup). That could save me time.

Also, there was another mod I saw a while back (at least, I'm pretty sure it was a mod). It added commerce/yield icons next to the religion icons to identify a city as a top producer. So a beaker would tell you that city is your best research city. Do you think you could reproduce this?

Ah, ok. I understand. The build menu is unfortunately in another section of the code, so there isn't much crossover with the DAdvisor.

I see what you're talking about with the city prompts, but again it's somewhere else :( .

For the third thing do you mean on the world map itself? If so, I haven't the slightest clue where to begin (though the top research, gold and production are already on the map). If you mean in the Domestic Advisor, it's already there. Just do a sort :crazyeye:.

Req
 
Mylon, the beaker, coin, hammer above the city name on the world view is already there -- no need to mod it in. Go take a closer look.
 
OK I downloaded the zip file to my desktop. When I click on it, it opens to reveal a bunch of other files and two readme documents. But I can't see how I install it all the requisite directory. Any advice?
 
Not to sound like a jerk, but read the readme files (you may have to rename them to add the extension ".txt" or just tell windows to open them in notepad when it asks).
 
oriel94 said:
OK I downloaded the zip file to my desktop. When I click on it, it opens to reveal a bunch of other files and two readme documents. But I can't see how I install it all the requisite directory. Any advice?

Yup, as eotinb said it's in the readme (the Special Domestic Advisor readme).

Hmmmm, should I still include the New Domestic Advisor readme as it might confuse people who are trying to install? I thought it would be nice to have as a link to the pass, but it might actually be a little confusing....

Req
 
:bump: for new update.

Includes x# in Specialist column, AUTOMATION options on the default view, and many optimizations and cleaning up of code.

Also, a question.

Any suggestions for column header for AUTOMATION? I'm really loathe to edit the XML files, but it looks like I might have to. But I'm hoping one of you guys has an idea for the header.

Also, any ideas for the Automate Citizen and Automate Production symbols? Right now, they're just 'C' and 'P', respectively.

ED: Oh, yeah, the update is on the first post and there's a new screenshot up.

Req
 
How strange...

I have just installed your updated version and I get...

Failed to load python module CVEventInerface

Which I understand is cache related, so I have tried to clear the cache several times by pressing the shift key whilst it is loading, as well as deleting the cache itself from....
C:\Documents and Settings\Admin\Application Data\My Games\Civ 4\cache

...and I still get that message. :crazyeye:
 
Morgan UK said:
How strange...

I have just installed your updated version and I get...

Failed to load python module CVEventInerface

Which I understand is cache related, so I have tried to clear the cache several times by pressing the shift key whilst it is loading, as well as deleting the cache itself from....
C:\Documents and Settings\Admin\Application Data\My Games\Civ 4\cache

...and I still get that message. :crazyeye:

I'm receiving the same error, as well. Re-installing the previous version eliminates the error.
 
Morgan UK said:
How strange...

I have just installed your updated version and I get...

Failed to load python module CVEventInerface

Which I understand is cache related, so I have tried to clear the cache several times by pressing the shift key whilst it is loading, as well as deleting the cache itself from....
C:\Documents and Settings\Admin\Application Data\My Games\Civ 4\cache

...and I still get that message. :crazyeye:

Awww, crap. Probably another syntax bug....

Ok could I ask you guys a favor?

Could you do what Enkidu Warrior did for me?

In your "My Documents/My Games/Civilization IV/CivilizationIV.ini" file, change "Logging enabled" to 1 and "MessageLog" to 1 (and "Overwrite Logs" to 1 if you don't want a mass of Network Logs) and tell me what the "My Documents/My Games/Civilization IV/Logs/PythonErr.txt" file says when you try to load up cIV.

ED: Oh yeah, BTW, just in case you want to be more enlightened about the cIV error problems and stuff :D, "Cannot load CvEventInterface" actually means that the Python could not compile correctly because the interpreter could not parse the CvEventInterface (which I believe is the code that the C++ code uses to interface with the Python code) and all the files it is dependent upon. So, if you have ANY syntax error or unknown symbol, then, it'll spit that out.

The reason why I say clear the cache as a solution is that sometimes cIV will use an old version of a file and call a no-longer existing function or class causing this problem. It happens frequently enough, so that any time I load a mod with a lot of changes, I'll clear my cache anyways, just to avoid this from happening.

However, strictly speaking, the message itself just means that the program wasn't able to load up the class CvEventInterface.

Thanks a bunch!
Req
 
Requies said:
Awww, crap. Probably another syntax bug....

Ok could I ask you guys a favor?

Could you do what Enkidu Warrior did for me?

In your "My Documents/My Games/Civilization IV/CivilizationIV.ini" file, change "Logging enabled" to 1 and "MessageLog" to 1 (and "Overwrite Logs" to 1 if you don't want a mass of Network Logs) and tell me what the "My Documents/My Games/Civilization IV/Logs/PythonErr.txt" file says when you try to load up cIV.

ED: Oh yeah, BTW, just in case you want to be more enlightened about the cIV error problems and stuff :D, "Cannot load CvEventInterface" actually means that the Python could not compile correctly because the interpreter could not parse the CvEventInterface (which I believe is the code that the C++ code uses to interface with the Python code) and all the files it is dependent upon. So, if you have ANY syntax error or unknown symbol, then, it'll spit that out.

The reason why I say clear the cache as a solution is that sometimes cIV will use an old version of a file and call a no-longer existing function or class causing this problem. It happens frequently enough, so that any time I load a mod with a lot of changes, I'll clear my cache anyways, just to avoid this from happening.

However, strictly speaking, the message itself just means that the program wasn't able to load up the class CvEventInterface.

Thanks a bunch!
Req

Oh, crap. Never mind. I know what it is.

I added in the time/date mod but changed it so that it subclassed instead of replacing CvMainInterface....

Damn. Totally forgot about that....

Sorry, guys. I'll get a new version up, pronto.

I swear, there won't be any syntax errors in this one (I hope).

Req
 
Ok, I checked it out and it worked.

Looks like when you're changing your My Games folder, you should remove EVERYTHING as otherwise, you'll get some funky results.

Anyways, I guess I'll test any future changes this way (moving my whole My Games folder over) since it's the only way I know if I forgot to take out one of my mods.

Req
 
Ugggh, just to show that anyone can be bitten by the cache bug, It took me 5 times to clear out my cache.

And the problem is I haven't the slightest clue where it is since it's not in my Document and Settings directory!

Oh well.

Anyways, the new update works with a clean My Games directory, so it should work for everyone unless they have other mods which interfere with it (CvScreensInterface.py).

So, try it out! And let me know what I should put for the symbols and headers of the Automated column!

Req
 
I'll give this a try after I've completed a few games under normal mode. Thanks for a super duper excellent mod (that I'll fire up shortly)!
 
If you check my earlier post you will see the patch to where the cache for the game is stored, you have to allow XP to show hidden files and folders for it to appear.

Looks like when you're changing your My Games folder, you should remove EVERYTHING as otherwise, you'll get some funky results.

What exactly do you mean by this....?

I have the blue marble mod installed which runs perfectly well with your mod, previous to your latest update, can I not just copy your update and overwrite the files that are there....?

BTW: Great work on this mod :)
 
Morgan UK said:
If you check my earlier post you will see the patch to where the cache for the game is stored, you have to allow XP to show hidden files and folders for it to appear.

I know. But the thing is I ALWAYS have hidden files and folders shown (I'm a nut about it :D), so that's not the problem. My problem I think is that I've modified my computer so that it store different files in different default directories. However, I looked where the cache SHOULD be and it wasn't there. I also checked the other feasible places where it could be and couldn't find it in any of THOSE places, either :sad:. So, my cache is somewhere, I just don't know where.



Morgan UK said:
What exactly do you mean by this....?

I have the blue marble mod installed which runs perfectly well with your mod, previous to your latest update, can I not just copy your update and overwrite the files that are there....?

You can. It's just that when I tried just moving all my files in that directory to another (to test the installation), it made the program do some weird things.... I think I forgot to leave some files in that directory which caused the problems (I did leave the ini file, but I think it needed another file). And since it's easiest just to have Civ re-install the correct files, the best bet when moving your files around and wanting a "clean (mod free)" version is just delete the Civilization4 directory in your My Games folder. That probably wasn't very clear in my original post or even this post, but that's my best explanation at this moment. I'm dealing with some insomnia right now :/.

Morgan UK said:
BTW: Great work on this mod :)

Thanks! So, then, the new update works for you, right? I'm pretty sure it would, but it's always nice to get confirmation.

Req
 
You could always search for "My Games" to locate where your cache folder would be, as you have the hidden files and folders to show, it would be revealed.


I always clear the cache by deleting the contents of that folder, it seems less hit and miss than holding the shift key down whilst launching the game.

I have just installed the updated update and all seems well. So again a big pat on the back for the super quick fix :)
 
Morgan UK said:
You could always search for "My Games" to locate where your cache folder would be, as you have the hidden files and folders to show, it would be revealed.


I always clear the cache by deleting the contents of that folder, it seems less hit and miss than holding the shift key down whilst launching the game.

I have just installed the updated update and all seems well. So again a big pat on the back for the super quick fix :)

Yeah, I guess I should do it. I'm just having problems with my Explorer Search right now. Plus it takes a long time to search all my hard drives.....

Eh, oh well, I guess I'll do that now. Clearing the cache with the SHIFT really is kind of a pain.

Glad it's working for you!

ED: Ok, just did the search and it's in AppData for me. Thanks for talking me into looking for it. No more SHIFT for me!

Req
 
Back
Top Bottom