Introducing wcdx - Kilrathi Saga for modern Windows

Discussion in 'Fan Projects & Editing' started by Stinger, Dec 23, 2014.

  1. Mace

    Mace Vice Admiral

    Messages:
    1,595
    Likes Received:
    34
    Trophy Points:
    35,135
    Location:
    Netherlands
    Instead of trying to fix it, why not try to put "speech"(a single "silent" audio file), onto those dialogues, and point in speechless conversations to that file everytime? It should fix the framerate, and avoid the flying cockpit(That really is CPU speed, or video card speed related).
     
  2. Stinger

    Stinger Vice Admiral

    Messages:
    828
    Likes Received:
    98
    Trophy Points:
    28,685
    That wouldn't solve the problem; that would just make the scenes take forever.

    Think about it this way: Scene duration is equal to the number of frames divided by the frame rate; mathematically:
    d = (x frames) / (y frames/sec)

    The original game specified a number for x, but not for y (citation needed; I haven't actually checked this); y was determined by how fast your computer could draw frames. The KS version, for whatever reason, specifies a very high y. In order to keep d at a reasonable value, the KS devs dramatically increased x. With a higher x and higher y, d remains essentially the same. Unfortunately, this interacts poorly with how the cut scenes are scripted. The cockpit, for instance, shifts forward every few frames; more frames means more shifts, which eventually shifts the entire sprite into view.

    If I just change y (which doesn't even require a fake audio file; I can just change the hard-coded number), without also changing x, then d will skyrocket and animations will seem to take forever. Further, without changing x, the ghost cockpits problem remains; it just takes longer to happen. Changing y is a code change; I can do that easily. Changing x is a data change, and there are bound to be lots and lots of x's out there.
     
  3. LarkInFlight

    LarkInFlight Rear Admiral

    Messages:
    185
    Likes Received:
    0
    Trophy Points:
    22,185
    Good to see you back Stinger. Do you plan to fix the Dralthi blaster/fuel gauge in WC1 Sm2 too or just WC2? No pressure, just asking :)
     
  4. wcnut

    wcnut Rear Admiral

    Messages:
    463
    Likes Received:
    42
    Trophy Points:
    24,135
    All this makes me wonder if it might be easier to improve the Dos version then fix the broken windows one :p
     
  5. Mace

    Mace Vice Admiral

    Messages:
    1,595
    Likes Received:
    34
    Trophy Points:
    35,135
    Location:
    Netherlands
    As far as i know, and me tempering with WC2 in the 90's, is that when the audio file is finished, it will continue on towards the next line of dialogue, and skip over animation, even on slow computers.
    On a 486 with a 40Mhz FSB, thrakhath was moving his lips like "Scatman John", and then cuff his lips for the remaining seconds, but the engine was waiting for the speech sequence to be completed so the actual framerate would or should not be affected. It was pretty funny watching it back then.

    It is not a solution to the issue you are working with, just a workaround.

    The main issue would be the "floating cockpit", I do not think anybody would notice the lower framerate during dialogue..
     
  6. Stinger

    Stinger Vice Admiral

    Messages:
    828
    Likes Received:
    98
    Trophy Points:
    28,685
    Thanks, but I'm sorry to say I'm not actively working on any of this stuff at the moment; I was just recounting where I left off a few months back. Every time I think I'll get enough free time to pour some work into this, something else comes up. It's all good, though; part of the other stuff I've been working on involves going to ISO C++ committee meetings to propose/discuss/vote on future directions for the C++ language. Much of the rest is just me being very busy at work.
     
  7. Salk

    Salk Rear Admiral

    Messages:
    46
    Likes Received:
    8
    Trophy Points:
    21,885
    Location:
    Italy
    It seems like real life is still keeping you away from this project, Stinger.

    I, as many others, hope that you can eventually return to wcdx with renewed enthusiasm!
     
  8. Stinger

    Stinger Vice Admiral

    Messages:
    828
    Likes Received:
    98
    Trophy Points:
    28,685
    Thanks for the encouragement! I'll keep an eye out for opportunities to work on this; right now, I'm about to get on a plane to Seattle for the ISO C++ committee meeting in Issaquah, which will keep me busy for the next week, and of course holiday season is approaching... but I actually got most of the original work done during a vacation, so maybe I'll manage something. That said, WC2 is a much larger task than WC1; I don't expect to have anything meaningful finished any time soon.
     
    Salk and ChrisReid like this.
  9. Salk

    Salk Rear Admiral

    Messages:
    46
    Likes Received:
    8
    Trophy Points:
    21,885
    Location:
    Italy
    Well, let me wish you happy holidays, Stinger.

    I know it is unrealistic to expect that you can produce anything WC-2 related any time soon but it is nice to know you still believe in further developing your project.

    Take care and godspeed!
     
    Shades2585 likes this.
  10. AdamPH

    AdamPH Petty Officer

    Messages:
    61
    Likes Received:
    3
    Trophy Points:
    635
    Gender:
    Male
    NVM figured it out. :D
     
    Last edited: Feb 14, 2017
  11. Vidmaster

    Vidmaster Commodore

    Messages:
    108
    Likes Received:
    25
    Trophy Points:
    12,035
  12. twotone8

    twotone8 Captain

    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    11,885
    Just now getting back into Wing Commander, and I'm very grateful for your work. This seems to be the definitive way to play Wing Commander I on modern systems. I would love for you to continue your progress with Wing Commander II someday if fate allows, but your efforts so far are already much appreciated by the community.
     
    Shades2585 likes this.
  13. Stinger

    Stinger Vice Admiral

    Messages:
    828
    Likes Received:
    98
    Trophy Points:
    28,685
    Thanks! I really do want to work on this some more, but my job has been keeping me very, very busy lately; it's incredibly difficult to find free time right now, and I don't even know if things will settle down after SC:R ships. We'll see...
     
  14. Whistler

    Whistler Commodore

    Messages:
    848
    Likes Received:
    138
    Trophy Points:
    16,685
    Gender:
    Male
    Location:
    Orbit
    A worthy sacrifice bringing a remastered Star-Con into the world.
     
  15. wcnut

    wcnut Rear Admiral

    Messages:
    463
    Likes Received:
    42
    Trophy Points:
    24,135
    You sir are doing the lords work! I had no idea you guys released the original SC for free and running on a modern mac! That just made my day. I'm downloading Broodwar now!
     
  16. Stinger

    Stinger Vice Admiral

    Messages:
    828
    Likes Received:
    98
    Trophy Points:
    28,685
    Glad to hear it! The Mac, specifically, is largely my work; I started at Blizzard nearly five years ago on the Mac team, and I spent about three months last year just getting the project to build and run on Mac using modern APIs. (The last time the game was available on Mac, it still targeted PowerPC processors.) I use a 2013 Mac Pro as my main workstation, and typically any Mac issues end up on my plate. I hope you enjoy it!
     
    ChrisReid, wcnut, cff and 1 other person like this.
  17. wcnut

    wcnut Rear Admiral

    Messages:
    463
    Likes Received:
    42
    Trophy Points:
    24,135
    Really? Wow, thank-you so much! I sure know that the last version available was for the PowerPC, I use to use to play it all the time, and stopped after 10.6 killed Rosetta support. I was actually thinking about running the windows version in wine when i stumbled on this whole conversation! :)
     
  18. twotone8

    twotone8 Captain

    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    11,885
    quick question. I'm trying to make it through my first playthrough of the original Wing Commander using this patch. Is the gameplay in this windows version significantly faster than the dosbox version? Because I'm having tremendous difficulty not dying immediately. I loaded up the doxbox version just for kicks and it seems much easier. Has anyone experienced this?

    edit:
    FOUNT IT.
    Alt-M and Alt-N to speedup and slowdown the game.
     
    Last edited: Jun 29, 2017
  19. ShadowArm

    ShadowArm Chief Petty Officer

    Messages:
    48
    Likes Received:
    8
    Trophy Points:
    1,185
    Gender:
    Male
    ah if i knew this earlier

    good luck on that, know that you guys have the with of the entire world in your backs!
     
  20. twotone8

    twotone8 Captain

    Messages:
    15
    Likes Received:
    2
    Trophy Points:
    11,885
    Whew. Just made it through SM1 and started SM2. Once I get around to Wing Commander 2, do you guys recommend using the alpha version of this patch? Or should I just bit the bullet and go DoxBox?
     

Share This Page