Hello Modders
I've googled a couple of times some variations of "modify map size in civilization 5"
didn't find anything about doing that
I don't like playing with too few Civs, but I also don't want to have too many either, because then there's not enough place and they found cities close to mine,
and it's not easy (for me, at least), because by the time I can afford to buy a settler, some other civ has it's cities near me and my options go down (can't build a city too close, I don't want them to get angry too soon)
so, I figured I should make my own map size
added an entry in civ5Worlds.xml , basically copy-pasted the "Huge" setting and changed GridHight, GridWidth, <Type>, <Description> and <Help>
modified AssignStartingPlots:
well, I barley know a thing about modding, these changes didn't work, just caused Civ to crash, so I was hoping you could tell me where I went wrong
I could go debugging, but I was hoping to hear from the pros first if they think I missed something, because if I did, I probably won't figure it out only by debugging...
It could be that the game crashed because I didn't modify file to add the new luxury resource I wanted correctly
I followed the instructions here (of course, I did it differently, since I was trying to add a luxury resource and not a strategic. i'll see if I did it right or not by debugging after I get an answer about the map size... either way it seems much harder than adding a strategic resource)
I've googled a couple of times some variations of "modify map size in civilization 5"
didn't find anything about doing that
I don't like playing with too few Civs, but I also don't want to have too many either, because then there's not enough place and they found cities close to mine,
and it's not easy (for me, at least), because by the time I can afford to buy a settler, some other civ has it's cities near me and my options go down (can't build a city too close, I don't want them to get angry too soon)
so, I figured I should make my own map size
added an entry in civ5Worlds.xml , basically copy-pasted the "Huge" setting and changed GridHight, GridWidth, <Type>, <Description> and <Help>
modified AssignStartingPlots:
Code:
local worldsizes = {
[GameInfo.Worlds.WORLDSIZE_DUEL.ID] = 2,
[GameInfo.Worlds.WORLDSIZE_TINY.ID] = 3,
[GameInfo.Worlds.WORLDSIZE_SMALL.ID] = 4,
[GameInfo.Worlds.WORLDSIZE_STANDARD.ID] = 5,
[GameInfo.Worlds.WORLDSIZE_LARGE.ID] = 6,
[GameInfo.Worlds.WORLDSIZE_HUGE.ID] = 7,
[GameInfo.Worlds.WORLDSIZE_CUSTOM.ID] = 8
}
Code:
local worldsizes = {
[GameInfo.Worlds.WORLDSIZE_DUEL.ID] = 6,
[GameInfo.Worlds.WORLDSIZE_TINY.ID] = 4,
[GameInfo.Worlds.WORLDSIZE_SMALL.ID] = 2,
[GameInfo.Worlds.WORLDSIZE_STANDARD.ID] = 1,
[GameInfo.Worlds.WORLDSIZE_LARGE.ID] = 0,
[GameInfo.Worlds.WORLDSIZE_HUGE.ID] = 0,
[GameInfo.Worlds.WORLDSIZE_CUSTOM.ID] = 0
}
Code:
local huge_values = {0, 4, 5, 5, 6, 6, 6, 6, 7, 7, 7, 8, 7, 6, 6, 5, 5, 4, 4, 3, 3, 2};
local custom_values = {0, 5, 6, 6, 7, 7, 7, 7, 8, 8, 8, 9, 8, 7, 7, 6, 6, 5, 5, 4, 4, 3};
--
local worldsizes = {
[GameInfo.Worlds.WORLDSIZE_DUEL.ID] = duel_values,
[GameInfo.Worlds.WORLDSIZE_TINY.ID] = tiny_values,
[GameInfo.Worlds.WORLDSIZE_SMALL.ID] = small_values,
[GameInfo.Worlds.WORLDSIZE_STANDARD.ID] = standard_values,
[GameInfo.Worlds.WORLDSIZE_LARGE.ID] = large_values,
[GameInfo.Worlds.WORLDSIZE_HUGE.ID] = huge_values,
[GameInfo.Worlds.WORLDSIZE_CUSTOM.ID] = custom_values
}
Code:
if self.resource_setting == 1 then -- Sparse
worldsizes = {
[GameInfo.Worlds.WORLDSIZE_DUEL.ID] = {14, 3},
[GameInfo.Worlds.WORLDSIZE_TINY.ID] = {24, 4},
[GameInfo.Worlds.WORLDSIZE_SMALL.ID] = {36, 4},
[GameInfo.Worlds.WORLDSIZE_STANDARD.ID] = {48, 5},
[GameInfo.Worlds.WORLDSIZE_LARGE.ID] = {60, 5},
[GameInfo.Worlds.WORLDSIZE_HUGE.ID] = {76, 6},
[GameInfo.Worlds.WORLDSIZE_CUSTOM.ID] = {120, 7}
}
elseif self.resource_setting == 3 then -- Abundant
worldsizes = {
[GameInfo.Worlds.WORLDSIZE_DUEL.ID] = {24, 3},
[GameInfo.Worlds.WORLDSIZE_TINY.ID] = {40, 4},
[GameInfo.Worlds.WORLDSIZE_SMALL.ID] = {60, 4},
[GameInfo.Worlds.WORLDSIZE_STANDARD.ID] = {80, 5},
[GameInfo.Worlds.WORLDSIZE_LARGE.ID] = {100, 5},
[GameInfo.Worlds.WORLDSIZE_HUGE.ID] = {128, 6},
[GameInfo.Worlds.WORLDSIZE_CUSTOM.ID] = {200, 7}
}
else -- Standard
worldsizes = {
[GameInfo.Worlds.WORLDSIZE_DUEL.ID] = {18, 3},
[GameInfo.Worlds.WORLDSIZE_TINY.ID] = {30, 4},
[GameInfo.Worlds.WORLDSIZE_SMALL.ID] = {45, 4},
[GameInfo.Worlds.WORLDSIZE_STANDARD.ID] = {60, 5},
[GameInfo.Worlds.WORLDSIZE_LARGE.ID] = {75, 5},
[GameInfo.Worlds.WORLDSIZE_HUGE.ID] = {95, 6},
[GameInfo.Worlds.WORLDSIZE_CUSTOM.ID] = {140, 7}
}
end
well, I barley know a thing about modding, these changes didn't work, just caused Civ to crash, so I was hoping you could tell me where I went wrong
I could go debugging, but I was hoping to hear from the pros first if they think I missed something, because if I did, I probably won't figure it out only by debugging...
It could be that the game crashed because I didn't modify file to add the new luxury resource I wanted correctly
I followed the instructions here (of course, I did it differently, since I was trying to add a luxury resource and not a strategic. i'll see if I did it right or not by debugging after I get an answer about the map size... either way it seems much harder than adding a strategic resource)