How to change the diplomacy screen ?

frenchman

Present is past of future
Joined
Aug 15, 2003
Messages
1,039
Hello,

Does someone know how to change the diplomacy screen ? Does exist a XML file to modify to change the general look of this screen ?

:thanx:
 
all the screens are in python. the diplo-screen is in ..\your civ4\assets\python\screens\CvForeignAdvisor.py

to modify it you will need python.
 
That's the foreign advisor, not the diplo screen. I think he means the one where you actually conduct the deals, not where you can see what they are.
 
The Great Apple said:
That's the foreign advisor, not the diplo screen. I think he means the one where you actually conduct the deals, not where you can see what they are.


Frixas why do you hate us so much? :cry:. [COLOR="#eeeeeee"]It be great to change it, I dislike it a lot[/COLOR]
 
ah, ok. then i misunderstood :)
i don't know it either where it is changeable, but i think it is. it is just another interface-element and so far i know they've done the most of the interface with python....but i haven't worked often with python, so i don't know and could also be wrong.
 
:thanx: for all your answer... It is not so easy to customize the game this time... CIV II was the best for that... :thanx:
 
I have no access to the code ATM but if TGA says it's not in Python, it's probably not... though there is code in there for inserting leaderheads and all that. If you can install the SDK and find out anything more, frenchman, do share with us as I'm curious how diplomacy can be changed...
 
I think it's going to depend largely on what you want to do with it. I know small changes to it can be made, but the general layout is, I think, hard-coded and beyond our access.
 
I wonder if it would be possible to write a python script to override the default diplomacy screen and overlay it with something identical which could then be editted. I'm pretty sure it all should be possible...

This should allow us to add new diplomacy options as well. I think I may put it on my to-do list.
 
If I have time I'd love to help you out; if not, I really hope you take this on, TGA!
 
The Great Apple said:
I wonder if it would be possible to write a python script to override the default diplomacy screen and overlay it with something identical which could then be editted. I'm pretty sure it all should be possible...

This should allow us to add new diplomacy options as well. I think I may put it on my to-do list.

Didn't someone make changes to the diplomacy screen to provide more at-hand information or something? I could've sworn someone did...
 
I think that was the foreign advisor.

I'm pretty sure you can change the mouseover infos, as well as the colour (and transparency) of the background panels. You can also change the diplomacy texts quite easily.

I'm pretty sure I could get a replacement screen working, if we have the ability to set deals active/inactive in python or the SDK. If we don't, then I'm pretty sure it ain't possible.
 
I've definitely seen deals active/inactive in both Python and SDK, but then again, memory may deceive. There's got to be some kind of code that handles it, for example, if someone pillages all your iron and you're supplying another civ.

I was going to start looking into whether other diplomacy options were possible. But without UI handling, it would be futile...
 
Sources close to Firaxis have stated that the diplomacy screen is hard coded in the exe, so it seems that we will be unable to change the deal screen unless somehow Firaxis decides to releas the executable source code (which is very unlikely).

I don't know if they change this in Warlords but I hope so. The diplo screen doesn't fall in the graphics or game core catagory, so they are in essence breaking their promise.
 
Is there a variable that is set while you see the diplo screen?

Maybe this one?
CyInterface.isScreenUp(INT iEnumVal)
When you put "10" for iEnumVal (10 is the number for the Diplo Screen in CvScreenEnums), does this tell me that you can see the Diplo Screen?
 
Top Bottom