Is there anybody around who knows how to create a D2X executable from the MSVC version?
I've got everything compiled (including SDL), but there is no main function. SDL offers a main function stub where you have to insert your program's main function code, but as already said, I don't know where that code is.
I have asked the guy maintaining the D2X project, but it looks like he cannot be arsed looking into D2x anymore.
D2X - main function?
- SSX-Thunderbird
- DBB Admiral
- Posts: 1275
- Joined: Sun Jun 03, 2001 2:01 am
- Location: Washington (the state, not the city)
The question is whether you have been using the some public license compiler and the makefiles, or whether you have complete and working Microsoft Visual C++ work and project files.
I have created MSVC projects and workspace for D2X, and afaik there's none publicly availabe.
I've fixed the first problem in D2X btw: I expects each wall to have a wall at the opposite side if applicable (i.e. if the wall is not an overlay). Opening a wall that doesn't have a wall at it's opposite side did crash D2X - and my levels contain such walls to avoid hitting the wall number limit ...
And btw.: The MSVC d2x OpenGL executable is about 750 KB, the 'official' one has about 1400 KB. That's almost double the size. I have some experience with GNU or GNU type C/C++ compilers, so I will not use them if I can ever avoid it.
I have created MSVC projects and workspace for D2X, and afaik there's none publicly availabe.
I've fixed the first problem in D2X btw: I expects each wall to have a wall at the opposite side if applicable (i.e. if the wall is not an overlay). Opening a wall that doesn't have a wall at it's opposite side did crash D2X - and my levels contain such walls to avoid hitting the wall number limit ...
And btw.: The MSVC d2x OpenGL executable is about 750 KB, the 'official' one has about 1400 KB. That's almost double the size. I have some experience with GNU or GNU type C/C++ compilers, so I will not use them if I can ever avoid it.
- SSX-Thunderbird
- DBB Admiral
- Posts: 1275
- Joined: Sun Jun 03, 2001 2:01 am
- Location: Washington (the state, not the city)
I had these project files too, and they didn't work for me - for whatever reason. So I took a look or two (at least ) in the Makefile, figured the dependencies and required libraries, and built everything myself.
Which modifications did you add to your D2X copy? I'd probably like to integrate them into mine, if you do not have any objections.
Which modifications did you add to your D2X copy? I'd probably like to integrate them into mine, if you do not have any objections.
- SSX-Thunderbird
- DBB Admiral
- Posts: 1275
- Joined: Sun Jun 03, 2001 2:01 am
- Location: Washington (the state, not the city)
Just music, and some code to have any music playing shut off when a movie was to play (the original code for that was commented out for some odd reason).
Music is done with SDL_mixer, so if you want to use my code modifications, you'll need to get it (or I can pass the files along).
(EDIT)I have compressed the CVS snapshot that I have to RAR format, which took 40MB off the total size (50MB->10MB).
Music is done with SDL_mixer, so if you want to use my code modifications, you'll need to get it (or I can pass the files along).
(EDIT)I have compressed the CVS snapshot that I have to RAR format, which took 40MB off the total size (50MB->10MB).