Forged Alliance Forever Forged Alliance Forever Forums 2016-09-11T06:45:45+02:00 /feed.php?f=15&t=11011 2016-09-11T06:45:45+02:00 2016-09-11T06:45:45+02:00 /viewtopic.php?t=11011&p=135014#p135014 <![CDATA[Re: Nomads are broken?]]>
I didn't realize faf was loading my mods from my steam game data folder. I'll have to remove those too. Thanks for pointing that out.

Statistics: Posted by RavenCurow — 11 Sep 2016, 06:45


]]>
2016-09-11T06:31:02+02:00 2016-09-11T06:31:02+02:00 /viewtopic.php?t=11011&p=135009#p135009 <![CDATA[Re: Nomads are broken?]]>

At least i can say the error is in line 251 but the original file only has 147 Lines.
Code:
medata\lua.nx2\lua\ui\game\layouts\unitview_mini.lua(251): attempt to call method `Destroy' (a nil value)

In this case the error should be inside the hook file around line 104
Code:
/nomadhook/lua/ui/game/layouts/unitview_mini.lua


There are some other issues inside the log:

These are all mods and some of them are hooking game files. Please delete those before you start debug something.
Code:
info: checking b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\*.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\00_cheatoptions.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\01_aisupport.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\01_MoreColorsMod.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\02_sorian_ai_pack.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\03_lobbyenhancement.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\Advanced strategic icons.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\brewlan.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\modorderloadfix.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\Siege Walls.scd
info: not safe b:\steam\SteamApps\common\Supreme Commander Forged Alliance\gamedata\TF_CampaignModEnabler.scd



?? Are you mounting 2 versions of nomads at the same time ???
Code:
info: DISK: AddSearchPath: 'b:\programdata\faforever\gamedata\fafnomads.nomad', mounted as '/'
info: DISK: AddSearchPath: 'b:\programdata\faforever\gamedata\nomads.nomad', mounted as '/'



Damaged file scta-env.scd.
Code:
warning: Couldn't locate zip directory for 'b:\steam\steamapps\common\supreme commander forged alliance\gamedata\scta-env.scd'
warning: Search path element "b:\steam\steamapps\common\supreme commander forged alliance\gamedata\scta-env.scd" is not a valid .zip file.



Thats all. can't see more inside the log.

Statistics: Posted by Uveso — 11 Sep 2016, 06:31


]]>
2016-09-11T04:01:33+02:00 2016-09-11T04:01:33+02:00 /viewtopic.php?t=11011&p=135004#p135004 <![CDATA[Re: Nomads are broken?]]>
Code:
do


function SetLayout()
    local controls = import('/lua/ui/game/unitview.lua').controls
    controls.bg:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/build-over-back_bmp.dds'))
    LayoutHelpers.AtLeftIn(controls.bg, controls.parent)
    LayoutHelpers.AtBottomIn(controls.bg, controls.parent)
   
    controls.bracket:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/bracket-unit_bmp.dds'))
    LayoutHelpers.AtLeftTopIn(controls.bracket, controls.bg, -18, -2)
   
    if controls.bracketMid then
        controls.bracketMid:Destroy()
        controls.bracketMid = false
    end
    if controls.bracketMax then
        controls.bracketMax:Destroy()
        controls.bracketMax = false
    end
   
    LayoutHelpers.AtLeftTopIn(controls.name, controls.bg, 16, 14)
    LayoutHelpers.AtRightIn(controls.name, controls.bg, 16)
    controls.name:SetClipToWidth(true)
    controls.name:SetDropShadow(true)
   
    LayoutHelpers.AtLeftTopIn(controls.icon, controls.bg, 12, 34)
    controls.icon.Height:Set(48)
    controls.icon.Width:Set(48)
    LayoutHelpers.AtLeftTopIn(controls.stratIcon, controls.icon)
    LayoutHelpers.Below(controls.vetIcons[1], controls.icon, 5)
    LayoutHelpers.AtLeftIn(controls.vetIcons[1], controls.icon, -5)
    for index = 2, 5 do
        local i = index
        LayoutHelpers.RightOf(controls.vetIcons[i], controls.vetIcons[i-1], -3)
    end
    LayoutHelpers.AtLeftTopIn(controls.healthBar, controls.bg, 66, 35)
    controls.healthBar.Width:Set(188)
    controls.healthBar.Height:Set(16)
    controls.healthBar:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/healthbar_bg.dds'))
    controls.healthBar._bar:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/healthbar_green.dds'))
    LayoutHelpers.AtBottomIn(controls.shieldBar, controls.healthBar)
    LayoutHelpers.AtLeftIn(controls.shieldBar, controls.healthBar)
    controls.shieldBar.Width:Set(188)
    controls.shieldBar.Height:Set(2)
    controls.shieldBar:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/healthbar_bg.dds'))
    controls.shieldBar._bar:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/shieldbar.dds'))
    LayoutHelpers.Below(controls.fuelBar, controls.shieldBar)
    controls.fuelBar.Width:Set(188)
    controls.fuelBar.Height:Set(2)
    controls.fuelBar:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/healthbar_bg.dds'))
    controls.fuelBar._bar:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/fuelbar.dds'))
    LayoutHelpers.AtCenterIn(controls.health, controls.healthBar)
   controls.health:SetDropShadow(true)

    LayoutHelpers.Below(controls.capacitorBar, controls.fuelBar)
    controls.capacitorBar.Width:Set(188)
    controls.capacitorBar.Height:Set(2)
    controls.capacitorBar:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/healthbar_bg.dds'))
    controls.capacitorBar._bar:SetTexture(UIUtil.UIFile('/game/unit-build-over-panel/capacitorbar.dds'))
    LayoutHelpers.AtCenterIn(controls.health, controls.healthBar)

   
    local iconPositions = {
        [1] = {Left = 70, Top = 60},
        [2] = {Left = 70, Top = 80},
        [3] = {Left = 190, Top = 60},
        [4] = {Left = 130, Top = 60},
        [5] = {Left = 130, Top = 80},
        [6] = {Left = 130, Top = 80},
        [7] = {Left = 190, Top = 80},
        [8] = {Left = 130, Top = 80} # position capacitor icon at shield position
    }
    local iconTextures = {
        UIUtil.UIFile('/game/unit_view_icons/mass.dds'),
        UIUtil.UIFile('/game/unit_view_icons/energy.dds'),
        UIUtil.UIFile('/game/unit_view_icons/kills.dds'),
      UIUtil.UIFile('/game/unit_view_icons/kills.dds'),
        UIUtil.UIFile('/game/unit_view_icons/missiles.dds'),
        UIUtil.UIFile('/game/unit_view_icons/shield.dds'),
        UIUtil.UIFile('/game/unit_view_icons/fuel.dds'),
        UIUtil.UIFile('/game/unit_view_icons/capacitor.dds'),
    }
    for index = 1, 7 do
        local i = index
        if iconPositions[i] then
            LayoutHelpers.AtLeftTopIn(controls.statGroups[i].icon, controls.bg, iconPositions[i].Left, iconPositions[i].Top)
        else
            LayoutHelpers.Below(controls.statGroups[i].icon, controls.statGroups[i-1].icon, 5)
        end
        controls.statGroups[i].icon:SetTexture(iconTextures[i])
        LayoutHelpers.RightOf(controls.statGroups[i].value, controls.statGroups[i].icon, 5)
        LayoutHelpers.AtVerticalCenterIn(controls.statGroups[i].value, controls.statGroups[i].icon)
        controls.statGroups[i].value:SetDropShadow(true)
    end
    LayoutHelpers.AtLeftTopIn(controls.actionIcon, controls.bg, 261, 34)
    controls.actionIcon.Height:Set(48)
    controls.actionIcon.Width:Set(48)
    LayoutHelpers.Below(controls.actionText, controls.actionIcon)
    LayoutHelpers.AtHorizontalCenterIn(controls.actionText, controls.actionIcon)
   
    controls.abilities.Left:Set(function() return controls.bg.Right() + 19 end)
    controls.abilities.Bottom:Set(function() return controls.bg.Bottom() - 50 end)
    controls.abilities.Height:Set(50)
    controls.abilities.Width:Set(200)

    if controls.abilityBG then controls.abilityBG:Destroy() end
    controls.abilityBG = NinePatch(controls.abilities,
        UIUtil.UIFile('/game/filter-ping-list-panel/panel_brd_m.dds'),
        UIUtil.UIFile('/game/filter-ping-list-panel/panel_brd_ul.dds'),
        UIUtil.UIFile('/game/filter-ping-list-panel/panel_brd_ur.dds'),
        UIUtil.UIFile('/game/filter-ping-list-panel/panel_brd_ll.dds'),
        UIUtil.UIFile('/game/filter-ping-list-panel/panel_brd_lr.dds'),
        UIUtil.UIFile('/game/filter-ping-list-panel/panel_brd_vert_l.dds'),
        UIUtil.UIFile('/game/filter-ping-list-panel/panel_brd_vert_r.dds'),
        UIUtil.UIFile('/game/filter-ping-list-panel/panel_brd_horz_um.dds'),
        UIUtil.UIFile('/game/filter-ping-list-panel/panel_brd_lm.dds')
    )

    controls.abilityBG:Surround(controls.abilities, 3, 5)
    LayoutHelpers.DepthUnderParent(controls.abilityBG, controls.abilities)

    if options.gui_detailed_unitview != 0 then
        LayoutHelpers.AtLeftTopIn(controls.healthBar, controls.bg, 66, 25)
        LayoutHelpers.Below(controls.shieldBar, controls.healthBar)
        controls.shieldBar.Height:Set(14)
        LayoutHelpers.CenteredBelow(controls.shieldText, controls.shieldBar,0)
        controls.shieldBar.Height:Set(2)
        LayoutHelpers.AtLeftTopIn(controls.statGroups[1].icon, controls.bg, 70, 55)
        LayoutHelpers.RightOf(controls.statGroups[1].value, controls.statGroups[1].icon, 5)
        LayoutHelpers.Below(controls.statGroups[2].icon, controls.statGroups[1].icon,0)
        -- LayoutHelpers.AtRightTopIn(controls.StorageMass, controls.bg, 145, 55)
        LayoutHelpers.RightOf(controls.statGroups[2].value, controls.statGroups[2].icon, 5)
        -- LayoutHelpers.AtRightTopIn(controls.StorageEnergy, controls.bg, 145, 73)
        LayoutHelpers.Below(controls.Buildrate, controls.statGroups[2].value,1)
    end

end

function PositionWindow()
    local controls = import('/lua/ui/game/unitview.lua').controls
    local consControl = import('/lua/ui/game/construction.lua').controls.constructionGroup
    if consControl:IsHidden() then
        LayoutHelpers.AtBottomIn(controls.bg, controls.parent)
        controls.abilities.Bottom:Set(function() return controls.bg.Bottom() - 24 end)
    else
        LayoutHelpers.AtBottomIn(controls.bg, controls.parent, 120)
        controls.abilities.Bottom:Set(function() return controls.bg.Bottom() - 42 end)
    end
    LayoutHelpers.AtLeftIn(controls.bg, controls.parent, 17)
end
end


Here is my error log. I know there are other errors below this one, but I'm trying to take them one at a time lol.

Error Log
https://www.dropbox.com/s/2axctynxcglcjfc/game.log?dl=0

Statistics: Posted by RavenCurow — 11 Sep 2016, 04:01


]]>
2016-09-05T06:47:08+02:00 2016-09-05T06:47:08+02:00 /viewtopic.php?t=11011&p=134606#p134606 <![CDATA[Re: Nomads are broken?]]> After all scripts are running, its time to check the units. :)

Statistics: Posted by Uveso — 05 Sep 2016, 06:47


]]>
2016-09-05T03:48:30+02:00 2016-09-05T03:48:30+02:00 /viewtopic.php?t=11011&p=134601#p134601 <![CDATA[Re: Nomads are broken?]]> Statistics: Posted by RavenCurow — 05 Sep 2016, 03:48


]]>
2016-09-04T20:51:32+02:00 2016-09-04T20:51:32+02:00 /viewtopic.php?t=11011&p=134579#p134579 <![CDATA[Re: Nomads are broken?]]>
http://faforever.uveso.de/UvesoDebuggerV4.2.zip

After installing the mod, the mainscript can be found in:
C:\Users\YOURNAME\Documents\My Games\Gas Powered Games\Supreme Commander Forged Alliance\Mods\Uveso Debugger\debug\UnitDebug.lua

Functions:
Code:
- Shift-H = Print KeyBindings         -- Print Debugger keyBindings to the LOG Window

- Shift-Q = ModUnitCheck              -- Basic check for units with icons found in Mod folders
- Shift-W = ValidateCategories        -- Check Categories
- Shift-E = ValidateUnitIcons         -- Check UnitIcons
- Shift-R = Validate Strategic Icons  -- Check Strategic Icons
- Shift-T = CheckDisplayAbilities     -- Check Display Abilities
- Shift-Z = Check Selection Size      -- Check General selection size, size and skirt
- Shift-U = Check Unit Enhancements   -- Check Enhancements

- Shift-A = CkeckWeaponAnimation      -- Check Filepath of Weapons Animation
- Shift-S = ModWeaponProjIDCheck      -- Check Filepath of Weapons ProjectileID
- Shift-D = ModDisplayMeshCheck       -- Check LOD's and meshes from units
- Shift-F = ModUnitSoundCheck         -- Plays all Sounds inside unit Blueprint Audio.
- Shift-G = ModWeaponSoundCheck       -- Plays all Weaponsounds inside unit Blueprint Weapon.

- Shift-Y = BuildAiScripts            -- Build AI Scripts from mod units for the customunit folder
- Shift-X = GetUnitList               -- Print an array with all Units from a specified Mod. Only used for icon Support Mod script.
- Shift-C = Game File Check           -- Checks number and size of gamefiles (alpha state)

- Shift-V = Execute function Check()  -- Execute function UnitDebug.lua.check()
- Shift-B = CheckBlacklistedUnits     -- Checks blacklisted units
- Shift-N = Check localisation        -- Checks localisation (alpha state, only german)


The mod is higly alpha state, but maybe you will find it useful.

Statistics: Posted by Uveso — 04 Sep 2016, 20:51


]]>
2016-09-01T23:54:51+02:00 2016-09-01T23:54:51+02:00 /viewtopic.php?t=11011&p=134295#p134295 <![CDATA[Re: Nomads are broken?]]> Statistics: Posted by RavenCurow — 01 Sep 2016, 23:54


]]>
2016-09-01T17:19:55+02:00 2016-09-01T17:19:55+02:00 /viewtopic.php?t=11011&p=134225#p134225 <![CDATA[Re: Nomads are broken?]]>

Statistics: Posted by Uveso — 01 Sep 2016, 17:19


]]>
2016-09-01T10:43:13+02:00 2016-09-01T10:43:13+02:00 /viewtopic.php?t=11011&p=134164#p134164 <![CDATA[Re: Nomads are broken?]]> Statistics: Posted by RavenCurow — 01 Sep 2016, 10:43


]]>
2016-09-01T08:20:51+02:00 2016-09-01T08:20:51+02:00 /viewtopic.php?t=11011&p=134148#p134148 <![CDATA[Re: Nomads are broken?]]> please look at your PM inbox :)

Statistics: Posted by Uveso — 01 Sep 2016, 08:20


]]>
2016-09-01T02:48:26+02:00 2016-09-01T02:48:26+02:00 /viewtopic.php?t=11011&p=134124#p134124 <![CDATA[Re: Nomads are broken?]]> Statistics: Posted by RavenCurow — 01 Sep 2016, 02:48


]]>
2016-08-31T21:54:13+02:00 2016-08-31T21:54:13+02:00 /viewtopic.php?t=11011&p=134098#p134098 <![CDATA[Re: Nomads are broken?]]> Awesome news :D

Join Today! (Slack) :)
viewtopic.php?f=53&t=13040

Statistics: Posted by Uveso — 31 Aug 2016, 21:54


]]>
2016-08-31T09:27:36+02:00 2016-08-31T09:27:36+02:00 /viewtopic.php?t=11011&p=134051#p134051 <![CDATA[Re: Nomads are broken?]]>
Image

Statistics: Posted by RavenCurow — 31 Aug 2016, 09:27


]]>
2016-08-30T17:59:31+02:00 2016-08-30T17:59:31+02:00 /viewtopic.php?t=11011&p=133956#p133956 <![CDATA[Re: Nomads are broken?]]>
The first Errorwarning is the only thing you shoud care. All lines behind can be related to the first error.

So always fix the first error in log, and see how it works then.

Statistics: Posted by Uveso — 30 Aug 2016, 17:59


]]>
2016-08-30T09:16:16+02:00 2016-08-30T09:16:16+02:00 /viewtopic.php?t=11011&p=133913#p133913 <![CDATA[Re: Nomads are broken?]]> Statistics: Posted by RavenCurow — 30 Aug 2016, 09:16


]]>