Skip to content

Instantly share code, notes, and snippets.

@rlaphoenix
Last active November 29, 2024 22:38
Show Gist options
  • Save rlaphoenix/c8cab577272bc8d848cafe5ea905777c to your computer and use it in GitHub Desktop.
Save rlaphoenix/c8cab577272bc8d848cafe5ea905777c to your computer and use it in GitHub Desktop.
Simpsons Hit & Run SRC Compiling

Simpsons Hit & Run SRC Compiling

TODO: Cleanup, improve, support other platforms and such.

  • All information in this is a community effort and I do not take credit for any of it.
  • SHA256: EA72121D29CE40EBD9F6B5BA2E337CEE02B812BB07ED67797F37E382FE075A85
  • Ensure the full path of the src has absolutely no spaces or characters that would need escaping.

Compiling for PC with the original VS 2002 Solution

Requirements

Steps

  1. Copy all the files from game/build/win32/Backup into game/build/win32 as the non-backup files were messed with and broken.
  2. Open SRR2.sln in Visual Studio .NET 2002 and build the solution.
  3. Go to game/cd/PC and the newly built game distribution should be there.

Notes/WIP

Updating to VS 2019

The following changes fixes the respective library or project to compile in VS 2019:

radmovie
    Properties
        C/C++
            Code Generation
                Smaller Type Check: Change from /RTCc to No

radsound
    system.cpp
        IID_IDirectSound8 to IID_IDirectSound
    Properties
        C/C++
            General
                Additional Include Directories: Add "..\..\src\pch"
            Code Generation
                Smaller Type Check: Change from /RTCc to No

Pure3D
    platform.cpp
        #include <fstream.h>  -> #include <fstream>
        #include <strstrea.h> -> #include <strstream>

Currently problematic libraries or projects:

  • pddidx8 won't build because VS is reading the .vsh files (shader files) and throwing a syntax error
  • SRR2 won't build due to the above failing, but also has it's own errors
@luizfernandonb
Copy link

Any solution to solve the .vsh files issue?

@cursedUs64-git
Copy link

Any solution to solve the .vsh files issue?

still not, i also get the same error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment