Asterix Rage
Warlord
- Joined
- Jun 6, 2010
- Messages
- 1,585
is there a way to remove experience penalty from purchased units ?
Yes there is :
Code:
UPDATE CustomModOptions
SET Value = '0'
WHERE Name = 'BALANCE_CORE_HALF_XP_PURCHASE';
is there a way to remove experience penalty from purchased units ?
UPDATE CustomModOptions
SET Value = '0'
WHERE Name = 'BALANCE_CORE_HALF_XP_PURCHASE';
Try this code.and also for scout and pathfinder barbarian penalties i've tried these codes but it doesnt work any solution to it aswell ?
DELETE FROM Unit_FreePromotions WHERE UnitType = 'UNIT_SHOSHONE_PATHFINDER' AND PromotionType = 'PROMOTION_BARBARIAN_PENALTY_I';
DELETE FROM Unit_FreePromotions WHERE UnitType = 'UNIT_SCOUT' AND PromotionType = 'PROMOTION_BARBARIAN_PENALTY_II';
Try this code.
Code:DELETE FROM Unit_FreePromotions WHERE UnitType = 'UNIT_SHOSHONE_PATHFINDER' AND PromotionType = 'PROMOTION_BARBARIAN_PENALTY_I'; DELETE FROM Unit_FreePromotions WHERE UnitType = 'UNIT_SCOUT' AND PromotionType = 'PROMOTION_BARBARIAN_PENALTY_II';
1) My code.sql is getting rather large. I'm tempted to split it into 2 or 3 files. Looking at the modinfo file, I can see what to do except for the md5 number. Can I just use any unique number or it there some magic here?
<File md5=""
<Files>
<File md5="00000000000000000000000000000000" import="1">dds/promoVP_00_016.dds</File>
<File md5="00000000000000000000000000000000" import="1">dds/promoVP_00_032.dds</File>
<File md5="00000000000000000000000000000000" import="1">dds/promoVP_00_045.dds</File>
<File md5="00000000000000000000000000000000" import="1">dds/promoVP_00_064.dds</File>
<File md5="00000000000000000000000000000000" import="1">dds/promoVP_00_256.dds</File>
2) Can I add some sort of define in the sql that I can test later in the file and if so how? The idea is to have a few of these at the top of the file to make it easier to turn certain changes on and off e.g. DO_PANTHEON_CHANGES.
-- PROMOTION_PRISONER_WAR PromotionDuration = '9'
UPDATE UnitPromotions
SET PromotionDuration = '9'
WHERE Type = 'PROMOTION_PRISONER_WAR';
UPDATE Language_en_US
SET Text = '-50% Work for 9 turns.'
WHERE Tag = 'TXT_KEY_PROMOTION_PRISONER_WAR_HELP';
/*
-- Distance minimum between Cities
-- Duel
UPDATE Worlds
SET MinDistanceCities = '3'
WHERE Type = 'WORLDSIZE_DUEL';
-- Tiny
UPDATE Worlds
SET MinDistanceCities = '3'
WHERE Type = 'WORLDSIZE_TINY';
-- Small
UPDATE Worlds
SET MinDistanceCities = '3'
WHERE Type = 'WORLDSIZE_SMALL';
-- Standard
UPDATE Worlds
SET MinDistanceCities = '3'
WHERE Type = 'WORLDSIZE_STANDARD';
-- Large
UPDATE Worlds
SET MinDistanceCities = '3'
WHERE Type = 'WORLDSIZE_LARGE';
-- Huge
UPDATE Worlds
SET MinDistanceCities = '3'
WHERE Type = 'WORLDSIZE_HUGE';
*/
Thank you, psparky.I've been making good use of this mod, mostly to configure the game to my personal tastes, but also for it's original purpose of saving game options. Thanks for making it
I have a few questions (for anybody who knows):
-- City ambience sound -50% volume down (was 60, 60)
INSERT INTO Audio_2DSounds (ScriptID, SoundID, SoundType, Looping, DontTriggerDuplicates, DontPlayMoreThan, MaxVolume, MinVolume)
SELECT 'AS2D_AMBIENCE_CITY_ERA_ANCIENT_LARGE', 'SND_AMBIENCE_CITY_ANC_LARGE', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_ANCIENT_SMALL', 'SND_AMBIENCE_CITY_ANC_SMALL', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_CLASSICAL_LARGE', 'SND_AMBIENCE_CITY_ANC_LARGE', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_CLASSICAL_SMALL', 'SND_AMBIENCE_CITY_ANC_SMALL', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_MEDIEVAL_LARGE', 'SND_AMBIENCE_CITY_MED_LARGE', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_MEDIEVAL_SMALL', 'SND_AMBIENCE_CITY_MED_SMALL', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_RENAISSANCE_LARGE', 'SND_AMBIENCE_CITY_MED_LARGE', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_RENAISSANCE_SMALL', 'SND_AMBIENCE_CITY_MED_SMALL', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_INDUSTRIAL_LARGE', 'SND_AMBIENCE_CITY_IND_LARGE', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_INDUSTRIAL_SMALL', 'SND_AMBIENCE_CITY_IND_SMALL', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_MODERN_LARGE', 'SND_AMBIENCE_CITY_MODERN_LARGE', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_MODERN_SMALL', 'SND_AMBIENCE_CITY_MODERN_SMALL', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_FUTURE_LARGE', 'SND_AMBIENCE_CITY_MODERN_LARGE', 'GAME_AMBIENCE', 1, 1, 1, 30, 30 UNION ALL
SELECT 'AS2D_AMBIENCE_CITY_ERA_FUTURE_SMALL', 'SND_AMBIENCE_CITY_MODERN_SMALL', 'GAME_AMBIENCE', 1, 1, 1, 30, 30;
<Where Name="GLOBAL_SUBS_UNDER_ICE_IMMUNITY"/>
<Set Value="1"/>
<GameData>
<CustomModOptions>
<Update>
<Where Name="DIPLOMACY_AUTO_DENOUNCE"/>
<Set Value="1"/>
</Update>
</CustomModOptions>
</GameData>
<GameData>
<CustomModOptions>
<Update>
<Where Name="DIPLOMACY_AUTO_DENOUNCE"/>
<Set Value="1"/>
<Where Name="GLOBAL_SUBS_UNDER_ICE_IMMUNITY"/>
<Set Value="1"/>
</Update>
</CustomModOptions>
</GameData>
<GameData>
<CustomModOptions>
<Update>
<Where Name="DIPLOMACY_AUTO_DENOUNCE"/>
<Set Value="1"/>
</Update>
<Update>
<Where Name="GLOBAL_SUBS_UNDER_ICE_IMMUNITY"/>
<Set Value="1"/>
</Update>
</CustomModOptions>
</GameData>
-- Subs Immune Under Ice
UPDATE CustomModOptions SET Value = 1 WHERE Name = 'GLOBAL_SUBS_UNDER_ICE_IMMUNITY';
-- Automatic Denunciation At Declaration Of War
UPDATE CustomModOptions SET Value = 1 WHERE Name = 'DIPLOMACY_AUTO_DENOUNCE';
-- No Civilization Gifting
UPDATE CustomModOptions SET Value = 0 WHERE Name = 'NO_MAJORCIV_GIFTING';
All is fine for a while with <ReloadAudioSystem>1</ReloadAudioSystem> in my .modinfo1 or keep it off (0)?
It seems to me that you don't have to change ReloadAudioSystem unless you add audio files.I'm using audio edits and my question is do I need to change <ReloadAudioSystem>0</ReloadAudioSystem> in the .modinfo file to 1 or keep it off (0)?
If I need to keep it off, what does this option do?
I haven't tested it, but #2 and #3 should work.Next, I want to add
to the xml below:Code:<Where Name="GLOBAL_SUBS_UNDER_ICE_IMMUNITY"/> <Set Value="1"/>
Cool thank you!It seems to me that you don't have to change ReloadAudioSystem unless you add audio files.
https://forums.civfanatics.com/threads/common-novice-modder-mistakes.541578/#No Check-Boxes
I haven't tested it, but #2 and #3 should work.
<GameData>
<Civilizations>
<Update>
<Where Type='CIVILIZATION_AUSTRIA'/>
<Set AIPlayable="false"/>
</Update>
<Update>
<Where Type='CIVILIZATION_VENICE'/>
<Set AIPlayable="false"/>
</Update>
</Civilizations>
</GameData>
Does anyone of you could come up with a way to set the promo payout rate regardless of the pace? It would be great![]()
UPDATE Defines SET Value = '9' WHERE Name = 'EXPERIENCE_PER_LEVEL';
I'll try soon. ThxEXPERIENCE_PER_LEVEL or something?
<GameData>
<Unit_FreePromotions>
<Row>
<UnitType>UNIT_SCOUT</UnitType>
<PromotionType>PROMOTION_RIVAL_TERRITORY</PromotionType>
</Row>
<Row>
<UnitType>UNIT_SHOSHONE_PATHFINDER</UnitType>
<PromotionType>PROMOTION_RIVAL_TERRITORY</PromotionType>
</Row>
</Unit_FreePromotions>
<UnitClasses>
<Delete Type="UNITCLASS_MECH"/>
<Delete Type="UNITCLASS_XCOM_SQUAD"/>
</UnitClasses>
<DeleteMissingReferences table="UnitClasses" column="Type"/>
<DeleteMissingReferences table="Units" column="Type"/>
<Units>
<Update>
<Where Type="UNIT_SUBMARINE"/>
<Set RivalTerritory="1"/>
</Update>
<Update>
<Where Type="UNIT_NUCLEAR_SUBMARINE"/>
<Set RivalTerritory="1"/>
</Update>
</Units>
<Resolutions>
<Delete Type="RESOLUTION_BAN_LUXURY_HAPPINESS"/>
</Resolutions>
</GameData>
How about this?What is the best way to convert this to SQL without errors?
UPDATE Units SET RivalTerritory = '1' WHERE Type = 'UNIT_SCOUT';
UPDATE Units SET RivalTerritory = '1' WHERE Type = 'UNIT_SHOSHONE_PATHFINDER';
UPDATE Units SET RivalTerritory = '1' WHERE Type = 'UNIT_SUBMARINE';
UPDATE Units SET RivalTerritory = '1' WHERE Type = 'UNIT_NUCLEAR_SUBMARINE';
DELETE FROM UnitClasses WHERE Type = 'UNITCLASS_MECH';
DELETE FROM UnitClasses WHERE Type = 'UNITCLASS_XCOM_SQUAD';
DELETE FROM Resolutions WHERE Type = 'RESOLUTION_BAN_LUXURY_HAPPINESS';
How about this?
<Unit_FreePromotions> and <Units><Update>
DELETE FROM Units WHERE Class =
Both of them have the same effect.Looks great, just couple questions, what is the difference in the XML code of both?Code:<Unit_FreePromotions> and <Units><Update>
INSERT INTO Unit_FreePromotions (UnitType, PromotionType) SELECT 'UNIT_SCOUT' , 'PROMOTION_RIVAL_TERRITORY';
INSERT INTO Unit_FreePromotions (UnitType, PromotionType) SELECT 'UNIT_SHOSHONE_PATHFINDER' , 'PROMOTION_RIVAL_TERRITORY';
INSERT INTO Unit_FreePromotions (UnitType, PromotionType) SELECT 'UNIT_SUBMARINE' , 'PROMOTION_RIVAL_TERRITORY';
INSERT INTO Unit_FreePromotions (UnitType, PromotionType) SELECT 'UNIT_NUCLEAR_SUBMARINE' , 'PROMOTION_RIVAL_TERRITORY';
Yeah, you don't have to add DELETE FROM Units.Is it redundant to add this to a deletion in addition to the UnitClasses?Code:DELETE FROM Units WHERE Class =