Failed to write new ini files

phungus420

Deity
Joined
Mar 1, 2003
Messages
6,296
User reports this bug for WolfRevolution:
I keep getting "bug options failed writing ini file" error in the events box. Any ideas?
What could be causing that, WolfRev generates it's inis fine for me and most others that have tried 1.3.1 (I only included the two that come with RevDCM and added in the RevDCM ini). I've asked in the RevDCM thread, but this is obviously an issue with the user's machine/settings and bug code, so I figure I'd ask here as well. You guys might have a better idea of how to troubleshoot it.
 
What version of BUG is WolfRev using? Do any of the INIs get written? What happens if you delete all the INIs and have BUG recreate them (BUG 3.0+)? When does it fail to write the INI?
 
BUG 3.6 Like I said from my end BUG makes it's inis fine. The three included are the overarching mod ini (WolfRevolution.ini), and the Advanced unit naming ini, as well as the RevDCM ini. When I play the mod, it makes all the other inis fine after the first time I play (If I delete all the inis but the ones left in the download, same thing, from my end the extra ones just regenerate fine after starting up a game). And there have been about 40 downloads and numerous users reporting everything works fine. This was a single user's report, so I have to assume it's machine specific. I'd like to give him some advice on how to troubleshoot the issue he's experiencing.

I'll ask him when he gets the notification on writing the ini failed, and direct him here to this thread. I'd just like to know in general though, so I can note it in the known bugs section of the mod.
 
Well the user that reported this hasn't gotten back to me to answer the questions posed to him. But I'm still curious as to what could be causing this, just for curiosity sake, and also in case someone else reports it. Any ideas off the top of your head about what would cause BUG to fail to write the inis, and how to troubleshoot it?
 
If you go to the System tab of the BUG Options Screen, you'll see all the places (search paths) where BUG will look for INI files. When it finds one, it writes changes to it to the same file. All the paths listed are verified to be valid directories in that they exist and are directories.

So when writing INIs one of two things happens: an INI file is found and modified, or a new file is created. When a new INI is created, I believe (check BugPath.py to be sure) that it is put into the first search path in the list.

Here are a few possibilities:

  • User cannot write to the new INI file search path
  • existing INI files are write protected or user doesn't have rights to write to them
  • no valid search paths are found
  • search paths all contain non-Latin1 characters
 
I actually just downloaded the new version of WolfRev and got these Ini Failures at game start. What do these things mean (what's an Ini file, anyway?)? Can I just ignore it and keep playing past it?
 
Can you try downloading and installing the BUG mod, and choose the "install as a mod" version, not the custom assets configuration. And see if you still get these errors bestbrian? If BUG writes it's inis without a hitch, then try just regular old RevDCM and see if you get this failed to write ini error from that mod. Knowing this will help isolate the issue, ie it will let us know if this is a problem intrinsic to BUG itself interacting with your machine, RevDCM, or something I introduced with the Wolfshanze-RevDCM merge.
 
An INI file is a configuration file that stores user settings. It is a plain text file which makes it easy for humans to read and modify if they want.
 
Can you try downloading and installing the BUG mod, and choose the "install as a mod" version, not the custom assets configuration. And see if you still get these errors bestbrian? If BUG writes it's inis without a hitch, then try just regular old RevDCM and see if you get this failed to write ini error from that mod. Knowing this will help isolate the issue, ie it will let us know if this is a problem intrinsic to BUG itself interacting with your machine, RevDCM, or something I introduced with the Wolfshanze-RevDCM merge.

I tried downloading BUG to the Mod/Multiplayer Config, and it aborted and would not install. I received the following error:

C:\ProgramFiles\FiraxisGames\SidMeier'sCivilization4\BeyondtheSword\Mods\BugMod3.6\Assets\Art\BUG\Arm.dds

Does this help you at all?
 
It sounds like the BUG installer was corrupted during the download. I would delete the installer, delete the failed installation (Mods/BUG Mod 3.6), and try again, downloading a new installer to be sure.
 
Here're the ini files that are problematic when loading WolfRevolution:

Strategy Overlay, Event Signs, Unit Naming, MoreCiv4lerts, and Civ4lerts.

And where would I find a new installer? I just clicked on the link in your sig.
 
Same link. It just might have been corrupted when downloading, basically just try to download BUG again, and try to reinstall.
 
I'm having the ini write failure as well. I think it's all inis, because I remember seeing the same message for a second file. I also get errors here and there about being unable to read unit naming configuration values.

edit: two thoughts about why this might be happening:
1) Windows Vista. It may not have write permission to the files. I'll try running it as admin next time and see if it works
2) 64-bit OS. If the path to the files is hardcoded to "c:\Program Files\" it won't work, as my install is in "c:\Program Files (x86)\"
 
Have you tried to install BUG as a mod (the multiplayer option I believe, not the custom asset one), to see if this occurs with straight BUG. Like with WolfRev, you may not get it the first time, try to play the game, then change the options in BUG (installed as a mod), and see if you get the failure to write ini files. If that occurs we can definatly isolate this to BUG itself, which would make tracking down it's cause much easier.
 
I get the same error as Bestbrian listed above.

My setup:
-BTS 3.17 official patch, Direct2Drive version
-Windows 7
-Tried to install the multiplayer/mod version of BUG 3.6

Also, I tried deleting the BUG install file, redownloading and reinstalling it, but got the same error. It hadn't even really started the installation by that point as there was not even a BUG folder to delete in the mods directory yet.

Any ideas on how to solve this?
 
I'm not sure what you're asking for. This is an install error and I get the following text when I try to install BUG.
"C:\ProgramFiles\FiraxisGames\SidMeier'sCivilizatio n4\BeyondtheSword\Mods\BugMod3.6\Assets\Art\BUG\Arm.dds"

As far as the PythonErr file, I don't have one with that name, but I have one called PythonErr2 and here's the text in it:

sys.path = ['..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\email', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\encodings', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\build', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\py', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\tools', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\colourchooser', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\editor', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\floatcanvas', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\masked', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\mixins', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\lib\\ogl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\af\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ca\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\cs\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\da\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\de\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\el\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\es\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\eu\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fi\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\fr\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hi\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\hu\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\id\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\it\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ja\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\lv\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nb\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\nl\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pl\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\pt_BR\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\ru\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sl\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\sv\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\tr\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\uk\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_CN\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\locale\\zh_TW\\LC_MESSAGES', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\py\\tests', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM\\wx\\tools\\XRCed\\src-images', '..\\WARLORDS\\ASSETS\\PYTHON\\SYSTEM']

sys.modules = {'zipimport': <module 'zipimport' (built-in)>, 'signal': <module 'signal' (built-in)>, '__builtin__': <module '__builtin__' (built-in)>, 'sys': <module 'sys' (built-in)>, '__main__': <module '__main__' (built-in)>, 'exceptions': <module 'exceptions' (built-in)>, 'CvPythonExtensions': <module 'CvPythonExtensions' (built-in)>}

sys.builtin_module_names = ('CvPythonExtensions', '__builtin__', '__main__', '_bisect', '_codecs', '_codecs_cn', '_codecs_hk', '_codecs_iso2022', '_codecs_jp', '_codecs_kr', '_codecs_tw', '_csv', '_heapq', '_hotshot', '_locale', '_multibytecodec', '_random', '_sre', '_subprocess', '_symtable', '_weakref', '_winreg', 'array', 'audioop', 'binascii', 'cPickle', 'cStringIO', 'cmath', 'collections', 'datetime', 'errno', 'exceptions', 'gc', 'imageop', 'imp', 'itertools', 'marshal', 'math', 'md5', 'mmap', 'msvcrt', 'nt', 'operator', 'parser', 'regex', 'rgbimg', 'sha', 'signal', 'strop', 'struct', 'sys', 'thread', 'time', 'xxsubtype', 'zipimport')
load_module CvEventInterface
load_module CvUtil
load_module traceback
load_module CvEventManager
load_module CvScreensInterface
load_module CvMainInterface
load_module ScreenInput
load_module CvScreenEnums
load_module time
load_module CvDomesticAdvisor
load_module CvTechChooser
load_module CvForeignAdvisor
load_module math
load_module CvExoticForeignAdvisor
load_module IconGrid
load_module DomPyHelpers
load_module PyHelpers
load_module TechTree
load_module re
load_module CvMilitaryAdvisor
load_module CvFinanceAdvisor
load_module CvReligionScreen
load_module CvCorporationScreen
load_module CvCivicsScreen
load_module string
load_module CvVictoryScreen
load_module CvEspionageAdvisor
load_module CvOptionsScreen
load_module CvReplayScreen
load_module CvHallOfFameScreen
load_module CvDanQuayle
load_module CvGameUtils
load_module CvUnVictoryScreen
load_module CvDawnOfMan
load_module CvTechSplashScreen
load_module CvTopCivs
load_module random
load_module CvInfoScreen
load_module CvIntroMovieScreen
load_module CvVictoryMovieScreen
load_module CvWonderMovieScreen
load_module CvEraMovieScreen
load_module CvSpaceShipScreen
load_module CvPediaMain
load_module CvPediaScreen
load_module CvScreen
load_module CvPediaTech
load_module CvPediaUnit
load_module CvPediaBuilding
load_module CvPediaPromotion
load_module CvPediaUnitChart
load_module CvPediaBonus
load_module CvPediaTerrain
load_module CvPediaFeature
load_module CvPediaImprovement
load_module CvPediaCivic
load_module CvPediaCivilization
load_module CvPediaLeader
load_module CvPediaSpecialist
load_module CvPediaHistory
load_module CvPediaProject
load_module CvPediaReligion
load_module CvPediaCorporation
load_module CvWorldBuilderScreen
load_module Popup
load_module CvWorldBuilderDiplomacyScreen
load_module CvDebugTools
load_module CvDebugInfoScreen
load_module CvMapGeneratorUtil
load_module CvGFCScreen
load_module CvPopupInterface
load_module CvScreenUtilsInterface
load_module CvScreenUtils
init-ing world builder screen
load_module CvWBPopups
load_module CvCameraControls
load_module CvAdvisorUtils
PY:OnInit
load_module CvAppInterface
 
Okay, I've confirmed that this is caused by vista account permissions. If I right click on my shortcut and say "Run as Administrator," I do not get the error.
 
Okay, I've confirmed that this is caused by vista account permissions. If I right click on my shortcut and say "Run as Administrator," I do not get the error.

Fantastic. Just tried that and it installed perfectly.

Must be something with the Vista/Win7 account permissions.

Just to further confirm, once I installed BUG and started a game, I got the same 5 inis that failed to load as listed above. But, if I ran the game as administrator, everything loaded fine.
 
Fantastic. Just tried that and it installed perfectly.

Must be something with the Vista/Win7 account permissions.

Just to further confirm, once I installed BUG and started a game, I got the same 5 inis that failed to load as listed above. But, if I ran the game as administrator, everything loaded fine.

I'll have to give that a shot. I'd despaired of ever getting it to work. :goodjob:
 
Back
Top Bottom