Page 1 of 2

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

Posted: Thu Oct 11, 2012 3:57 pm
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?

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

Posted: Thu Oct 11, 2012 6:37 pm
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.

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

Posted: Thu Oct 11, 2012 6:51 pm
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.

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

Posted: Thu Oct 11, 2012 8:08 pm
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?

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

Posted: Thu Oct 11, 2012 8:13 pm
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 :(...

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

Posted: Thu Oct 11, 2012 11:07 pm
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.

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

Posted: Tue May 04, 2021 5:27 pm
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? :)

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

Posted: Wed May 05, 2021 5:14 pm
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:

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

Posted: Wed May 05, 2021 10:50 pm
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...

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

Posted: Mon May 10, 2021 6:33 am
by Crash42modder
That lstgenerator program always made my AV software light up like an Xmas tree on a battlefield, so I never used it.