|
This thread is locked; no one can reply to it. |
1
2
|
Alex4, source code available |
Johan Peitz
Member #9
April 2000
|
Yes it is, get it here. -- |
X-G
Member #856
December 2000
|
Yay! First order of business: Port it to Linux. -- |
kazzmir
Member #1,786
December 2001
|
Can you make the data easy to download to? It compiled fine on linux, except for the DIGI_DIRECTX stuff, but I dont want to have to boot into windows to get the data. |
Matthew Leverton
Supreme Loser
January 1999
|
Yeah, the .exe installer isn't Zip compatable (some are), so getting the data on a linux platform requires Windows access. But yeah, it compiles and runs fine, if the window specific DIGI_ drivers are removed, and the .ini is changed to use the DIGI_AUTODETECT option. |
Evert
Member #794
November 2000
|
My patch to make Alex 4 compile in UNIX is attached. It will map the sound_device=2/3 from the ini file to OSS and ALSA respectively, while retaining the ability to compile the source for Windows. The game itself seems to run properly (though I've only played it briefly), but sometimes segfaults on exit. GDB traces the crash to allegro_exit(). I haven't investigated further yet. EDIT: I'm dumb!! I posted at the same time Matthew did, which looks somewhat funny. |
Johan Peitz
Member #9
April 2000
|
Allright, I've included the data in the download now. Thanks. -- |
Rafael Santos Coelho
Member #2,858
October 2002
|
Hey Johan, Do you use DJGPP ? "No one is someone in life alone". |
X-G
Member #856
December 2000
|
Last time I checked he used MSVC. There's no excuse for using DJGPP in Windows, and Peitz knows this. -- |
Johan Peitz
Member #9
April 2000
|
I haven't used DJGPP for ages. I've been using MSVC for the last few years at least. (But! I'm about to move to mingw soon.) -- |
X-G
Member #856
December 2000
|
What? I thought you said you were NOT going to move to MinGW. -- |
Johan Peitz
Member #9
April 2000
|
I'm allowed to change my mind, am I not? I got it working last night, with windres and all. Now I just need to learn how to make makefiles. -- |
Evert
Member #794
November 2000
|
Cool! |
Johan Peitz
Member #9
April 2000
|
Yes please. -- |
Ender Wiggin
Member #3,062
December 2002
|
Quote: I haven't used DJGPP for ages. I've been using MSVC for the last few years at least. (But! I'm about to move to mingw soon.)
Excellent choise, really. I use it too . Quote: Now I just need to learn how to make makefiles. I just use a compile.bat file, and I run it through EditPlus from which I edit the code and manage the project and run everything. It's almost like an IDE. The output is easy to handle too . What I would want you to fix in this source is the warnings that I always get from MinGW . : main.c:1292: warning: suggest parentheses around && within || And that whole slopes code should either be fixed or removed. I would prefer if it was fixed Oh, well, I understand you're done working on it . |
Bruce Perry
Member #270
April 2000
|
Quote: : shooter.c:376: warning: int format, long unsigned int arg (arg 3) Better idea: change the "%d" or "%i" or whatever it is to "%lu". goes off to download it -- |
Matthew Leverton
Supreme Loser
January 1999
|
Johan said: Allright, I've included the data in the download now.
|
Bruce Perry
Member #270
April 2000
|
Umm ... I have a confession to make. I changed the meaning of dumb_resampling_quality for DUMB v0.9.2. So the information in the config file isn't quite accurate. It's not a real problem though. The variable now ranges from 0 to 2, and if you set it higher it'll just act as if you'd set it to 2. Very nice game. It should keep me occupied for a while [EDIT] Psst, Matthew, delete your post since I edited out the stuff it was in reply to. Then I'll have two posts together! jÄää~ -- |
Ender Wiggin
Member #3,062
December 2002
|
Bruce said: Better idea: change the "%d" or "%i" or whatever it is to "%lu". Ah, that's smart . Say, how does the compiler recognizes what I want, after all, the rest of the varialbes are passed to the argument list - it's not supposed to be of a certain format. It doesn't know what is expected unless it checks what I passed in the char *format. |
X-G
Member #856
December 2000
|
Quote: unless it checks what I passed in the char *format It does. It's a GCC extension. -- |
Bruce Perry
Member #270
April 2000
|
And if you want GCC to check calls to your own printf or scanf-style functions, you can. Look up 'function attributes' in the GCC docs. -- |
X-G
Member #856
December 2000
|
Peter Hull
Member #1,136
March 2001
|
Johan, I'm going to try and compile it for Mac OSX (lillo rules ). If I manage it, will you have space on your website? Pete
|
lillo
Member #303
April 2000
|
Peter: already done, with some little endianess-related fixes to the code Now if only Johan could ungarble the packfile password he used for datafiles (cool idea to use a garbled password in the code, so it's not so easy to spot it by quickly analyzing the exe), I'd easily extract the egg sprite and use it as program icon... -- |
Ender Wiggin
Member #3,062
December 2002
|
Sorry for spoiling the fun, most of you probably want to get the passwords themselves (it's a challenge ), but I will anyway... And it is called by: garble_string(init_string, 53); So just run this proggy and it'll be fine:
|
Johan Peitz
Member #9
April 2000
|
peter said: Johan, I'm going to try and compile it for Mac OSX (lillo rules ). If I manage it, will you have space on your website? Yes I will, alex is hosted on sourceforge, no problemo. lillo said: already done, with some little endianess-related fixes to the code Did you manage to get it to work? I thought it would be near impossible since I saved the struct right off the bat. I have attached an egg for you to boot. wiggin said: Sorry for spoiling the fun.. How did I know you would? No worries though, the password says it all. If anyone has any other ports that works I'll gladly accept them. -- |
|
1
2
|