Sid Meier's Civilization V

Sid Meier's Civilization V

Reforestation
DracoDruid 2013 年 12 月 2 日 上午 2:30
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!
最后由 DracoDruid 编辑于; 2013 年 12 月 2 日 上午 2:32
< >
正在显示第 1 - 5 条,共 5 条留言
Natty 2013 年 12 月 2 日 上午 9:12 
Steam community badge. Ignore this post
framedarchitecture  [开发者] 2013 年 12 月 2 日 下午 10:11 
@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 2013 年 12 月 2 日 下午 10:51 
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 2015 年 1 月 25 日 上午 7:02 
My DLL didn't load a few days ago, and now the option the plant forest's has disappeared!
jwleo54 2016 年 11 月 6 日 下午 1:33 
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. =(
最后由 jwleo54 编辑于; 2016 年 11 月 6 日 下午 1:36
< >
正在显示第 1 - 5 条,共 5 条留言
每页显示数: 1530 50