A lot of serious problems are cropping up with this mod (more details in description)

DoktorApplejuce

Champion of Kirkwall
Joined
Apr 9, 2015
Messages
582
Location
Canada
Users Gpuzzle, David Xanatos, and I are working together on a collaboration mod, with Gpuzzle as the main code-writer. However, as he is now currently out of town, I've taken up work on the project. Unfortunately, I now next to nothing about Lua, and a lot of issues are arising.

a copy of the mod is here: http://www.mediafire.com/download/as7bzh96byo4lg3/Gravity_Falls_(v_1).civ5mod

Problem 1 (this actually probably isn't lua, but I'm out of ideas); something in the code is preventing the civ's unique building from working properly. It simply is not showing up in-game. All that I can see in error logging is
Code:
[100606.593] Invalid Reference on Civilization_BuildingClassOverrides.BuildingType - "BUILDING_GPUZ_MYSTERY" does not exist in Buildings
and
Code:
[100603.531] In XMLSerializer while inserting row into table insert into Language_en_US('Tag', 'Text') with  values (TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_1, Mystery Shack's Collection of {1_EraAdjective} {2_CivAdjective} Mysteries, ).
[100603.531] In XMLSerializer while updating table Language_en_US from file XML/Buildings/GravityFallsBuilding.xml.

The civ selection screen, showing the lack of a unique building:
Spoiler :
Q0QwXhY.png


0-0-0-0-0

Problem 2:

This screen;
Spoiler :
2kanpbU.png

pops up upon starting a game as the civ. Clicking 'close' does nothing.

0-0-0-0-0

Problem 3:


If you look at the bottom left of the image above, you can see the settler icon. It's the wrong colour. Where that icon has the darker green shade, is supposed to be orange. When a city is settled, the city text and borders are the correct colour.



Thank you in advance to anyone who can offer any suggestions.
 
I'm assuming you are using the Dynamic Culture Overview lua from that mod, in which case this is the implimentation method from that mod:
Code:
  <Files>
    <File md5="4486E05E92C6A1829D1BD4FC8EAB80DE" import="1">CultureOverview.lua</File>
    <File md5="BF85D174CA9D4F2EC2AD7E3FBB6C0D6D" import="1">CultureOverview.xml</File>
  </Files>
You have these files as:
Code:
    <File md5="4486E05E92C6A1829D1BD4FC8EAB80DE" import="0">Lua/CultureOverview.lua</File>
    <File md5="BF85D174CA9D4F2EC2AD7E3FBB6C0D6D" import="1">XML/CultureOverview/CultureOverview.xml</File>

    <EntryPoint type="InGameUIAddin" file="Lua/CultureOverview.lua">
      <Name>CultureOverview</Name>
      <Description>CultureOverview</Description>
    </EntryPoint>
Definitely you do not want the InGameUIAddin because CultureOverview.lua is replacing an existing core game file. I think but am not positive that you need both files to be located within the same folder in the mod in order for the game to find everything properly.
From JFD's The Kingdom of the Franks modinfo file:
Code:
    <File md5="4486E05E92C6A1829D1BD4FC8EAB80DE" import="1">Lua/UI/InGame/Popups/CultureOverview.lua</File>
    <File md5="BF85D174CA9D4F2EC2AD7E3FBB6C0D6D" import="1">Lua/UI/InGame/Popups/CultureOverview.xml</File>
Note that both files are set as ImportIntoVFS=true and are within the same folder.

-----------------------------------------------------------------------

Cannot define the same Tag twice in <Language_en_US>. This will always cause complete file discard:
Code:
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_1">
			<Text>Mystery Shack's Collection of {1_EraAdjective} {2_CivAdjective} Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_1">
			<Text>Mystery Shack's Collection of {1_EraAdjective} {2_CivAdjective} Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_2">
			<Text>Mystery Shack's Collection of {1_EraAdjective} {2_CivAdjective} Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_2">
			<Text>Mystery Shack's Collection of {1_EraAdjective} {2_CivAdjective} Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_3">
			<Text>Mystery Shack's Collection of Worldwide Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_3">
			<Text>Mystery Shack's Collection of Worldwide Mysteries</Text>
		</Row>

-------------------------------------------------------------------------------

Don't know enough about the player colors to answer in any useful way.
 
I'm assuming you are using the Dynamic Culture Overview lua from that mod, in which case this is the implimentation method from that mod:
Code:
  <Files>
    <File md5="4486E05E92C6A1829D1BD4FC8EAB80DE" import="1">CultureOverview.lua</File>
    <File md5="BF85D174CA9D4F2EC2AD7E3FBB6C0D6D" import="1">CultureOverview.xml</File>
  </Files>
You have these files as:
Code:
    <File md5="4486E05E92C6A1829D1BD4FC8EAB80DE" import="0">Lua/CultureOverview.lua</File>
    <File md5="BF85D174CA9D4F2EC2AD7E3FBB6C0D6D" import="1">XML/CultureOverview/CultureOverview.xml</File>

    <EntryPoint type="InGameUIAddin" file="Lua/CultureOverview.lua">
      <Name>CultureOverview</Name>
      <Description>CultureOverview</Description>
    </EntryPoint>
Definitely you do not want the InGameUIAddin because CultureOverview.lua is replacing an existing core game file. I think but am not positive that you need both files to be located within the same folder in the mod in order for the game to find everything properly.
From JFD's The Kingdom of the Franks modinfo file:
Code:
    <File md5="4486E05E92C6A1829D1BD4FC8EAB80DE" import="1">Lua/UI/InGame/Popups/CultureOverview.lua</File>
    <File md5="BF85D174CA9D4F2EC2AD7E3FBB6C0D6D" import="1">Lua/UI/InGame/Popups/CultureOverview.xml</File>
Note that both files are set as ImportIntoVFS=true and are within the same folder.

-----------------------------------------------------------------------

Cannot define the same Tag twice in <Language_en_US>. This will always cause complete file discard:
Code:
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_1">
			<Text>Mystery Shack's Collection of {1_EraAdjective} {2_CivAdjective} Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_1">
			<Text>Mystery Shack's Collection of {1_EraAdjective} {2_CivAdjective} Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_2">
			<Text>Mystery Shack's Collection of {1_EraAdjective} {2_CivAdjective} Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_2">
			<Text>Mystery Shack's Collection of {1_EraAdjective} {2_CivAdjective} Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_3">
			<Text>Mystery Shack's Collection of Worldwide Mysteries</Text>
		</Row>
		<Row Tag="TXT_KEY_THEMING_BONUS_GPUZ_MYSTERY_3">
			<Text>Mystery Shack's Collection of Worldwide Mysteries</Text>
		</Row>

-------------------------------------------------------------------------------

Don't know enough about the player colors to answer in any useful way.

Alright, awesome. Thank you so much. Problems one and two are no longer problems!
 
Back
Top Bottom