Subversion Repositories duke3d_hrp

Compare Revisions

Regard whitespace Rev 411 → Rev 412

/installer/hrp_extract.sh
1,6 → 1,6
#!/bin/sh
 
# Duke Nukem 3D High Resolution Pack Extractor v0.4.2 2012-10-19
# Duke Nukem 3D High Resolution Pack Extractor v0.4.3 2012-11-06
#
# Author: LeoD
# License: ISC license : http://opensource.org/licenses/isc-license.txt
20,6 → 20,7
SET_VERSION=YES # [YES|NO]
EXTRACT_COMMENTED_FILES=NO # [YES|NO]
DUKEPLUS_POLYMOST_COMPATIBILTY_APPROACH=polymost # [none|polymost|polymer|mixed]
ATTRITION_POLYMOST_COMPATIBILTY_APPROACH=polymost # [none|polymost|polymer|mixed]
 
ask()
{
295,9 → 296,9
} # create_polymost_mhk()
 
 
# I really don't know yet if this will become necessary, or if it doesn't make
# I really don't know yet if this will become necessary, or if it does make
# sense at all, but at least the files involved are listed.
dukeplus_polymost_compatibility()
dukeplus_polymost_hrp_compatibility()
{
# dukeplus.def expects some files to be present in the HRP
#
335,7 → 336,7
 
case "$PATCHTYPE" in
polymer)
echo " # Using \"Polymer approach\")"
echo " # (Using \"Polymer approach\")"
cp -pi $SPR/firstperson/2510_devastator.md3 "$SPRE/firstperson"
cp -pi $SPR/firstperson/2510_devastator.png "$SPRE/firstperson"
cp -pi $SPR/firstperson/2510_devastator_s.png "$SPRE/firstperson"
352,7 → 353,7
cp -pi $SPR/firstperson/duke_hand_s.png "$SPRE/firstperson"
;;
polymost)
echo " # Using (\"Polymost approach\")"
echo " # (Using \"Polymost approach\")"
#cp -pi $SPR/firstperson_polymost/2510_devastator.md3 "$SPRE/firstperson"
#cp -pi $SPR/firstperson_polymost/2510_devastator.png "$SPRE/firstperson"
##cp -pi $SPR/firstperson/2510_devastator_s.png "$SPRE/firstperson"
369,7 → 370,7
#cp -pi $SPR/firstperson/duke_hand_s.png "$SPRE/firstperson"
;;
mixed)
echo " # Using (\"Mixed approach\")"
echo " # (Using \"Mixed approach\")"
echo " # Not applied / Not yet implemented"
;;
none)
381,9 → 382,66
;;
esac
 
} # dukeplus_polymost_compatibility()
} # dukeplus_polymost_hrp_compatibility()
 
 
attrition_polymost_hrp_compatibility()
{
# attr_hrp.def expects some files to be present in the HRP
#
# model "highres/sprites/firstperson/2524_pistol.md3" { // most/mer : same MD3 + same skin til r295
# skin { pal 0 file "highres/sprites/firstperson/2524_pistol.png" } // up to DP2.30 DNE/IMP only
# glow { file "highres/sprites/firstperson/2524_pistol_g.png" } // up to DP2.30 DNE/IMP only
 
SPR="highres/sprites"
SPRE="${EXTRACTDIR}/highres/sprites"
PATCHTYPE=$1
 
case "$PATCHTYPE" in
polymer)
echo " # (Using \"Polymer approach\")"
;;
polymost)
echo " # (Using \"Polymost approach\")"
cp -piu $SPR/firstperson_polymost/2524_pistol.md3 "$SPRE/firstperson"
cp -pi $SPR/firstperson_polymost/2524_pistol.png "$SPRE/firstperson"
cp -pi $SPR/firstperson_polymost/2524_pistol_g.png "$SPRE/firstperson"
cp -pi $SPR/firstperson/2530_clip.md3 "$SPRE/firstperson"
#cp -pi $SPR/firstperson/2532_cliphand.md3 "$SPRE/firstperson"
##cp -pi $SPR/firstperson/2532_cliphand.png "$SPRE/firstperson"
#cp -pi $SPR/firstperson/duke_hand_d.png "$SPRE/firstperson/2532_cliphand.png"
;;
mixed)
echo " # (Using \"Mixed approach\")"
cp -piu $SPR/firstperson_polymost/2524_pistol.md3 "$SPRE/firstperson"
cp -pi $SPR/firstperson_polymost/2524_pistol.png "$SPRE/firstperson"
cp -pi $SPR/firstperson_polymost/2524_pistol_g.png "$SPRE/firstperson"
cp -pi $SPR/firstperson/2530_clip.md3 "$SPRE/firstperson"
#cp -pi $SPR/firstperson/2532_cliphand.md3 "$SPRE/firstperson"
##cp -pi $SPR/firstperson/2532_cliphand.png "$SPRE/firstperson"
#cp -pi $SPR/firstperson/duke_hand_d.png "$SPRE/firstperson/2532_cliphand.png"
cp -pi $SPR/firstperson/2544_rpg.md3 "$SPRE/firstperson"
cp -pi $SPR/firstperson/2544_rpg_d.png "$SPRE/firstperson/2544_rpg.png"
cp -pi $SPR/firstperson/2544_rpg_n.png "$SPRE/firstperson"
cp -pi $SPR/firstperson/2544_rpg_s.png "$SPRE/firstperson"
cp -pi $SPR/firstperson/duke_hand_d.png "$SPRE/firstperson"
cp -pi $SPR/firstperson/duke_hand_n.png "$SPRE/firstperson"
cp -pi $SPR/firstperson/duke_hand_s.png "$SPRE/firstperson"
cp -pi $SPR/firstperson/muzzle_flash_01.png "$SPRE/firstperson"
cp -pi highres/common/transp.png "${EXTRACTDIR}/highres/common"
;;
none)
echo " Not applied"
#echo " # Not yet implemented"
;;
*)
echo " # Bad parameter"
;;
esac
 
} # attrition_polymost_hrp_compatibility()
 
 
parse_defs()
{
echo "$1"
516,7 → 574,10
create_polymost_mhk
 
echo "### DukePlus<>Polymost HRP compatibility patch ... ###"
dukeplus_polymost_compatibility $DUKEPLUS_POLYMOST_COMPATIBILTY_APPROACH
dukeplus_polymost_hrp_compatibility $DUKEPLUS_POLYMOST_COMPATIBILTY_APPROACH
 
echo "### Attrition<>Polymost HRP compatibility patch ... ###"
attrition_polymost_hrp_compatibility $ATTRITION_POLYMOST_COMPATIBILTY_APPROACH
fi
 
echo "### Parsing DEF file hierarchy ... ###"
/E2L2.mhk
186,7 → 186,8
light 162 46784 -23168 -35840 1100 255 235 225 0 0 1536 -1 0 0 0 -1
 
// by Roma Loom (commented out)
/*light 184 39567 -41287 -25744 5400 255 255 255 0 0 1408 -1 0 0 0 -1
/*
light 184 39567 -41287 -25744 5400 255 255 255 0 0 1408 -1 0 0 0 -1
light 158 46752 -27099 -44544 900 255 255 255 0 0 1536 -1 0 0 0 -1
light 75 46709 -20523 -41728 900 255 255 255 0 0 1536 -1 0 0 0 -1
light 159 46674 -27265 -45312 900 255 255 255 0 0 1536 -1 0 0 0 -1
219,4 → 220,5
light 245 30723 -31296 -72320 2000 45 41 255 0 0 1536 -1 0 0 0 -1
light 245 34687 -29407 -65664 700 145 155 255 0 0 1536 -1 0 0 0 -1
light 249 28347 -19282 -55882 1300 255 255 1 0 0 1536 -1 0 0 0 -1
light 127 27136 -19200 -53472 900 255 255 255 0 0 1536 -1 0 0 0 -1*/
light 127 27136 -19200 -53472 900 255 255 255 0 0 1536 -1 0 0 0 -1
*/
/E2L3.mhk
321,7 → 321,8
light 220 35328 43008 -39168 2200 115 115 115 0 0 1536 -1 0 0 0 -1
 
// by Roma Loom (commented out)
/* light 310 29153 44461 -104704 900 255 255 255 0 0 1536 -1 0 0 0 -1
/*
light 310 29153 44461 -104704 900 255 255 255 0 0 1536 -1 0 0 0 -1
light 399 29184 46848 -95616 900 255 11 1 0 0 1536 -1 0 0 0 -1
light 312 29298 44096 -106368 1700 255 255 255 0 0 1536 -1 0 0 0 -1
light 417 25725 37171 -108288 1300 255 51 1 0 0 1536 -1 0 0 0 -1
378,4 → 379,5
light 323 8714 30062 -123793 800 175 135 135 0 0 1536 -1 0 0 0 -1
light 322 8822 28417 -111360 700 255 255 255 0 0 1536 -1 0 0 0 -1
light 233 -4133 34931 91392 800 175 135 135 0 0 1536 -1 0 0 0 -1
light 419 29184 5888 -60160 1500 255 175 175 0 0 1536 -1 0 0 0 -1 */
light 419 29184 5888 -60160 1500 255 175 175 0 0 1536 -1 0 0 0 -1
*/
/E2L4.mhk
270,7 → 270,8
light 257 -2528 14328 -144384 1800 150 175 150 0 0 1536 500 0 0 0 -1
 
// by Roma Loom (commented out)
/*light 294 14592 15360 263424 3000 95 95 95 0 0 1536 -1 0 0 0 -1
/*
light 294 14592 15360 263424 3000 95 95 95 0 0 1536 -1 0 0 0 -1
light 364 12800 11264 260960 900 131 235 131 0 0 1536 -1 0 0 0 -1
light 297 13434 10627 254976 1800 95 185 95 0 0 1536 -1 0 0 0 -1
light 285 8192 4608 262016 4600 95 95 95 0 0 1536 -1 0 0 0 -1
332,4 → 333,5
light 188 57088 -18176 173056 4500 105 105 185 0 0 1536 -1 0 0 0 -1
light 188 57088 -18176 161792 1500 105 105 185 0 0 1536 -1 0 0 0 -1
light 188 57088 -15616 173056 4500 105 105 185 0 0 1536 -1 0 0 0 -1
light 188 57088 -15616 161792 1500 105 105 185 0 0 1536 -1 0 0 0 -1*/
light 188 57088 -15616 161792 1500 105 105 185 0 0 1536 -1 0 0 0 -1
*/
/E2L5.mhk
193,7 → 193,8
light 153 56192 -11264 32000 2000 16 38 16 0 0 1536 -1 0 0 0 -1
 
// by Roma Loom (commented out)
/*light 187 59648 -11264 20736 1700 175 255 175 0 0 1536 -1 0 0 0 -1
/*
light 187 59648 -11264 20736 1700 175 255 175 0 0 1536 -1 0 0 0 -1
light 172 50184 -9365 11648 500 255 1 1 0 0 1536 -1 0 0 0 -1
light 146 50187 -8575 11520 500 255 1 1 0 0 1536 -1 0 0 0 -1
light 145 50158 -7935 14472 2400 145 145 145 0 0 1536 -1 0 0 0 -1
223,4 → 224,5
light 195 -5129 921 -68608 1600 125 125 125 0 0 1536 -1 0 0 0 -1
light 202 -10367 -2533 -71760 2600 185 185 245 0 0 1536 -1 0 0 0 -1
light 207 12336 44027 -33882 1300 165 255 165 0 0 1536 -1 0 0 0 -1
light 205 12234 39928 -25472 1600 175 175 175 0 0 1536 -1 0 0 0 -1*/
light 205 12234 39928 -25472 1600 175 175 175 0 0 1536 -1 0 0 0 -1
*/
/E2L6.mhk
212,7 → 212,8
light 321 13888 -12736 -19456 1500 255 255 200 0 0 1536 -1 0 0 0 -1
 
// by Roma Loom (commented out)
/*light 242 1536 5888 -33920 3300 95 95 95 0 0 1536 -1 0 0 0 -1
/*
light 242 1536 5888 -33920 3300 95 95 95 0 0 1536 -1 0 0 0 -1
light 201 -2279 -639 9472 500 205 205 205 0 0 1536 -1 0 0 0 -1
light 202 -3355 -702 9344 500 205 205 205 0 0 1536 -1 0 0 0 -1
light 47 1548 888 -13568 1400 165 165 165 0 0 1536 -1 0 0 0 -1
238,4 → 239,5
light 214 16031 -33391 -14720 1200 145 145 145 0 0 1024 -1 0 0 0 -1
light 214 14648 -33407 -15104 1200 145 145 145 0 0 0 -1 0 0 0 -1
light 217 15356 -35138 -18048 1200 145 145 145 0 0 512 -1 0 0 0 -1
light 50 24530 -19433 -7552 2300 125 125 125 0 0 1536 -1 0 0 0 -1*/
light 50 24530 -19433 -7552 2300 125 125 125 0 0 1536 -1 0 0 0 -1
*/
/E2L7.mhk
333,7 → 333,8
light 368 1792 17920 -16384 300 255 255 0 0 0 1536 -1 0 0 0 -1
 
// by Roma Loom (commented out)
/*light 250 26496 8736 1024 500 165 165 165 0 0 1536 -1 0 0 0 -1
/*
light 250 26496 8736 1024 500 165 165 165 0 0 1536 -1 0 0 0 -1
light 250 26496 10208 1664 500 165 165 165 0 0 1536 -1 0 0 0 -1
light 265 25885 9471 -5888 1000 165 165 165 0 0 1536 -1 0 0 0 -1
light 278 32573 16766 -2560 900 165 165 165 0 0 1536 -1 0 0 0 -1
360,4 → 361,5
light 330 -4928 2336 274740 3300 125 125 125 0 0 1536 -1 0 0 0 -1
light 14 28832 13760 -5324 1200 125 125 125 0 0 1536 -1 0 0 0 -1
light 2 23016 23666 -4812 1000 125 125 125 0 0 1536 -1 0 0 0 -1
light 131 23251 23447 -23680 1300 125 125 125 0 0 1536 -1 0 0 0 -1*/
light 131 23251 23447 -23680 1300 125 125 125 0 0 1536 -1 0 0 0 -1
*/
/E2L8.mhk
443,7 → 443,8
light 697 22016 -46592 95488 2000 155 155 255 0 0 1536 -1 0 0 0 -1
 
// by Roma Loom (commented out)
/*light 373 -1665 -11148 -31488 1000 125 125 125 0 0 1536 -1 0 0 0 -1
/*
light 373 -1665 -11148 -31488 1000 125 125 125 0 0 1536 -1 0 0 0 -1
light 373 -2943 -11139 -30720 1000 125 125 125 0 0 1536 -1 0 0 0 -1
light 633 3520 -9664 -57292 2900 95 95 95 0 0 1536 -1 0 0 0 -1
light 457 1297 3613 -18124 1000 125 125 125 0 0 512 -1 0 0 0 -1
538,4 → 539,5
light 192 7168 -43008 49460 2800 125 125 125 0 0 1536 -1 0 0 0 -1
light 160 11008 -38400 72448 2500 125 125 125 0 0 1536 -1 0 0 0 -1
light 606 -9216 -23552 -172364 2200 125 125 125 0 0 1536 -1 0 0 0 -1
light 604 7680 -23552 -49664 1900 95 95 95 0 0 1536 -1 0 0 0 -1*/
light 604 7680 -23552 -49664 1900 95 95 95 0 0 1536 -1 0 0 0 -1
*/
/E2L9.mhk
243,7 → 243,8
light 31 19712 36864 -38656 2000 10 10 10 0 0 1536 -1 0 0 2 -1
 
// by Roma Loom (commented out)
/* light 94 40704 13312 19200 1500 155 155 155 0 0 1536 -1 0 0 0 -1
/*
light 94 40704 13312 19200 1500 155 155 155 0 0 1536 -1 0 0 0 -1
light 210 44046 22361 25856 1000 155 255 155 0 0 1536 -1 0 0 0 -1
light 115 34579 30741 18432 1500 155 155 155 0 0 1536 -1 0 0 0 -1
light 138 36096 30720 86272 1500 155 155 155 0 0 1536 -1 0 0 0 -1
275,4 → 276,5
light 188 17212 28125 -19328 1300 185 185 185 0 0 1536 -1 0 0 0 -1
light 177 13545 27075 -9728 2300 65 65 65 0 0 1536 -1 0 0 0 -1
light 6 12856 22482 -5632 2500 85 85 85 0 0 1536 -1 0 0 0 -1
light 183 16917 22521 -12544 1200 175 255 175 0 0 1536 -1 0 0 0 -1 */
light 183 16917 22521 -12544 1200 175 255 175 0 0 1536 -1 0 0 0 -1
*/
/E3L11.mhk