nORb Dragon
Chieftain
Description
Little program for convert civ5map files to lua-scripts with "true start locations".
Sorry for typo, english is not my native language.
Decoded part of civ5map files:
Not decoded part of civ5map files:
Files
How to use
I recommend (before start) to copy the map-file (civ5map) to a folder "map". If you need lua-script with true start locations, сreate a xml-file with the same name as yours civ5map-file. For template you can use my example for one good map: Play The World Extended BNW MARATHON.xml
Coordinates for "start locations" you can find by Sid Meier's Civilization V SDK (World Builder).
After all just run "civ5map2lua.exe", select your civ5map file and press "START". If all goes well, you will see a window with congratulations. Check the folder "lua".
You can rename your lua-script. And change information about this script in body. Just open file in notepad, find "function GetMapScriptInfo()" and change value for "Name" and "Description" variables.
How to install and play
You think about multiplayer? Just give your lua-script to your friends for install.
But if map is very huge, you (and your friends) need good hardware (RAM, usually) for start and stable play. Sorry, but it is Civilization 5 trouble, not my.
Changelog
= 1.0.2 : 2013.07.31
[ * ] Minor changes in template:
= 1.0.1 : 2013.07.24
[ + ] Added optional checkbox "convert with improvements".
[ + ] Added decode for random city-states start locations.
= 1.0 : 2013.07.23
Release? After long time...
Little program for convert civ5map files to lua-scripts with "true start locations".
Sorry for typo, english is not my native language.
Decoded part of civ5map files:
- plots + terrain types;
- features (ice, jungles, marsh etc.);
- improvements;
- resources (type+count);
- rivers;
- natural wonders;
- art style type (regions);
- random player start locations;
- random citystate start locations.
Not decoded part of civ5map files:
- players;
- cities;
- units;
- territory ownership;
- scenario parameters.
Files
- civ5map2lua.exe - executable file
- template.lua - template for new lua-scripts
(some bugs can be fixed by changes in this file) - map\ - folder for civ5map-files and xml-files (for TSL)
(with example "Play The World Extended BNW MARATHON") - lua\ - folder for results (lua-scripts)
- readme_en.txt - junk
- readme_ru.txt - junk
How to use
I recommend (before start) to copy the map-file (civ5map) to a folder "map". If you need lua-script with true start locations, сreate a xml-file with the same name as yours civ5map-file. For template you can use my example for one good map: Play The World Extended BNW MARATHON.xml
Coordinates for "start locations" you can find by Sid Meier's Civilization V SDK (World Builder).
After all just run "civ5map2lua.exe", select your civ5map file and press "START". If all goes well, you will see a window with congratulations. Check the folder "lua".
You can rename your lua-script. And change information about this script in body. Just open file in notepad, find "function GetMapScriptInfo()" and change value for "Name" and "Description" variables.
How to install and play
- Close game client.
- Copy your lua-script to <GameFolder>\Assets\Maps\
- Run game client, create game (single or multiplayer).
- Press "Advanced Setup" for open advanced game create options.
- Select Map Type "xxxxx" (where xxxxx - "Name" of your lua-script map).
- World size setting not affect to true game size (map size is locked by script).
- Set max count City-States for your game (how much you want, but script drop some City-States if need).
- Start game and play!
You think about multiplayer? Just give your lua-script to your friends for install.
But if map is very huge, you (and your friends) need good hardware (RAM, usually) for start and stable play. Sorry, but it is Civilization 5 trouble, not my.
Changelog
= 1.0.2 : 2013.07.31
[ * ] Minor changes in template:
- function nORbConvWorld:GetCivStartPlot() optimized;
- function nORbConvWorld:GetMinorCivStartPlot() optimized;
- in function nORbConvWorld:MoveStartPos() added shoshone/aztec/polynesia units for start;
- in function nORbConvWorld:MoveStartPos() added worker in "starting package".
= 1.0.1 : 2013.07.24
[ + ] Added optional checkbox "convert with improvements".
[ + ] Added decode for random city-states start locations.
= 1.0 : 2013.07.23
Release? After long time...