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

How To's, Questions, and Solutions for problems. This covers anything from computer hardware problems to software recommendations to tutorials for various software programs.

Note: Neither Gametoast nor any of its members/visitors are responsible for any damage to your computer as a result from advice given in this forum. Follow advice at your own risk and be sure to back up any important files.

Moderator: Moderators

Post Reply
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

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

Post 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.
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

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

Post 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
User avatar
sampip
General
General
Posts: 792
Joined: Mon Mar 16, 2009 12:08 pm
Projects :: Something big. And exciting.
Games I'm Playing :: Battlefield 3
xbox live or psn: masowner66
Location: Zebra

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

Post by sampip »

Will do. Thanks :)
Post Reply