Quick Modding Questions Thread

2) A problem with Windows 7. When editing a map script in

C:/Programs (x86)/Firaxis/Sid Meier's Civilization IV/Public Maps

my computer won't let me save the newly edited version to the same location. The following error message is generated:

[Error 13] Permission denied: "C:/Program Files (x86)/Firaxis Games/Sid Meier's Civilization 4/Public Maps/LandMassesRevisited.py"

but I am able to save the file to another location and then copy it over to that location. Any hints on how to get around this error?

That error is the UAC (User Account Control). It's for security purposes, to prevent programs from altering core files without explicit permission. You CAN (meaning it is POSSIBLE to) turn off the UAC by going to Control Panel and typing "UAC" into the search box. However, I wouldn't recommend it; it's bad for the security of your computer.

If you want to be able to save directly to the installation folder, I'd suggest (re)installing Civ to your user directory.

Personally, I think it's best to develop in a different location, then copy - it's easier to keep backups that way.

Don't know about your Python problem, though (I'm helpless when it comes to Python). Bonne chance!
 
Thanks DuskDancer

Yesterday was the first time I did any CivIV modding in 4 years. My former computers ran Windows XP. My current one uses Windows 7. All modding I have done is in Python. 2 Questions:

1) Previously for debugging, I would follow the advice given by The Great Apple in his Python Tutorial in the Modding Tutorials and References subforum. Specifically post 5. I would make the recommended edits to the CivilizationIV.ini file (except for ShowPythonDebugMsgs which never appeared in my ini file) and then launch CivIV and start a game using the modded python file.

Yesterday the recommended changes to the .ini file were automatically reversed whenever I launched CivIV.

I enter the ini file. I change these lines:

HidePythonExceptions = 1
LoggingEnabled = 0
OverwriteLogs = 0
SynchLog = 0
RandLog = 0
MessageLog = 0

to these lines

HidePythonExceptions = 0
ShowPythonDebugMsgs = 1
LoggingEnabled = 1
OverwriteLogs = 1
SynchLog = 1
RandLog = 1
MessageLog = 1

I save and exit the .ini file. I then reenter the .ini file to see that the changes have been saved:

HidePythonExceptions = 0
ShowPythonDebugMsgs = 1
LoggingEnabled = 1
OverwriteLogs = 1
SynchLog = 1
RandLog = 1
MessageLog = 1

I exited the .ini file again. I launch CivIV. I then reenter the .ini file to find that the changes I made have been reversed.

HidePythonExceptions = 1
LoggingEnabled = 0
OverwriteLogs = 0
SynchLog = 0
RandLog = 0
MessageLog = 0

Edit: I'm running BetterAI (which never gave me a problem before) and BUG mod which might be responsible for this. I'll try it with BUG mod disabled later.

I've done a full uninstall and reinstall without reinstalling any mods and the problem still persists.
 
If you right click on the files which you want to edit, there should be the option "execute as", which lets you choose an admin account (...if you have the necessary password).
Else I think there has to be somewhere the option to turn of the writing protection on the whole folder, but since I don't have 7...:dunno:
 
I figured out a work around for the problem with the .ini file. I was only editing the BAK file called CivilizationIV.ini but there was also a Configurations Settings file that contained the same information as the first. When I make identical edits to both files, launching the game does not reset them.

I've no idea why this needs to be done.
 
I have:
1. PYTHON 2.6.2
2. BLENDER 2.49A
3. PYFFI‐PY2.6‐2.0.1‐WINDOWS
4. BLENDER 2.4.10 NIFSCRIPTS
5. NIFSKOPE
I open blender -->file-->import-->(.nif)-->Zara Yaqob or some other lh or units-->Zara Yaqob.nif-->Import Nif-->settings are set as in Ekmek’s Leaderhead Guide-->Ok-->Loading.. and show error:"Python script error: check console" and load model only with bones (some black lines). What to do?
 
Look this
GDKtZ
what is problem here?
http://imgur.com/GDKtZ
 
No :) Win Xp SP3 are on both computers, maybe I will must bring down the operating system and install it again. But that left for end. Have some advice for me?
 
couple questions on vassals
1)If in a scenario a civ is a vassal and the player plays that player, how does it play? Do all the same rules apply or is it different?
2)Would a vassal of a vassel make sence? A civ is a vassal of another civ which is a vassal of another
 
You can test this with playing hotseat mode.
 
No :) Win Xp SP3 are on both computers, maybe I will must bring down the operating system and install it again. But that left for end. Have some advice for me?

No idea what could be wrong :dunno:, but I'd first go with reinstalling Blender and all the stuff.

2)Would a vassal of a vassel make sence? A civ is a vassal of another civ which is a vassal of another

Doesn't really make sense. Either you have something to say, you have power, you are the boss, or not. Vassal of a vassal...no...rather not.
 
Well, I messaged zappara(creator of RoM mod) but he hasn't replied yet, let's see if someone here can help.

My friend and I love playing on big maps, and in Rise of Mankind 2, zappara added 2 new map types, expanding the size of the worlds. I was wondering how this was done and if anyone could maybe give me a tut on how to accomplish this within my own mod, thanks!
 
My friend and I love playing on big maps, and in Rise of Mankind 2, zappara added 2 new map types, expanding the size of the worlds. I was wondering how this was done and if anyone could maybe give me a tut on how to accomplish this within my own mod, thanks!

That's simply done via XML\GameInfo\WorldInfo.xml
But some map scripts might not work with the new sizes, because the override the default sizes (...which then doesn't work for them, because they don't know what to use instead).

This is the code for a gameoption python on/off switch:

Code:
gc.getGame().isOption(GameOptionTypes.GAMEOPTION_STACK_LIMIT))

What would it be for a Graphic Option in python?

I'd say probably GraphicOptionTypes.GRAPHICOPTION_SINGLE_UNIT_GRAPHICS (or whatever), but that's just a guess.
 
Try CyUserProfile().getGraphicOption(iOption) where iOption is one of the members of GraphicOptionTypes, which are exposed to Python via CyEnumsInterface.cpp:
Code:
	python::enum_<GraphicOptionTypes>("GraphicOptionTypes")
		.value("NO_GRAPHICOPTION", NO_GRAPHICOPTION)
		.value("GRAPHICOPTION_SINGLE_UNIT_GRAPHICS", GRAPHICOPTION_SINGLE_UNIT_GRAPHICS)
		.value("GRAPHICOPTION_HEALTH_BARS", GRAPHICOPTION_HEALTH_BARS)
		.value("GRAPHICOPTION_CITY_DETAIL", GRAPHICOPTION_CITY_DETAIL)
		.value("GRAPHICOPTION_NO_COMBAT_ZOOM", GRAPHICOPTION_NO_COMBAT_ZOOM)
		.value("GRAPHICOPTION_NO_ENEMY_GLOW", GRAPHICOPTION_NO_ENEMY_GLOW)
		.value("GRAPHICOPTION_FROZEN_ANIMATIONS", GRAPHICOPTION_FROZEN_ANIMATIONS)
		.value("GRAPHICOPTION_EFFECTS_DISABLED", GRAPHICOPTION_EFFECTS_DISABLED)
		.value("GRAPHICOPTION_GLOBE_VIEW_BUILDINGS_DISABLED", GRAPHICOPTION_GLOBE_VIEW_BUILDINGS_DISABLED)
		.value("GRAPHICOPTION_FULLSCREEN", GRAPHICOPTION_FULLSCREEN)
		.value("GRAPHICOPTION_LOWRES_TEXTURES", GRAPHICOPTION_LOWRES_TEXTURES)
		.value("GRAPHICOPTION_HIRES_TERRAIN", GRAPHICOPTION_HIRES_TERRAIN)
		.value("GRAPHICOPTION_NO_MOVIES", GRAPHICOPTION_NO_MOVIES)
		.value("GRAPHICOPTION_CITY_RADIUS", GRAPHICOPTION_CITY_RADIUS)
		.value("NUM_GRAPHICOPTION_TYPES", NUM_GRAPHICOPTION_TYPES)
(Used as The_J indicated: GraphicOptionTypes.GRAPHICOPTION_SINGLE_UNIT_GRAPHICS, for example.)

This sort of call is used in CvOptionsScreenCallbackInterface.py, if you want to see an example that came with the game.

There are separate function on CyUserProfile() for getting the graphics resolution and anti-aliasing settings. In general the screen resolution is gotten from CyGInterfaceScreen instead of this way (as seen in many places in the various screen Python files).
 
No idea what could be wrong :dunno:, but I'd first go with reinstalling Blender and all the stuff.

I solved the problem :D just uninstall all (blender, PyFFI, phython.. etc..) and use system restore (Start-->Accessories-->System Tools-->System restore). I am restore my computer to an earlier time, I went back in time 3 weeks back, about when i first time install blender.. etc. 1 day before the installation, for now it working :)
 
Back
Top Bottom