Advertisement
illwieckz

q3map2 crunch test bed

Jul 5th, 2018
486
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.08 KB | None | 0 0
  1. # run this within the directory you extracted the dpkdir
  2.  
  3. pakpath=$(realpath .)
  4. dpkdir=${pakpath}/map-station15_*.dpkdir
  5. srffile=$(mktemp)
  6. prtfile=$(mktemp)
  7.  
  8. sed -e 's/_p$/_d/' -i ${dpkdir}/scripts/station15_custom.shader
  9.  
  10. q3map2 -game unvanquished -v -bsp -meta -fs_nomagicpath -fs_pakpath ${dpkdir} -fs_pakpath ${pakpath} -prtfile ${prtfile} -srffile ${srffile} -bspfile ${dpkdir}/maps/station15.bsp -leaktest -custinfoparms ${dpkdir}/maps/station15.map
  11.  
  12. q3map2 -game unvanquished -v -vis -fast -fs_nomagicpath -fs_pakpath ${dpkdir} -fs_pakpath ${pakpath} -prtfile ${prtfile} -saveprt ${dpkdir}/maps/station15.bsp
  13.  
  14. # once these steps are done, you can redo the next step any time you need without redoing the first steps:
  15.  
  16. q3map2 -game unvanquished -v -light -faster -fastallocate -patchshadows -fs_nomagicpath -fs_pakpath ${dpkdir} -fs_pakpath ${pakpath} -srffile ${srffile} -bspfile ${dpkdir}/maps/station15.bsp -lightmapdir ${dpkdir}/maps/station15 ${dpkdir}/maps/station15.map
  17.  
  18. # just to not forget, but once did you have to redo everything from scrach
  19.  
  20. rm "${srffile}"
  21. rm "${prtfile}"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement