Issue after updating the mod to the new version

MrCrisps
Corporal
Posts: 45
Joined: Wed 19 Apr 2017 20:15
Contact:

Issue after updating the mod to the new version

Postby MrCrisps » Wed 14 Jun 2017 18:42

Hi all !

I've just updated my mod and merged the changes. No problem here.

The issue comes from the Packs.ndf file which indicates a syntax error when generating the mod.
The message is as follows :

@file:GameData:/Gameplay/Decks/Generated/Packs.ndf@(84227:2) syntax error, unexpected $end

I don't understand as I have changed nothing at this line.

My code is :

Code: Select all

export Descriptor_Deck_Pack_US_82_solo_Flak88mm_US_WC25 is TDeckPackDescriptor
(
    DescriptorId = GUID:{cb6a28ff-0744-4bb9-aa38-fbb7ac91541a}
    PackToken = ''
    AvailableFromPhase = 0
    ExperienceLevel = 0
    FactoryType = EDefaultFactories/DCA
    TransporterAndUnitsList =
    [
        TDeckTransporterAndUnitsDescriptor
        (
            TransporterDescriptor = ~/Descriptor_Unit_Truck_WC25_US
            UnitDescriptorList =
            [
                ~/Descriptor_Unit_Flak_36_88mm_US_solo,
            ]
        ),
    ]
)




The line which bugs is the last (number 84227).

I don't understand what is wrong here so if anyone could explain it to me it would be really helpful.
Thanks in advance,

Lork, creator of Storm in the West'44 mod.

User avatar
The W:AB Noob
Lieutenant General
Posts: 4568
Joined: Fri 12 Jul 2013 22:29
Location: United States, Central Time Zone
Contact:

Re: Issue after updating the mod to the new version

Postby The W:AB Noob » Wed 14 Jun 2017 22:39

It seems to look alright to me. I doubt that this is the problem, but see if deleting the last empty line does anything.
W:RD Sandbox Mod 5.4.3 Click -> Image

MrCrisps
Corporal
Posts: 45
Joined: Wed 19 Apr 2017 20:15
Contact:

Re: Issue after updating the mod to the new version

Postby MrCrisps » Thu 15 Jun 2017 01:31

Tried to but it didn't changed anything... :(

naizarak
Captain
Posts: 1626
Joined: Tue 25 Dec 2012 12:53
Contact:

Re: Issue after updating the mod to the new version

Postby naizarak » Thu 15 Jun 2017 02:25

you didn't close one of the earlier descriptors, probably a missing ")" somewhere

MrCrisps
Corporal
Posts: 45
Joined: Wed 19 Apr 2017 20:15
Contact:

Re: Issue after updating the mod to the new version

Postby MrCrisps » Thu 15 Jun 2017 03:28

Thanks !

Any idea how to find it without having to scroll the 84000+ lines?

naizarak
Captain
Posts: 1626
Joined: Tue 25 Dec 2012 12:53
Contact:

Re: Issue after updating the mod to the new version

Postby naizarak » Thu 15 Jun 2017 04:39

you can use the BracketsCheck plugin in notepad++

MrCrisps
Corporal
Posts: 45
Joined: Wed 19 Apr 2017 20:15
Contact:

Re: Issue after updating the mod to the new version

Postby MrCrisps » Thu 15 Jun 2017 18:11

Thank you very much, it worked !

But sadly, I have another issue : a lot of the entries of the UniteDescriptor.ndf have been doubled... I don't know why but i'm actually trying to erase all the doublons. Is there anyway, with some plugin, to use the research but for 10000+ lines? It would reduce the time for rectifying the double entries way faster.
As I'm doing it actually, I have to erase entries one by one and it's incredibly time consuming...

Thanks in advance for any help.

MrCrisps
Corporal
Posts: 45
Joined: Wed 19 Apr 2017 20:15
Contact:

Re: Issue after updating the mod to the new version

Postby MrCrisps » Thu 15 Jun 2017 22:04

Again, another bug... (i'm going crazy)

I've resolved the issue with the double entries in the UniteDescriptor.ndf with a lot of time.

The new issue is one error message when I try to generate the mod :

Code: Select all

Title : Revision SVN: 390082002 - gitlab/steeldivision.hotfix | Erreurs NDF
Message : NDF build errors :

press Yes to retry
================
Stack
================
@file:GameData:/Gameplay/Gfx/Generated/UniteDescriptor.ndf@(58738:50) object not found : $/GFX/Everything/Texture_lances_flammes
    @file:GameData:/Gameplay/Gfx/Generated/UniteDescriptor.ndf@(58729:17)
    @file:GameData:/Gameplay/Gfx/Generated/UniteDescriptor.ndf@(58729:17)
    @file:GameData:/Gameplay/Gfx/Generated/UniteDescriptor.ndf@(58726:13)
    @file:GameData:/Gameplay/Gfx/Generated/UniteDescriptor.ndf@(58726:13)
    @file:GameData:/Gameplay/Gfx/Generated/UniteDescriptor.ndf@(58003:40)
    @file:GameData:/Gameplay/Gfx/Generated/UniteDescriptor.ndf@(58000:1)
    @file:GameData:/Gameplay/Gfx/Generated/UniteDescriptor.ndf@(57999:41)
   


I don't understand as the lines are reffering to units other than Flamethrower based units...
Thanks in advance for any help.

User avatar
The W:AB Noob
Lieutenant General
Posts: 4568
Joined: Fri 12 Jul 2013 22:29
Location: United States, Central Time Zone
Contact:

Re: Issue after updating the mod to the new version

Postby The W:AB Noob » Fri 16 Jun 2017 11:12

So I think maybe the UpdateMod.bat copies the modded instances but it doesn't want to change the original so it copies both? I have not used the batch script yet so I don't really know. As for deleting doubles, if you're good at coding, you can write a script to easily do that. (You can refer to a python script I wrote here: viewtopic.php?f=205&t=60108#p1036426). There might be a plugin for notepad++, but for SD modding, I'm using Sublime Text 3.
W:RD Sandbox Mod 5.4.3 Click -> Image

Return to “Modding Tools”

Who is online

Users browsing this forum: No registered users and 1 guest