[BtS] JFortZoC: Forts Extending Borders

Jeckel

Great Reverend
Joined
Nov 16, 2005
Messages
1,637
Location
Peoria, IL
Beyond the Sword v3.02

New Fort Features:

When a fort is built, it automaticly spawns a Commander unit. This Commander unit will allow you to
access the various abilities of the fort.

Through the Commander unit the fort can launch a ranged bombardment attack with a one tile range.

The fort adds culture to the plot it is on and plots that it controls.
The fort plot gets the Commander's level multiplied by 2 each turn.
Controled plots get the Commander's level in culture each turn.

The fort will also extend your cultural borders to a one tile range around the fort.
The player with the most culture in the plot will get their cultural borders around the tile.

Forts can not be built inside another fort's Zone of Control.

JFortZoC_v0.210b3.02.zip

Note: v0.210
This is the final version. No new features will be added. This mod does what it does. If any bugs are reported I will fix them and release a new version with the bug fixes, but other then that this mod is done.
 
Credits:
Most of the credit for this mod goes to the person at Fraxis that exposed the pPlot.setOwner() method to python. :goodjob:
I'd also like to thank the creator of Final Frontier mod for giving a great example of how to use setOwner() with the Starbase. :band:
 
I can port some of the code over to the SDK, but short of that there isn't much I can do to solve the lag there is.

The lag should be propotional to the number of forts on the map as it has to cycle through each fort once per game turn, and for each fort it has to cycle through 8 surrounding tiles to add culture point and check if the culture border needs to be redrawn.

Let me know if yall want a SDK version and I'll put it on the schedule. :)
 
Lag? My old mod used python to do some pretty intense calculations for each plot within cultural range of each city and for each player. And I didn't really notice any lag. This mod should be trivial in comparison.
 
Lag? My old mod used python to do some pretty intense calculations for each plot within cultural range of each city and for each player. And I didn't really notice any lag. This mod should be trivial in comparison.

And could you update your old mod to BTS ?^^
 
Dear Jeckel, I found a strange bug : we can t build settlers anymore with your mod :( Can you fix it ? and BTW can you create any config.ini to change some settings?
 
Dear Jeckel, I found a strange bug : we can t build settlers anymore with your mod :( Can you fix it ? and BTW can you create any config.ini to change some settings?

I also could not build settlers, but I figured it was because I was using the Airforce Mod SDK.
 
Hehe, my bad. I put in a couple lines of code to disallow settler building so me and my buddy would have to build forts to take over the planet and I could make sure the mod worked and.. umm, oops.. I forgot to take it out. :crazyeye:

Give me a little bit as I am not at my coding computer, but as soon as I get home I will reupload the mod with that debugging code taken out. :D
 
;)
Hehe, my bad. I put in a couple lines of code to disallow settler building so me and my buddy would have to build forts to take over the planet and I could make sure the mod worked and.. umm, oops.. I forgot to take it out. :crazyeye:

Give me a little bit as I am not at my coding computer, but as soon as I get home I will reupload the mod with that debugging code taken out. :D

lol ^^ .If you are going to do some little coding can you do something about this :

You allowed workers to build Fort in Open borders, but I think we couldn t do this because we can buid fort over the IA 's ressources like oil, Iron removing their mines...

And if you can do something about the lag it would be great ;)
 
;)

lol ^^ .If you are going to do some little coding can you do something about this :

You allowed workers to build Fort in Open borders, but I think we couldn t do this because we can buid fort over the IA 's ressources like oil, Iron removing their mines...

And if you can do something about the lag it would be great ;)

The normal game allows you to build forts and I think all improvements in other player's territory if you have an Open Borders agreement, that is nothing I did. I'm not making any more changes to this mod, but if someone else wants to do it they are more then welcome.

As for the lag, there isn't anything I can do for that in python. I am planning to port the mod to SDK at some point. Right now I am working on adding a ReligionClass to group religions under for johny smith's religion mod, but after I get that done, fixing the forts from the SDK is my next project. :)
 
I haven't downloaded it yet but I think this is really useful if you want to make a roman-empire scenario without making the romans too strong, because the production rate won't be too high.

:goodjob:
 
Success! I have finnally got the SDK set up to extend borders around improvements. I added a new iCultureBorderRange tag to the ImprovementInfo that controls how far the border extends, 0 is just the improvement tile, 1 is the 8 tiles around the improvement, ect.

I need to clean the code up a bit, but should be done tonight or in a few days. :)
 
Success! I have finnally got the SDK set up to extend borders around improvements. I added a new iCultureBorderRange tag to the ImprovementInfo that controls how far the border extends, 0 is just the improvement tile, 1 is the 8 tiles around the improvement, ect.

I need to clean the code up a bit, but should be done tonight or in a few days. :)


Great , I can t wait !!:)
 
Hi,
I have downloaded the python-only-Mod : very, very interesting !!! Thanks Jeckel.
I plan to modify and add it to my Spain 1936 Mod (with credits, of course !).

Modifications planned :
  • I'll remove Forts !! (no, I'm not totally stupid, read below)
  • I'll add Bunkers from "WWII 1939" Mod : gives frontier expander and comander
  • I'll add Trenches from "WWII 1939" Mod : gives only frontier expander

Notes :
  • I don't know actually how much time it'll take (I don't work only on this composant at the moment). But when it's released, if somebody interested, I can upload the file here...
  • I can't modify SDK, so I'll only work on the python version actually downloadable.
 
Jeckel, is this just for BtS or either for Vanilla? If you would upload the Vanilla version I can start my project:), although I haven't got any modding experience.
 
Jeckel, is this just for BtS or either for Vanilla? If you would upload the Vanilla version I can start my project:), although I haven't got any modding experience.

I don t think it will work on vanilla because Jeckel use som final frontier stuff to do this...
 
I don t think it will work on vanilla because Jeckel use som final frontier stuff to do this...

Amuroray is correct. This could not be done in Python before BtS. Sorry, but your just out of luck on this one. :)
 
Top Bottom