Giter Club home page Giter Club logo

sprpck's Introduction

sprpck

-------------------------------
Lynx Sprite Packer Ver 2.3
(c) 1997..2021 42Bastian Schick
               Matthias  Domin
Contributions from
               Karri Kaksonen
               LordKraken
-------------------------------
Usage :
sprpck [-c][-v][-O0][-e#][-s#][-t#][-u][-p#]
[-axxxyyy][-Swwwhhh][-oxxxyyy][-iwwwhhh]
[-rxxxyyy] [-z] in [out]
or
sprpck batchfile
-O0      : do no optimize literal/packed
-e<pen>  : compress until color is only <pen>
-c       : compress color index
-v       : don't be quiet
-s       : sprite-depth 4,3,2,1 bit(s) per pixel (4 default)
-t       : type 0 = 4bit raw,  1 = 8bit raw, 2 = SPS, 3 = PCX (3 is default)
           type 4 = 1bit raw type 5 = PI1 (Atari ST), 6 = MS Windows BMP
-u       : unpacked     (packed is default)
-p       : palette output-format : 0 - C, 1 - ASM, 2 - LYXASS(default)
-axxxyyy : action point (e.g. -a200020)
-Swwwhhh : sprite width and height (input-size is default)
-oxxxyyy : offset in data (e.g. -o010200 )
-iwwwhhh : input size (not needed for PCX)
-rxxxyyy : split picture into yyy * xxx tiles
-z       : (only possible with -c) auto-set sprite-depth
in       : input data
out      : output filename, optional, default is in.spr

Note: With -p0 the sprite is saveed as cc65-Object file !

In batchmode, lines must have the same format as in command
line-mode, only if a input-file is defined in one line it can be
omitted in the following lines.

1bit raw =  8 pels per byte ( => -s1 is default )
4bit raw => 2 pels per byte
8bit raw => 1 pel  per byte
SPS      => ASCII-hex-number per pel (blank = 0)
PCX      => either 8 bits / 1 plane, 4bit / 1 plane or 1 bit / 4 planes
PI1      => 1 bit / 4 planes , Atari ST Low Rez-format
BMP      => either 8 bits or 4 bits not RLE encoded

sprpck's People

Contributors

42bastian avatar kanedafr avatar lordkraken avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

sprpck's Issues

pal export is broken

Hi,
for some reason, it seems pal export is broken using version 2.3

if I use BMP format -> pal.g is zeroed, pal.br is ok

sprpck -s4 -p2 -t6 -u -v gfx/logo_sm.bmp

pal: DP 000,006,00A,00E,004,045,049,00F,007,07F,008,08F,00A,0AC,0CF,0F0

if I use PCX format -> pal is zeroed

convert gfx/logo_sm.bmp -depth 4 -compress none gfx/logo_sm.pcx
sprpck -s4 -p2 -t3 gfx/logo_sm.pcx

pal: DP 000,000,000,000,000,000,000,000,000,000,000,000,000,000,000,000

I could provide the file if needed, but I have the same result with any image I tried
I also tried with -p0, same result
I looked at your code, but I was unable to find what was wrong.
I only noticed rgb var is set twice when using PCX format but probably for a good reason

I built sprpck from source on macOSX, if it could be the reason
It's similar to this issue, which occurred on Win64
https://atariage.com/forums/topic/251579-sprpck-and-palette/

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.