Here I will go over how to batch F1 games. First step is to download the console version of EGO console tool. This is used to batch all .erp files in a given directory.
Here I will go over how to batch F1 games. First step is to download the console version of EGO console tool. This is used to batch all .erp files in a given directory.
Once you have the tool you need to make a .bat file to process the files. I used Notepad++ to make it. Begin by putting all .erp's in a folder. Be sure to copy them and paste them into a new folder call it EX. Once you have them use windows to Copy as Path this is done by CTRL+Shift+Right Click.
Open Notepad++ and paste in this information. Now open a new document and paste it in again. Here we are going to be removing the .erp from the filename. This is so the tool can put our files into a folder. CTRL+H is the renamer/replacer dialog. When all .erp's have been removed from the names copy the names and paste them into the 1st document we started. Do this by selecting the middle of the document with CTRL then the bottom of the document with CTRL+Shift. Be sure to click far enough that your not messing up other paths. The spaces have no effect. This may take awhile depending on your PC specs. I highly recommend looking over the files making sure each line matches. Mismatch names will cause many issues.
ex:
2023-f2-premapowerteam.erp
2023-f2-premapowerteam
When that is complete next step is to select the 1st line of this document and the last line by holding ALT+Shift.
After you have that selected go to Edit/Column Editor and bring up the dialog to insert text. Here we are going to put the name of the tool. For easier batching i renamed the tool to erp.exe. You can keep it the same or rename it accordingly. But this must go at the beginning along with -e for export.
Last thing is to add our output .txt file. Do this by selecting past our dump folder location while hold CTRL. Then go to bottom of document then CTRL+Shift. Once its highlighted go to Edit/Column Editor and type in log.txt and then OK. When its done save this as .bat file and place it into EX directory with the tool.
Click on the .bat you should see it read SUCCESS and new folders generate inside of EX. Let this run until it closes then all .erp files have been processed.
When all files are done youll need to find cars. These are in folders called "vehicle_package" what I did was search for this then move all of them into 1 folder called "VEH". Travel into directory until you get to idf folder. This is were we will be converting cars.
You'll notice a few files here. All will start out with mesh name then !!!! some are called mesh and some are called fmodel. This is where i used a tool called Bulk Rename Utility. Search for *.mesh and add Extra extension .fmesh. Do the same for Fmodel but they are not needed since they use the same files as .fmesh. If you choose to do Fmodel be sure to name them .fmodel and not .fmesh since they are different.
So now we have all the files renamed properly we can use the script to batch these models. I found that the script only works if names are correct. I have not found a workaround so far but I'm still testing. Lets say we want to batch tyres. You must double click this space where the name is located and then CTRL+H. This will bring up a dialog to replace all instances in the script. Replace f2_car with tyres.
Once that is done save the python file and then Tools\Reload Plugins in Noesis. You should be able to click on .fmesh and see it load up in the program. If you get an error something was not done correctly. As you can see below the error is because the script is looking for "tyres" not "tyres_wet" be observant of these file names.
I tried changing all instances of anything before !!!! to cars but the script failed to read properly. I'm still working on testing different files along with different games. So far this worked with 23, 24, and 25 series of the game. Have any questions feel free to ask in the server. Below is the Noesis script for converting .fmesh and .fmodel. Again this is only in testing phase so please be patient on updates.
Textures are done by using RawTex. This tool will allow you to batch all files in directory with .images ext. I noticed some are 71 and some are 76. Only way i found to do them correctly is to batch greater than 1024 sizes as 76 and lower than 1024 as 71.
Here we have 171kb and 324kb files so I will be using 71. Just adjust the .bat to these settings and click on it within directory. I use IfranView to test images. Thats pretty much all there is to textures.
I found it easier to move all instances of .tif!!!temp001.image into 1 folder called TEXTURES. Here you can split files up so they batch properly by size.
Paste this text below into a document and name it to MOVE.bat.
md "TEXTURES"
for /r %%f in (*.tif!!!temp001.image) do move "%%f" "%cd%\TEXTURES"
echo Done!