• Our friends from AlphaCentauri2.info are in need of technical assistance. If you have experience with the LAMP stack and some hours to spare, please help them out and post here.

River Flow Direction?

tchristensen

Emperor
Joined
Jul 21, 2010
Messages
1,241
Location
Grand Rapids, Mi
I am wondering if there is a systematic way of determine the course of rivers. Last night I was running a scout through my new World Map and I noticed that the Mississippi was flowing north, not south and emptying into the Great Lakes.

Is the flow of the river just in the direction of how you draw it, or are there other mechanics behind it?

On a side note, I notice all of my rivers have flood plains -- a nice little feature but over used in my opinion. Is there a way to modify the local territory to not have flood plains on rivers (I tried to over write the area with Plains, but that does not work)?

-Troy-
 
Floodplains are features. Select the flood plain feature in the menu, and instead of left clicking, right click on the flood plains to delete them. And, very simply, rivers depend on what way you drag the mouse. Right click to delete a river.
 
If anybody is interested. I added the following code to my mod to make it easier to create rivers. Using this method I find that it's much easier to create rivers. The only bad point that I found is that it is possible to create improper rivers, so you just have to careful and check your results.

I added the following to CvWorldBuilderScreen.handleInput.

Code:
the_key, key_down = inputClass.getData(), inputClass.getID()
plot = CyInterface().getMouseOverPlot()

if key_down:
	# Remove horizontal river.
	if the_key == int(InputTypes.KB_NUMPAD6) or the_key == int(InputTypes.KB_NUMPAD4):
		if inputClass.isShiftKeyDown():
			plot.setNOfRiver(False, CardinalDirectionTypes.CARDINALDIRECTION_EAST)
			return 1
	# Remove vertical river.
	if the_key == int(InputTypes.KB_NUMPAD8) or the_key == int(InputTypes.KB_NUMPAD2):
		if inputClass.isShiftKeyDown():
			plot.setWOfRiver(False, CardinalDirectionTypes.CARDINALDIRECTION_NORTH)
			return 1
	# Remove all rivers from this plot.
	if (the_key == int(InputTypes.KB_NUMPAD5)):
		plot.setNOfRiver(False, CardinalDirectionTypes.CARDINALDIRECTION_EAST)
		plot.setWOfRiver(False, CardinalDirectionTypes.CARDINALDIRECTION_NORTH)
		return 1

	# Add horizontal river - Current heading east.
	if the_key == int(InputTypes.KB_NUMPAD6):
		plot.setNOfRiver(True, CardinalDirectionTypes.CARDINALDIRECTION_EAST)
		return 1
	# Add horizontal river - Current heading west.
	if the_key == int(InputTypes.KB_NUMPAD4):
		plot.setNOfRiver(True, CardinalDirectionTypes.CARDINALDIRECTION_WEST)
		return 1
	# Add vertical river - Current heading north.
	if the_key == int(InputTypes.KB_NUMPAD8):
		plot.setWOfRiver(True, CardinalDirectionTypes.CARDINALDIRECTION_NORTH)
		return 1
	# Add vertical river - Current heading south.
	if the_key == int(InputTypes.KB_NUMPAD2):
		plot.setWOfRiver(True, CardinalDirectionTypes.CARDINALDIRECTION_SOUTH)
		return 1
 
Back
Top Bottom