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 - Project & Mod Development > Civ4 - BTS Unaltered Gameplay (BUG, BAT and BULL)

Notices

Reply
 
Thread Tools
Old Oct 16, 2010, 11:39 AM   #161
binhthuy71
Emperor
 
binhthuy71's Avatar
 
Join Date: Nov 2003
Location: Southern California foothills
Posts: 1,849
entwood, I hope that it helps. Changing that line was sheer, dumb luck. It was the easiest thing to do that had any relationship to python so I just did it.
__________________
If you need to look up one of our many Civ-related acronyms (UA, CKN, MPM, NC, etc) or terms try the Civ5 Guide to Acronyms and Terms.
binhthuy71 is offline   Reply With Quote
Old Oct 16, 2010, 12:10 PM   #162
EmperorFool
Deity
 
EmperorFool's Avatar
 
Join Date: Mar 2007
Location: Mountain View, California
Posts: 9,624
Quote:
Originally Posted by Fuyu View Post
UP 1.60 is 110 days old already, June 28th..
I go off the tags so I make sure to get the actual release, but I guess jdog forgot to tag the 1.60 release. This gives me a snapshot at release that I can compare from release to release so I don't miss anything.
__________________
Monkeys killing monkeys killing monkeys over pieces of the ground.
Silly monkeys, give them thumbs they make a club and beat their brother down.


BUG Mod - BTS Unaltered Gameplay
[ Forum | Download | FAQ | Known Issues | Troubleshooting | Modding Tutorial ]

BAT 3.0.1 QuickFix™ released Oct 24th

Last edited by EmperorFool; Oct 16, 2010 at 12:17 PM.
EmperorFool is offline   Reply With Quote
Old Oct 16, 2010, 12:16 PM   #163
EmperorFool
Deity
 
EmperorFool's Avatar
 
Join Date: Mar 2007
Location: Mountain View, California
Posts: 9,624
@entwood - Better BUG AI is BUG + BULL + Better AI, so you don't lose BULL. But you're right that there's none of the cool work being done by Lemon Merchant in it. The only thing necessary would be for some kind soul to take the Better BUG AI SDK (BULL + Better AI) and compile it with some extra options enabled (whichever ones Lemon uses which I think is all).

For maximum player satisfaction, Lemon would need to alter her install script to allow the player to choose which DLL to install. Or we could just install both DLLs and let the player swap it out.

The above is based on my recollection that Better AI is all in the SDK, save for the Python assets it includes from the UP which BAT includes already. That sound about right Fuyu?
__________________
Monkeys killing monkeys killing monkeys over pieces of the ground.
Silly monkeys, give them thumbs they make a club and beat their brother down.


BUG Mod - BTS Unaltered Gameplay
[ Forum | Download | FAQ | Known Issues | Troubleshooting | Modding Tutorial ]

BAT 3.0.1 QuickFix™ released Oct 24th
EmperorFool is offline   Reply With Quote
Old Oct 16, 2010, 12:20 PM   #164
EmperorFool
Deity
 
EmperorFool's Avatar
 
Join Date: Mar 2007
Location: Mountain View, California
Posts: 9,624
Quote:
Originally Posted by binhthuy71 View Post
I changed HidePythonExceptions in CIv IV.ini from 0 to 1. Just started a game and everything is working.
I always play with exceptions hidden because it's impossible to read them when Civ shows alerts for them line by line. They are always written to PythonErr.log anyway, and it's easier to get them from there. I have no idea how turning the display of exceptions off has any effect. The exception still happens, and the game still stops whatever it was doing.

So either you're getting lucky and not getting the problem any more which others have said does happen sometimes, or it has an effect that I just can't think of now. Can you check your Logs folder to see if you have PythonErr.log?

At least this is something more to go on. Thanks!
__________________
Monkeys killing monkeys killing monkeys over pieces of the ground.
Silly monkeys, give them thumbs they make a club and beat their brother down.


BUG Mod - BTS Unaltered Gameplay
[ Forum | Download | FAQ | Known Issues | Troubleshooting | Modding Tutorial ]

BAT 3.0.1 QuickFix™ released Oct 24th
EmperorFool is offline   Reply With Quote
Old Oct 16, 2010, 01:46 PM   #165
entwood
Warlord
 
entwood's Avatar
 
Join Date: Sep 2007
Posts: 187
I was playing around with that setting but my install is not perfectly clean BAT 3.0 at the moment but I did get this

Click image for larger version

Name:	Civ4ScreenShot0000.JPG
Views:	34
Size:	123.3 KB
ID:	268933
entwood is offline   Reply With Quote
Old Oct 16, 2010, 02:06 PM   #166
Fuyu
Emperor
 
Fuyu's Avatar
 
Join Date: Nov 2009
Location: Austria
Posts: 1,147
Quote:
Originally Posted by EmperorFool View Post
@entwood - Better BUG AI is BUG + BULL + Better AI, so you don't lose BULL. But you're right that there's none of the cool work being done by Lemon Merchant in it. The only thing necessary would be for some kind soul to take the Better BUG AI SDK (BULL + Better AI) and compile it with some extra options enabled (whichever ones Lemon uses which I think is all).

For maximum player satisfaction, Lemon would need to alter her install script to allow the player to choose which DLL to install. Or we could just install both DLLs and let the player swap it out.

The above is based on my recollection that Better AI is all in the SDK, save for the Python assets it includes from the UP which BAT includes already. That sound about right Fuyu?
I'm not sure what cool work by LM would be lost if you swap out the dll. Except for Global Warming mod I don't know what's in BAT's dll that isn't included in mine. Maybe that movie mod, if that has SDK parts, idk. But mostly I'd expect BAT to work with my dll.

Of course it's not savegame compatible but that never was the case anyway, both Better AI on my side and the Global Warming mod on BAT's side are to blame for that.

Better AI also has a few python files though, like AIAutoplay, and in general Better BUG AI is updated more often than BAT so the recommended course of action is still to just take Better BUG AI Assets and copy them over the BAT assets.. which will remove female units. I guess I have to look at BAT 3.0 and make sure I identify all xml/python files that need merging.
__________________
Better AI + BULL + BUG merged mod "Better BUG AI" 1.02b (2010-09-26)
Fuyu is offline   Reply With Quote
Old Oct 16, 2010, 03:13 PM   #167
binhthuy71
Emperor
 
binhthuy71's Avatar
 
Join Date: Nov 2003
Location: Southern California foothills
Posts: 1,849
Okay, I'm embarrassed

I was wrong about editing the HidePythonExceptions line in Civ IV.ini being responsible for the no-Gui behavior. Turns out that the behavior is civ-specific. I just finished opening a game with every leader using the same map type, map size, and difficulty level parameters for each game.

The civs that exhibit the no-GUI issue:
Arabian Aztec Chinese Dutch
German Greek Japanese Khmer
Korean Maya Mongolian Ottoman
Persian Portugese Zulu

The civs that don't exhibit no-GUI issue:
American Babylonian Carthaginian
Celtic Egyptian English
Ethiopian French Holy Roman
Indian Malinese Native American
Roman Russian Spanish
Sumerian Viking

Te behavior is the same regardless of the setting of the python exception line. I went back and tested ten leaders from each group above with the HidePythonExceptions set to 0 and the behavior of each civ was the same as above.

With the above mentioned line set to 0, I get the Python Exception dialog shown in the attached screen shot.

Hoping that someone who knows this excellent mod can provide a fix.
Attached Thumbnails
Click image for larger version

Name:	py_except.jpg
Views:	24
Size:	83.1 KB
ID:	268949  
__________________
If you need to look up one of our many Civ-related acronyms (UA, CKN, MPM, NC, etc) or terms try the Civ5 Guide to Acronyms and Terms.
binhthuy71 is offline   Reply With Quote
Old Oct 16, 2010, 06:25 PM   #168
Lemon Merchant
Ignore List Citizen
 
Lemon Merchant's Avatar
 
Join Date: Jun 2008
Location: Red Sector A
Posts: 3,215
Images: 2
I've yanked BAT 3 off of SourceForge until I can fix this.

God I feel stupid!!
Lemon Merchant is offline   Reply With Quote
Old Oct 16, 2010, 06:59 PM   #169
binhthuy71
Emperor
 
binhthuy71's Avatar
 
Join Date: Nov 2003
Location: Southern California foothills
Posts: 1,849
Quote:
Originally Posted by Lemon Merchant View Post
I've yanked BAT 3 off of SourceForge until I can fix this.

God I feel stupid!!
Lemon, you aren't stupid, kid (Old Guy, here). I hope that the lists above will help you to identify the cause of the issue. PM me if you need something tested: I'm retired and I do have the time and the interest.
__________________
If you need to look up one of our many Civ-related acronyms (UA, CKN, MPM, NC, etc) or terms try the Civ5 Guide to Acronyms and Terms.
binhthuy71 is offline   Reply With Quote
Old Oct 16, 2010, 07:33 PM   #170
lymond
Synthetic Life Form
 
lymond's Avatar
 
Join Date: Mar 2008
Posts: 10,565
Quote:
Originally Posted by Lemon Merchant View Post
I've yanked BAT 3 off of SourceForge until I can fix this.

God I feel stupid!!
On the bright side BAT 3.0 is many light years ahead of a certain newly released game

lymond is offline   Reply With Quote
Old Oct 16, 2010, 08:30 PM   #171
binhthuy71
Emperor
 
binhthuy71's Avatar
 
Join Date: Nov 2003
Location: Southern California foothills
Posts: 1,849
Quote:
Originally Posted by lymond View Post
On the bright side BAT 3.0 is many light years ahead of a certain newly released game

Thanks for posting what I was thinking.
__________________
If you need to look up one of our many Civ-related acronyms (UA, CKN, MPM, NC, etc) or terms try the Civ5 Guide to Acronyms and Terms.
binhthuy71 is offline   Reply With Quote
Old Oct 16, 2010, 10:42 PM   #172
Lemon Merchant
Ignore List Citizen
 
Lemon Merchant's Avatar
 
Join Date: Jun 2008
Location: Red Sector A
Posts: 3,215
Images: 2
Quote:
Originally Posted by binhthuy71 View Post
Lemon, you aren't stupid, kid (Old Guy, here). I hope that the lists above will help you to identify the cause of the issue. PM me if you need something tested: I'm retired and I do have the time and the interest.
Quote:
Originally Posted by lymond View Post
On the bright side BAT 3.0 is many light years ahead of a certain newly released game

Love ya both, boys.
Lemon Merchant is offline   Reply With Quote
Old Oct 17, 2010, 12:13 AM   #173
Olfart
Warlord
 
Olfart's Avatar
 
Join Date: Jun 2009
Location: Maryland
Posts: 107
Meanwhile, I'm still playing. For the listed civs, you just have to reload the save - not a big deal for me. I like the mod too much to give it up. Looking forward to the fix. From another old guy, life's too short to feel stupid about making a mistake. You should only feel stupid if you keep repeating the same mistake.
__________________
“Everything in excess! To enjoy the flavor of life, take big bites. Moderation is for monks.” Lazarus Long
Olfart is offline   Reply With Quote
Old Oct 17, 2010, 09:18 AM   #174
entwood
Warlord
 
entwood's Avatar
 
Join Date: Sep 2007
Posts: 187
Quote:
Originally Posted by EmperorFool View Post
It does sound similar to the "not updated to 3.19" problem. In that case, one of the icons being drawn by the Technology Advisor is not recognized by the system, and it stops drawing mid-stream. This leaves the advisor open and keeps the game from drawing the main screen. Alt-tabbing out and back in or loading a new game causes the main screen to be redrawn, but I suspect your Technology Advisor is still half-drawn.

So, this gives me an idea. BAT added female great people (what I like to call Great Women of History), and perhaps this is not working on the TA. Oh, I now see that IPEX did post PythonErr.log. Here's the problem:

Code:
AttributeError: type object 'CvPythonExtensions.WidgetTypes' has no attribute 'WIDGET_TECH_CHOOSER_ERA'
This is a new widget added by Ruff when he added the era colors to the Technology Advisor. I'll have to take a look when I get home to see where it's defined, but for now you can modify the following line (324) from Assets/Python/Screens/CvTechChooser.py:

Code:
screen.attachPanelAt( sPanel, szTechRecordShadow, u"", u"", True, False, PanelStyles.PANEL_STYLE_TECH, iX - 6 + iShadowOffset, iY - 6 + iShadowOffset, self.getXStart() + 6, 12 + ( self.BOX_INCREMENT_HEIGHT * self.PIXEL_INCREMENT ), WidgetTypes.WIDGET_TECH_CHOOSER_ERA, gc.getTechInfo(i).getEra(), -1 )
to

Code:
screen.attachPanelAt( sPanel, szTechRecordShadow, u"", u"", True, False, PanelStyles.PANEL_STYLE_TECH, iX - 6 + iShadowOffset, iY - 6 + iShadowOffset, self.getXStart() + 6, 12 + ( self.BOX_INCREMENT_HEIGHT * self.PIXEL_INCREMENT ), WidgetTypes.WIDGET_GENERAL, -1, -1 )
I think this issue/fix is still an item because if you load a Mod such as VD with just BUG 4.4 in Custom Assets, the error may appear and this fix does get past it. Does somebody want to verify?

Traceback (most recent call last):
File "BugUtil", line 691, in <lambda>
File "BugEventManager", line 570, in preGameStart
File "CvAppInterface", line 70, in preGameStart
File "CvScreensInterface", line 83, in showTechChooser
File "CvTechChooser", line 231, in interfaceScreen
File "CvTechChooser", line 243, in ConstructTabs
File "CvTechChooser", line 280, in DrawTechChooser
File "CvTechChooser", line 324, in placeTechs
AttributeError: type object 'CvPythonExtensions.WidgetTypes' has no attribute 'WIDGET_TECH_CHOOSER_ERA'
ERR: Python function preGameStart failed, module CvAppInterface

After applying the fix there is still an error log:
Traceback (most recent call last):
File "BugUtil", line 691, in <lambda>
File "BugEventManager", line 570, in preGameStart
File "CvAppInterface", line 74, in preGameStart
File "CvScreensInterface", line 72, in showMainInterface
File "CvMainInterface", line 428, in interfaceScreen
File "CvMainInterface", line 346, in initState
File "PLE", line 180, in PLE_CalcConstants
File "PLE", line 851, in getMaxRow
ZeroDivisionError: integer division or modulo by zero
ERR: Python function preGameStart failed, module CvAppInterface

Last edited by entwood; Oct 17, 2010 at 09:31 AM.
entwood is offline   Reply With Quote
Old Oct 17, 2010, 09:48 AM   #175
binhthuy71
Emperor
 
binhthuy71's Avatar
 
Join Date: Nov 2003
Location: Southern California foothills
Posts: 1,849
Quote:
. Does somebody want to verify?
I'll back up CvTechChooser.py: and give it try.

Disclaimer: I know next to nothing about python so it will be strictly cut, paste and play.
__________________
If you need to look up one of our many Civ-related acronyms (UA, CKN, MPM, NC, etc) or terms try the Civ5 Guide to Acronyms and Terms.
binhthuy71 is offline   Reply With Quote
Old Oct 17, 2010, 12:28 PM   #176
binhthuy71
Emperor
 
binhthuy71's Avatar
 
Join Date: Nov 2003
Location: Southern California foothills
Posts: 1,849
entwood, I changed line 324 in BAT mod's CvTechChooser.py file as you suggested then started a game with all 15 of the civs that had the no GUI behavior. Your fix worked, all 15 loaded the mods and the GUI. I also started a game with 5 of the civs that didn't have the no GUI behavior just because no one has ever fixed one thing and broken something else. They were okay as well.

I did notice one other issue that I hadn't mentioned before: no matter which civ I choose, there is a persistent on screen message "Bug Options - cannot locate settings folder" I attached a screen shot.

If there's a simple fix for this one I would be a happy person.
Attached Thumbnails
Click image for larger version

Name:	bugoptions.jpg
Views:	26
Size:	206.0 KB
ID:	269133  
__________________
If you need to look up one of our many Civ-related acronyms (UA, CKN, MPM, NC, etc) or terms try the Civ5 Guide to Acronyms and Terms.
binhthuy71 is offline   Reply With Quote
Old Oct 17, 2010, 12:43 PM   #177
EmperorFool
Deity
 
EmperorFool's Avatar
 
Join Date: Mar 2007
Location: Mountain View, California
Posts: 9,624
@binhthuy71 - Can you post your PythonDbg.log file after you get the error about the settings folder. It means that BUG cannot find the "UserSettings" folder that should be in the root of the "BAT Mod 3.0" folder.
__________________
Monkeys killing monkeys killing monkeys over pieces of the ground.
Silly monkeys, give them thumbs they make a club and beat their brother down.


BUG Mod - BTS Unaltered Gameplay
[ Forum | Download | FAQ | Known Issues | Troubleshooting | Modding Tutorial ]

BAT 3.0.1 QuickFix™ released Oct 24th
EmperorFool is offline   Reply With Quote
Old Oct 17, 2010, 01:31 PM   #178
binhthuy71
Emperor
 
binhthuy71's Avatar
 
Join Date: Nov 2003
Location: Southern California foothills
Posts: 1,849
Quote:
Originally Posted by EmperorFool View Post
@binhthuy71 - Can you post your PythonDbg.log file after you get the error about the settings folder. It means that BUG cannot find the "UserSettings" folder that should be in the root of the "BAT Mod 3.0" folder.
"User Settings" installed to the root of the BAT Mod 3.0 folder. I did a search for the PythonDbg.log file and it didn't return a log file. Do I need to enable something?
__________________
If you need to look up one of our many Civ-related acronyms (UA, CKN, MPM, NC, etc) or terms try the Civ5 Guide to Acronyms and Terms.
binhthuy71 is offline   Reply With Quote
Old Oct 17, 2010, 04:26 PM   #179
binhthuy71
Emperor
 
binhthuy71's Avatar
 
Join Date: Nov 2003
Location: Southern California foothills
Posts: 1,849
PythonDbg.log

Attached, the text of PythonDbg.log from a typical game.
Edit: for some reason, the .txt version wouldn't upload. It did so when I zipped it.
Attached Files
File Type: zip PythonDebug.zip (37.0 KB, 13 views)
__________________
If you need to look up one of our many Civ-related acronyms (UA, CKN, MPM, NC, etc) or terms try the Civ5 Guide to Acronyms and Terms.

Last edited by binhthuy71; Oct 17, 2010 at 04:37 PM.
binhthuy71 is offline   Reply With Quote
Old Oct 17, 2010, 07:02 PM   #180
Lemon Merchant
Ignore List Citizen
 
Lemon Merchant's Avatar
 
Join Date: Jun 2008
Location: Red Sector A
Posts: 3,215
Images: 2
Fixed!! (I think)

Just apply this little patch. The instructions are in the readme.txt file inside.

UnitArt.7z

I'll re-release in a day or two.
Lemon Merchant is offline   Reply With Quote
Reply

Bookmarks

Go Back Civilization Fanatics' Forums > CIVILIZATION IV > Civ4 - Creation & Customization > Civ4 - Project & Mod Development > Civ4 - BTS Unaltered Gameplay (BUG, BAT and BULL) > BAT Errata

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
Louis XIV Errata? Zubbus Civ4 - General Discussions 2 Mar 17, 2010 06:33 PM
Continue BAT 2.0 savegame with BAT 2.1? Blkbird Civ4 - BTS Unaltered Gameplay (BUG, BAT and BULL) 1 Nov 24, 2009 09:21 PM
Civilization IV Manual Errata Abacus Civ4 - General Discussions 17 Nov 08, 2005 11:15 AM
Historical errata and miscellanea thread Kafka2 World History 24 Dec 08, 2003 08:30 PM
compendium of Civilopedia errata mardukes Civ2 - Strategy & Tips 5 May 14, 2003 09:55 AM


Advertisement

All times are GMT -6. The time now is 11:15 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