Game keeps crashing as soon as I "try" to load into game

CUIManager::Init - unable to start main UI script.

Program : C:\ProgramData\FAForever\bin\ForgedAlliance.exe
Cmd line arguments : /init init.lua /nobugreport /log C:\Users\Owner\AppData\Roaming\Forged Alliance Forever\logs\game_16895003.log /gpgnet 127.0.0.1:47217 /mean 1500.0 /deviation 500.0 /savereplay gpgnet://127.0.0.1:65424/16895003/Gardris.SCFAreplay /country US /numgames 0 /numgames 0

Callstack:
Unknown symbol (address 0x0083d276)
Unknown symbol (address 0x0088c4ad)

Last 100 lines of log...

debug: hookdir="/hook",
debug: icon="/Mods/XtremWars/XWars.dds",
debug: location="/mods/xtremwars",
debug: name="Extreme Wars.",
debug: requires={ },
debug: requiresNames={ },
debug: selectable=true,
debug: shadowdir="/shadow",
debug: ui_only=false,
debug: uid="1",
debug: url="http://www.moddb.com/mods/xtreme-wars",
debug: version=1
debug: }
debug: }
info: Hooked /lua/defaultunits.lua with /mods/rks_explosions/hook/lua/defaultunits.lua
info: Hooked /lua/sim/unit.lua with /mods/rks_explosions/hook/lua/sim/unit.lua
info: Global Explosion Scale: \0001
warning: ambiguous state with identifier: IdleState, behavior is unpredictable. Solution is to choose the desired state of the basis in the specifications - this needs to be done by the author of the mod.
warning: stack traceback:
warning: ...data\faforever\gamedata\lua.nx2\lua\system\class.lua(361): in function ConstructClass' warning: ...data\faforever\gamedata\lua.nx2\lua\system\class.lua(184): in function <...data\faforever\gamedata\lua.nx2\lua\system\class.lua:183> warning: ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(3315): in main chunk warning: [C]: in function doscript'
warning: [C]: ?
warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(86): in function import' warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(71): in function import'
warning: ...\gamedata\units.nx2\units\uel0001\uel0001_script.lua(9): in main chunk
warning: [C]: in function doscript' warning: [C]: ? warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(86): in function import'
warning: [C]: in function CreateInitialArmyUnit' warning: ...rever\gamedata\lua.nx2\lua\sim\scenarioutilities.lua(334): in function CreateInitialArmyGroup'
warning: ...rever\gamedata\lua.nx2\lua\sim\scenarioutilities.lua(553): in function InitializeArmies' warning: ...er forged alliance\maps\scmp_001\scmp_001_script.lua(4): in function OnPopulate'
warning: ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(280): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua:253>
warning: ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(425): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua:417>
warning: ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(472): in function BeginSession' warning: ambiguous state with identifier: UpgradingState, behavior is unpredictable. Solution is to choose the desired state of the basis in the specifications - this needs to be done by the author of the mod. warning: stack traceback: warning: ...data\faforever\gamedata\lua.nx2\lua\system\class.lua(361): in function ConstructClass'
warning: ...data\faforever\gamedata\lua.nx2\lua\system\class.lua(184): in function <...data\faforever\gamedata\lua.nx2\lua\system\class.lua:183>
warning: ...data\faforever\gamedata\lua.nx2\lua\defaultunits.lua(3369): in main chunk
warning: [C]: in function doscript' warning: [C]: ? warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(86): in function import'
warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(71): in function import' warning: ...\gamedata\units.nx2\units\uel0001\uel0001_script.lua(9): in main chunk warning: [C]: in function doscript'
warning: [C]: ?
warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(86): in function import' warning: [C]: in function CreateInitialArmyUnit'
warning: ...rever\gamedata\lua.nx2\lua\sim\scenarioutilities.lua(334): in function CreateInitialArmyGroup' warning: ...rever\gamedata\lua.nx2\lua\sim\scenarioutilities.lua(553): in function InitializeArmies'
warning: ...er forged alliance\maps\scmp_001\scmp_001_script.lua(4): in function OnPopulate' warning: ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(280): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua:253> warning: ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(425): in function <...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua:417> warning: ...ogramdata\faforever\gamedata\lua.nx2\lua\siminit.lua(472): in function BeginSession'
info: Hooked /lua/terranweapons.lua with /schook/lua/terranweapons.lua
info: Hooked /lua/terranweapons.lua with /mods/xtremwars/hook/lua/terranweapons.lua
info: Hooked /lua/sim/defaultweapons.lua with /mods/totalmayhem/hook/lua/sim/defaultweapons.lua
info: Hooked /lua/sim/weapon.lua with /schook/lua/sim/weapon.lua
info: Hooked /lua/defaultcollisionbeams.lua with /mods/xtremwars/hook/lua/defaultcollisionbeams.lua
info: Hooked /lua/cybranweapons.lua with /mods/xtremwars/hook/lua/cybranweapons.lua
info: Hooked /lua/aeonweapons.lua with /schook/lua/aeonweapons.lua
info: Hooked /lua/aeonweapons.lua with /mods/xtremwars/hook/lua/aeonweapons.lua
info: * Total Mayhem: [siminit.lua, line:489] - Running from: @c:\programdata\faforever\gamedata\lua.nx2\lua\siminit.lua.
info: * Total Mayhem: [siminit.lua, line:490] - Checking directory /mods/ for TotalMayhem...
info: * Total Mayhem: [siminit.lua, line:497] - Found directory: /mods/totalmayhem/mod_info.lua.
info: * Total Mayhem: [siminit.lua, line:502] - Check OK. Found 1 TotalMayhem directory.
info: * Total Mayhem: [siminit.lua, line:506] - Checking files and filesize for TotalMayhem...
info: * Total Mayhem: [siminit.lua, line:533] - Check OK! files: 2178, bytecount: 749995008.
info: Hooked /lua/ui/uiutil.lua with /mods/t2_t3_storage_faf/hook/lua/ui/uiutil.lua
info: Hooked /lua/ui/uiutil.lua with /mods/totalmayhem/hook/lua/ui/uiutil.lua
info: Hooked /lua/ui/uiutil.lua with /mods/t3engstationsfaf/hook/lua/ui/uiutil.lua
info: Hooked /lua/ui/uiutil.lua with /mods/xtremwars/hook/lua/ui/uiutil.lua
info: Total Mayhem: [uiutil.lua, line:1475] - Gameversion is 3652 or newer. No need to insert the unit icons by our own function.
warning: ...ramdata\faforever\gamedata\lua.nx2\lua\ui\uiutil.lua(1516): access to nonexistent global variable "MyModPath"
warning: stack traceback:
warning: [C]: in function error' warning: ...alliance\gamedata\mohodata.scd\lua\system\config.lua(53): in function <...alliance\gamedata\mohodata.scd\lua\system\config.lua:52> warning: ...ramdata\faforever\gamedata\lua.nx2\lua\ui\uiutil.lua(1516): in main chunk warning: [C]: in function doscript'
warning: [C]: ?
warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(86): in function import' warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(71): in function import'
warning: ...ramdata\faforever\gamedata\lua.nx2\lua\ui\uimain.lua(9): in main chunk
warning: [C]: in function doscript' warning: [C]: ? warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(86): in function import'
warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(71): Error importing '/lua/ui/uiutil.lua'
warning: stack traceback:
warning: [C]: in function error' warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(91): in function import'
warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(71): in function import' warning: ...ramdata\faforever\gamedata\lua.nx2\lua\ui\uimain.lua(9): in main chunk warning: [C]: in function doscript'
warning: [C]: ?
warning: ...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(86): in function import' warning: Error importing /lua/ui/uimain.lua: Error importing '/lua/ui/uimain.lua' stack traceback: [C]: in function error'
...ata\faforever\gamedata\lua.nx2\lua\system\import.lua(91): in function `import'
warning: Error running '/lua/ui/uimain.lua:SetupUI': attempt to index a nil value
stack traceback:

This error is unusual: warning: ...ramdata\faforever\gamedata\lua.nx2\lua\ui\uiutil.lua(1516): access to nonexistent global variable "MyModPath". It appears one of your UI mods is causing this crash, as uiutils.lua has only 1204 lines in the base game. The error happens on line 1516. I'd recommend trying with no (UI) mods and keep adding them in until you find the culprit.

A work of art is never finished, merely abandoned

@jip Thank will try

Solved Thank you @Jip

how did you solved it?

One of my mods ExtremeWars was causing the crash