I search for solutions in this order: Past Code, Unreal Source, Wiki, BUF, groups.yahoo, google, screaming at monitor. – RegularX
Difference between revisions of "UE2:UT2004 Default.ini"
m |
|||
(One intermediate revision by the same user not shown) | |||
Line 13: | Line 13: | ||
[[Legacy:Compiling With UCC|Compiling With UCC]] | [[Legacy:Compiling With UCC|Compiling With UCC]] | ||
− | + | To compile your mod using the '''-mod=''' switch you must first create a '''Default.ini''' in your '''UT2k4Dir\ModRootDir\System'''. I have provided a template below. Replace mod with your mods directory, please be consistant. Also replace mod packages with your own. | |
− | + | ||
− | + | ||
− | + | ||
− | To compile your mod using the '''-mod=''' switch you must first create a ''Default.ini'' in your '''UT2k4Dir\ModRootDir\System'''. | + | |
− | + | ||
− | I have provided | + | |
{{innerbox|;[Core.System] | {{innerbox|;[Core.System] | ||
Line 50: | Line 44: | ||
}} | }} | ||
− | *:When you compile or run with the '''-mod=''' switch this '''Default.ini''' file will be merged with the current '''UT2004.ini''' in your '''UT2k4Dir''' and a new ini file will be created in your '''ModRootDir\System''' and will have the same name as the '''ModDir'''. | + | *Whats going on? |
− | *The '''+''' and '''-''' are operators (Reffered to on UDN as modifiers) | + | **:When you compile or run with the '''-mod=''' switch this '''Default.ini''' file will be merged with the current '''UT2004.ini''' in your '''UT2k4Dir''' and a new ini file will be created in your '''ModRootDir\System''' and will have the same name as the '''ModDir'''. |
− | *If no operator exists, one of two things will happen. If the key already exists the value of the key will be overwritten by the new value. If the key does not exist, the key and value will be added. | + | **The '''+''' and '''-''' are operators (Reffered to on UDN as modifiers) used to add and subtract Keys ([[Legacy:Dynamic Array|Dynamic Array]]'s) like Paths,ServerPackages,EditPackages from the current '''ut2004.ini'''. |
− | * | + | **If no operator exists, one of two things will happen. If the key already exists the value of the key will be overwritten by the new value. If the key does not exist, the key and value will be added. |
− | *If no '''ut2004.ini''' is present the resultant ini file will be created from merging '''default.ini''' in the '''UT2k4Dir''' and the one from '''ModRootDir'''. | + | **If no '''ut2004.ini''' is present the resultant ini file will be created from merging '''default.ini''' in the '''UT2k4Dir''' and the one from '''ModRootDir'''. |
− | *'''-Paths=../Textures/.utx''' – This for example, would remove the original texture package directory from the resultant '''Mod.ini''' File. | + | **'''-Paths=../Textures/.utx''' – This for example, would remove the original texture package directory from the resultant '''Mod.ini''' File. |
− | *Keys get processed in the order they appear, This can be useful as in the following: | + | **Keys get processed in the order they appear, This can be useful as in the following: |
{{innerbox|'''-CacheRecordPath=../System/*.ucl''' | {{innerbox|'''-CacheRecordPath=../System/*.ucl''' | ||
Line 65: | Line 59: | ||
}} | }} | ||
− | *This is actually recommended because all cache files will be placed in the first '''CacheRecordPath''' found. Since this removes the '''CacheRecordPath''' used by UT2k4 then inserts the mods '''CacheRecordPath''' followed by the UT2k4 one this means the mods Path will appear before UT2k4's in our '''Mod.ini'''. | + | **This is actually recommended because all cache files will be placed in the first '''CacheRecordPath''' found. Since this removes the '''CacheRecordPath''' used by UT2k4 then inserts the mods '''CacheRecordPath''' followed by the UT2k4 one this means the mods Path will appear before UT2k4's in our '''Mod.ini'''. |
− | + | **Another good technique for speeding compile times is to use and for supressing packages in the '''Mod.ini'''. | |
− | *Another good technique for speeding compile times is to use and for supressing packages in the '''Mod.ini''' | + | |
{{innerbox|'''-EditPackages=UT2k4Package''' | {{innerbox|'''-EditPackages=UT2k4Package''' | ||
Line 73: | Line 66: | ||
'''+;EditPackages=UT2k4Package"''' | '''+;EditPackages=UT2k4Package"''' | ||
− | ''' | + | }} |
+ | **This teqnique can be used in both '''[Engine.GameEngine]''' and '''[Editor.EditorEngine]''' | ||
− | |||
*;Notes | *;Notes | ||
**When running with '''-mod=''' switch, the main *.log file will by default be placed in your "ModRootDir\System" directory and be called '''Mod.log'''. All other secondary log files (such as ucc.log) will still be created in the UT2k4's system directory. | **When running with '''-mod=''' switch, the main *.log file will by default be placed in your "ModRootDir\System" directory and be called '''Mod.log'''. All other secondary log files (such as ucc.log) will still be created in the UT2k4's system directory. | ||
**Ut2k4 will find karma(*.ka) and deafult player(*.upl) Files automatically when using the '''-mod=''' Switch. | **Ut2k4 will find karma(*.ka) and deafult player(*.upl) Files automatically when using the '''-mod=''' Switch. | ||
− | |||
− | |||
− | |||
− | |||
**You have been able to change the MusicPath since 3204. Since Beta 3229+ MusicPath has become an Array and you can set it up like: | **You have been able to change the MusicPath since 3204. Since Beta 3229+ MusicPath has become an Array and you can set it up like: | ||
Line 92: | Line 81: | ||
}} | }} | ||
+ | **Trying to modify the '''UT2k4\SaveDir'''will make the game crash instead you can set UT2K4SP_Main.default.ProfilePrefix="Mod_" and it will keep you save games seperate from in the '''ModRootDir\Saves''' dir.'''-Paths=../Saves/*.uvx''' | ||
==Links== | ==Links== | ||
Line 104: | Line 94: | ||
http://udn.epicgames.com/Two/ImprovedModSupport#IMPROVED_MOD_SUPPORT | http://udn.epicgames.com/Two/ImprovedModSupport#IMPROVED_MOD_SUPPORT | ||
− | + | http://geeks.beyondunreal.com/ut2004/docs-modsystem.php | |
− | + | ||
− | + |
Revision as of 23:51, 19 October 2005
Contents
Default.ini File in your UT2k4 Dir
Contains settings which are used for creating the UT2004.ini on your first run of the game. Thats why you'll find this file is very similar to UT2004.ini].
The Default.ini is also used when creating a mod using the mod system included with UT2k4.This file will contains all links required to run custom content in your modification using the -mod= switch. Although use of the mod system is not required it is recommended.
Using Default.ini to Compile with mod Support.
Recommended reading: Before getting started.
To compile your mod using the -mod= switch you must first create a Default.ini in your UT2k4Dir\ModRootDir\System. I have provided a template below. Replace mod with your mods directory, please be consistant. Also replace mod packages with your own.
- Whats going on?
-
- When you compile or run with the -mod= switch this Default.ini file will be merged with the current UT2004.ini in your UT2k4Dir and a new ini file will be created in your ModRootDir\System and will have the same name as the ModDir.
- The + and - are operators (Reffered to on UDN as modifiers) used to add and subtract Keys (Dynamic Array's) like Paths,ServerPackages,EditPackages from the current ut2004.ini.
- If no operator exists, one of two things will happen. If the key already exists the value of the key will be overwritten by the new value. If the key does not exist, the key and value will be added.
- If no ut2004.ini is present the resultant ini file will be created from merging default.ini in the UT2k4Dir and the one from ModRootDir.
- -Paths=../Textures/.utx – This for example, would remove the original texture package directory from the resultant Mod.ini File.
- Keys get processed in the order they appear, This can be useful as in the following:
-
-
- This is actually recommended because all cache files will be placed in the first CacheRecordPath found. Since this removes the CacheRecordPath used by UT2k4 then inserts the mods CacheRecordPath followed by the UT2k4 one this means the mods Path will appear before UT2k4's in our Mod.ini.
- Another good technique for speeding compile times is to use and for supressing packages in the Mod.ini.
-
- This teqnique can be used in both [Engine.GameEngine] and [Editor.EditorEngine]
-
- Notes
- When running with -mod= switch, the main *.log file will by default be placed in your "ModRootDir\System" directory and be called Mod.log. All other secondary log files (such as ucc.log) will still be created in the UT2k4's system directory.
- Ut2k4 will find karma(*.ka) and deafult player(*.upl) Files automatically when using the -mod= Switch.
- You have been able to change the MusicPath since 3204. Since Beta 3229+ MusicPath has become an Array and you can set it up like:
-
- Trying to modify the UT2k4\SaveDirwill make the game crash instead you can set UT2K4SP_Main.default.ProfilePrefix="Mod_" and it will keep you save games seperate from in the ModRootDir\Saves dir.-Paths=../Saves/*.uvx
Links
- Game Ini File
- UT2004.ini
- UT2k4Mod.ini – For Epics Mod system
- UT2k4 Default.ini – Used for generating UT2004.ini's
- UT2k4 DefaultUser.ini – Used for generating UT2004.ini's
- UT2004.ini
External Links
http://udn.epicgames.com/Two/ImprovedModSupport#IMPROVED_MOD_SUPPORT