Page 1 of 1

What is the LDX file and why can't I rewrite it? [Solved]

Posted: Sun Jan 09, 2011 10:42 am
by sampip
Hello again GT :)

Ok, so I've recently had the urge to go back into modding - so I redownloaded the tools and decided to try and create a new map. The process is fine, I can open the Modtools.exe fine, but when I click create, it does what it's supposed to do up until it comes to "Rewriting LDX file". At this point the thing stops and it comes up with a C++ Runtime error telling me the application has to close and the munging can't complete.

Now normally - I don't actually think it ever comes up with this when it's munging a map that works, because I tried again and it worked, but I didn't see anything about an "LDX" file in the log that comes up while it's munging.

I've munged one mod successfully which is fine for now but I can't seem to make any more and my question is:
What is the "LDX" file? What does it actually contain?

I've got all the rights to do anything in the folder that I may need to do so it's not to do with not having the rights to edit in the Lucasarts folder. I did post a topic about this before and I found the answer to it was to restart the computer, however I think it just randomly works sometimes and I'm not sure why this is. Anyone have any ideas about the LDX file and "rewriting it"?

EDIT
Ok, I did a bit of searching which I probably should have done before I posted here - and the .ldx file seems to be a file in the assets folder which is in every world folder. It is typically called ***.LDX (*** being the 3 letter world name) and typically contains this:
Hidden/Spoiler:
[code]Version(1);
NextID(4);

Layer("[Base]", 0, 8)
{
Description("");
}

Layer("conquest", 1, 0)
{
Description("");
}

Layer("ctf", 2, 2)
{
Description("");
}

Layer("1flag", 3, 0)
{
Description("");
}

Layer("eli", 4, 0)
{
Description("");
}


GameMode("Common")
{
Layer(0);
}

GameMode("conquest")
{
Layer(1);
}

GameMode("ctf")
{
Layer(2);
}

GameMode("1flag")
{
Layer(3);
}

GameMode("eli")
{
Layer(4);
}[/code]
(Example taken from the templates folder)
So that's what it is, but I'm still unsure as to why I can't rewrite it. Hmmm.

Rewriting LDX file error in Visual Munge - Norton anti-virus

Posted: Sun Jan 09, 2011 2:09 pm
by AceMastermind
sampip wrote:...decided to try and create a new map ... but when I click create, it does what it's supposed to do up until it comes to "Rewriting LDX file"....
Try disabling your antivirus software temporarily while you munge, Norton and possibly others seem to be the culprit.

forums/viewtopic.php?p=427437#p427437
forums/viewtopic.php?f=37&t=21789
forums/viewtopic.php?f=37&t=18467

Thread moved to Technical Advice and Tutorials

Re: What is the LDX file and why can't I rewrite it?

Posted: Sun Jan 09, 2011 4:15 pm
by sampip
Will do. Thanks :)