Coder Social home page Coder Social logo

Comments (9)

elishacloud avatar elishacloud commented on May 28, 2024 2

It looks like the issue is that the D3DPRESENTFLAG_LOCKABLE_BACKBUFFER flag is set which is not supported in Direct3D9 when using multisampling. See here

Once I remove this flag everything works fine. I also noticed that multisampling is not fully supported in d3d8to9 yet. I have a pull request almost ready that will fully fix this issue. I just want to test it on a few more games.

BTW: I should mention that the crash is a bug in the game. The game never checks the return value of the CreateDevice function and just assumes it is successful. Then it starts to use the returned pointer which is not valid.

from d3d8to9.

NikoofDeath avatar NikoofDeath commented on May 28, 2024 1

Disabling FSAA fixed it, thanks!

from d3d8to9.

CookiePLMonster avatar CookiePLMonster commented on May 28, 2024

Note to self (and the others): game seems to be available on Steam.

http://store.steampowered.com/app/6000/STAR_WARS_Republic_Commando/

from d3d8to9.

elishacloud avatar elishacloud commented on May 28, 2024

I am using the GOG version. It is on sale this week for only $3.39. I have done a number of fixes (here and here) on Star Wars Republic Commando. It works great for me.

Can you tell me the following:

  1. What version of the game are you using?
  2. What operating system are you using?
  3. Is it 32bit or 64bit?
  4. What video card do you have?
  5. Also tell me at what point the game crashes. What do you do to cause the crash?

from d3d8to9.

metallicafan212 avatar metallicafan212 commented on May 28, 2024

Did you disable FSAA? It crashes the game on startup if it's enabled. To disable it in the ini, go to "Star Wars Republic Commando\GameData\Save", open system.ini in a text editor, under [WinDrv.WindowsClient] there will be a line called FSAA= with a value. If it's not 0, set it to 0.
image

from d3d8to9.

elishacloud avatar elishacloud commented on May 28, 2024

Interesting. I can reproduce the crash now. I wonder if this is the same thing that is talked about in #63.

from d3d8to9.

metallicafan212 avatar metallicafan212 commented on May 28, 2024

Yeah, I tried fixing it in the source, but it seems that if MultiSampleType isn't D3DMULTISAMPLE_NONE or D3DMULTISAMPLE_NONMASKABLE, it'll crash. I even was going to make an issue about this until this showed up.

from d3d8to9.

metallicafan212 avatar metallicafan212 commented on May 28, 2024

I'm going to open an new issue with the information I know.

from d3d8to9.

elishacloud avatar elishacloud commented on May 28, 2024

Attached is a fixed dll for this. This will allow you to use anti-aliasing: d3d8.zip

from d3d8to9.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.