|
BTForum
» Wormy Discussion
» Worms:Armageddon Discussion
» D3D9Wnd - a Direct3D 9-based W:A windowed mode, no emulator
StepS
Statusless Send PM Posts: 3
Threads: 3 Money: £9.88 (D) (+ Friend)
|
Moved from T17 forum
Hello.
Me and Kawoosh want to present you a windowed mode made using the native Direct3D 9 renderer, which allows some brilliant features, as well as no lags and full FPS (no emulator), stretching of the window, unpinning/pinning mouse from the game window, producing and streaming full HD videos and screenshots on any monitor and system.
The way of windowing the Direct3D 9 mode was originally found and written by Kawoosh, and then I extended it with some fixes and features:
- Stretched mode - enable with StretchFrontend=1 and StretchInGame=1 respectively for needed places in ini. It is still windowed mode, but here it is enlarged to fill your screen in full, and looks just the same as if you were in fullscreen. This is especially useful if your monitor doesn't support 640×480 (and you want fullscreen) or if you plan on speeding up your game (by not having to wait until your monitor switches the resolution): instant return to frontend after the game has ended, instant minimization, ability to set the resolution higher than your own, etc. NOTE: on some GPUs there may be need to enable smoothing if you enlarge from a smaller window to prevent pixels.
- Unpin and pin the mouse: a feature requested by someone to be able to unpin the mouse in-game and move it over WA's window. This can be useful for border (see below).
Ctrl+G to unpin or pin the mouse.
- Active Background: available in both Windowed and Stretched modes. Allows to view the gameplay even when the window is not in focus. This is permanently enabled for non-aero users as a fix, and also moves the window into top left corner. Cannot be enabled when border is on.
Ctrl+H to enable Active Background
- Custom frontend size and frontend centering: options to customize frontend position and size, but eating the mouse.
- Window border in-game: allows to have a window border around the window. Using the previously mentioned unpinning feature you are able to move the in-game window.
Use WindowBorderInGame=1 to enable this. Use Ctrl+D to quickly enable/disable this directly during gameplay.
- And of course, I made the module intelligent to prevent sillies from running into issues.
Unlike wndmode, D3D9Wnd works only with 3.7.0.0 and 3.7.2.1, including Steam (works with both), because it uses native renderer and depends on hardcoded offsets which control D3D9CreateStart.
Additional notes:
- To fully disable the module without deleting it, use "Disabled=1" in the ini file. To disable for one session only, run WA with a command-line parameter: /wkargs -nowindow
- This fixes the Windows 7 multiple monitors issue! (thanks Obn3g0n)
- UAC admin mode does not have any effect when maximizing from taskbar.
- With help of wkLobbyCmd you can switch resolutions on fly and specify a resolution which is even higher than your own (in this case it'll be stretched to fit the screen). This allows everyone to produce full-HD (and bigger ) screenshots and videos regardless of their monitor. Aspect ratio can be any, as seen in examples.
The maximal possible resolution is your GPU's max texture size (4096x4096, 8192x8192 or 16384x16384, example with 4096×4096) and the minimal is 143×1. But you can not set a resolution which is bigger than "YourOwnSize * 2". Why? Because W:A catches mouse by centering it into the expected resolution's center, and when you set such a big size, it is out of your screen and W:A gonna freeze. So, double size of your resolution is your personal limit. You could overcome this by using the unpinning mouse feature but then the mouse would be unusable in-game.
So, basically, here's an example: let's say I have 1920×1080, I multiply it by two and get 3840×2160. This is my personal limit. But on this size the game already fails because the limitation is higher than and including this size. So, to make the mouse move freely we substract a few hundreds (2 or 3) and try again. Use a bit of mathematics if you know your monitor's aspect ratio (16:9, 16:10...)
- This module can currently only be loaded by integrated "Load WormKit modules" feature due to the fact that it requires W:A's settings to be already loaded in the RAM. This may change later.
- The frontend is still in the corner, like in wndmode. Why that? Well, it's because of the messy W:A's frontend crutches preventing from moving the W:A's window properly without having mouse glitches. So let it be this way until W:A devs come with their own solution.
The latest version is 0.5.0.0, DOWNLOAD. Extract everything into your W:A folder and run the game. You must have "Load WormKit modules" option from Advanced Settings enabled.
|
12.06.13 00:39 Post #1 | [Hide Sig (0)] [Profile] [Quote] |
Post Reply
Donate to BlameThePixel:
[22 Queries, Page Loaded in 0.324313 Seconds]
|
|
Your Comments: