Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Scripting to delete specific files/folders ... ?

The general place to discuss MOD''ing Freelancer!

Post Thu Dec 30, 2004 2:09 pm

Scripting to delete specific files/folders ... ?

Hello all, I was wondering if there is a way to use xml (or maybe something else) to delete cetain files. You know, without actually having to go in and manually delete that specific one. For example, I would like to make a mod patch that, when activated, will go into the SHIPS folder and delete the subfolder for a certain buggy ship in the Data/Ships directory. I want it gone - no mo Too many dumb crashes.

Is there a way to do this?
Thanks a lot.

__________________________________________________________

"Do you see the slightest evidence anywhere out there that man was the climax towards which creation had been straining from the beginning? That creation came to a screeching halt with the birth of man?"
- Ishmael

Post Thu Dec 30, 2004 2:41 pm

Try the "How-To" of the FLMM, I recently read something abaout deleting files there.

Post Fri Dec 31, 2004 10:21 am

Is that the How-To inside the FLMM, or is that the forum you're talking about?

Ro9ue
__________________________________________________________

"Do you see the slightest evidence anywhere out there that man was the climax towards which creation had been straining from the beginning? That creation came to a screeching halt with the birth of man?"
- Ishmael

Post Fri Dec 31, 2004 11:19 am

You can't delete *files* with FLMM, but you can delete sections of INIs, replace a file whilst interpreting it, and other things.

For example, there's a mod that Speedcoder wrote that deletes all references to Cloak, making it much less easy for people to cheat without getting caught. It basically works by performing a series of section-delete operations within several files.

... and if you wanna get rid of a ship... all you need to do is replace the ship's CMP with something that works, by altering the appropriate lines in Shiparch.ini, and then altering the Loadouts.ini in an appropriate fashion, which you could do via FLMM very easily. But a better strategy (imho) would be to use the section-replace commands to change every entry in Faction_Prop.ini that refers to the ship's listing in npcships.ini, and then use another script to alter market_ships.ini so that the ship would no longer be on sale.

If you want to totally delete a ship, then we're talking about editing quite a few INIs, as there will be a lot of references to it throughout the mod. As you're working on the ReBal massive addon... I think FLMM/XML might be a very good choice.

Edited by - Argh on 12/31/2004 11:24:49 AM

Post Sat Jan 01, 2005 10:02 pm

Alright, roger that :p Thanks for the advice. I'll use the xml script to try it out.

Ro9ue
__________________________________________________________

"Do you see the slightest evidence anywhere out there that man was the climax towards which creation had been straining from the beginning? That creation came to a screeching halt with the birth of man?"
- Ishmael

Return to Freelancer General Editing Forum