Fullscreen++

Discussion in 'RGSS3 Scripts (RMVX Ace)' started by Zeus81, Jun 15, 2013.

  1. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    140
    First Language:
    French
    Fullscreen++ v2.0
    by Zeus81

    New fullscreen mode that is more smart and make a better use of the screen surface (no black frame).
    Alt+Enter still uses the old fullscreen mode, to use the new one press F5.
    You can also press F6 to change the screen ratio, be it in fullscreen or windowed mode (both ratios are independents).
    This script automatically saves the last configuration used in the Game.ini file (fullscreen mode & ratios) and restores it when you restart the game.
    So before sharing your game do not forget to put the config you want by default, the first time we start your game.
    The old fullscreen mode is still present, but you can disable it by setting true on line 9 (instead of false).
    However it will also disable Alt+F4, and if you press Alt+Enter at the same time you can bypass the prohibition anyway.

    Script
    http://pastebin.com/raw.php?i=kc1hzBek
     
    Last edited by a moderator: Jul 30, 2013
    #1
  2. Tsukihime

    Tsukihime Veteran Veteran

    Messages:
    8,221
    Likes Received:
    3,006
    Location:
    Toronto
    First Language:
    English
    What are these borders?
     
    #2
  3. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    140
    First Language:
    French
    The "frame" of the window + the title bar.
     
    #3
    Tsukihime likes this.
  4. Napoleon

    Napoleon Veteran Veteran

    Messages:
    869
    Likes Received:
    96
    First Language:
    Dutch
    Nice script. Sadly my busts look really bad when enlarging the screen. Because the busts are scaled from 2500+ down to 640 and then back up to 1920. Looks horrible (I want Ace in full hd...) but the script itself is good.
     
    #4
  5. Dark Horseman

    Dark Horseman NPC Veteran

    Messages:
    517
    Likes Received:
    136
    First Language:
    English
    Primarily Uses:
    N/A
    The option to resize to double resolution maintains the look of most graphics. Resizing to 1920 is like 2.3x the resolution, so you get some really jagged edges. Going exactly double your resolution keeps the pixels soft-looking.
     
    Last edited by a moderator: Jun 16, 2013
    #5
  6. Helladen

    Helladen Deviant Designer Veteran

    Messages:
    558
    Likes Received:
    129
    Location:
    United States of America
    First Language:
    English
    Very nice improvement over original script I was using. Thanks a lot.
     
    #6
  7. gameus

    gameus Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    This script only disables the Left Alt key, it doesn't disable the Right Alt key as I can still press Alt + Enter to enter fullscreen.
     
    #7
  8. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    140
    First Language:
    French
    Have you enabled this option line 9 ?
     
    #8
  9. gameus

    gameus Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Yeah I did. Like I said, when I press Left Alt + Enter it doesn't do the fullscreen like it's supposed to. That works great, however, whenever I press Right Alt + Enter, it still goes fullscreen. I'm pretty sure Right Alt and Left Alt have different key codes.
     
    #9
  10. Andar

    Andar Veteran Veteran

    Messages:
    25,060
    Likes Received:
    5,308
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    Of course they have different key codes - they are two different key and have different labels (Alt, Alt Gr) on regular keyboards.

    Or - to be more precise - the right Alt Gr key is wired to behave the same way as if the left/regular Alt and the Control- Key are pressed at the same time.
     
    #10
  11. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    140
    First Language:
    French
    In fact with my keyboard Alt Gr + Enter never go fullscreen (I mean even without this script).

    Anyway you may try to modify the lines 114 & 115 like this :

        inputs = [1,18,2, 1,164,2, 1,165,2].pack('LSx2Lx16'*3)    SendInput.call(3, inputs, 28)And tell me if it changes something so I know if I have to add it to the script. ;)
     
    #11
  12. gameus

    gameus Villager Member

    Messages:
    7
    Likes Received:
    0
    First Language:
    English
    Still seems to be happening. 

    EDIT: However, it did disable Right Alt + F4.
     
    Last edited by a moderator: Jun 17, 2013
    #12
  13. wethefallen

    wethefallen Villager Member

    Messages:
    10
    Likes Received:
    2
    First Language:
    english
    I LIKE THIS SCRIPT! It has a staggeringly better frame rate then the default system for my game. Is there a simple way to disable the f5 as well? I'd like to lock my game in Fullscreen mode when the time comes.
     
    #13
  14. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    140
    First Language:
    French
    No I didn't provide such a feature, because we should always let people play as they like. :p

    @gameus, one last test maybe, try to modify the line 169 like that :

    release_alt if Disable_VX_FullscreenIf it still doesn't work then no idea.
     
    #14
  15. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    140
    First Language:
    French
    I've made a small update :

    Code:
      Log Change :    2.1 :      - ratio is corrected when out of range of our screen      - new functions to setup ratio      - new functions to setup vx default fullscreen mode
     
    Last edited by a moderator: Aug 3, 2013
    #15
    foosfodder likes this.
  16. Nosleinad

    Nosleinad Storyteller Veteran

    Messages:
    351
    Likes Received:
    27
    Location:
    Brazil
    First Language:
    Portuguese
    Zeus, is there a way to simple override the defaul fullscreen method? Like if the player press alt+enter or F5 your fullscreen++ will be used instead.

    In my opinion, there's no reason to keep both fullscreen methods for the player  :) .

    Sorry about the above comment, i didnt read all the new features of your script =). It's already implemented.

    PS: About the link of the script, i think you didnt pasted it all as the script only has commentaries and ends on line 40 =).
     
    Last edited by a moderator: Aug 3, 2013
    #16
  17. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    140
    First Language:
    French
    Oh sh*t. x)

    I've fixed it, thanks.

    There is one reason to keep the default fullscreen : It's pretier.

    The new fullscreen can give good result with x2 ratio but when it fit screen it's dirtier because of the nearest neighbour stretching.
     
    #17
  18. diegobh

    diegobh Warper Member

    Messages:
    2
    Likes Received:
    0
    Its the best full screen script, very thankz Zeus xD

    Could u make it compatible with: Mouse System Buttons 2.5, please???

    Thank you ;)
     
    #18
  19. Zeus81

    Zeus81 Veteran Veteran

    Messages:
    164
    Likes Received:
    140
    First Language:
    French
    Well isn't it already compatible ?

    Anyway there is nothing I can do in this script to make it more compatible, that's the others scripts that need to be modified. :/
     
    #19
  20. diegobh

    diegobh Warper Member

    Messages:
    2
    Likes Received:
    0
    It isnt =(

    When i use F5 and get fullscreen the mouse and the icons at bar stops works =(

    I dont knew the language, so i cant do it by myself.

    All the two scripts are the best i've tried, it would be wonderfull if the 2 works together...

    Anyway, very thankz for ur script, its amazing ;)

    UPDATED: i tried again.

    When the game start the mouse isnt working so ive to get out the mouse of the game screen and slowly get back the mouse, near the borders.

    One time the mouse will enter the screen and will works.

    But if the mouse is too near from borders, the mouse stops to work...

    It would be perfect if the mouse starts working when the fullscreen starts ;)
     
    Last edited by a moderator: Aug 9, 2013
    #20

Share This Page