Difference between revisions of "Modding"

From Europa Universalis 4 Wiki
Jump to navigation Jump to search
(Tips)
(Tips: Specified if tips were Windows exclusive. Added a tip for GNU/Linux text editors. Someone may want to add a tip for a macOS text editor unless its default is already really good.)
Line 23: Line 23:
  
 
== Tips ==
 
== Tips ==
*Get [http://notepad-plus-plus.org/ Notepad++]. Standard Notepad is considerably unreliable when it comes to respecting structure and format, and can bring a bunch of unnecessary headaches.
+
*If you use Microsoft Windows, consider using [http://notepad-plus-plus.org/ Notepad++]. Standard Notepad is considerably unreliable when it comes to respecting structure and format, and can bring a bunch of unnecessary headaches.
*Make sure your Europa Universalis IV folder is automatically indexed by Windows (right-click on folder, ''Properties'', ''Advanced Options''), so that when you search within it, the function can search within text files. When you first enable the setting, you'll have to wait a bit for Windows to do the indexing in the background.
+
*If you use a GNU/Linux distribution, almost any text editor will respect structure and format. Examples of free text editors (or IDEs) that will respect structure and format include gedit, Geany, Atom, Vim, and Emacs.
 +
*If you use Microsoft Windows, make sure your Europa Universalis IV folder is automatically indexed by Windows (right-click on folder, ''Properties'', ''Advanced Options''), so that when you search within it, the function can search within text files. When you first enable the setting, you'll have to wait a bit for Windows to do the indexing in the background.
 
*When trying to find a way to do something, look around the game's structure to see how the game accomplishes similar things. The previous point helps with that (how is X effect/trigger meant to be used?). It's also a useful technique to learn about proper format, how events, decisions and missions work, and how to balance your changes with the rest of the game.
 
*When trying to find a way to do something, look around the game's structure to see how the game accomplishes similar things. The previous point helps with that (how is X effect/trigger meant to be used?). It's also a useful technique to learn about proper format, how events, decisions and missions work, and how to balance your changes with the rest of the game.
 
*Uncommon/unknown file types outside the ''gfx'' folder (i.e. .lua, .gfx, .gui) are usually normal text files, and can be opened as such.
 
*Uncommon/unknown file types outside the ''gfx'' folder (i.e. .lua, .gfx, .gui) are usually normal text files, and can be opened as such.
Line 31: Line 32:
 
*Use the [http://georgi.hdinteractive.com/a/eu4/color-picker/ Province color picker] when choosing colors for your new provinces, to ensure the new province color doesn't coincide with an existing province's color.
 
*Use the [http://georgi.hdinteractive.com/a/eu4/color-picker/ Province color picker] when choosing colors for your new provinces, to ensure the new province color doesn't coincide with an existing province's color.
 
*If all else fails, drop us a question here in the [[forum:708855|Quick questions thread]] over at the official EU4 modding forum.
 
*If all else fails, drop us a question here in the [[forum:708855|Quick questions thread]] over at the official EU4 modding forum.
*To merge mods, you could use [http://winmerge.org// WinMerge]. An easy tool for merging folders and files.
+
*If you use Windows and want to merge mods, you could use [http://winmerge.org// WinMerge]. An easy tool for merging folders and files.
  
 
{{Modding navbox}}
 
{{Modding navbox}}
  
 
[[Category:Modding|*]]
 
[[Category:Modding|*]]

Revision as of 21:38, 29 July 2016

Modding is a very broad topic. This page serves as a portal to all modding-related pages on the wiki. Much information for this article is taken from the official User Modifications Reference — Guides, Templates and Utilities thread in the EU4 Paradox forums; check there for updates.

Game data

  • Commands - Used in order to dynamically affect the game
  • Conditions - Used in order to execute commands/events/decisions/etc. only when certain things are true
  • Country list - Basic info on all countries in the vanilla game, including country tags
  • Province ID map (warning: huge)
  • Province list - Province IDs are used in many commands
  • Scopes - Used to determine what entity commands and conditions are executed and checked from

Tools & utilities

Miscellaneous

Tips

  • If you use Microsoft Windows, consider using Notepad++. Standard Notepad is considerably unreliable when it comes to respecting structure and format, and can bring a bunch of unnecessary headaches.
  • If you use a GNU/Linux distribution, almost any text editor will respect structure and format. Examples of free text editors (or IDEs) that will respect structure and format include gedit, Geany, Atom, Vim, and Emacs.
  • If you use Microsoft Windows, make sure your Europa Universalis IV folder is automatically indexed by Windows (right-click on folder, Properties, Advanced Options), so that when you search within it, the function can search within text files. When you first enable the setting, you'll have to wait a bit for Windows to do the indexing in the background.
  • When trying to find a way to do something, look around the game's structure to see how the game accomplishes similar things. The previous point helps with that (how is X effect/trigger meant to be used?). It's also a useful technique to learn about proper format, how events, decisions and missions work, and how to balance your changes with the rest of the game.
  • Uncommon/unknown file types outside the gfx folder (i.e. .lua, .gfx, .gui) are usually normal text files, and can be opened as such.
  • Read the Modding section!
  • Save the List of Effects, Modifiers, Scopes, Triggers, and Localization Strings to a text file(s) for easy access. It's a quick reference to all the gears that make EU4 tick, and there's sometimes usage tips to be found.
  • Use the Province color picker when choosing colors for your new provinces, to ensure the new province color doesn't coincide with an existing province's color.
  • If all else fails, drop us a question here in the Quick questions thread over at the official EU4 modding forum.
  • If you use Windows and want to merge mods, you could use WinMerge. An easy tool for merging folders and files.
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