Open main menu

Dipicacyx

Joined 14 July 2016

{{version|1.17}} This page is about adding or changing the great project, such as the Panama Canal. Great project are found in /Europa Universalis IV/common/great_projects.

Contents

Great project files

Creating a new project

Each great project must be given a unique name. You can create a new file in the /Europa Universalis IV/common/great_projects folder for your mod and add them there.

panama_canal = {

Ambient object

This determines which model is used in-game to represent the project. Refers to an item in /Europa Universalis IV/map/ambient_object.txt.

ambient_object = panama_canal

To use an existing model for the great project, a copy of /Europa Universalis IV/map/ambient_object.txt will need to be in the mod folder, and the entry for that model edited. . For example, to use the Parthenon model for another temple name jewish_temple located in province 379, the entry for the Parthenon will need to be changed from

type={
	type="nammi2_parthenon_entity"
	use_animation=no
	scale=0.290000
	time_duration=300.000000
	object={
		name="parthenon"
		hidden_on_start=no
		position={
			3173.300 0.000 1289.400 
		}
		rotation={
			0.000 55.000 0.000 
		}
	}
}

to

type={
	type="nammi2_parthenon_entity"
	use_animation=no
	scale=0.290000
	time_duration=300.000000
	object={
		name="parthenon"
		hidden_on_start=no
		position={
			3173.300 0.000 1289.400 
		}
		rotation={
			0.000 55.000 0.000 
		}
	}
	object={
		name="jewish_temple"
		hidden_on_start=yes
		position={
			3350.000 0.400 1157.000
		}
		rotation={
			0.000 -33.000 0.000 
		}
	}
}


Province

Each great project is constructed in a single province. We define it here

province = 835

Canals

To create a canal, there are extra steps to define the adjancencies, bitmap, etc. Look at forum:833740/#post-18811943. To create a non-canal project, simply leave this line out

is_canal = yes

Construction time

The time required to construct the great project is given in months. This will be 10 years

time = 120

Modifier

You can include province-level modifiers or country-level modifiers in this clause. This is the modifier the great project provides when it is complete

modifier = {

province_trade_power_value = 20 }

Decisions (work on)

At the very least, you should have a decision to begin construction, and perhaps one to cancel. Probably include this check

NOT = { 379 = { has_great_project = jewish_temple } }

To start construction, use

add_great_project = jewish_temple

To add or remove progress via event, use

add_construction_progress = 0.05

To cancel the project, use

cancel_construction = yes

Localisation

The name of the great project should be localised. In a localisation file, it is formatted like so:

great_project_jewish_temple: "Jewish Temple"
Documentation EffectsTriggersModifiersScopesVariablesLocalisationCustomizable localizationRun files
Scripting AdvisorsAgesBookmarksBuildingsCasus belliColonial regionsCountriesCultureDecisionsDefinesDiplomatic actionsDisastersEstatesEventsFactionsGovernmentGreat projectsHistoryIdea groupsInstitutionsMissionsModifiersNation designerPoliciesReligionRebel typesSubject typesTechnologyTrade companiesTrade goodsUnits
Map MapRandom New WorldTrade nodes
Graphics 3D ModelsInterfaceGraphical AssetsFontsParticlesShadersUnit models
Audio MusicSound
Other Console commandsChecksumJoroDox mod making toolMod structureTroubleshootingThe ValidatorRun files
Guides Adding a provinceSave-game editing


[[Category:Modding]]