I'm currently in the process of making a Tech that will allow the player to discover Uranium resources earlier than Atomic Theory as a Civilization Trait. As I have it now, the Tech does work, in that I can at least see the resource, but I can't modify it or use it for the purposes of making units (also part of that Civ's starting trait).
I modified a code string from the Beothuk Civilization to get this:
Without too much experience with the Lua I can't make something from scratch, and browsing through the files for the base game didn't exactly lead me to how to solve the problem due to the vagueness of certain terms. Any thoughts?
I modified a code string from the Beothuk Civilization to get this:
Code:
--==========================================================================================================================
-- This File changes the game so that Uranium Resources are made visible when you have this tech instead of Atomic Theory.
-- It should be packaged with the accompanying Farnsworth_TechFix.lua
-- What it does: Adds a technology called "Mad Science" that reveals Uranium Resources. With the accompanying lua, this tech will instantly be given to any Team that discovers Atomic Theory.
-- Why? So that you can add other ways for players to see Uranium Resources without having Atomic Theory at the same time.
--==========================================================================================================================
INSERT INTO Technologies
(Type, Cost, Disable, Description, Civilopedia, Help, Era, GridX, GridY, PortraitIndex, IconAtlas)
VALUES ('TECH_MAD_SCIENCE', 0, 1, 'TXT_KEY_TECH_MAD_SCIENCE_TITLE', 'TXT_KEY_TECH_MAD_SCIENCE_DESC', 'TXT_KEY_TECH_MAD_SCIENCE_HELP', 'ERA_ANCIENT', 0, -12, 0, 'FARNSWORTH_TECH_ATLAS');
UPDATE Resources
SET TechReveal = 'TECH_MAD_SCIENCE'
WHERE Type = 'RESOURCE_URANIUM';
SET TechCityTrade = 'TECH_MAD_SCIENCE'
WHERE Type = 'RESOURCE_URANIUM';
--==========================================================================================================================
INSERT INTO Language_en_US
(Tag, Text)
VALUES ('TXT_KEY_TECH_MAD_SCIENCE_TITLE', 'Mad Science'),
('TXT_KEY_TECH_MAD_SCIENCE_DESC', 'Reveals [ICON_RES_URANIUM] Uranium Resources.'),
('TXT_KEY_TECH_MAD_SCIENCE_HELP', 'Reveals [ICON_RES_URANIUM] Uranium Resources.');