shithub: sce

Download patch

ref: d54fa816224b4611420dd2f8c3931daaeab29514
parent: e8b63e57ae6b804c15dce24c87db7edff6f8ba45
author: qwx <qwx@sciops.net>
date: Mon Sep 7 17:41:58 EDT 2020

genspr: fix a drone move sprite frame and add badlands tileset

the sprite offsets made movement look horrible
not sure what the pattern is here

--- a/utils/genspr
+++ b/utils/genspr
@@ -4,6 +4,10 @@
 bind -a $home/p/sce/utils /bin
 bind -ca /sys/games/lib/sce .
 
+# pwd must contain extracted object bitmaps and corresponding shadows,
+# tile palette, tileset (wpe vr4 vx4) files
+# and sctile in /bin
+
 fn unit{
 	n=`{echo '(' $#* - 4 ')' / 2 | pc -n}
 	s1=`{echo 5 + $n - 1 | pc -n}
@@ -18,6 +22,7 @@
 	}
 }
 
+# individual units
 unit drone 32 -48 -47 (0 1 2 3 4) (00 01 02 03 04)
 unit scv 32 -26 -14 0 00
 
@@ -31,3 +36,14 @@
 # command center
 sceass -s control.grp.00005.bit control 00 00 -2 -32
 crop -t -2 -32 tccShad.grp.00000.bit >controls.00.00.bit
+
+# generate tileset palette and tileset bitmap
+sctile badlands
+rm badlands.?[1-4]???.bit badlands.00[1-9]??.bit badlands.000[3-9]?.bit badlands.000^(25 26 27 28 29)^.bit badlands.00000.bit
+
+# now fix the shit we just generated...
+# (FIXME: remove the need for this)
+scefix
+crop -t -2 0 drone.01.23.bit > a && mv a drone.01.23.bit
+crop -t 2 0 drone.03.23.bit > a && mv a drone.03.23.bit
+crop -t 2 0 drone.04.23.bit > a && mv a drone.04.23.bit