Would it be possible to create a mod that enable multiplayer scenarii?

esuna114

Chieftain
Joined
Jan 11, 2010
Messages
24
Hello folks,

It's me again, sorry for my silly questions. Everything is in the title.
Would it be possible to create a mod that enable multiplayer scenarii?

I don't know anything about developping a mod but as a dev I'm not afraid of that. Anyway I'll try to look into that, I have great ideas for playing nice multiplayer scenarii with a friend and that would be a shame not to do it.

Thanks!
 
Isn't it only hotseat? Beacause I'd like to play Normal multiplayer, not hotseat.

Regards,
 
sadly it won't work for scenarios, I do plan to make a MP version of R.E.D. WWII at some point but I've not started work on that yet.
 
Thanks for your answers, that's very kind of you.

What I want to do at first, is play a map with a friend with predefinite starting positions. (Then I'd add some others rules but for now that's not the priority)

Do you think that would be possible with JdH's CiV MP Mod Manager?

Thanks very much.

Edit: If I can be of any help to make this happen, I'll gladly do that (Though I know nothing about how to proceed ) !

Edit: Well errr, by re-reading all your posts, my question would then be, would it be possible to achieve what I want to do with a mod instead of a scenario?
 
I believe an easy workaround is to save your existing M_AncientLake.Civ5Map as a backup, and rename the map you'd like to use M_AncientLake.Civ5Map [source].

EDIT: Actually, I don't think the starting positions work.
 
Ok thanks very much, could you redirect me where how do to this is explained? And what should I do to use it in multiplayer?

Many thanks :)

Edit: nvm I found it, I'll read a bit.
 
Ok I found this which seems very promising:
http://forums.civfanatics.com/showthread.php?t=504715

However I tested it and it doesn't seem to work about starting positions. I edited the xml and it produced this code (I've just pasted the interesting part):
Code:
function nORbConvWorld:GetCivStartPlot(pPlayer)
	local iCivType      = pPlayer:GetCivilizationType();
	print("MajorCivType: "..iCivType);

	local arCivs    = {}
	local ResultPos = {-1,-1}
	local thisCiv   = GameInfo.Civilizations[iCivType];
	
	print (thisCiv.ID..'='..thisCiv.Type..' :: '..Locale.ConvertTextKey(thisCiv.ShortDescription));
	if (thisCiv.Type == "CIVILIZATION_NETHERLANDS") then ResultPos = {25,28};
	elseif (thisCiv.Type == "CIVILIZATION_ROME") then ResultPos = {8,14};
	end

	if (ResultPos[1] ~= -1) then
		local resultPlot = Map.GetPlot(ResultPos[1], ResultPos[2]);
		if (resultPlot:GetTerrainType() < 5) then
			print("MajorCiv True Start Position: "..ResultPos[1].."x"..ResultPos[2]);
			return resultPlot;
		else
			print("MajorCiv (Error) True Start Position: "..ResultPos[1].."x"..ResultPos[2]);
		end
	end	
	
end

When I'm trying to play Rome, my settler appears on a random tile (I tried on multiplayer).

Anyone can help me please? I'll try to get help from the guy who made it.

Thanks anyways, I feel I can make it :D

:cool:
 
what's in your lua.log ?
 
Hello Gedemon, here it is (when I load my map) it seems it does not print useful info, should I enable something elsewhere?



Code:
[607231.250] Initializing Lua 5.1.4
[607270.546] InstalledPanel: Refreshing Mods
[607270.546] InstalledPanel: GetModBrowserListings()
[607270.546] InstalledPanel: Refreshing Mods
[607270.546] InstalledPanel: GetModBrowserListings()
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607275.937] Lobby: Sorting ServerName
[607364.125] WorldBuilderMapLoader: -------------------------------
[607364.125] WorldBuilderMapLoader: Map Generation - Adding Goodies
[607364.140] WorldBuilderMapLoader: -------------------------------
[607364.140] WorldBuilderMapLoader: Map Generation - Adding Resources
[607371.312] CivilopediaScreen: SetSelectedCategory(12)
[607371.312] CivilopediaScreen: CivilopediaCategory[CategoryTerrain].DisplayList
[607371.312] CivilopediaScreen: SetSelectedCategory(1)
[607371.312] CivilopediaScreen: CivilopediaCategory[CategoryHomePage].DisplayList
[607371.546] Tutorial: Loaded Additional Tutorial checks - Assets\DLC\Expansion2\Tutorial\Lua\TutorialInclude_Expansion2.lua
[607371.546] Tutorial: Loaded Additional Tutorial checks - Assets\DLC\Expansion\Tutorial\lua\TutorialInclude_Expansion1.lua
[607371.906] GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\ConfirmImprovementRebuildPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\DeclareWarMovePopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\PuppetCityPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\DeclareWarPlunderTradeRoutePopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\DeclareWarRangeStrikePopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmImprovementRebuildPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\NetworkKickedPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\CityPlotManagementPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmCommandPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\MinorCivEnterTerritoryPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\LiberateMinorPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ReturnCivilianPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\AnnexCityPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\DeclareWarMovePopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\BarbarianRansomPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmGiftPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmCityTaskPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\PuppetCityPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\DeclareWarRangeStrikePopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmPolicyBranchPopup.lua
[607371.906] GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\MinorCivGoldPopup.lua
[607372.015] EconomicGeneralInfo: Total Units - 2
[607372.015] EconomicGeneralInfo: Maint Free Units - 0
[607372.015] EconomicGeneralInfo: Paid Units - 2
[607372.015] EconomicGeneralInfo: Total Units - 2
[607372.015] EconomicGeneralInfo: Maint Free Units - 0
[607372.015] EconomicGeneralInfo: Paid Units - 2
[607372.250] ChoosePantheonPopup: 180
[607372.250] ChoosePantheonPopup: 963
[607372.250] ChoosePantheonPopup: 1143
[607372.296] ChooseIdeologyPopup: 180
[607372.296] ChooseIdeologyPopup: 963
[607372.296] ChooseIdeologyPopup: 1143
[607372.609] AdvisorInfoPopup: Closing Advisor Info
[607372.609] Demographics: Dequeuing demographics
[607372.609] Demographics: Dequeuing demographics


Thanks :)
 
Can you send me your lua-script for check? I don't see any "my tags" in your lua-log. Like "Start generate custom map" or "Create nORbConvWorld class".

You are sure created new game with lua-script from my converter?

email: murmadog (at) yandex (dot) ru


Nevermind. I can't understand, for what you summon me here. >.< You just copied part ( function nORbConvWorld:GetCivStartPlot ) from generated script? And it doesn't seem to work? :) Strange. *sarcasm, sorry*
 
Hello!

No, no, I did only copy the interesting part! Of course the generated file is really bigger!

In my xml it let only two lines corresponding to Rome and Netherlands and here is the result.

I will attach the lua file, please tell me if it works with you:

Many thanks for your time and answers!

If you have some spare time, I'd like to know if it is possible to add in a lua map script states like permanent war between civs, indestructible cities for oe civ, or such similar conditions.

Here is the attached lua mapscript I'm trying to use (please rename to .lua)
View attachment test1.txt

Best regards,
 
Spoiler :
Code:
 Map Script: Generating Map
 Map Script: Map Generation - Adding Rivers
 Map Script: Map Generation - Adding Lakes
 Map Script: Start generate custom map...
 Map Script: Create nORbConvWorld class.
 Map Script: Generate Plot Types.
 Map Script: Setting Plot Types (MapGenerator.Lua)
 Map Script: Generate Terrain.
 Map Script: Setting Terrain Types (MapGenerator.Lua)
 Map Script: Set plots...
 Map Script: Plots count: 289
 Map Script: Set terrains...
 Map Script: Terrain custom hex count: 3926
 Map Script: Placing rivers...
 Map Script: Rivers custom hex count: 46
 Map Script: Placing Regions.
 Map Script: Placing Features.
 Map Script: Features count: 710
 Map Script: Placing Resources.
 Map Script: Resources count: 146
 Map Script: Placing Improvements.
 Map Script: Improvements count: 0
 Map Script: Placing Natural Wonders.
 Map Script: Natural wonders count: 6
 Map Script: Placing random starting plots.
 Map Script: Placing Start Points.
 Map Script: Player No: 0
 Map Script: MajorCivType: 14
 Map Script: 14=CIVILIZATION_ROME :: Rome
 Map Script: MajorCiv True Start Position: 8x14
 Map Script: Blocking plots around 8x14
 Map Script: Player No: 1
 Map Script: MajorCivType: 34
 Map Script: 34=CIVILIZATION_NETHERLANDS :: The Netherlands
 Map Script: MajorCiv True Start Position: 25x28
 Map Script: Blocking plots around 25x28
 Map Script: Player No: 2
 Map Script:  -- skip player
 Map Script: Player No: 3
 Map Script:  -- skip player
 Map Script: Player No: 4
 Map Script:  -- skip player
 Map Script: Player No: 5
 Map Script:  -- skip player
 Map Script: Player No: 6
 Map Script:  -- skip player
 Map Script: Player No: 7
 Map Script:  -- skip player
 Map Script: Player No: 8
 Map Script:  -- skip player
 Map Script: Player No: 9
 Map Script:  -- skip player
 Map Script: Player No: 10
 Map Script:  -- skip player
 Map Script: Player No: 11
 Map Script:  -- skip player
 Map Script: Player No: 12
 Map Script:  -- skip player
 Map Script: Player No: 13
 Map Script:  -- skip player
 Map Script: Player No: 14
 Map Script:  -- skip player
 Map Script: Player No: 15
 Map Script:  -- skip player
 Map Script: Player No: 16
 Map Script:  -- skip player
 Map Script: Player No: 17
 Map Script:  -- skip player
 Map Script: Player No: 18
 Map Script:  -- skip player
 Map Script: Player No: 19
 Map Script:  -- skip player
 Map Script: Player No: 20
 Map Script:  -- skip player
 Map Script: Player No: 21
 Map Script:  -- skip player
 Map Script: Player No: 22
 Map Script: MinorCivType: 26
 Map Script: 26=MINOR_CIV_COLOMBO :: Colombo
 Map Script: Player No: 23
 Map Script: MinorCivType: 15
 Map Script: 15=MINOR_CIV_HANOI :: Hanoi
 Map Script: Player No: 24
 Map Script: MinorCivType: 5
 Map Script: 5=MINOR_CIV_GENOA :: Genoa
 Map Script: Player No: 25
 Map Script: MinorCivType: 48
 Map Script: 48=MINOR_CIV_IFE :: Ife
 Map Script: Player No: 26
 Map Script: MinorCivType: 6
 Map Script: 6=MINOR_CIV_FLORENCE :: Florence
 Map Script: Player No: 27
 Map Script: MinorCivType: 14
 Map Script: 14=MINOR_CIV_KATHMANDU :: Kathmandu
 Map Script: Player No: 28
 Map Script: MinorCivType: 4
 Map Script: 4=MINOR_CIV_RIGA :: Riga
 Map Script: Player No: 29
 Map Script: MinorCivType: 3
 Map Script: 3=MINOR_CIV_GENEVA :: Geneva
 Map Script: Player No: 30
 Map Script: MinorCivType: 46
 Map Script: 46=MINOR_CIV_BYBLOS :: Byblos
 Map Script: Player No: 31
 Map Script: MinorCivType: 54
 Map Script: 54=MINOR_CIV_UR :: Ur
 Map Script: Player No: 32
 Map Script: MinorCivType: 40
 Map Script: 40=MINOR_CIV_YEREVAN :: Yerevan
 Map Script: Player No: 33
 Map Script: MinorCivType: 41
 Map Script: 41=MINOR_CIV_ZANZIBAR :: Zanzibar
 Map Script: Player No: 34
 Map Script: MinorCivType: 24
 Map Script: 24=MINOR_CIV_ANTWERP :: Antwerp
 Map Script: Player No: 35
 Map Script: MinorCivType: 16
 Map Script: 16=MINOR_CIV_LHASA :: Lhasa
 Map Script: Player No: 36
 Map Script: MinorCivType: 39
 Map Script: 39=MINOR_CIV_WITTENBERG :: Wittenberg
 Map Script: Player No: 37
 Map Script: MinorCivType: 29
 Map Script: 29=MINOR_CIV_JERUSALEM :: Jerusalem
 Map Script: Player No: 38
 Map Script: MinorCivType: 53
 Map Script: 53=MINOR_CIV_SOFIA :: Sofia
 Map Script: Player No: 39
 Map Script: MinorCivType: 42
 Map Script: 42=MINOR_CIV_ZURICH :: Zurich
 Map Script: Player No: 40
 Map Script: MinorCivType: 30
 Map Script: 30=MINOR_CIV_LA_VENTA :: La Venta
 Map Script: Player No: 41
 Map Script: MinorCivType: 33
 Map Script: 33=MINOR_CIV_ANTANANARIVO :: Antananarivo
 Map Script: Player No: 42
 Map Script: MinorCivType: 9
 Map Script: 9=MINOR_CIV_QUEBEC_CITY :: Quebec City
 Map Script: Player No: 43
 Map Script:  -- skip player
 Map Script: Player No: 44
 Map Script:  -- skip player
 Map Script: Player No: 45
 Map Script:  -- skip player
 Map Script: Player No: 46
 Map Script:  -- skip player
 Map Script: Player No: 47
 Map Script:  -- skip player
 Map Script: Player No: 48
 Map Script:  -- skip player
 Map Script: Player No: 49
 Map Script:  -- skip player
 Map Script: Player No: 50
 Map Script:  -- skip player
 Map Script: Player No: 51
 Map Script:  -- skip player
 Map Script: Player No: 52
 Map Script:  -- skip player
 Map Script: Player No: 53
 Map Script:  -- skip player
 Map Script: Player No: 54
 Map Script:  -- skip player
 Map Script: Player No: 55
 Map Script:  -- skip player
 Map Script: Player No: 56
 Map Script:  -- skip player
 Map Script: Player No: 57
 Map Script:  -- skip player
 Map Script: Player No: 58
 Map Script:  -- skip player
 Map Script: Player No: 59
 Map Script:  -- skip player
 Map Script: Player No: 60
 Map Script:  -- skip player
 Map Script: Player No: 61
 Map Script:  -- skip player
 Map Script: Player No: 62
 Map Script:  -- skip player
 Map Script: Map complete!
 Map Script: -------------------------------
 Map Script: Map Generation - Adding Goodies
 Map Script: -------------------------------
 CivilopediaScreen: SetSelectedCategory(12)
 CivilopediaScreen: CivilopediaCategory[CategoryTerrain].DisplayList
 CivilopediaScreen: SetSelectedCategory(1)
 CivilopediaScreen: CivilopediaCategory[CategoryHomePage].DisplayList
 Tutorial: Loaded Additional Tutorial checks - Assets\DLC\Expansion2\Tutorial\Lua\TutorialInclude_Expansion2.lua
 Tutorial: Loaded Additional Tutorial checks - Assets\DLC\Expansion\Tutorial\lua\TutorialInclude_Expansion1.lua
 GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\ConfirmImprovementRebuildPopup.lua
 GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\DeclareWarMovePopup.lua
 GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\PuppetCityPopup.lua
 GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\DeclareWarPlunderTradeRoutePopup.lua
 GenericPopup: Loaded Popup - Assets\DLC\Expansion2\UI\InGame\PopupsGeneric\DeclareWarRangeStrikePopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmImprovementRebuildPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\NetworkKickedPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\CityPlotManagementPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmCommandPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\MinorCivEnterTerritoryPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\LiberateMinorPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ReturnCivilianPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\AnnexCityPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\DeclareWarMovePopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\BarbarianRansomPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmGiftPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmCityTaskPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\PuppetCityPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\DeclareWarRangeStrikePopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\ConfirmPolicyBranchPopup.lua
 GenericPopup: Loaded Popup - Assets\UI\InGame\PopupsGeneric\MinorCivGoldPopup.lua
 EconomicGeneralInfo: Total Units - 3
 EconomicGeneralInfo: Maint Free Units - 0
 EconomicGeneralInfo: Paid Units - 3
 EconomicGeneralInfo: Total Units - 3
 EconomicGeneralInfo: Maint Free Units - 0
 EconomicGeneralInfo: Paid Units - 3
 ChoosePantheonPopup: 60
 ChoosePantheonPopup: 963
 ChoosePantheonPopup: 1023
 ChooseIdeologyPopup: 60
 ChooseIdeologyPopup: 963
 ChooseIdeologyPopup: 1023
 AdvisorInfoPopup: Closing Advisor Info
 Demographics: Dequeuing demographics
 Demographics: Dequeuing demographics

http://www.nighthawks-guild.com/uploads/civ5/19-14-53-19.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-15-45-94.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-17-14-24.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-21-27-22.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-22-14-59.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-22-29-31.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-23-30-49.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-23-34-41.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-24-15-56.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-24-40-12.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-27-11-13.jpg
http://www.nighthawks-guild.com/uploads/civ5/19-28-22-92.jpg

I don't seen any troubles with your script. Tested and solo game, and multiplayer, and internet-game. Rome always starts at x8-y14, Netherlands always starts at x25-y28.
 
Hello do you use some kind of options (.ini files ,specific options)...

When I want to select a multiplayer game, from the start menu I go to Multiplayer, Normal, Online then Host and I select my map, is there some specific options to activate here?

Because when I use this map script my civ are placed randomly (even if I use rome or netherlands)

Please help me :)

Thanks a lot for your answsers.
 
Back
Top Bottom