Basic request - why doesn't my mod do anything?

shandelman

Chieftain
Joined
Nov 2, 2014
Messages
13
So I've taken this mod:
http://steamcommunity.com/sharedfiles/filedetails/?id=332790740

Stripped out everything but the ships and buildings, and modified the ships a bit; I then pasted all of it into a modbuddy project and had modbuddy build it (which it claims to do successfully).

The original mod works fine, you see 4 or 5 extra of each selection type.

However, when I load my mod, nothing happens (that is, it loads, but the additional ship types are not available for selection.) Nothing doing on a little googling, but is there likely to be a step I'm missing?

Do I need an entry point or something (I see something called an "entry point" but it points to a lua file which, when I open it in mod buddy, doesn't seem to have any relevant instruction for ships.) http://forums.civfanatics.com/showthread.php?t=385220 ??

Is there a file in the Logs directory that might tell me what is going on?

Some more advanced questions (if I can get my mod working at all):
- From the mod I downloaded, it is clear how to append things to an existing list of features. How do I instead *replace* them? Is there a way to replace an entire table; and is that what I have to do or can I somehow replace just individual "row" entries?

- Somewhere - maybe in the lua files and not the xml files (I searched all the xml with notepad++ for SPACECRAFT_SURVEYOR and only came up with help text)? There must be an instruction that SPACECRAFT_SURVEYOR gets to map all the coasts. Where is it, and how do I make it so that happens regardless of spacecraft choice?

Oh, also - I may have forgotten to add "actions" for these before; but anyway that doesn't fix it, still no new ships.
 
Is this info still valid?
https://www.youtube.com/watch?v=mcA5mgfftLI

This is the actual code I produced, in case anyone can tell me what the issue is. I might try <Update> and <Set> at some future time but I have to think it should be easier to clone this working mod than to create another one from scratch.

UPDATE - I should add, the code below seems to at-least partially work - the actual problem seems to come from those commented out lines where I am trying to add a row that shares an existing title. Not surprising that this causes problems but shouldn't there be a log file somewhere that tells me what went wrong?

Anyway the coe is below:
Spoiler :

Code:
<?xml version="1.0" encoding="utf-8"?>
<!-- Created by ModBuddy on 11/2/2014 1:34:56 AM -->
<GameData>
		<Spacecraft>

			<!-- Row PlanetfallRangeChange="1" PlanetfallSightChange="3" RevealBarbarians="true" PortraitIndex="5" ShortDescription="Surveytainment Database" DESCRIPTION="Provides 15 [ICON_CULTURE] Culture" Type="SPACECRAFT_SURVEYOR"/-->

			<Row PlanetfallRangeChange="1" PlanetfallSightChange="3" RevealBarbarians="true" PortraitIndex="5" ShortDescription="Entertainment Database" DESCRIPTION="Provides 15 [ICON_CULTURE] Culture" Type="SPACECRAFT_SHRINE"/>

			<Row PlanetfallRangeChange="1" PlanetfallSightChange="3" RevealBarbarians="true" PortraitIndex="16" ShortDescription="Sonic Repulsor" DESCRIPTION="Aliens will stay out of your capitol" Type="SPACECRAFT_REPELLENT" GrantBuildingClass="BUILDINGCLASS_REPELLENT"/>

			<Row PlanetfallRangeChange="1" PlanetfallSightChange="3" RevealBarbarians="true" PortraitIndex="4" ShortDescription="Expanded Fuel Tank" DESCRIPTION="Increases the orbital range of the capital by 2" Type="SPACECRAFT_FUEL_TANK" GrantBuildingClass="BUILDINGCLASS_ORBITALSYNCHRONIZER"/>

			<Row PlanetfallRangeChange="1" PlanetfallSightChange="3" RevealBarbarians="true" PortraitIndex="19" ShortDescription="Security System" DESCRIPTION="Increases the combat damage of your capitol by 15%" Type="SPACECRAFT_CANNONS" GrantBuildingClass="BUILDINGCLASS_DEFENSE_MODULE"/>

		</Spacecraft>


		<Spacecraft_GrantedYield>

			<Row Yield="15" YieldType="YIELD_CULTURE" SpacecraftType="SPACECRAFT_SURVEYOR"/>

			<Row Yield="15" YieldType="YIELD_CULTURE" SpacecraftType="SPACECRAFT_SHRINE"/>

		</Spacecraft_GrantedYield>


		<Spacecraft_VisibleResources>

			<Row SpacecraftType="SPACECRAFT_SURVEYOR" ResourceType="RESOURCE_PETROLEUM"/>

			<Row SpacecraftType="SPACECRAFT_SURVEYOR" ResourceType="RESOURCE_GEOTHERMAL_ENERGY"/>

			<Row SpacecraftType="SPACECRAFT_SURVEYOR" ResourceType="RESOURCE_TITANIUM"/>

			<Row SpacecraftType="SPACECRAFT_SHRINE" ResourceType="RESOURCE_PETROLEUM"/>

			<Row SpacecraftType="SPACECRAFT_SHRINE" ResourceType="RESOURCE_GEOTHERMAL_ENERGY"/>

			<Row SpacecraftType="SPACECRAFT_SHRINE" ResourceType="RESOURCE_TITANIUM"/>

			<Row SpacecraftType="SPACECRAFT_REPELLENT" ResourceType="RESOURCE_PETROLEUM"/>

			<Row SpacecraftType="SPACECRAFT_REPELLENT" ResourceType="RESOURCE_GEOTHERMAL_ENERGY"/>

			<Row SpacecraftType="SPACECRAFT_REPELLENT" ResourceType="RESOURCE_TITANIUM"/>

			<Row SpacecraftType="SPACECRAFT_FUEL_TANK" ResourceType="RESOURCE_PETROLEUM"/>

			<Row SpacecraftType="SPACECRAFT_FUEL_TANK" ResourceType="RESOURCE_GEOTHERMAL_ENERGY"/>

			<Row SpacecraftType="SPACECRAFT_FUEL_TANK" ResourceType="RESOURCE_TITANIUM"/>

			<Row SpacecraftType="SPACECRAFT_CANNONS" ResourceType="RESOURCE_PETROLEUM"/>

			<Row SpacecraftType="SPACECRAFT_CANNONS" ResourceType="RESOURCE_GEOTHERMAL_ENERGY"/>

			<Row SpacecraftType="SPACECRAFT_CANNONS" ResourceType="RESOURCE_TITANIUM"/>

		</Spacecraft_VisibleResources>
</GameData>

And this is the modinfo file that modbuddy produces:
Code:
<?xml version="1.0" encoding="utf-8"?>
<Mod id="376239b8-5bfb-45e6-bff8-683e8440c543" version="1">
  <Properties>
    <Name>Unity Survey</Name>
    <Stability>Alpha</Stability>
    <Teaser>REPLACES the spacecraft with the following: 

Spacecraft:
Reactor: 100 Energy 
Entertainment Database: Provides 15 Culture</Teaser>
    <Description>REPLACES the spacecraft with the following: 

Spacecraft:
Reactor: 100 Energy 
Entertainment Database: Provides 15 Culture to start with. 
Sonic Repulsor: Aliens cannot come within 1 tile of your capital 
Expanded Fuel Tank: Increases Orbital range of capital by 2 
Security System: Increases the Combat Strength of the capital by 15% 

99% of the work was done by this guy: http://steamcommunity.com/sharedfiles/filedetails/?id=332790740</Description>
    <Authors>shandelman</Authors>
    <SpecialThanks>kleinzach</SpecialThanks>
    <HideSetupGame>0</HideSetupGame>
    <AffectsSavedGames>1</AffectsSavedGames>
    <MinCompatibleSaveVersion>0</MinCompatibleSaveVersion>
    <SupportsSinglePlayer>1</SupportsSinglePlayer>
    <SupportsMultiplayer>1</SupportsMultiplayer>
    <SupportsHotSeat>1</SupportsHotSeat>
    <SupportsMac>1</SupportsMac>
    <ReloadLandmarkSystem>0</ReloadLandmarkSystem>
    <ReloadStrategicViewSystem>0</ReloadStrategicViewSystem>
    <ReloadUnitSystem>0</ReloadUnitSystem>
  </Properties>
  <Dependencies />
  <References />
  <Blocks />
  <Files>
    <File md5="5B7ED461BBE9963147EF2287F6D06A49" import="0">Buildings.xml</File>
    <File md5="8613847DFF0C4AE31DF2349B8F49B830" import="0">Atlas.xml</File>
    <File md5="314DC9D39154E170DAD2F17CC5963D6D" import="0">Ships.xml</File>
  </Files>
  <Actions>
    <OnModActivated>
      <UpdateDatabase>Atlas.xml</UpdateDatabase>
      <UpdateDatabase>Buildings.xml</UpdateDatabase>
      <UpdateDatabase>Ships.xml</UpdateDatabase>
    </OnModActivated>
  </Actions>
</Mod>

 
I can't find the error after glancing at your XML, but database.log can be found in
Code:
C:\Users\%username%\Documents\My Games\Sid Meier's Civilization Beyond Earth\logs

And, yes, if it already exists, you'll need to use <Replace> instead of row (but only if Firaxis properly set the unique attribute for that table; they often didn't). Changing to <Update> syntax will always work.

Note: I also wouldn't recommend using <Delete> followed by <Row>, as Firaxis often assumed that the row ID's would remain continuous.
 
Back
Top Bottom