Sid Meier's Civilization V

Sid Meier's Civilization V

Reforestation
DracoDruid 2 Dec, 2013 @ 2:30am
A few questions
Well here we go:

1) I tried to incorporate your mod in a slightly simplified version into a test-mod of mine, but I can't get the .lua script to work at all. I also couldn't find a decent tutorial about this. Do I have to "activate" .lua like xml files in ModBuddy, or what's the secret?

2) Did you consider using Events.SerialEventImprovementCreated as a trigger or Events.ActivePlayerTurnStart (or End)?
(http://wiki.2kgames.com/civ5/index.php/Lua_Game_Events)

3) Why did you not allow "Plant Forest" on Plains?

4) Any idea on how to disable "Plant Forest" on Forests/Jungles?

Thanks for your time and again: great work!
Last edited by DracoDruid; 2 Dec, 2013 @ 2:32am
< >
Showing 1-5 of 5 comments
Natty 2 Dec, 2013 @ 9:12am 
Steam community badge. Ignore this post
framedarchitecture  [developer] 2 Dec, 2013 @ 10:11pm 
@DracoDruid Add me if you want to discuss modding details, but quickly:
1. To add most lua scripts: Properties > Content > Add.. > InGameUIAddin
2. Most of the Events only fire for human player in UI context. SerialEventImprovementCreated thus can only see map areas that human player can see, thus is useless. BNW introduced GameEvents.BuildFinished, but it only functions under BNW. So mine is still best method for max compatibility.
3. To preserve some map flavor/integrity
4. I'm not sure what you mean.
DracoDruid 2 Dec, 2013 @ 10:51pm 
Send you a friend invite. :)
Quick follow-up:
1) So I have to include an XML file for the LUA?
2) Ah! I see. thanks for the hint with GameEvents.BuildFinished though!
3) But Forests can grow on Plains, can't they? So, it was just a flavor choice made by you, nothing more to it?
4) Well if I am not mistaken, the workers can build the "Plant Forest" Improvement even on tiles where there already is a forest. Would be nice to "deactivate" this option, but I can only find the ValidTerrain entry and no "InvalidTerrain".
One would think that if you don't include Forest as a valid terrain, the improvement is not buildable, but that's not the case(?).
Or I am gravely mistaken here...

Thanks for your time!
phillips_glenn 25 Jan, 2015 @ 7:02am 
My DLL didn't load a few days ago, and now the option the plant forest's has disappeared!
jwleo54 6 Nov, 2016 @ 1:33pm 
Im also a begineer modder myself and I was trying to figure out how you did it. It is an amazingly well done mod though. Im currently trying to make a similar mod to this on making hills. I cant figure it out. I was hoping to open up your mod and veiw the XML files so I could copy them and just add in hill instead. No luck understanding the LUA scipt though. =(
Last edited by jwleo54; 6 Nov, 2016 @ 1:36pm
< >
Showing 1-5 of 5 comments
Per page: 1530 50