Editing EDF basics

From Eternity Wiki
Jump to navigationJump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.

Latest revision Your text
Line 133: Line 133:
          
          
     */
     */
==Documentation conventions==
In this documentation, the following operators have special meaning and are ''not'' part of the described syntax:
*<code>< ></code> denote placeholders you must fill in, after removing the angled brackets. Sometimes they're replaced by ''italics'' without the angled brackets.
*<code>[ ]</code> denote optional areas you can omit. When adding these areas, the brackets shall be removed.
*<code>|</code> denotes a choice between two or more similar items, delimited by this vertical bar. An example is choosing between + and -, marked by <code>+|-</code>. Be aware that <code>|</code> is also a valid flag joining operator, but shall not appear in the same place where syntax is described.
Only the syntax description shall apply this convention; EDF example code shall be exact syntax, without these special marks. There may also be some cases where some of these marks are part of syntax, but hopefully this can be determined from context.


==Implementation==
==Implementation==
Line 152: Line 145:


Unless the intention is to redefine the entire game structure, the overriding root EDF file must contain a command at the top to include the ''base\root.edf'' file, by using this function: ''stdinclude("root.edf")''. Note that it is possible to load several wads containing EDFROOT; they will be processed additively.
Unless the intention is to redefine the entire game structure, the overriding root EDF file must contain a command at the top to include the ''base\root.edf'' file, by using this function: ''stdinclude("root.edf")''. Note that it is possible to load several wads containing EDFROOT; they will be processed additively.
NOTE: EDF data is always loaded before any [[Dehacked]] lumps.


===Including files===
===Including files===
Line 217: Line 208:
Eternity can load other EDF lumps, besides EDFROOT. Previously, they were dedicated to specific blocks, but now can have any purpose. Do not explicitly include them from EDFROOT.
Eternity can load other EDF lumps, besides EDFROOT. Previously, they were dedicated to specific blocks, but now can have any purpose. Do not explicitly include them from EDFROOT.


*EFONTS
*ESTRINGS
*ETERRAIN
*EMENUS
*EMENUS
*EREVERBS
*ESNDSEQ
*ESNDINFO
*ESNDINFO
*ESNDSEQ
*EFONTS
*ESTRINGS
*ETERRAIN
*EWEAPONS


===Reserved identifiers===
===Reserved identifiers===
Please note that all contributions to Eternity Wiki are considered to be released under the GNU Free Documentation License 1.2 (see Eternity Wiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!
Cancel Editing help (opens in new window)