Jump to content
The Dark Mod Forums

Beta testing new Main Menu GUI


Recommended Posts

Mission "Shadows of Northdale ACT 2" by @Goldwell.
As usual, it overrides mainmenu_briefing_video.gui to avoid empty briefing parchment and mainmenu_background.gui  to set custom background in menu.

Removed both files.

Added mainmenu_background_custom.gui:

windowDef BackgroundCustomNorthdale2
{
	rect		0, 0, 640, 480
	background	"snowedinn_foggynight"

	BACKGROUND_DEFAULT_BEHAVIOR(BackgroundCustomNorthdale2)
}

Then added to mainmenu_custom_defs.gui:

//stgatilov #5323: disable briefing state
#define ENABLE_MAINMENU_BRIEFING 0

//stgatilov #5323: set custom background to main menu:
#define MM_BACKGROUNDS_META_ALLSIMPLE BackgroundCustomNorthdale2

Things work perfectly in new TDM: custom background works, empty briefing skipped.
In 2.09, the default background is shown, and empty briefing page is displayed --- as expected.

  • Like 2
Link to comment
Share on other sites

Mission "Snowed Inn" by @Goldwell and @kingsal

When I tried playing, I noticed custom background in menu, and skipped briefing state.
The in-game list of objectives also looks different from normal.

However, many files are overridden:

  • mainmenu_background.gui (custom background in menu)
  • mainmenu_briefing_video.gui (skip empty briefing parchment)
  • mainmenu_main.gui (exactly equals to 2.09 version)
  • mainmenu_objectives.gui (skip empty briefing + tiny change in difficulty labels)
  • mainmenu_utils.gui (skip empty briefing on Escape during video)
  • tdm_objectives.gui (6 objectives per page, size changes, don't hide on attack button)
  • tdm_objectives_core.gui (6 objectives per page, size changes)
  • tdm_objectives_defs.gui (6 objectives per page, size changes)

Well... I wonder whether I should try to understand what was changed...
UPDATE: Analyzed the changes.

By the way, while this mission requires TDM 2.08, its overridden GUI files are taken from 2.05 😥

  • Like 3
Link to comment
Share on other sites

Ok, I tried to remove all the mentioned files.

Then I added mainmenu_background_custom.gui with:

windowDef BackgroundCustomSnowedInn
{
	rect		0, 0, 640, 480
	background	"custom_goldwell_animated_menu"

	BACKGROUND_DEFAULT_BEHAVIOR(BackgroundCustomSnowedInn)
}

Then added to mainmenu_custom_defs.gui:

//stgatilov #5323: disable briefing state
#define ENABLE_MAINMENU_BRIEFING 0

//stgatilov #5323: set custom background
#define MM_BACKGROUNDS_META_ALLSIMPLE BackgroundCustomSnowedInn


In the new TDM: custom background works, briefing state is skipped.

I have noticed that the parchment in difficulty selection screen looks dirty like it was in older versions (I guess texture is overridden), but that's not my problem.

Then I got crash on startup in idBrittleFracture::Event_Touch for func_fracture_3: "other" is NULL. It deserves independent investigation, and I cannot test how many objectives look in-game. A brief glimpse shows that 3 objectives display fine, and I guess 6 objectives will simply show scrolling arrows.
UPDATE: The crash is fixed on current SVN (5439).

In 2.09, it works fine.
All customizations are gone of course (default background, empty parchment).
Interestingly, it does not crash on startup.

 

  • Like 2
Link to comment
Share on other sites

Mission "Spring Cleaning" by @Goldwell.

This one overrides mainmenu_briefing_video.gui in order to remove empty briefing page, and also overrides mainmenu_objectives.gui to remove empty briefing page on "back" click and to slightly change sizes of diffuculty text (same unnoticeable change as in many other FMs).

I have removed both overridden files.
Added the following to mainmenu_custom_defs.gui:

//stgatilov #5323: skip empty briefing page
#define ENABLE_MAINMENU_BRIEFING 0

In the new TDM, everything looks fine.
In TDM 2.09, everything is OK except that empty briefing page is shown.

  • Like 1
Link to comment
Share on other sites

Mission "Sir Talbot's Collateral" by @Baal and @Bikerdude.

This one overrides mainmenu_briefing_video.gui, mainmenu_utils.gui, and mainmenu_objectives.gui to skip empty briefing page. The last file also seems to slightly modify difficulty text sizes (not noticeable).

I have removed all these overrides, and added the following to mainmenu_custom_defs.gui:

//stgatilov #5323: disable briefing state
#define ENABLE_MAINMENU_BRIEFING 0

Works fine in new TDM.
TDM 2.09 works fine too, but empty briefing parchment is shown.

  • Like 1
Link to comment
Share on other sites

Mission "Ulysses: Genesis" by @Sotha.

Overrides mainmenu_briefing_video.gui in order to skip empty briefing. Also contains the file mainmenu_objectives.gui_asg, which does not have effect --- but probably it was planned to fix "back" button from difficulty selection with it.

Removed mainmenu_briefing_video.gui and added following to mainmenu_custom_defs.gui:

//stgatilov #5323: disable briefing page
#define ENABLE_MAINMENU_BRIEFING 0

As usual, everything is perfect in new TDM, but 2.09 shows empty briefing parchment now.

  • Like 1
Link to comment
Share on other sites

Mission "Ulysses 2: Protecting the Flock" by @Sotha.

It has the typical set of overrides: mainmenu_briefing_video.gui, mainmenu_utils.gui, and mainmenu_objectives.gui to skip empty briefing parchment, plus some minor size variations in the last one.

As usual, removed all overrides and added to mainmenu_custom_defs.gui:

//stgatilov #5323: disable briefing page
#define ENABLE_MAINMENU_BRIEFING 0

Everything at usual: perfect in new TDM, but empty briefing page in 2.09.

  • Like 1
Link to comment
Share on other sites

Mission "Volta 1: The Stone" by @kingsal.

Overrides:

  • mainmenu_background.gui (for custom background)
  • mainmenu_briefing_video.gui (for removing empty briefing page)
  • mainmenu_main.gui (no changes here)
  • tdm_objectives.gui (squeeze 6-th objective, don't close by click)
  • tdm_objectives_core.gui (squeeze 6-th objective)
  • tdm_objectives_defs.gui (squeeze 6-th objective)

So I removed all these files.
Then added the following to mainmenu_custom_defs.gui:

//stgatilov #5323: disable briefing state
#define ENABLE_MAINMENU_BRIEFING 0

//stgatilov #5323: set custom background
#define MM_BACKGROUNDS_META_ALLSIMPLE BackgroundCustomVolta

And some code for background into mainmenu_background_custom.gui

windowDef BackgroundCustomVolta
{
	rect		0, 0, 640, 480
	background	"guis/assets/mainmenu/volta_menu_background"

	BACKGROUND_DEFAULT_BEHAVIOR(BackgroundCustomVolta)
}

 

The updated FM works nicely in the new TDM.
Of course, custom sizes of objectives are lost, now there are 5 objectives without scrolling.
Also, the parchment on difficulty selection screen looks dirty (old texture), I guess FM overrides it.

In TDM 2.09, the mission plays properly, but main menu has default background.
Also, the empty briefing page is displayed after video --- as expected.

  • Like 2
Link to comment
Share on other sites

Mission "A good neighbor" by @Amadeus
It overrides mainmenu_background.gui in order to set custom background.

Removed this file.
Then added lines to mainmenu_custom_defs.gui

//stgatilov #5323: set custom background for main menu
#define MM_BACKGROUNDS_META_ALLSIMPLE BackgroundCustomGoodNeighbor

Added mainmenu_background_custom.gui with:

windowDef BackgroundCustomGoodNeighbor
{
	rect		0, 0, 640, 480
	background	"guis/assets/custom_title"

	BACKGROUND_DEFAULT_BEHAVIOR(BackgroundCustomGoodNeighbor)
}

The updated FM works properly in the new TDM, custom background is visible in main menu.
TDM 2.09 shows default background, as expected.

  • Like 2
Link to comment
Share on other sites

Mission "The Hare in the Snare, Pt. 1" by @Frost_Salamander and @Kerry000.
The authors decided to avoid "forbidden overrides" by using custom title to change background in main menu. Now custom title is deprecated, so it should be reworked using new features.

So I commented out custom title and set background "the new way" in mainmenu_custom_defs.gui:

//stgatilov #5323: custom title image is deprecated!
//#define MM_SHOW_CUSTOM_MAINMENU_TITLE 1

//stgatilov #5323: use new way of setting background instead
//since image has parchment imbued, override only main page background
#define MM_BACKGROUNDS_MAINMENU_NOTINGAME BackgroundCustomHareSnare
#define MM_BACKGROUNDS_EXTRAMENU_NOTINGAME BackgroundCustomHareSnare

Note that the background image has parchment graphics in it (because otherwise custom title hack would hide parchment). For that reason:

  • I cannot set it on briefing and difficulty selection pages.
  • I cannot even set it for in-game menu, because objectives screen will look broken.

This I had to retain custom background only on the out-of-game main menu.

Added mainmenu_background_custom.gui with:

windowDef BackgroundCustomHareSnare
{
	rect		0, 0, 640, 480
	background	"guis/assets/hits1_menu"

	BACKGROUND_DEFAULT_BEHAVIOR(BackgroundCustomHareSnare)
}

With new TDM, the mission looks nice, custom background shows on the initial page + various settings/new game/load game pages. I clicked through various screens, and did not find anything looking bad.

In TDM 2.09, default background in shows everywhere in the main menu.

  • Like 1
Link to comment
Share on other sites

Mission "The Painter's Wife" by Fractured Glass Company (I guess @Bikerdude is corresponding author).
It overrides mainmenu_background.gui for custom background, and mainmenu_briefing_video.gui to hide empty briefing page.

I removed the custom .gui files.
Then added the following to mainmenu_custom_defs.gui:

//stgatilov #5323: skip briefing state
#define ENABLE_MAINMENU_BRIEFING 0

//stgatilov #5323: change background in main menu
#define MM_BACKGROUNDS_META_ALLSIMPLE BackgroundCustomPaintersWife

Added mainmenu_background_custom.gui with:

windowDef BackgroundCustomPaintersWife
{
	rect		0, 0, 640, 480
	background	"guis/assets/mainmenu/pw_background"

	BACKGROUND_DEFAULT_BEHAVIOR(BackgroundCustomPaintersWife)
}

The update FM works properly in the new TDM: custom backgrouns is displayed, briefing is skipped.
In TDM 2.09, main menu show default background, and the empty briefing page is shown.

  • Like 1
Link to comment
Share on other sites

Mission "Hidden Hands: Vitalic Fever" by @JackFarmer and @Amadeus.
It overrides
mainmenu_background.gui for main menu background and mainmenu_briefing_video.gui to skip empty briefing page.

Removed both files, then added this to mainmenu_custom_defs.gui:

//stgatilov #5323: skip briefing state
#define ENABLE_MAINMENU_BRIEFING 0

//stgatilov #5323: change background in main menu
#define MM_BACKGROUNDS_META_ALLSIMPLE BackgroundCustomVitalicFever

Also added mainmenu_background_custom.gui:

windowDef BackgroundCustomVitalicFever
{
	rect		0, 0, 640, 480
	background	"guis/assets/custom_title"

	BACKGROUND_DEFAULT_BEHAVIOR(BackgroundCustomVitalicFever)
}

As usual, everything is OK in new TDM, but TDM 2.09 now shows default background and displays empty briefing page.

  • Like 2
Link to comment
Share on other sites

Mission "Hidden Hands: The Lost Citadel" by @JackFarmer.

This one overrides mainmenu_background.gui to set background, mainmenu_briefing_video.gui to avoid empty briefing page. Also, it overrides mainmenu_newgame.gui to slightly move the title of the mission on mod selection page.

Removed all these files.
Added to mainmenu_custom_defs.gui:

//stgatilov #5323: skip briefing state
#define ENABLE_MAINMENU_BRIEFING 0

//stgatilov #5323: change background in main menu
#define MM_BACKGROUNDS_META_ALLSIMPLE BackgroundCustomLostCitadel

Added mainmenu_background_custom.gui with:

windowDef BackgroundCustomLostCitadel
{
	rect		0, 0, 640, 480
	background	"custom_goldwell_animated_menu"

	BACKGROUND_DEFAULT_BEHAVIOR(BackgroundCustomLostCitadel)
}

The updated FM works fine in new TDM: animated background works, briefing page is skipped.
However, the "Citadel" in the name of the FM is not visible in mod selection page. But given that this screen is defined by the currently installed mission, that dirty fix won't take effect most of the time anyway.

In TDM 2.09, the FM works too, but with default background in the menu, and with empty parchment shown as briefing.
Speaking of mod selection screen, there the complete name of the FM is displayed, but it does not fit the parchment it is displayed on... hmm 😁

  • Like 1
Link to comment
Share on other sites

Mission "Hidden Hands: The Anomaly" by @JackFarmer.

It has exactly the same overrides as in hhtlc:

  • mainmenu_background.gui for custom background
  • mainmenu_briefing_video.gui to skip briefing state
  • mainmenu_newgame.gui for a size tweak on mod selection page (not necessary here)

Removed all the overrides.

Added to mainmenu_custom_defs.gui:

//stgatilov #5323: skip briefing state
#define ENABLE_MAINMENU_BRIEFING 0

//stgatilov #5323: change background in main menu
#define MM_BACKGROUNDS_META_ALLSIMPLE BackgroundCustomHHAnomaly

Added mainmenu_background_custom.gui:

windowDef BackgroundCustomHHAnomaly
{
	rect		0, 0, 640, 480
	background	"guis/assets/custom_title"

	BACKGROUND_DEFAULT_BEHAVIOR(BackgroundCustomHHAnomaly)
}

In new TDM, the update FM looks good: custom background is displayed, briefing page is skipped.
In TDM 2.09, default background is shown in main menu, and empty briefing page is displayed --- as expected.

  • Like 1
Link to comment
Share on other sites

I'm quite happy for you to do any fixes you think are required for my map Briarwood Manor. I'm not clear enough on what would need to be changed, so I think it's better left to you. Nice work. :)

I have an eclectic YouTube channel making videos on a variety of games. Come and have look here:

https://www.youtube.com/c/NeonsStyleHD

 

Dark Mod Missions: Briarwood Manor - available here or in game

http://forums.thedarkmod.com/topic/18980-fan-mission-briarwood-manor-by-neonsstyle-first-mission-6082017-update-16/

 

 

Link to comment
Share on other sites

  • 1 month later...
On 6/12/2021 at 8:38 AM, stgatilov said:

Tried fixing campaign: No Honor Among Thieves by @Goldchocobo, @Mortem Desino and @Bikerdude.
I wonder if any of the original authors is reachable today.

This campaign has its own briefing video for each of the three missions.
Previously it was done via the "controlled by SDK method", which I'd like to remove.
So I had to provide old-style defines instead.

Here are my changes in "mainmenu_custom_defs.gui":

// stgatilov 5323: use old-style briefing video system instead
//#define BRIEFING_VIDEO_CONTROLLED_BY_SDK 1

#if MM_CURRENTMISSION == 1
	#define MM_BRIEFING_VIDEO_MATERIAL_1 "video/nhat_briefing_video_politics"
	#define MM_BRIEFING_VIDEO_LENGTH_1 121509
	#define MM_BRIEFING_VIDEO_SOUND_CMD "music video/nhat_briefing_politics;"
#elif MM_CURRENTMISSION == 2
	#define MM_BRIEFING_VIDEO_MATERIAL_1 "video/nhat_briefing_video_anoott"
	#define MM_BRIEFING_VIDEO_LENGTH_1 34205
	#define MM_BRIEFING_VIDEO_SOUND_CMD "music video/nhat_briefing_anoott;"
#elif MM_CURRENTMISSION == 3
	#define MM_BRIEFING_VIDEO_MATERIAL_1 "video/nhat_briefing_video_forest"
	#define MM_BRIEFING_VIDEO_LENGTH_1 34600
	#define MM_BRIEFING_VIDEO_SOUND_CMD "music video/nhat_briefing_forest;"
#endif

Also I commented out the MM_BRIEFING_VIDEO_MATERIAL_X, MM_BRIEFING_VIDEO_LENGTH_X and MM_BRIEFING_VIDEO_SOUND_CMD defines in the rest of the file.

It works for me now.
Unfortunately, the briefing won't work in 2.09 and earlier versions: it simple displays black screen, waiting for player to click mouse button.

I thought that it might take a bit of work to port these changes to nhat v4 but the changed mainmenu_custom_defs.gui works without any changes needed.

Nhat v4 repackage:

https://drive.google.com/file/d/1xyPwDQjMQH1TAH98Vd29UUiB0Nki1-7j/view?usp=sharing

  • Like 1

Please visit TDM's IndieDB site and help promote the mod:

 

http://www.indiedb.com/mods/the-dark-mod

 

(Yeah, shameless promotion... but traffic is traffic folks...)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


  • Recent Status Updates

    • STiFU

      We are taking our son on his very first holiday trip to see the sea for the first time. 🙂 Will be back in a week.
      · 0 replies
    • Gilkar

      When I was a young man my father was so ignorant I could hardly stand to have him around. As I grew older I was amazed at how much the old man had learned in such a short time.
      · 1 reply
    • jaxa

      RTX 3090 Super, RTX 3070 Ti 16 GB, RTX 2060 12 GB
      https://wccftech.com/nvidia-launching-rtx-3090-super-rtx-3070-ti-16gb-and-rtx-2060-12gb-by-january-2022/
      · 0 replies
    • duzenko

      CPU benchmark time - compiling DarkRadiant (2nd run)
      i5 8600K 6C/6T@4.4GHz DDR4 2x2133MHz 9MB cache
      Parallel builds: 1. 3:57 Parallel builds: 6 (default). 2:28 r5 1600AF 6C/12T@3.3GHz DDR4 1x2666MHz 16 MB cache, temp folder on HDD
      Parallel builds: 1. 5:05 Parallel builds: 4. 2:47 Parallel builds: 6. 2:55 Parallel builds: 12 (default). 2:57
      · 6 replies
    • nbohr1more

      Status updates are back so it is also a good time to return to contests!
      https://forums.thedarkmod.com/index.php?/topic/21095-christmas-connections-contest-2021
       
      · 0 replies
×
×
  • Create New...