You are not logged in.

#1 2009-02-04 10:49:59

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Compiling soulfu

Info about the game
http://gwos.org/doku.php/games:alphabetical:s:soulfu

The game's website
http://www.aaronbishopgames.com/

Soulfu's subversion repo
http://soulfu.motherhamster.org/

svn checkout http://soulfu.motherhamster.org/source/Trunk/ ~/Builds/soulfu

Os so I got the source but the author didn't include a makefile or anything. The games looks cool with its nice cell shaded graphics. How would I go about building it from source? I'm guessing that I would need a makefile but since there isn't one included I'd have to write my own. I've never written a makefile before. Can anyone help?

EDIT: There's a file under trunk/util named src.compiler.c
It looks like that may be it but I'm not sure.

Last edited by absolutezero1287 (2009-02-12 11:06:16)

Offline

#2 2009-02-04 16:14:43

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: Compiling soulfu

Check out Egoboo in the AUR: http://aur.archlinux.org/packages.php?ID=15209
Compiling should be fairly similar to SoulFu, as it is from the same author.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#3 2009-02-04 20:32:23

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Compiling soulfu

Egoboo has a makefile where soulfu doesn't. I figured that I'd have to write my own makefile but seeing as how they're different games and are organized differently I wouldn't know where to begin.

Last edited by absolutezero1287 (2009-02-04 20:38:26)

Offline

#4 2009-02-12 08:26:41

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: Compiling soulfu


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#5 2009-02-12 12:21:51

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Compiling soulfu

Interesting. I really know very little about high level programming so I may need some help writing the Makefile. Anyone?

Offline

#6 2009-02-12 12:31:31

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: Compiling soulfu

I'm actually planning to make a package on AUR, but at the moment, I'm very busy with other things, so this has to wait.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#7 2009-02-12 12:52:25

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: Compiling soulfu

Alternatively, you can download a deb or rpm package, extract it, and run the binary.
http://gaming.gwos.org/doku.php/guides:64bit:soulfu


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#8 2009-02-12 13:05:47

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Compiling soulfu

Ok, thanks again!

Offline

#9 2009-02-26 17:32:53

cisforcojo
Member
From: China
Registered: 2009-02-01
Posts: 36

Re: Compiling soulfu

I could give you the 1.5 linux version if you like. It's incredibly fun but frustrating though!!!
I'm looking into compiling the SVN version myself and I believe the benefits of that are they have added game saves and other bonuses. The game is actually very very hard -- designedly so, and the controls don't help at all.

I'll let you know if I get anywhere with the SVN.

Offline

#10 2009-02-26 20:51:31

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: Compiling soulfu

cisforcojo would you care to upload an AUR package?


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#11 2009-02-26 21:26:02

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Compiling soulfu

That would be a great idea.

Offline

#12 2009-02-26 21:59:23

cisforcojo
Member
From: China
Registered: 2009-02-01
Posts: 36

Re: Compiling soulfu

Hmm.. there is a very ambiguous licensing situation with SoulFu right now. It's certainly not free (libre) but the creator openly encourages modding. It's listed as "nice-ware". If I ever figure out this damned code, I'll give it a shot!  big_smile My programming skills really are subpar.

absolutezero1287:
To get you on the same page as me, there are already Makefile's included in the svn.
Check out Branches/Coz/Trunk/build/unix   and Branches/Coz/rev4/build/unix

So far I can get 'rev4' to compile fine, but I'm having a terrible time compiling 'Trunk'. Here is my output:

$make
gcc `sdl-config --cflags` -c ../../sourcecode/soulfu.c -o soulfu.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
In file included from ../../sourcecode/soulfu.c:119:
../../sourcecode/object.c: In function 'obj_spawn':
../../sourcecode/object.c:272: warning: passing argument 3 of 'sf_script_init' from incompatible pointer type
../../sourcecode/object.c:365: warning: passing argument 3 of 'sf_script_init' from incompatible pointer type
../../sourcecode/object.c:409: warning: passing argument 3 of 'sf_script_init' from incompatible pointer type
../../sourcecode/object.c: In function 'obj_recompile_end':
../../sourcecode/object.c:773: warning: passing argument 3 of 'sf_script_init' from incompatible pointer type
../../sourcecode/object.c:808: warning: passing argument 3 of 'sf_script_init' from incompatible pointer type
../../sourcecode/object.c:843: warning: passing argument 3 of 'sf_script_init' from incompatible pointer type
In file included from ../../sourcecode/page.c:3,
                 from ../../sourcecode/soulfu.c:126:
../../sourcecode/soulfu_math.inl: At top level:
../../sourcecode/soulfu_math.h:213: warning: 'vector_length' declared inline after being called
../../sourcecode/soulfu_math.h:213: warning: previous declaration of 'vector_length' was here
In file included from ../../sourcecode/soulfu.c:130:
../../sourcecode/room.c: In function 'room_spawn_all':
../../sourcecode/room.c:1999: warning: assignment from incompatible pointer type
../../sourcecode/room.c:2125: warning: assignment from incompatible pointer type
In file included from ../../sourcecode/soulfu.c:133:
../../sourcecode/damage.c: In function 'damage_character':
../../sourcecode/damage.c:182: warning: assignment from incompatible pointer type
In file included from ../../sourcecode/soulfu.c:134:
../../sourcecode/network.c: In function 'network_receive_room_update_udp':
../../sourcecode/network.c:836: warning: assignment from incompatible pointer type
In file included from ../../sourcecode/soulfu.c:136:
../../sourcecode/item.c: In function 'item_get_type_name':
../../sourcecode/item.c:48: warning: passing argument 3 of 'sf_fast_run_script' from incompatible pointer type
In file included from ../../sourcecode/soulfu.c:137:
../../sourcecode/runsrc.c: In function 'call_enchantment_function':
../../sourcecode/runsrc.c:100: warning: passing argument 3 of 'sf_fast_run_script' from incompatible pointer type
In file included from ../../sourcecode/soulfu.c:139:
../../sourcecode/charact.c: In function 'character_update_all':
../../sourcecode/charact.c:1353: warning: assignment from incompatible pointer type
../../sourcecode/charact.c:1763: warning: assignment from incompatible pointer type
../../sourcecode/charact.c:2248: warning: assignment from incompatible pointer type
../../sourcecode/charact.c:2302: warning: assignment from incompatible pointer type
../../sourcecode/soulfu.c: In function 'main_loop':
../../sourcecode/soulfu.c:410: warning: passing argument 1 of 'call_enchantment_function' from incompatible pointer type
gcc `sdl-config --cflags` -c ../../sourcecode/script_extensions.c -o script_extensions.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
In file included from ../../sourcecode/script_extensions.c:14:
../../pxss/pxss_compile.inl: In function 'register_opcode_name':
../../pxss/pxss_compile.inl:14: warning: assignment discards qualifiers from pointer target type
../../sourcecode/script_extensions.c: In function 'run_opcode_external':
../../sourcecode/script_extensions.c:3422: warning: passing argument 2 of 'push_int_stack' makes integer from pointer without a cast
../../sourcecode/script_extensions.c: In function '_ex_set_MODELEXTERNALFILENAME':
../../sourcecode/script_extensions.c:5062: warning: return makes integer from pointer without a cast
../../sourcecode/script_extensions.c: In function '_ex_set_MOUSETEXT':
../../sourcecode/script_extensions.c:6353: warning: return makes integer from pointer without a cast
../../sourcecode/script_extensions.c: In function '_ex_get_FILENAME':
../../sourcecode/script_extensions.c:7404: warning: initialization discards qualifiers from pointer target type
../../sourcecode/script_extensions.c: In function '_ex_get_MODELEXTERNALFILENAME':
../../sourcecode/script_extensions.c:7656: warning: return makes integer from pointer without a cast
../../sourcecode/script_extensions.c: In function '_ex_get_ITEMREGISTRYNAME':
../../sourcecode/script_extensions.c:8188: warning: passing argument 2 of 'item_get_type_name' from incompatible pointer type
gcc `sdl-config --cflags` -c ../../sourcecode/soulfu_common.c -o soulfu_common.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
gcc `sdl-config --cflags` -c ../../sourcecode/dcodeddd.c -o dcodeddd.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
gcc `sdl-config --cflags` -c ../../sourcecode/dcodejpg.c -o dcodejpg.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
gcc `sdl-config --cflags` -c ../../sourcecode/dcodeogg.c -o dcodeogg.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
gcc `sdl-config --cflags` -c ../../sourcecode/dcodepcx.c -o dcodepcx.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
gcc `sdl-config --cflags` -c ../../sourcecode/sdf_archive.c -o sdf_archive.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
../../sourcecode/sdf_archive.c: In function '_sdf_archive_spew_headers':
../../sourcecode/sdf_archive.c:481: warning: passing argument 1 of 'endian_write_mem_int32' from incompatible pointer type
../../sourcecode/sdf_archive.c:482: warning: passing argument 1 of 'endian_read_mem_int32' from incompatible pointer type
../../sourcecode/sdf_archive.c: In function 'sdf_archive_decompose_filename':
../../sourcecode/sdf_archive.c:894: warning: assignment discards qualifiers from pointer target type
gcc `sdl-config --cflags` -c ../../sourcecode/soulfu_math.c -o soulfu_math.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
gcc `sdl-config --cflags` -c ../../pxss/pxss_compile.c -o pxss_compile.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
In file included from ../../pxss/pxss_compile.c:31:
../../pxss/pxss_compile.inl: In function 'register_opcode_name':
../../pxss/pxss_compile.inl:14: warning: assignment discards qualifiers from pointer target type
../../pxss/pxss_compile.c: In function 'pxss_mega_find_function':
../../pxss/pxss_compile.c:1649: warning: passing argument 1 of 'pxss_find_int_data' discards qualifiers from pointer target type
../../pxss/pxss_compile.c:1652: warning: passing argument 1 of 'pxss_find_run_data' discards qualifiers from pointer target type
../../pxss/pxss_compile.c: In function 'pxss_compilerize':
../../pxss/pxss_compile.c:2319: warning: assignment discards qualifiers from pointer target type
../../pxss/pxss_compile.c: In function 'pxss_loadize':
../../pxss/pxss_compile.c:2767: warning: assignment discards qualifiers from pointer target type
gcc `sdl-config --cflags` -c ../../pxss/pxss_run.c -o pxss_run.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
In file included from ../../pxss/pxss_run.c:14:
../../pxss/pxss_compile.inl: In function 'register_opcode_name':
../../pxss/pxss_compile.inl:14: warning: assignment discards qualifiers from pointer target type
../../pxss/pxss_run.c: In function '_pxss_run_opcode_library':
../../pxss/pxss_run.c:1404: warning: passing argument 2 of 'push_int_stack' makes integer from pointer without a cast
gcc `sdl-config --cflags` -c ../../pxss/pxss_run_library.c -o pxss_run_library.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
gcc soulfu.o script_extensions.o soulfu_common.o dcodeddd.o dcodejpg.o dcodeogg.o dcodepcx.o sdf_archive.o soulfu_math.o pxss_compile.o pxss_run.o pxss_run_library.o -o soulfu  `sdl-config --libs` -lSDL_net -lGL -ljpeg -lvorbis -lm
gcc `sdl-config --cflags` -c ../../sourcecode/gameseed.c -o gameseed.o -DDATADIR='"/usr/local/share/soulfu"' -DDEVTOOL=1 -g -I/usr/include/GL/ -I../../sourcecode/ -I../../pxss/
../../sourcecode/gameseed.c:1: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'game_seed'
../../sourcecode/gameseed.c: In function 'generate_game_seed':
../../sourcecode/gameseed.c:8: error: 'game_seed' undeclared (first use in this function)
../../sourcecode/gameseed.c:8: error: (Each undeclared identifier is reported only once
../../sourcecode/gameseed.c:8: error: for each function it appears in.)
make: *** [gameseed.o] Error 1

The error has to do with this type 'Uint32' and I can't figure out where it's being defined. As I said,  my programming skills are really not up to par for this. I have been working on this for 3 hours hehe.

Last edited by cisforcojo (2009-02-26 22:34:06)

Offline

#13 2009-02-26 23:00:44

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Compiling soulfu

I'm still learning C++ so I would be about as useful as a poopie flavored lolipop. (I saw the movie yesterday).

Offline

#14 2009-02-26 23:06:17

cisforcojo
Member
From: China
Registered: 2009-02-01
Posts: 36

Re: Compiling soulfu

Well check out rev4. You should at least be able to play the game after you build it; no programming required for that.

I recommend you do NOT run 'make install' though. Follow the instructions in the rev4 directory for howto build it for if you don't install it.

Offline

#15 2009-02-26 23:16:54

absolutezero1287
Member
Registered: 2008-11-13
Posts: 133

Re: Compiling soulfu

@cisforcojo: Definitely.

Offline

#16 2009-02-27 05:42:11

cisforcojo
Member
From: China
Registered: 2009-02-01
Posts: 36

Re: Compiling soulfu

You get it to work? If so, are you having problems with the net code?
I live in China so I never know if it's their firewall... hmm

Offline

#17 2009-03-20 02:49:59

Gen2ly
Member
From: Sevierville, TN
Registered: 2009-03-06
Posts: 1,529
Website

Re: Compiling soulfu

There's this version which someone has been good enough to work on for *nix systems:

http://www.soulfu.com/forums/viewtopic.php?t=148

I'm able to build it:

cd build/unix/
cp ../../sdf/datafile.sdf .

SoulFu requires:

extra/libvorbis
? extra/libjpeg
? extra/sdl
extra/sdl_net

SoulFu does start with ./soulfu but will quit with a segmentation fault (likely because I'm running a 64bit system without 32bit libraries).  Haven't tried but saw a good guide to running 32bit binaries on a 64bit system at the World of Goo forum.


Setting Up a Scripting Environment | Proud donor to wikipedia - link

Offline

#18 2009-03-31 06:38:04

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: Compiling soulfu

Thanks for the hint, I'll try this myself as time permits.

Last edited by SanskritFritz (2009-03-31 06:38:19)


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#19 2009-06-21 20:55:40

SanskritFritz
Member
From: Budapest, Hungary
Registered: 2009-01-08
Posts: 1,924
Website

Re: Compiling soulfu

Thanks to finferflu, there is an AUR version now. I'n going to try it, and report back.


zʇıɹɟʇıɹʞsuɐs AUR || Cycling in Budapest with a helmet camera || Revised log levels proposal: "FYI" "WTF" and "OMG" (John Barnette)

Offline

#20 2009-08-08 14:07:27

handy
Member
From: Oz
Registered: 2008-03-26
Posts: 719

Re: Compiling soulfu

I tried the AUR version with no luck, I modified the PKGBUILD to tell it I'm on 64bit Arch.

I also copied the modified the PKGBUILD as recommended in the comments to suit 64bit, but I still get no response when I call soulfu?


I used to be surprised that I was still surprised by my own stupidity, finding it strangely refreshing.
Well, now I don't find it refreshing.
I'm over it!

Offline

Board footer

Powered by FluxBB