Estebanium
Prince
Hi guys,
I wanted to play a game with Vox Populi (7-1) and YnAEMP v24, but the game crashed.
I was able to solve this issue, please not that this issue is as old as Vox Populi and I was not yet corrected by JFD.
Here are my results of my investigation:
1. Setup
2. Setup
3. Setup
Edit 2018/12:
I altered my initial post and fixed the wrong code, that changed due to the forum transfer some time ago.
Moreover thanks to to wkey, I would like to add his code to the initial post. It prevents resources to spawn on atolls:
The final code would look like this, with the code above added:
I wanted to play a game with Vox Populi (7-1) and YnAEMP v24, but the game crashed.
I was able to solve this issue, please not that this issue is as old as Vox Populi and I was not yet corrected by JFD.
Here are my results of my investigation:
1. Setup
- Mods used:
- (1) Community Patch
- (2) Community Balance Overhaul
- (3) CSD for CBP
- (4) Civ IV Diplomatic Features
- (6a) Community Balance Overhaul - Compatibility Files (EUI)
- Yet (not) Another Earth Maps Pack (v 24) -> Just downloaded from GoogleDrive
- Map setup:
- Result: CRASH
2. Setup
- Mods used:
- (1) Community Patch
- (2) Community Balance Overhaul
- (3) CSD for CBP
- (4) Civ IV Diplomatic Features
- (6a) Community Balance Overhaul - Compatibility Files (EUI)
- Yet (not) Another Earth Maps Pack (v 24) -> YnaemLoading.lua altered as it is written here:
- YnaemLoading.lua before the fix:
Code:-- check if there's not a ressource of another type on the surrounding tiles for direction = 0, DirectionTypes.NUM_DIRECTION_TYPES - 1, 1 do local otherPlot = Map.PlotDirection(plotX, plotY, direction)
- YnaemLoading.lua before the fix:
Code:-- check if there's not a ressource of another type on the surrounding tiles for direction = 0, DirectionTypes.NUM_DIRECTION_TYPES - 1, 1 do local otherPlot = Map.PlotDirection(plotY, plotX, direction)
- Map setup:
Still the same - Result: Is working
3. Setup
- Mods used:
- (1) Community Patch
- (2) Community Balance Overhaul
- (3) CSD for CBP
- (4) Civ IV Diplomatic Features
- (6a) Community Balance Overhaul - Compatibility Files (EUI)
- Yet (not) Another Earth Maps Pack (v 24) -> YnaemLoading.lua altered as it is written here: Post
- Map setup:
- Result: Is working
Edit 2018/12:
I altered my initial post and fixed the wrong code, that changed due to the forum transfer some time ago.
Moreover thanks to to wkey, I would like to add his code to the initial post. It prevents resources to spawn on atolls:
Code:
if plot:IsFeatureAtoll() then
-- no resources in atoll
print ("do not place resources in atoll...")
return false
end
Code:
if plot:IsAdjacentToLand() then
-- no whales or oil near the coast
if resource.Type == "RESOURCE_WHALE" or resource.Type == "RESOURCE_OIL" then
return false
end
end
if plot:IsFeatureAtoll() then
-- no resources in atoll
print ("do not place resources in atoll...")
return false
end
Last edited: