Advertisement
Civilization Fanatics' Center  

Welcome to Civilization Fanatics' Center.

You are currently viewing our site as a guest which gives you limited access to our site features. By joining our free community, you will be able to participate in the discussions, search the forum, send private messages, vote in polls, upload your own screenshots to the gallery, and access many other special features. Registration is fast, simple and absolutely free, so sign up today! If you have any problems with the registration process or your account login, please contact support.

Go Back   Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Mod Components

Notices

Reply
 
Thread Tools
Old Dec 02, 2007, 10:12 AM   #1
Fierabras
Emperor
 
Fierabras's Avatar
 
Join Date: Dec 2006
Posts: 1,072
Images: 2
[BTS] CvMainInterface.py fix

This modification of CvMainInterface.py cleans up the button "overload" in the main interface screen.

(python file and images will be re-uploaded soon)

Warlords:



BTS:



BTS new:



You can put this file straight into the appropiate BTS CustomAssets folder:

C:\Documents and Settings\YourProfile\My Documents\My Games\Beyond the Sword\CustomAssets\python\screens\

Download: http://forums.civfanatics.com/downlo...o=file&id=7734

Last edited by Fierabras; Mar 03, 2008 at 05:59 AM.
Fierabras is offline   Reply With Quote
Old Dec 02, 2007, 10:13 AM   #2
Fierabras
Emperor
 
Fierabras's Avatar
 
Join Date: Dec 2006
Posts: 1,072
Images: 2
Development history

This is of course yet another minor fix, more interesting is how this fix came about.

A couple of days ago I was chatting with johny in the WoC Jabber chat room and he mentioned that he was working on this fix. At first, I was not sure what he was talking about, but that was because I had not noticed the button "overload" before. I guess it takes a designer's eye to spot such details.

Johny told me that at first he wanted to make the buttons smaller to fit, but luckily he was halted there by the WoC team leader TAfirehawk . He told johny to look into the python of the screen for the main interface. Johny went ahead and did his first python modding which resulted in the fix.

I myself only recently joined up with WoC, but I think this is a good example of cross-inspirational-teamwork. I used to do only XML modding, but since I joined I have learned a lot about other areas of CIV modding (mostly through chatting about it).

I advise any modder now to join the WoC-team, a team that is always prepared to give a helping hand with what you are working on and that gives you the freedom to add what you want as long as it follows the new BTS WoC modular coding standard, which in my mind is going to be the future Firaxis standard as well.

Last edited by Fierabras; Dec 02, 2007 at 10:43 AM.
Fierabras is offline   Reply With Quote
Old Dec 02, 2007, 10:35 AM   #3
rene_ryou
Chieftain
 
Join Date: Jul 2007
Posts: 22
it looks good, but can i ask where the changes in the file are? I couldn't find them.
rene_ryou is offline   Reply With Quote
Old Dec 02, 2007, 10:46 AM   #4
Fierabras
Emperor
 
Fierabras's Avatar
 
Join Date: Dec 2006
Posts: 1,072
Images: 2
Look for the comments which end in "JOHNY SMITH". For instance:

l. 215 # PANEL SIZE CHANGE 11/30/07 JOHNY SMITH

l. 230 # PANEL SIZE CHANGE END

This is not the only one, there are more.
The changes are in the numbers compared to the original CvMainInterface.py
Fierabras is offline   Reply With Quote
Old Dec 02, 2007, 04:53 PM   #5
TAfirehawk
WoC Team Manager
 
TAfirehawk's Avatar
 
Join Date: Aug 2006
Location: Florida
Posts: 2,326
Thanks for posting this Fierabras

We have a number of nice little things in the WoC.

As Fierabras said, I invite anybody and everybody to join our Jabber chat server and learn more about the WoC....and visit our Dev Area....in my sig. As far as the World of Civilization Team, we are pretty full at the moment but we are all more than willing to work with each and every modder out there to help them with their own, independent work...using the FIXED Modular Loading we have in the WoC.
__________________

World of Civilization Modding Platform for BtS
WoC is not a mod but an extension of the Modular XML Loading Firaxis released with BtS
The WoC goal is to allow the player the choice of mod components from all BtS modders


Do or do not... there is no try.
Yoda
TAfirehawk is offline   Reply With Quote
Old Dec 13, 2007, 07:09 AM   #6
Chuggi
Espada
 
Chuggi's Avatar
 
Join Date: Jan 2007
Location: Hueco Mundo
Posts: 2,363
Cool stuff, thanks for fixing this
Chuggi is offline   Reply With Quote
Old Dec 13, 2007, 09:59 AM   #7
Ekmek
Deity
 
Ekmek's Avatar
 
Join Date: Aug 2002
Location: San Diego, California
Posts: 5,232
cool stuff. when I get into python and interface I look into joining WoC. My main wish is to have a scroll bar in the religion and corporations screen so you can add more easily and that they only show up if they are founded(sorry the crowded interface ones aren't that appealing to me).

My other wish is to in the city view screen an option wheere you click on your trade routes and get to choose which cities to trade with. i know, I know the game picks the one with highest return but sometimes I don't want to trade with a city because I don't want its religion spreading there or maybe I'm doing some economic warfare against the AI.
Ekmek is offline   Reply With Quote
Old Dec 13, 2007, 02:56 PM   #8
rockinroger
WoC Team Member
 
rockinroger's Avatar
 
Join Date: Feb 2006
Location: Overland Park, Kansas
Posts: 1,219
We had a scrolling civics screen in ViSa and i believe it will be added eventually to the WoC. We also have had preliminary discussions about scrolling religions, dont see why that cant also apply to corporations also. Good idea!!
rockinroger is offline   Reply With Quote
Old Jan 26, 2008, 06:57 PM   #9
TAfirehawk
WoC Team Manager
 
TAfirehawk's Avatar
 
Join Date: Aug 2006
Location: Florida
Posts: 2,326
Quote:
Originally Posted by Ekmek View Post
cool stuff. when I get into python and interface I look into joining WoC. My main wish is to have a scroll bar in the religion and corporations screen so you can add more easily and that they only show up if they are founded(sorry the crowded interface ones aren't that appealing to me).

My other wish is to in the city view screen an option wheere you click on your trade routes and get to choose which cities to trade with. i know, I know the game picks the one with highest return but sometimes I don't want to trade with a city because I don't want its religion spreading there or maybe I'm doing some economic warfare against the AI.
We have working Religion and Corporation scrolling screens now thanks to johny.

http://forums.civfanatics.com/showthread.php?t=260636
__________________

World of Civilization Modding Platform for BtS
WoC is not a mod but an extension of the Modular XML Loading Firaxis released with BtS
The WoC goal is to allow the player the choice of mod components from all BtS modders


Do or do not... there is no try.
Yoda
TAfirehawk is offline   Reply With Quote
Old Jan 27, 2008, 04:05 AM   #10
snipperrabbit!!
Deity
 
snipperrabbit!!'s Avatar
 
Join Date: Nov 2006
Posts: 3,266
I don't agree ! Power Rating and Victory Conditions will be better on the other side along with the Event Diary. I think it's better to have the advisors one side and the game help the other side.
__________________
"Values too far out of the expected range can cause the game to behave strangely."Civ2Rules
46Techs, AUB for button makers, 59Miscs, 72Pack, walking on the moon, AUB from WW, italian renaissance
BoardgameButtons

snipperrabbit!! is offline   Reply With Quote
Old Jan 27, 2008, 05:55 AM   #11
TAfirehawk
WoC Team Manager
 
TAfirehawk's Avatar
 
Join Date: Aug 2006
Location: Florida
Posts: 2,326
Quote:
Originally Posted by snipperrabbit!! View Post
I don't agree ! Power Rating and Victory Conditions will be better on the other side along with the Event Diary. I think it's better to have the advisors one side and the game help the other side.
Not sure what you mean....all we did was to space it out, we didn't move anything...
__________________

World of Civilization Modding Platform for BtS
WoC is not a mod but an extension of the Modular XML Loading Firaxis released with BtS
The WoC goal is to allow the player the choice of mod components from all BtS modders


Do or do not... there is no try.
Yoda
TAfirehawk is offline   Reply With Quote
Old Jan 27, 2008, 08:52 AM   #12
snipperrabbit!!
Deity
 
snipperrabbit!!'s Avatar
 
Join Date: Nov 2006
Posts: 3,266
Well, in CivChooser, Dale added a button in the left corner to switch from your current civ. What I'm trying to tell is that :



Go to

__________________
"Values too far out of the expected range can cause the game to behave strangely."Civ2Rules
46Techs, AUB for button makers, 59Miscs, 72Pack, walking on the moon, AUB from WW, italian renaissance
BoardgameButtons

snipperrabbit!! is offline   Reply With Quote
Old Jan 27, 2008, 09:52 AM   #13
TAfirehawk
WoC Team Manager
 
TAfirehawk's Avatar
 
Join Date: Aug 2006
Location: Florida
Posts: 2,326
Quote:
Originally Posted by snipperrabbit!! View Post
Well, in CivChooser, Dale added a button in the left corner to switch from your current civ. What I'm trying to tell is that :



Go to

Sure, that can be done, but this modcomp was just to fix Firaxis mistake.
__________________

World of Civilization Modding Platform for BtS
WoC is not a mod but an extension of the Modular XML Loading Firaxis released with BtS
The WoC goal is to allow the player the choice of mod components from all BtS modders


Do or do not... there is no try.
Yoda
TAfirehawk is offline   Reply With Quote
Old Jan 27, 2008, 02:31 PM   #14
snipperrabbit!!
Deity
 
snipperrabbit!!'s Avatar
 
Join Date: Nov 2006
Posts: 3,266
Don't worry, I must have said this when it catched my eyes a few days back.
I thought it wasn't a big deal and never knew someone was about to work on this. If I knew I will have requested to separate the advisors from the game help which I think doesn't serve exactly the same purpose (one is more focused on the current turn while the other is about the game length ).
I don't request anything and just want to expose my PoV.
__________________
"Values too far out of the expected range can cause the game to behave strangely."Civ2Rules
46Techs, AUB for button makers, 59Miscs, 72Pack, walking on the moon, AUB from WW, italian renaissance
BoardgameButtons

snipperrabbit!! is offline   Reply With Quote
Old Jan 27, 2008, 05:12 PM   #15
TAfirehawk
WoC Team Manager
 
TAfirehawk's Avatar
 
Join Date: Aug 2006
Location: Florida
Posts: 2,326
Quote:
Originally Posted by snipperrabbit!! View Post
Don't worry, I must have said this when it catched my eyes a few days back.
I thought it wasn't a big deal and never knew someone was about to work on this. If I knew I will have requested to separate the advisors from the game help which I think doesn't serve exactly the same purpose (one is more focused on the current turn while the other is about the game length ).
I don't request anything and just want to expose my PoV.
I already entered this into the Bug Tracker for Johny to work on when he gets a chance.

We will make Alternative Screens python area in Modules that a player can manually copy (python isn't modular) to meet their individual desires.
__________________

World of Civilization Modding Platform for BtS
WoC is not a mod but an extension of the Modular XML Loading Firaxis released with BtS
The WoC goal is to allow the player the choice of mod components from all BtS modders


Do or do not... there is no try.
Yoda
TAfirehawk is offline   Reply With Quote
Old Feb 06, 2008, 11:00 PM   #16
unknown66
Chieftain
 
Join Date: Jan 2008
Posts: 6
Thanks a lot for this,well done.
unknown66 is offline   Reply With Quote
Old Feb 10, 2008, 05:31 AM   #17
Ninja2
Great Engineer
 
Ninja2's Avatar
 
Join Date: Nov 2005
Location: Denmarkia
Posts: 1,142
Do these valuechanges work regardless of screen resolution?
Ninja2 is offline   Reply With Quote
Old Feb 10, 2008, 08:45 AM   #18
Headlock
Nomnomnomnom
 
Headlock's Avatar
 
Join Date: Sep 2007
Location: Over there!
Posts: 126
Lightbulb

Quote:
Originally Posted by rene_ryou View Post
it looks good, but can i ask where the changes in the file are? I couldn't find them.
A vital tool for any would-be modder is a file comparison program, so you can see the changes between a new file and the original highlighted in a clear manner.

Personally, I use WinMerge - i find it Very clear and simple.
www.winmerge.org

HDK
Headlock is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Mod Components > [BTS] CvMainInterface.py fix

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Help/Request] BTS Horizontal scrolling CvCivicsScreen.py Drakart Civ4 - SDK/Python 5 Mar 24, 2008 10:47 AM
Crash caused by (bts) file CvTechChooser.py I'm your Daddy Civ4 - Technical Support 4 Dec 23, 2007 08:52 PM
[BTS] Where is CvUtil.py? Stormreaver Civ4 - SDK/Python 2 Jul 28, 2007 10:57 AM
Will(does) BTS fix the crashes and when can we get a fix for vanilla? tariqari Civ4 - Technical Support 5 Jul 25, 2007 09:48 PM
handleInput in CvMainInterface.py The Great Apple Civ4 - Creation & Customization 31 Apr 01, 2006 08:20 AM


Advertisement

All times are GMT -6. The time now is 09:58 AM.


Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This site is copyright © Civilization Fanatics' Center.
Support CFC: Amazon.com | Amazon UK | Amazon DE | Amazon CA | Amazon FR