Snaitf's Show Attitude Mod

ACEofHeart said:
Nice idea !!!!
Installing info would be helpful tho :D

I agree. As I'm not very good at figuring this type of stuff out, I'd appricate some instalation instructions.
 
To use as a MOD, unpack to your C:\Documents and Settings\My Games\Civilization 4\MODS. Then load the MOD called "Snaitf's Show Attitude Mod"

To use all the time (not as a MOD), unpack and put the CvMainInterface.py in C:\Documents and Settings\My Games\Civilization 4\CustomAssets\python\screens

Note: As always, "C:\Documents and Settings" is the default path, but may be different on your PC.

If you already have a CvMainInterface.py in \CustomAssets\python\screens, Snaitf has been kind enough to mark exactly what he changed. So open his CvMainInterface.py in Notepad, search for "## Start Modification Block ##", then copy and paste the whole block into the existing CvMainInterface.py:
Code:
##############################
## Start Modification Block ##
##############################
if (not gc.getPlayer(ePlayer).isHuman()):
	szTempBuffer = " - " + str(gc.getAttitudeInfo(gc.getPlayer(ePlayer).AI_getAttitude(gc.getGame().getActivePlayer())).getDescription())
	szBuffer = szBuffer + szTempBuffer
##############################
##  End Modification Block  ##
##############################
Be sure to copy to the correct position of course, that is right after the lines:
Code:
szTempBuffer = u"%c" %(gc.getReligionInfo(gc.getPlayer(ePlayer).getStateReligion()).getChar())
szBuffer = szBuffer + szTempBuffer
That's how I got it to work with FexFX Bigger & Longer MOD :)

Great work Snaitf :goodjob: When I asked for this feature I didn't expect anyone to make it - thanks a bunch :)
 
Thanks so much for the installation help! I'm looking very forward to trying this mod in a few minutes. :D
 
I made a small variant that abbreviates the text to three characters. Edit this change into CvMainInterface.py
Beware of the tabs!
Code:
##############################
## Start Modification Block ##
##############################
if (not gc.getPlayer(ePlayer).isHuman()):
	szTempBuffer = " - " + str(gc.getAttitudeInfo(gc.getPlayer(ePlaye).AI_getAttitude(gc.getGame().getActivePlayer())).getDescription())
	szBuffer = szBuffer + szTempBuffer[0:6]
	# Original: Modified by RobO:szBuffer = szBuffer + szTempBuffer
##############################
##  End Modification Block  ##
##############################
5 characters is more readable, but then limits the advantage of this change. Just change 0:6 to 0:8 to get 5 characters.

Frankly, I'm not sure if 1: would work as well as 0: (I'm not that familiar with Python yet), but 0: doesn't cause problems for me and is the logical choice.

Example enclosed.
 

Attachments

  • Annoyed.jpg
    Annoyed.jpg
    7.9 KB · Views: 444
Any ideas how I could add Power info to the main screen? I keep going to check this.
I've no idea where or how to find out myself, I'm afraid.
 
Caesium, I just sent an email to Snaitf to see if he is going to update his mods. Hopefully he'll reply to my mail.
 
This mod works fine with 1.61, it's only a few lines of code. If you're worried that maybe the file itself has changed just copy the modified lines from this one to the new one and that's it.
 
Actually I was wrong, it does seem to have some conflicts with 1.61, at least it does in my mod, it could be it's something else in the mod but when I used the new CvMainInterface.py to apply these changes it fixed the bug. Anyway, you can get the 1.61 compatible version of this mod here.

If anyone's willing to double check this that'd be great. It's a very simple mod but I kinda rushed it and could've made a mistake.
 
Rabbit, White's verison works in MP :goodjob: in 1.61 Patch

thx Rabbit, White! :D

your the :king:

only thing I dont like about it is that it shows "[AI]" at the end of the AI opponents :rolleyes:

this was not in the original show attitude mod

is there a way to fix this? :mischief:

It's not a big thing but it does take up more of screen view (which I feel is unnessary)


I'll keep you posted if anything else happens!
 
I like the attitude mod..

But when i click onto the city screen, the attitude box is still on the bottom covering up the specialists.

Is there a way to manipulate the attitude box (or make it disappear) on the city screen?
 
Epicurist said:
I like the attitude mod..

But when i click onto the city screen, the attitude box is still on the bottom covering up the specialists.

Is there a way to manipulate the attitude box (or make it disappear) on the city screen?

see post #32

download the link

unzip it and replace that .py file with the one in Snaitf's mod

that will work with 1.61 patch


(dont know if it works with Warlords :( )
 
ok..cool..i had d/l that version but for some reason it didnt place over the old one..

Works now..thanks!

fyi..it is buggy with the warlords expansion pack...(the post #32 version)

*********************Edit******************
Actually, in Warlords, it works until you build a wonder, then that specific city will error, while non wonder cities will work. Not sure why they would be different
 
Epicurist said:
ok..cool..i had d/l that version but for some reason it didnt place over the old one..

Works now..thanks!

fyi..it is buggy with the warlords expansion pack...(the post #32 version)

*********************Edit******************
Actually, in Warlords, it works until you build a wonder, then that specific city will error, while non wonder cities will work. Not sure why they would be different

yeah... TheLopez took over this mod since Snaitf is MIA and probably wont be coming back :(

but thanks for the heads up... since Im gonna release a mod pre-warlords... and probably release a warlords version too (not because I want too... warlords looks lame IMHO, but to keep my mod up to date) and I use this mod component in my mod right now :crazyeye:


he maybe be able to update the mod but he is quite busy... but who knows...

I am not a python coder but I know that some xml tags were changed for Warlords... which means some python files were changed and that's probably why it dont work :sad:

but good luck too ya sorry I couldnt help more :blush:
 
Officer Reene said:
yeah... TheLopez took over this mod since Snaitf is MIA and probably wont be coming back :(

but thanks for the heads up... since Im gonna release a mod pre-warlords... and probably release a warlords version too (not because I want too... warlords looks lame IMHO, but to keep my mod up to date) and I use this mod component in my mod right now :crazyeye:


he maybe be able to update the mod but he is quite busy... but who knows...

I am not a python coder but I know that some xml tags were changed for Warlords... which means some python files were changed and that's probably why it dont work :sad:

but good luck too ya sorry I couldnt help more :blush:


When did I take over this mod? I wasn't informed of this :p
 
TheLopez said:
When did I take over this mod? I wasn't informed of this :p


sorry I was thinking of the GG mod :lol:
 
Top Bottom