CoC Patch Making Process

User avatar
Alundaio
S.T.A.L.K.E.R.
Posts: 1368
Joined: 26 May 2012, 22:26

CoC Patch Making Process

Postby Alundaio » 11 Jan 2016, 22:08

http://www.epicstalker.com/uploads/CoC_Patch_Maker.zip

This is a series of batch files that I created to make the process of creating the *.db files with xrCompress.exe a hell of a lot less time consuming. The bat files are setup to rename the files to xpatch_01_*.db but it can still be used for whatever purpose by renaming them after the process.


Instructions:
    Creating an xpatch
      1. Follow the file structure below. Copy only these files/folders into the relevant patch folder you want to create.
      2. run the _Create_xpatch_*.cmd to create a new *.db inside the 'patch' directory

    Creating levels db
      1. Places extracted gamedata\levels into xpatch_maps\gamedata\levels
      2. run _Restructure_Levels_Directory.cmd. This restructures gamedata\levels into <level_name>\gamedata\levels for each level
      3. run _Create_xpatch_maps.cmd and output will be found in 'maps' directory



File Structure:
    config
      gamedata\ai
      gamedata\anims
      gamedata\configs
      gamedata\scripts

    resource


      gamedata\meshes
      gamedata\shaders
      gamedata\textures
      gamedata\gamemtl.xr
      gamedata\lanims.xr
      gamedata\particles.xr
      gamedata\senvironment.xr
      gamedata\shaders.xr
      gamedata\shaders_xrlc.xr

    sound

      gamedata\sounds

    spawn

      gamedata\spawns

    <level_name>
      gamedata\levels


The files below cannot be compressed because of the use of custom lua scripted ini/xml parser that examines these files explicitly:

Code: Select all

gamedata\atmosfear_options.ini
gamedata\axr_options.ini
gamedata\configs\ai_tweaks\simulation_objects.ltx
gamedata\configs\gameplay\character_desc_general.xml
gamedata\configs\misc\dialog_manager.ltx
gamedata\configs\atmosfear_default_settings.ltx
gamedata\configs\beh_escape.ltx
gamedata\configs\beh_gulag_jobs.ltx
gamedata\configs\beh_marsh.ltx
"I have a dream that one day this community will rise up and live out the true meaning of its creed: "We hold these truths to be self-evident; that all mods are created equal."

User avatar
Alundaio
S.T.A.L.K.E.R.
Posts: 1368
Joined: 26 May 2012, 22:26

Re: CoC Patch Making Process

Postby Alundaio » 28 Jan 2016, 20:22

small note: There is a mistake in _Create_xpatch_maps.cmd. In the file there are 2 places where xmaps needs to be renamed to xpatch_maps

Code: Select all

@echo off
for /d %%d in (xpatch_maps/*) do (
   if not "%%d" == gamedata (
      @start /W xrCompress.exe xpatch_maps\%%d\gamedata -ltx xrCompress_options.ltx
      move /y xpatch_maps\%%d\gamedata.pack_#0 maps\
      
      if exist maps\gamedata.pack_#1 (
         ren maps\gamedata.pack_#0 %%d.db0
         ren maps\gamedata.pack_#1 %%d.db1
         ren maps\gamedata.pack_#2 %%d.db2
         ren maps\gamedata.pack_#3 %%d.db3
         ren maps\gamedata.pack_#4 %%d.db4
         ren maps\gamedata.pack_#5 %%d.db5
         ren maps\gamedata.pack_#6 %%d.db6
         ren maps\gamedata.pack_#7 %%d.db7
         ren maps\gamedata.pack_#8 %%d.db8
         ren maps\gamedata.pack_#9 %%d.db8
      ) Else (
         ren maps\gamedata.pack_#0 %%d.db
      )
   )
)
"I have a dream that one day this community will rise up and live out the true meaning of its creed: "We hold these truths to be self-evident; that all mods are created equal."


Return to “General Discussion”

Who is online

Users browsing this forum: No registered users and 1 guest

cron