[MM6] Toggle UI Script

The role-playing games (I-X) that started it all and the various spin-offs (including Dark Messiah).
User avatar
Vinevi
Leprechaun
Leprechaun
Posts: 48
Joined: 17 Jul 2017

[MM6] Toggle UI Script

Unread postby Vinevi » 11 Apr 2021, 15:24

preview

Image

Description
The script helps with video capture and taking screenshots in Might and Magic VI. It removes parts of the UI present on the game screen allowing the 3D view to take up the entire screen.

Instructions
  1. Install MMExtension
  2. Go to the Scripts/General directory and create a new file with .lua extension
  3. Copy paste the script inside the file and save it
  4. Press F12 during game to toggle UI
---------------------------------------

Zoom script (outdoor only)
Allows to zoom the camera while in-game
preview | script

Keys:
J - zoom out
K - reset zoom
L - zoom in

I - zoom 1 step
O - zoom out 1 step
Last edited by Vinevi on 25 Apr 2021, 07:43, edited 8 times in total.

User avatar
tomchen1989
Pixie
Pixie
Posts: 136
Joined: 21 Jun 2008
Location: Europe / China

Re: [MM6] Script to remove UI

Unread postby tomchen1989 » 11 Apr 2021, 16:41

Oh it may not be very convenient but definitely nice to have, as it increases the viewport area in the original game

User avatar
Vinevi
Leprechaun
Leprechaun
Posts: 48
Joined: 17 Jul 2017

Re: [MM6] Script to remove UI

Unread postby Vinevi » 11 Apr 2021, 19:40

Update: The script now allows to toggle UI on the fly in-game
https://www.youtube.com/watch?v=DgH5LyHebWI

User avatar
tomchen1989
Pixie
Pixie
Posts: 136
Joined: 21 Jun 2008
Location: Europe / China

Re: [MM6] Script to remove UI

Unread postby tomchen1989 » 11 Apr 2021, 22:01

Ok it actually doesn't increase the viewport size... I mean it does but it doesn't really allow you to have a wider view, instead it just resizes the original view area to fit the whole screen. Anyway, nice job!

Zoltan
Leprechaun
Leprechaun
Posts: 14
Joined: 16 Apr 2021

Re: [MM6] Script to remove UI

Unread postby Zoltan » 18 Apr 2021, 01:46

Is this the Scripts/General inside the M&M 6 folder? Where is the repository?

User avatar
Vinevi
Leprechaun
Leprechaun
Posts: 48
Joined: 17 Jul 2017

Re: [MM6] Script to remove UI

Unread postby Vinevi » 18 Apr 2021, 11:33

Yes, the directory should be in M&M 6 folder once MMExtension is installed

User avatar
Vinevi
Leprechaun
Leprechaun
Posts: 48
Joined: 17 Jul 2017

Re: [MM6] Script to remove UI

Unread postby Vinevi » 18 Apr 2021, 14:48

Update: the script now shows UI when not rendering 3D view (in houses, inventory and such)

Zoltan
Leprechaun
Leprechaun
Posts: 14
Joined: 16 Apr 2021

Re: [MM6] Script to remove UI

Unread postby Zoltan » 18 Apr 2021, 15:19

Yes I press f12 and nothing happens could it be because the file I have have is called .lua I am not sure it takes files that have dots on them (maybe instead just lua) also my mm6hd file is in there also.

User avatar
Vinevi
Leprechaun
Leprechaun
Posts: 48
Joined: 17 Jul 2017

Re: [MM6] Script to remove UI

Unread postby Vinevi » 18 Apr 2021, 15:48

Does console appear if pressing ctrl+f1?
Filename should be something like uitoggle.lua

Zoltan
Leprechaun
Leprechaun
Posts: 14
Joined: 16 Apr 2021

Re: [MM6] Script to remove UI

Unread postby Zoltan » 18 Apr 2021, 16:17

Vinevi wrote:Does console appear if pressing ctrl+f1?
Filename should be something like uitoggle.lua
Yes ctrl f-1 toggles the debug program and I renamed the file like you said but it doesn't work still.

User avatar
Vinevi
Leprechaun
Leprechaun
Posts: 48
Joined: 17 Jul 2017

Re: [MM6] Script to remove UI

Unread postby Vinevi » 18 Apr 2021, 18:35

MMExtension might be outdated if it was installed prior. Or some other program is bound to F12 so the game is unable to use it. So you can try altering F12 to F1-F11.
Try running other scripts from Script/General directory, like Hello World example to confirm that everything is set up correctly.

Zoltan
Leprechaun
Leprechaun
Posts: 14
Joined: 16 Apr 2021

Re: [MM6] Script to remove UI

Unread postby Zoltan » 18 Apr 2021, 18:41

What can I do with the debug menu? I should be able to correct it from there.

Zoltan
Leprechaun
Leprechaun
Posts: 14
Joined: 16 Apr 2021

Re: [MM6] Script to remove UI

Unread postby Zoltan » 18 Apr 2021, 18:43

How do I alter f-12 to f11 f10 etc..? I've never worked with MMExtension before.
Last edited by Zoltan on 18 Apr 2021, 19:30, edited 2 times in total.

User avatar
Vinevi
Leprechaun
Leprechaun
Posts: 48
Joined: 17 Jul 2017

Re: [MM6] Script to remove UI

Unread postby Vinevi » 18 Apr 2021, 20:41

Change this line in the script:
function Keys.F12(t)
To something like:
function Keys.F5(t)
or
function Keys.O(t)

Regarding the Hello World example it can be found here:
https://grayface.github.io/mm/ext/ref/#Hello-world!

Debug menu was just to verify that MMExtension is running
Last edited by Vinevi on 18 Apr 2021, 20:42, edited 1 time in total.

Zoltan
Leprechaun
Leprechaun
Posts: 14
Joined: 16 Apr 2021

Re: [MM6] Script to remove UI

Unread postby Zoltan » 18 Apr 2021, 22:07

The keyboard f12 scripting etc doesn't work. I also have the Voodoo2 wrapper installed too.
Last edited by Zoltan on 18 Apr 2021, 22:08, edited 1 time in total.

KayBur
Leprechaun
Leprechaun
Posts: 20
Joined: 14 Apr 2021

Re: [MM6] Script to remove UI

Unread postby KayBur » 22 Apr 2021, 13:35

Whatever it is, whether this review expands or not, it looks very cool and it is worth trying this script. Of course, someone will not like it, but there are no universal things that would be liked by everyone, without exception.

User avatar
Vinevi
Leprechaun
Leprechaun
Posts: 48
Joined: 17 Jul 2017

Re: [MM6] Toggle UI

Unread postby Vinevi » 24 Apr 2021, 15:37

Added a new script which allows to zoom the camera while in-game

Zoltan
Leprechaun
Leprechaun
Posts: 14
Joined: 16 Apr 2021

Re: [MM6] Toggle UI Script

Unread postby Zoltan » 25 Apr 2021, 21:42

Now if if someone would put this with the M&M 6 interface into an installer...


Return to “Might and Magic”

Who is online

Users browsing this forum: Bing [Bot] and 41 guests