Not sure where that error came from...

AW Arcaeca

Deus Vult
Joined
Mar 10, 2013
Messages
3,019
Location
Operation Padlock ground zero
Well, my in-development Inuit civilization had some weird issues, finally I was able to figure out why and fixed them. But now I'm getting a whole new breed of strange issues... :sad:

Basically, when the game starts the map is completely fog of war, the minimap shows a kind of fractured-white-on-blue pattern, then the game says I'm defeated and ends.

The only clue is this entry in the lua.log:
Code:
[37572.825] Runtime Error: Assets\Gameplay\Lua\MapmakerUtilities.lua:490: attempt to index field '?' (a nil value)
stack traceback:
	Assets\Gameplay\Lua\MapmakerUtilities.lua:490: in function 'GetStartRegionPriorityListForCiv_GetIDs'
	Assets\DLC\Expansion\Gameplay\Lua\AssignStartingPlots.lua:4659: in function 'BalanceAndAssign'
	Assets\Maps\Archipelago.lua:128: in function 'StartPlotSystem'
	Assets\DLC\Expansion\Gameplay\Lua\MapGenerator.lua:815: in function <Assets\DLC\Expansion\Gameplay\Lua\MapGenerator.lua:779>
	=[C]: ?
:confused: I assume that's talking about this part of the civilization file?
Code:
...<Civilization_Start_Region_Priority>
		<Row>
			<CivilizationType>CIVILIZATION_INUIT</CivilizationType>
			<RegionType>REGION_SNOW</RegionType>
		</Row>-<Row>
			<CivilizationType>CIVILIZATION_INUIT</CivilizationType>
			<RegionType>REGION_TUNDRA</RegionType>
		</Row>
	</Civilization_Start_Region_Priority>-<Civilization_Start_Region_Avoid>
		<Row>
			<CivilizationType>CIVILIZATION_INUIT</CivilizationType>
			<RegionType>REGION_JUNGLE</RegionType>
		</Row>
	</Civilization_Start_Region_Avoid>...

Secondly, although all my art in imported to VFS, all the icons have update database entries and the icon atlas xml is set to UpdateDatabase, I still end up with this:
Spoiler :
FkxvHOt.png

The map doesn't show up either - I assume that's because I'm missing an alpha layer, but I haven't checked.

So, any ideas why this is happening? By no means is the mod done; there's still plenty to be written, lots to test (which is, incidentally, why I built the mod in the first place) and lua to check, but I just want to see if what the base mechanics are working fine. Apparently not...

the download link (since it's WAY too big to attach):http://dl.dropboxusercontent.com/s/...AELoUek9oSD8DukqS0AlVHP_yNQCpxrc_YUbDrOHHpjXQ

And one more note: THIS IS A MOD FOR G&K, NOT BNW.
Just so you don't end up with any errors that aren't applicable if you happen to test the mod

Thanks in advance! :)
 
I'm fairly sure Civilization_Start_Region_Avoid is only assessed if there is no Civilization_Start_Region_Priority, so filling it in is redundant. As for the error, I don't think that "SNOW" is a valid region. Try removing it and just leaving "TUNDRA" and see if that works. In any case, your Database.log should tell you that the region failed to validate or some such-As for the icons, the culprit is probably that you've accidentally set the IconAtlas file to "UpdateUserData," rather than "UpdateDatabase"-Also, your formatting drives me insane :crazyeye:
 
As for the icons, the culprit is probably that you've accidentally set the IconAtlas file to "UpdateUserData," rather than "UpdateDatabase"
:cringe: D'oh. I didn't see that.

I'm fairly sure Civilization_Start_Region_Avoid is only assessed if there is no Civilization_Start_Region_Priority, so filling it in is redundant. As for the error, I don't think that "SNOW" is a valid region. Try removing it and just leaving "TUNDRA" and see if that works.
If it isn't called REGION_SNOW, what would it be called? Does it not exist? I'm trying to place them as far into the cold regions as physically possible.
..That aside, I removed REGION_SNOW, updated and played my mod again. I guess I'll never know how it worked, since it stuck me in some temperate zone :crazyeye:...

-Also, your formatting drives me insane :crazyeye:
:lol: And why is that?
What drives me nuts most about your formatting is that, judging from the files in your german mod, it seems that you don't code anything in XML, just SQL...

Anyways, thanks for the reply.
 
If it isn't called REGION_SNOW, what would it be called? Does it not exist? I'm trying to place them as far into the cold regions as physically possible.
..That aside, I removed REGION_SNOW, updated and played my mod again. I guess I'll never know how it worked, since it stuck me in some temperate zone :crazyeye:...

It doesn't exist. The list of regions is as follows:

Code:
<Type>REGION_UNDEFINED</Type>
<Type>REGION_TUNDRA</Type>
<Type>REGION_JUNGLE</Type>
<Type>REGION_FOREST</Type>
<Type>REGION_DESERT</Type>
<Type>REGION_HILLS</Type>
<Type>REGION_PLAINS</Type>
<Type>REGION_GRASS</Type>
<Type>REGION_HYBRID</Type>

Once again, Firaxis shows that it's support for modding is strictly superficial.
 
Back
Top Bottom