Welcome,
Guest
. Please
login
or
register
.
May 21, 2025, 02:09:05 AM
News:
tastyspleen.net discord server:
http://discord.tastyspleen.net
Home
Forum
Help
TinyPortal
Search
Calendar
Login
Register
tastyspleen::quake 2 community
»
Forum
»
Quake Related Topics
»
Quake
(Moderator:
[BTF]DeathStalker
) »
Any program that can create .sp2 files?
« previous
next »
Print
Pages: [
1
]
Go Down
Author
Topic: Any program that can create .sp2 files? (Read 4139 times)
decino
Full Member
Posts: 191
Yeah.
Rated:
Any program that can create .sp2 files?
«
on:
April 09, 2010, 01:44:05 PM »
It should be possible, WODX and Gloom use custom .sp2 files (animated sprites), but I can't find anything on Google or w/e.
I know a .sp2 contains x sprite.pcx files located in the sprites folder, just don't know how to merge them into a .sp2.
Anyone knows a program?
«
Last Edit: April 09, 2010, 01:45:51 PM by decino
»
Logged
peewee_RotA
Brobdingnagian Member
Posts: 4152
Hi, I'm from the gov'ment and I'm here to help you
Rated:
Re: Any program that can create .sp2 files?
«
Reply #1 on:
April 09, 2010, 02:25:15 PM »
Wasn't it the same tool that makes .cin files?
qtool?
Paril knows all this. He even started a new sp2 editor once. Don't think he finished that program.
Logged
GOTO ROTAMODS (rocketgib)
GOTO ROTAMAPS (fireworks)
HappyFriar- q2server.fuzzylogicinc.com
Tune in to the
Tastycast!!!!
http://dna.zeliepa.net
r1
Full Member
Posts: 238
Rated:
Re: Any program that can create .sp2 files?
«
Reply #2 on:
April 18, 2010, 12:53:40 AM »
http://www.wodx.net/files/hgspr2.zip
Logged
|iR|Focalor
Irrepressibly Profuse Member
Posts: 15812
Make Democrats Unemployed Again
Rated:
Re: Any program that can create .sp2 files?
«
Reply #3 on:
April 18, 2010, 01:05:35 AM »
Last pak I made, I edited the BFG blast sprite to make it red. Basically I used GIMP and the colorize function to change the color to red. It took a bit of work to hand edit the pcx files to where I could make the alpha color stay the same. Saved all the new ones to PCX. Then converted the PCX ones to PNG and made the pinkish alpha color transparent since I use R1Q2 that can handle PNG images.
I'm not exactly sure what all an SP2 file would contain. Is that basically the open_gl rather than software version of the graphics? Would such a file also contain data for a BFG blast like the green laser beams and little green particles that come from the BFG ball? Reason why I ask... I'd like to be able to change whatever I need to change in order to make those red as well.
Logged
X7
Sr. Member
Posts: 447
Quake II
Rated:
Re: Any program that can create .sp2 files?
«
Reply #4 on:
April 18, 2010, 07:00:53 AM »
The SP2 editor, is a easy to use PCX (to) SP2 maker..
hgspr2_v0.2b.zip A Windows SP2 maker
http://files.volved.com/qsr/qoole250_cd/progs/q2_grafx/hgspr2_v0.2b.zip
http://files.volved.com/qsr/qoole250_cd/progs/q2_grafx/
X7
Logged
Quake II
QwazyWabbit
Carpal Tunnel Member
Posts: 1375
Rated:
Re: Any program that can create .sp2 files?
«
Reply #5 on:
April 18, 2010, 08:24:47 PM »
An sp2 file just references the .pcx files that define the sprite over time. It's kind of an index into the sprite files the engine needs to animate them. Create your sprite .pcx files and then use the tool pointed to by Ruiner and X7 to create the .SP2 file. Note you will have to place the .sp2 and the .pcx files into the appropriate sprites folder or install them together into a .pak
Logged
Slayer :D
Sr. Member
Posts: 426
Rated:
Re: Any program that can create .sp2 files?
«
Reply #6 on:
April 19, 2010, 05:49:42 AM »
Heheheh. I had looked all over the net for a .sp2 editor but couldn't find one, so eventually I programmed my own. The file structure is really very simple, like this:
/*
* The file header for the .SP2 file.
*/
typedef struct
{
char * type; /* magic string, must be "IDS2" */
unsigned long fver; /* file version, must be 2 */
unsigned long frnum; /* number of frames in the sprite */
frame_t frames[]; /* the frames of the sprite (stack declaration because not normally very big) */
} sp2hdr_t;
/*
* Each frame of the .SP2 file (80 bytes)
*/
typedef struct
{
signed long width; /* width of the part of the image you want to use */
signed long height; /* height of the part of the image you want to use */
signed long xorig; /* x-position of where the upper-left corner of the image is */
signed long yorig; /* y-position of where the upper-left corner of the image is */
char * q2path; /* string telling where the .pcx file is (must be 64 bytes long, 0x00 terminated)
for example : "sprites/blorb/borb_1.pcx" */
} frame_t;
This is also in the order in which the data gets written out/read in.
Also, it is little-endian on Windows machines; unsure about others.
Logged
QwazyWabbit
Carpal Tunnel Member
Posts: 1375
Rated:
Re: Any program that can create .sp2 files?
«
Reply #7 on:
April 19, 2010, 01:16:01 PM »
The struct is found in qfiles.h in the original quake2 v3.21 source release.
/*
========================================================================
.SP2 sprite file format
========================================================================
*/
#define IDSPRITEHEADER (('2'<< 24 )+('S'<< 16 )+('D'<< 8 )+'I')
// little-endian "IDS2"
#define SPRITE_VERSION 2
typedef struct
{
int width, height;
int origin_x, origin_y; // raster coordinates inside pic
char name[MAX_SKINNAME]; // name of pcx file
} dsprframe_t;
typedef struct {
int ident;
int version;
int numframes;
dsprframe_t frames[1]; // variable sized
} dsprite_t;
MAX_SKINNAME is 64.
«
Last Edit: April 19, 2010, 01:45:05 PM by QwazyWabbit
»
Logged
decino
Full Member
Posts: 191
Yeah.
Rated:
Re: Any program that can create .sp2 files?
«
Reply #8 on:
April 21, 2010, 01:32:27 AM »
Thanks all, I figured it out a week ago.
I still think hex editing is the most easy way to 'create' sp2 files.
Logged
Print
Pages: [
1
]
Go Up
« previous
next »
tastyspleen::quake 2 community
»
Forum
»
Quake Related Topics
»
Quake
(Moderator:
[BTF]DeathStalker
) »
Any program that can create .sp2 files?
El Box de Shoutamente
Last 10 Shouts:
Yotematoi
May 17, 2025, 08:33:15 AM
Yo desde el año 2007 me enfermé de Q2, es incurable
Morir y revivir es costumbre, lástima q el QT estaba bueno
ImperiusDamian
May 12, 2025, 01:45:35 AM
Quake II is not 27 years old. I refuse to accept THAT much time has gone by.
|iR|Focalor
May 11, 2025, 02:33:39 PM
-Unh0ly-
May 03, 2025, 08:02:46 AM
198.179.6.200:30634
Yotematoi
May 02, 2025, 10:27:47 AM
Note for Player-4109 "Remember, the Guinness Book of Records does not include cowards who shot at someone by treachery."
-Unh0ly-
April 20, 2025, 09:52:16 AM
https://drive.google.com/file/d/1hKRIIKPk_G9TLPpY3B4ZIbVK_00Mbwfw/view?usp=sharing
|iR|Focalor
April 02, 2025, 02:47:07 AM
Yotematoi
February 14, 2025, 12:41:48 PM
|iR|Focalor
February 13, 2025, 07:31:24 AM
I was on DM this morning for the first time in a pretty long time. Seemed fine to me.
0rbisson
February 13, 2025, 04:54:21 AM
DM server is fucked. 2 point blank rockets from spawn and lava damage and player survived? WTF?" Also someone has fucked with the spawn points, every single time no matter how big the map you spawn right in front of the person who killed you last
Show 50 latest
User
Welcome,
Guest
. Please
login
or
register
.
May 21, 2025, 02:09:05 AM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search
Advanced search