Defences Expand mod bugged?

Everything about mods can be found here.

Moderator: Morax

Defences Expand mod bugged?

Postby Inspexor » 17 Jun 2016, 14:54

If i create a lobby and pre-activate "Defences Expand" i can't activate any other mods anymore as soon as i'm in the lobby.
If i activate "Defences Expand" in the lobby (over Mod-Manager) it doesn't lock in if i click on it.
It shows the small white borders but there is no sound when i click it and the mod doesn't activate.
It works for the other mods tho.

This happens with 1.0 and 1.1 and i doubt it will work with one of the other versions (i don't want to use them anyway because they make defences too OP imo).

It has always worked until now...
User avatar
Inspexor
Crusader
 
Posts: 27
Joined: 06 Jun 2015, 19:24
Has liked: 1 time
Been liked: 0 time
FAF User Name: Inspexor

Re: Defences Expand mod bugged?

Postby HUSSAR » 17 Jun 2016, 20:18

If you cannot select a mod in the Mod-Manager then it means the mod is disabled/blacklisted for one of these reasons:
- HARMFUL mod
- BROKEN mod
- OBSOLETE by newer mod
- INTEGRATED in FAF patch
- UPGRADE mod from mod vault
- INCOMPATIBLE with current FAF
________________________________________________________
MY FAF CONTRIBUTIONS:
UI Mod - Supreme Score Board
FAF Feature - Accurate Units Stats
FAF Feature - Unit Restriction Manager
User avatar
HUSSAR
Avatar-of-War
 
Posts: 126
Joined: 17 Sep 2015, 06:59
Location: Philly, USA
Has liked: 38 times
Been liked: 59 times
FAF User Name: HUSSAR

Re: Defences Expand mod bugged?

Postby Uveso » 18 Jun 2016, 04:43

This happens, if i try to activate the Defences Expand mod:

Code: Select all
WARNING: Error running HandleEvent script in CScriptObject at 150d6800: ...mdata\faforever\repo\fa\lua\ui\lobby\modsmanager.lua(408): attempt to concatenate field `type' (a nil value)
         stack traceback:
            ...mdata\faforever\repo\fa\lua\ui\lobby\modsmanager.lua(408): in function `GetModNameType'
            ...mdata\faforever\repo\fa\lua\ui\lobby\modsmanager.lua(823): in function `OnCheck'
            ...1.5.3603\gamedata\mohodata.scd\lua\maui\checkbox.lua(45): in function `SetCheck'
            ...1.5.3603\gamedata\mohodata.scd\lua\maui\checkbox.lua(53): in function `ToggleCheck'
            ...1.5.3603\gamedata\mohodata.scd\lua\maui\checkbox.lua(114): in function `OnClick'
            ...1.5.3603\gamedata\mohodata.scd\lua\maui\checkbox.lua(96): in function <...1.5.3603\gamedata\mohodata.scd\lua\maui\checkbox.lua:75>


This is line 408 inside modsmanager.lua:

Code: Select all
return mod.type  .. ' mod - '.. mod.title


mod.type is nil, because "ui_only = false" is missing inside mod_info.lua from "DefencesExpand v1.2 Enhanced" Mod.

There are 2 ways to fix this Error:

Inspexor:
1. Add "ui_only = false" to mod_info.lua inside the "DefencesExpand v1.2 Enhanced" Mod directory.

HUSSAR:
2. Change line 408 to:
Code: Select all
return mod.type or "GAME" .. ' mod - '.. mod.title or "Unkown"


Greetings Uveso.
User avatar
Uveso
Supreme Commander
 
Posts: 1788
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 70 times
Been liked: 291 times
FAF User Name: Uveso


Return to Mods & Tools

Who is online

Users browsing this forum: No registered users and 1 guest