.lst & .cfg generator based on .rfa of custom objects?

Ask questions, discuss ideas, get answers
Post Reply
Skull Kid
Posts: 158
Joined: Fri Aug 03, 2012 8:44 pm
Location: Sweden

.lst & .cfg generator based on .rfa of custom objects?

Post by Skull Kid »

Dear community,

Does anyone know a tool, for Battlecraft 1942, that can generate new .lst and .cfg files for Battlecraft 1942 to use custom objects?
Regards,

Skull Kid
Diamondback
Posts: 528
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: .lst & .cfg generator based on .rfa of custom objects?

Post by Diamondback »

I do know of a tool that generates LST files for your mod, but IIRC it only works for Desert Combat, check the readme.
As for the CFG file, you can configure it yourself in a matter of seconds.

For the LST file generator: http://www.battlefieldsingleplayer.com/ ... lstGen.exe

EDIT: Fixed the link, should work just fine now.
See my Strasbourg map project here.
Skull Kid
Posts: 158
Joined: Fri Aug 03, 2012 8:44 pm
Location: Sweden

Re: .lst & .cfg generator based on .rfa of custom objects?

Post by Skull Kid »

Dear Classical Modder,

Thanks a TON for this!

EDIT: It does crash when I try to start it :(, I'm using Windows 7.
Regards,

Skull Kid
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: .lst & .cfg generator based on .rfa of custom objects?

Post by Swaffy »

Skull Kid wrote:...

EDIT: It does crash when I try to start it :(, I'm using Windows 7.
Have you tried running it in compatibility mode for Windows 98 or Win XP?
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
Skull Kid
Posts: 158
Joined: Fri Aug 03, 2012 8:44 pm
Location: Sweden

Re: .lst & .cfg generator based on .rfa of custom objects?

Post by Skull Kid »

Swaffy wrote:
Skull Kid wrote:...

EDIT: It does crash when I try to start it :(, I'm using Windows 7.
Have you tried running it in compatibility mode for Windows 98 or Win XP?
Yes, no luck :(...
Regards,

Skull Kid
User avatar
fo0k
Posts: 1428
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: .lst & .cfg generator based on .rfa of custom objects?

Post by fo0k »

Do you have / know how to use excel a tiny bit?

if so - this is a painless way to achieve the lst file (cfg file is simple to just copy then tweak paths/team kits - if required)

this looks a bit complex but really is a 2 minute task

(this could all be achieved with a clever batch file, but I'm not the man for making you one!)

grab this tiny app to spit out the file names: http://www.jddesign.co.uk/products/expp ... pprint.htm (some functions limited in this version but we don't need them anyway :))

install the right version for your OS.

once installed..

extract the entire standardmesh.rfa for your mod to a new folder
now search that folder for all the sm files (search '.sm')
copy all those sm files to a new folder called sm_only
now select all the sm files in the sm_only folder then right click and select ExPrint Listing...
choose a location for the listing file name (desktop.. )
press create
leave as Detailed Table and press next

in tabs along the middle...
columns tab- select name ONLY
hide tab - check all boxes EXCEPT Files
indentation tab - UNSELECT both boxes
now press next up top - it will open the file in a browser.. (you should only see file names)

select all the file names in the browser window - right click - copy

now open excel - click any cell then select all with ctrl+A
right click and choose format cells. in the category on the left select text then press ok

now select the top left cell (A1) and paste.
you should have all your mesh files in that column now.
now in the next column (cell B1) enter this =StandardMesh(
in the next cell (C1) just paste again (your mesh files should still be there.) so you now have the mesh files in both A1 and C1 columns
in the next column (D1) enter a single closing bracket - )



now in cell H1 (any will do actually but this will keep things clear) enter the following: =A1&B1&C1&D1 then press enter.
This should combine the first 4 columns into a single cell.
now select that cell and move the mouse to the bottom right corner of the cell until you see a small black +
click and drag down the page until you get to the bottom of all your mesh files then release.

now select all these cells in column H and copy - then paste into notepad.

that should take 99% of the work out of it!

you are limited to the number of items in the lst file but can just delete what you dont need.
Skull Kid
Posts: 158
Joined: Fri Aug 03, 2012 8:44 pm
Location: Sweden

Re: .lst & .cfg generator based on .rfa of custom objects?

Post by Skull Kid »

I'm sorry for resurrecting a long-dead thread, but I did get the lstgen executable to work properly. Now, it was meant for the Desert Combat mod, as I believe the object names and mesh names are the same. Now I would want to get the lstgen to work for Forgotten Hope Secret Weapon. The problem is that the objects (e.g. "T34") mesh can be named something different (e.g. T34_hull_m1) and the lstgen doesn't recognize or care about this.

Any ideas, anyone? :)
Regards,

Skull Kid
Diamondback
Posts: 528
Joined: Mon Oct 01, 2012 3:13 pm
Location: Canada
Contact:

Re: .lst & .cfg generator based on .rfa of custom objects?

Post by Diamondback »

It's interesting to know that a program was made to generate the LST and CFG files. I've always created mine manually :lol:
See my Strasbourg map project here.
Skull Kid
Posts: 158
Joined: Fri Aug 03, 2012 8:44 pm
Location: Sweden

Re: .lst & .cfg generator based on .rfa of custom objects?

Post by Skull Kid »

Diamondback wrote: Wed May 05, 2021 5:14 pm It's interesting to know that a program was made to generate the LST and CFG files. I've always created mine manually :lol:
Yeah, I thought so too. But as Forgotten Hope Secret Weapon has hundreds of vehicles... I will stick with both Battlecraft 1942 and Editor42 for map making. Both are free, and costs nothing. So I don't see the problem to use both.

But it would have been nice if there was a way to get Battlecraft 1942 to just load all vehicles, and not limit it to 1024 entries in the lst files. Oh well...
Regards,

Skull Kid
Post Reply