User Tag List

Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11

Thread: Can you switch between standard and DX8/9 runtime?

  1. #1
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Can you switch between standard and DX8/9 runtime?

    Is it possible to switch between standard display mode and DirectX 8 or 9 during runtime?
    I would like this to be a toggable option in my game.

    If this is possible, how do I check to see what version is running? I have some code in my LUA engine which is specific to HWA and some specific to standard. I want to be able to check which version is running and run the appropriate script accordingly.

    Is this possible etiher via MMF or LUA?

  2. #2
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can you switch between standard and DX8/9 runtime?

    It is, using command line switches.. but i'm on my way out and really don't have time to explain; maybe someone else will :wink:

  3. #3
    Clicker Fusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleSWF Export ModuleUnicode Add-on
    Looki's Avatar
    Join Date
    Aug 2006
    Location
    Karlsruhe, Germany
    Posts
    3,741
    Mentioned
    5 Post(s)
    Tagged
    1 Thread(s)

    Re: Can you switch between standard and DX8/9 runtime?

    SEELE, what? He said at runtime, but command line switches are processed when the application starts. You'd have to restart the application.
    See this post, you can execute a program with an evaluated path name $apppath$+appname+".exe", command line /D3D8 or /D3D9.

  4. #4
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can you switch between standard and DX8/9 runtime?

    Looki is right as usual , you would need to restart the application; but if you save first then load immediately you can probably make it pretty smooth.

  5. #5
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can you switch between standard and DX8/9 runtime?

    Yes I know you would have to restart I was expecting that, I will just save the game state temporarily first and then load it upon restart.
    Thanks Looki I will check it out.
    What about a way of checking which version is running? I could have it start in say standard mode when run for the first time and then if user changes the mode I could write the current mode to an ini file or something, but it would be easier if I could do a simple check upon loading the application instead.

  6. #6
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can you switch between standard and DX8/9 runtime?

    Hi seele, would you be able to make a quick example for me please? Thanks in advance

  7. #7
    Clicker Multimedia Fusion 2
    SEELE's Avatar
    Join Date
    Jul 2007
    Location
    Terra australis incognito
    Posts
    1,916
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can you switch between standard and DX8/9 runtime?

    Hi, bigredron ... since you'll be using a command switch to change the current display mode; all you need to do is check the string 'CommandLine$' found in the 'special conditions' object to see what command line argument was parsed.

  8. #8
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can you switch between standard and DX8/9 runtime?

    I got it working with the command script, but it keeps loading multiple instances of my program until my pc freezes.

    Is there any way I can close the current program once the new one is called? I dont really want to have to run a different exe first and then call the correct display mode from there

    EDIT: Never mind, I had 'wait for end' ticked.
    Thanks, think its working

  9. #9
    No Products Registered

    Join Date
    Mar 2007
    Location
    Sydney, Australia
    Posts
    1,369
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Can you switch between standard and DX8/9 runtime?

    How do I detect which version is running upon loading?
    Right now all I do is go into an infinite loop as the program keeps restarting because I cant seem to make it check the current mode and change only if it needs to.

  10. #10
    Clickteam Clickteam

    Join Date
    Jun 2006
    Location
    France
    Posts
    14,022
    Mentioned
    279 Post(s)
    Tagged
    3 Thread(s)

    Re: Can you switch between standard and DX8/9 runtime?

    In the HWA version you can use the DisplayMode function in the Storyboard object to retrieve the current display mode :

    1 = standard
    2 = Direct Draw
    4 = Direct3D 8
    8 = Direct3D 9

    Note: this mode may be different from the one you selected in the properties of the application, or in a command line option, as it depends on the graphic card, etc. i.e. you should add a security to avoid the infinite loop you are talking about.

Page 1 of 2 1 2 LastLast

Similar Threads

  1. Stutter in Standard Runtime
    By SolarB in forum Multimedia Fusion 2 - Technical Support
    Replies: 15
    Last Post: 6th April 2013, 01:54 AM
  2. Change window size and switch aspect at runtime
    By SolarB in forum File Archive
    Replies: 5
    Last Post: 20th August 2012, 09:09 AM
  3. MMF2 Standard Edition Runtime Agreement
    By variant in forum Multimedia Fusion 2 - Technical Support
    Replies: 22
    Last Post: 12th November 2009, 09:41 AM
  4. Follow the frame switch during Runtime
    By Blizna in forum Multimedia Fusion 2 - Technical Support
    Replies: 5
    Last Post: 3rd July 2006, 06:59 PM
  5. to set machine indipendent speed switch at runtime
    By integrality in forum Extension Development
    Replies: 1
    Last Post: 2nd July 2006, 07:12 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •