Skip to content

Commit

Permalink
2007-02-19 Krzysztof Kosciuszkiewicz <[email protected]>
Browse files Browse the repository at this point in the history
	* V132
	* Merged changes from B1-theora_and_ogg:
	* All videos and music now use theora and vorbis.
	* New directory structure for audio, video and game data.
	* Win32 cross-compilation and binary installer setup.
	* Fixes in drawing code, mostly related to tracking screen updates.
  • Loading branch information
drvee committed Feb 19, 2007
1 parent c53677d commit 57a0fa2
Show file tree
Hide file tree
Showing 49 changed files with 2,544 additions and 1,738 deletions.
2 changes: 2 additions & 0 deletions Buzz_inc.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,6 @@ int never_fail;

#include "macros.h" // Collected Macros

#include "fs.h"

#define random brandom
155 changes: 155 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,158 @@
2007-02-19 Krzysztof Kosciuszkiewicz <[email protected]>

* V132

* Merged changes from B1-theora_and_ogg:

* All videos and music now use theora and vorbis.

* New directory structure for audio, video and game data.

* Win32 cross-compilation and binary installer setup.

* Fixes in drawing code, mostly related to tracking screen updates.

2007-02-19 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V12

* Fixed stills/movies button in preferences screen.

* Fixed roster editing screen.

2007-02-19 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V11

* Manpage moved to category 6, some changes there.

* Added rules for building gamedata tarballs.

2007-02-19 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V10

* Added windows installer configuration file. To build one you need
Nullsoft Scriptable Install System (nsis). Package with same name is in
debian repositories.

* Added support for win32 environment variables.

* Added icon file Shuttle.ico found on Peyre's page.

* Verified that current setup works fine with my Win XP installation.

* Hacked the os_win32 directory so one can have separate builds from same
configure.in and Makefile.

* Changes to Makefile.in to make it more configure friendly.

2007-02-19 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V9

* Fixed displaying failed mission steps, in replay too.

* Changes in audio, back to U8 and now using SDL_MixAudio().

* Added screen update while querying for savegame description.

* Some enchancements in checkin3 script.

2007-02-17 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V8

* New gamedata directory layout as discussed in e-mails.

* New module "fs" implementing filesystem access functions.

* New module "options" implementing preferences setup.

* Changes in ordering configure tests to match autoconf documentation.

* Removed frm file implementation.

* race.h.in now is generated automatically by autoheader.

* Displaying failure sequences is broken and needs fixing.

* Removed CONFIG file support, need to include it again.

2007-02-16 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V7

* Added fades in intro.c

* Fixed almost all remaining fades.

* Some changes with redraws, fades and music in port.c

* Sounds accompanying spots are now properly silenced.

* News and spot sounds now use Vorbis audio.

* Removed option to turn off fades.

* Buttons now properly interact with dirty rectangle tree.

* In the middle of rewriting gamedata access code...

2007-02-15 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V6

* Static news event images are now displayed correctly.

* Added keyboard autorepeat.

2007-02-14 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V5

* mknews.c can overlay "continue" button on newscaster movies.

* Some fade-related fixes (unification, redraws).

* Fixed a bug corrupting EVENT.TMP at beginning of turn.

2007-02-14 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V4

* Game now uses signed 8bit audio (easier to mix).

* Rewrote audio mixer & fixed cracks and noises.

* Fixed audio lags in windows.

* Fixed mingw build (conflicting defines of min and max macros).

2007-02-14 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V3

* Sorry for previous log messages, now using new checkin3 script.

2007-02-14 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V2

* Removed CONFIG_THEORA_VIDEO define and all dependant code.

* Ogg, Vorbis and Theora are now required to build raceintospace.

* Removed dependency on Vorbisfile, mmfile has the same functionality.

2007-02-14 Krzysztof Kosciuszkiewicz <[email protected]>

* B1-V1

* New branch for replacing old audio & video with theora and vorbis

* News now use theora files, but this is still not perfect.

2007-02-12 Krzysztof Kosciuszkiewicz <[email protected]>

* V131
Expand Down
151 changes: 85 additions & 66 deletions Makefile.in
Original file line number Diff line number Diff line change
@@ -1,11 +1,29 @@
# @configure_input@

CC=@CC@
LIBS=@LIBS@ @OGG_LIBS@ @VORBIS_LIBS@ @VORBISFILE_LIBS@ @SDL_LIBS@
CPPFLAGS=@CPPFLAGS@
PROG_NAME=@PACKAGE_TARNAME@@EXEEXT@
CFLAGS =-g -Wall -std=c99 @CFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @SDL_CFLAGS@
LIBS=@LIBS@ @OGG_LIBS@ @VORBIS_LIBS@ @SDL_LIBS@
CPPFLAGS=@CPPFLAGS@ @OGG_CFLAGS@ @VORBIS_CFLAGS@ @SDL_CFLAGS@ \
-DCONFIG_DATADIR=\"${DATA_DIR}\"
PACKAGE_TARNAME=@PACKAGE_TARNAME@
PROG_NAME=${PACKAGE_TARNAME}@EXEEXT@
CFLAGS =-g -Wall -std=c99 @CFLAGS@
TAR_NAME=@PACKAGE_TARNAME@-@PACKAGE_VERSION@
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
datadir = @datadir@
datarootdir = @datarootdir@
mandir = @mandir@
docdir = @docdir@
DATA_DIR=${datarootdir}/${PACKAGE_TARNAME}

# HACK - use vpath to search for files in win32 build
vpath %.@OBJEXT@
vpath %.c
vpath %.h

vpath %.c ../
vpath %.h ../

ACLOCAL_FLAGS = -I m4

Expand All @@ -16,96 +34,83 @@ EXTRA_WARNINGS = -Wextra -Wno-unused-parameter \
# Personal Makefile
-include Makefile.$(LOGNAME)

PROGS = imgsplit vtest decode getport getvab mtest sdltest
PROGS = $(addsuffix @EXEEXT@, \
imgsplit vtest decode getport getvab mtest sdltest vtest2)

EXTRA_SOURCES = README COPYING DEVELOPER ChangeLog \
raceintospace.1 \
configure Makefile.in Makefile race.h.in \
m4

DESTDIR=/

BARIS_HFILES = av.h Buzz_inc.h data.h endianness.h externs.h gamedata.h \
int_types.h macros.h mis.h music.h pace.h proto.h records.h \
soundfx.h soundint.h mmfile.h

BARIS_OBJS = admin.o aimast.o aimis.o aipur.o ast0.o ast1.o \
ast2.o ast3.o ast4.o budget.o crew.o endgame.o \
endianness.o \
futbub.o future.o hardef.o intel.o intro.o main.o mc2.o mc.o \
mis_c.o mis_m.o museum.o newmis.o news.o news_sup.o \
news_suq.o \
place.o port.o prefs.o prest.o radar.o rdplex.o records.o \
replay.o review.o rush.o start.o \
vab.o pace.o gx.o gr.o sdl.o music.o gamedata.o

ifeq (@theora_video@,yes)
BARIS_OBJS += mmfile.o
endif

ifeq (@have_theora@@have_ogg@@have_vorbis@,yesyesyes)
PROGS += vtest2
endif
int_types.h macros.h mis.h music.h pace.h proto.h records.h soundfx.h \
soundint.h mmfile.h options.h fs.h

BARIS_OBJS = $(addsuffix .@OBJEXT@, \
admin aimast aimis aipur ast0 ast1 ast2 ast3 ast4 budget crew endgame \
endianness futbub future hardef intel intro main mc2 mc mis_c mis_m museum \
newmis news news_sup news_suq place port prefs prest radar rdplex records \
replay review rush start vab pace gx gr sdl music gamedata mmfile options fs \
)

all: $(PROG_NAME)

extra: all $(PROGS)

rpm_all: raceintospace
rpm_all: $(PROG_NAME)

install: raceintospace
mkdir -p $(DESTDIR)/usr/bin
mkdir -p $(DESTDIR)/usr/share/man/man1
mkdir -p $(DESTDIR)/usr/share/doc/raceintospace
mkdir -p $(DESTDIR)/usr/share/raceintospace/music
install -c -m 755 raceintospace $(DESTDIR)/usr/bin/raceintospace
gzip < raceintospace.1 \
> $(DESTDIR)/usr/share/man/man1/raceintospace.1.gz
install -c -m 644 README $(DESTDIR)/usr/share/doc/raceintospace/.
install: $(PROG_NAME)
mkdir -p ${bindir}
mkdir -p ${mandir}/man6
mkdir -p ${docdir}
mkdir -p $(DATA_DIR)
install -c -m 755 $(PROG_NAME) ${bindir}
gzip < $(PROG_NAME).6 > ${mandir}/man6/$(PROG_NAME).6.gz
install -c -m 644 README ${docdir}/.

rpm_install: install
cp -pr /usr/share/raceintospace/music/*.ogg \
$(DESTDIR)/usr/share/raceintospace/music/.
cp -pr ./audio $(DATA_DIR)
cp -pr ./video $(DATA_DIR)
cp -pr ./gamedata $(DATA_DIR)

uninstall:
rm -f $(DESTDIR)/usr/bin/raceintospace
rm -f $(DESTDIR)/usr/share/man/man1/raceintospace.1*
rm -rf $(DESTDIR)/usr/share/doc/raceintospace
rm -f $(DESTDIR)/usr/share/raceintospace/README
rm -f ${bindir}/$(PROG_NAME)
rm -f ${mandir}/man6/$(PROG_NAME).6*
rm -rf ${docdir}
rm -rf $(DATA_DIR)

# cheat, we still use CC but print LD
$(PROG_NAME): $(BARIS_OBJS)
@echo "$(LD) ...flags... -o $@ ...libs..."
@$(CC) $(LDFLAGS) -o $(PROG_NAME) $(BARIS_OBJS) $(LIBS)
@$(CC) $(CFLAGS) -o $(PROG_NAME) $(BARIS_OBJS) $(LIBS)

.c.o:
@echo "$(CC) ...flags... -c $*.c"
@$(CC) $(CFLAGS) $(EXTRA_WARNINGS) -O -c -o TMP.o $*.c
@$(CC) $(CFLAGS) $(EXTRA_WARNINGS) -c $*.c
.c.@OBJEXT@:
@echo "$(CC) ...flags... -c $<"
@$(CC) $(CPPFLAGS) $(CFLAGS) $(EXTRA_WARNINGS) -c $<

vtest2: vtest2.o mmfile.o
$(CC) $(LDFLAGS) -o vtest2 vtest2.o mmfile.o @OGG_LIBS@ @VORBIS_LIBS@ -ltheora @SDL_LIBS@
vtest2@EXEEXT@: $(addsuffix @OBJEXT@, vtest2 mmfile)
$(CC) $(CFLAGS) -o $@ $^ @OGG_LIBS@ @VORBIS_LIBS@ -ltheora @SDL_LIBS@

imgsplit: imgsplit.o
$(CC) $(CFLAGS) -o imgsplit imgsplit.o -lm
imgsplit@EXEEXT@: imgsplit.@OBJEXT@
$(CC) $(CFLAGS) -o $@ $^ -lm

vtest: vtest.o
$(CC) $(CFLAGS) -o vtest vtest.o -lasound -lm
vtest@EXEEXT@: vtest.@OBJEXT@
$(CC) $(CFLAGS) -o $@ $^ -lasound -lm

decode: decode.o
$(CC) $(CFLAGS) -o decode decode.o -lm
decode@EXEEXT@: decode.@OBJEXT@
$(CC) $(CFLAGS) -o $@ $^ -lm

getport: getport.o
$(CC) $(CFLAGS) -o getport getport.o -lm
getport@EXEEXT@: getport.@OBJEXT@
$(CC) $(CFLAGS) -o $@ $^ -lm

getvab: getvab.o
$(CC) $(CFLAGS) -o getvab getvab.o -lm
getvab@EXEEXT@: getvab.@OBJEXT@
$(CC) $(CFLAGS) -o $@ $^ -lm

mtest: mtest.o
$(CC) $(CFLAGS) -o mtest mtest.o -lm
mtest@EXEEXT@: mtest.@OBJEXT@
$(CC) $(CFLAGS) -o $@ $^ -lm

sdltest: sdltest.o
$(CC) $(CFLAGS) -o sdltest sdltest.o @SDL_LIBS@ @VORBISFILE_LIBS@ -lm
sdltest@EXEEXT@: sdltest.@OBJEXT@
$(CC) $(CFLAGS) -o $@ $^ @SDL_LIBS@ @VORBISFILE_LIBS@ -lm

FORCE:

Expand All @@ -119,13 +124,13 @@ cscope: FORCE
cscope -b

clean:
rm -f *.o *~
rm -f *.@OBJEXT@ *~
rm -f $(PROG_NAME)
rm -f $(PROGS)
rm -f $(TAR_NAME).*

distclean: clean
rm -f config.log config.status Makefile
rm -f config.log config.cache config.status Makefile
rm -f int_types.h race.h
rm -f configure
rm -rf autom4te.cache
Expand All @@ -134,9 +139,23 @@ configure: configure.in
-aclocal $(ACLOCAL_FLAGS)
autoconf

race.h.in: configure.in
autoheader

tar: $(EXTRA_SOURCES)
rm -f $(TAR_NAME).tar*
rm -rf .temp
mkdir -p .temp/$(TAR_NAME)
(cd .temp/$(TAR_NAME) && ln -s $(addprefix ../../,*.[ch] $(EXTRA_SOURCES)) ./)
tar -zchC .temp --exclude CVS -f $(TAR_NAME).tar.gz $(TAR_NAME)

datatar:
rm -f $(PACKAGE_TARNAME)-data.tar.gz
tar -czhvf ${PACKAGE_TARNAME}-data.tar.gz audio video gamedata

datazip:
rm -f $(PACKAGE_TARNAME)-data.zip
zip -r ${PACKAGE_TARNAME}-data.zip audio video gamedata

# Os makefile
-include Makefile.os
4 changes: 0 additions & 4 deletions TODO
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,9 @@ preload next frame during mission playback so transitions are smooth
Soviet Newscaster in the 3rd animated segment (Close Out) has a pretty significant
delay before starting the animation

Audio pops on the soviet newscaster, maybe there's some bad data at the end of the
RAW file that needs to be clipped.

Audio isn't in sync for the newscasters

=======
fades
implement config opts for no anim

clean up extra gr_sync's
Expand Down
Loading

0 comments on commit 57a0fa2

Please sign in to comment.