Page MenuHomeFeedback Tracker

ModStructure instance returning wrong values
New, NormalPublic

Description

List of methods:
GetModLogo(), GetModLogoSmall(), GetModLogoOver(), GetModActionURL(), GetModToltip() /*<- typo here */, GetModOverview()

All methods of ModStructure are returning mod name (m_ModName) instead of related string var value (m_ModLogo, m_ModLogoSmall, etc.)

Also, LoadData() method contains some weirdly shifted variables:

	GetGame().ConfigGetText( m_ModPath + " logo", m_ModLogoSmall );
	GetGame().ConfigGetText( m_ModPath + " logoSmall", m_ModLogoOver );
	GetGame().ConfigGetText( m_ModPath + " logoOver", m_ModActionURL );

Which leads us to issue with mod logos in main menu:
MainMenu::LoadMods() is trying to get mod logos using ModStructure::GetModLogo(), but it gets mod name instead of image path.
It's also shown in rpt logs (except for 1.02, where issue still exists, but there are no related logs)

16:19:23 RESOURCES (E): Bad texture name 'SomeModNameHere'
16:19:23 GUI (E): ImageWidget::LoadImageFile can't load 'SomeModNameHere'

Details

Severity
Minor
Resolution
Open
Reproducibility
N/A
Operating System
Windows 10 x64
Operating System Version
1803 (build 17134.648)
Category
Scripting
Steps To Reproduce
  1. Launch the game with any mod
  2. Take a look at pretty white box on lower-right corner of main menu
  3. (optional 1.01 only) Search through logs for ImageWidget::LoadImageFile errors
Additional Information

DayZ 1.01.150627
DayZ 1.02.150928

Event Timeline

3Vaker created this task.Mar 26 2019, 11:35 AM