Page 1 of 1
Help creating an era mod please
Posted: Thu Apr 23, 2015 6:27 pm
by Trix
I have tried creating an era mod with varients of this guide:
viewtopic.php?f=27&t=16616
but everytime it either turns up a .lua error, or when it does not, crashes when I click play in game to load the map.
Any ideas please.
Thanks
Re: Help creating an era mod please
Posted: Thu Apr 23, 2015 6:31 pm
by THEWULFMAN
Well we're gonna need to know the Lua error before we go any further. And your error log after it crashes.
We only know what you tell us.
Re: Help creating an era mod please
Posted: Wed Apr 29, 2015 1:09 pm
by Trix
Okay, I will try again in a bit and see if I can find the error log. Thanks.
EDIT: I can now successfully edit the mission.lvl to edit vanilla maps, so will be able to add era (I hope), however I must replace the mission.lvl in GameData/data/_LVL_PC. It does not work if I leave it in GameData/addon/ABC... Is there any way to resolve this?
Re: Help creating an era mod please
Posted: Thu Apr 30, 2015 11:45 pm
by [RDH]Zerted
There's no need to replace the retail mission.lvl. What you want to do is use an addme.lua to add your custom era onto the other map. You do everything the same as if you were making a new map except your Lua script loads the existing map's world files and your addme adds the mission to the existing map's info instead of adding a new map (though it'll still work as a new map entry, so get it working that way first then modify the addme to change the existing map).
Re: Help creating an era mod please
Posted: Fri May 01, 2015 4:26 am
by Anakin
Trix wrote:Okay, I will try again in a bit and see if I can find the error log. Thanks.
EDIT: I can now successfully edit the mission.lvl to edit vanilla maps, so will be able to add era (I hope), however I must replace the mission.lvl in GameData/data/_LVL_PC. It does not work if I leave it in GameData/addon/ABC... Is there any way to resolve this?
Why don't you follow the tutorial you posted in your first post. It does not replace the stock mission.lvl. Follow it step by step and if you have questions, or any crashs just ask here for help in this way:
1. What is problem (short discription)
2. What have you done (detailed discription from the time it worked the last time till you post your question)
3. Post your own ideas what could cause the problem (optional)
4. Post your own solutions you already tried to fix the problem
5. Attach the error log. If you have no idea where to find it or how to generate, read the FAQ Thread.
good luck with your era mod
Re: Help creating an era mod please
Posted: Sun May 03, 2015 4:25 pm
by Trix
Thank you, Zerted and Anakin.
I am now managing to edit the vanilla maps (without replacing the mission.lvl - so it is all in the ABC mod folder) to change the reinforcement counts, however when I try to use AddUnitClass command to add a new unit it fails. The new should have all odf/msh/req files.
In the cor1c_con.lua script, I have:
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_fly_assault_DOME",
"rep_fly_gunship_DOME",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_inf_ep3_Commander_Bacara",
"rep_hero_macewindu")
rep_inf_ep3_Commander_Bacara being my custom unit. Because I am editing a vanilla map do I have to add anything more, other than the dc:
Any suggestions please.
Re: Help creating an era mod please
Posted: Mon May 04, 2015 8:32 pm
by [RDH]Zerted
You should post your error log. If you don't know how to find it look at the Everything You Need sticky topic. The more info you give us the better we can help.
Re: Help creating an era mod please
Posted: Thu May 07, 2015 11:30 am
by Trix
I believe this is the error log?
I can completely change the stock sides in the vanilla maps, so that is all fine now, thanks!
However, to create a new era (eg. for Coruscant), in my common\scripts\cor folder, would I simply copy (for example) cor1c_con.lua, and rename it something different like cor1b_con.lua, or is it more complicated?
Re: Help creating an era mod please
Posted: Thu May 07, 2015 3:41 pm
by jedimoose32
That's the munge error log. Can you go to [BF2 Installation Directory]\GameData and post the contents of BFront2.txt? That would be the game's debug/error log. Make sure you're running the game via BF2_ModTools.exe (copied from the modtools directory to the GameData folder first).
You're partially correct about creating a new era, however there is more to it than that. There should be more information on that in the 1.3 patch documentation. First let's see what your BFront2 log says.
Re: Help creating an era mod please
Posted: Sat May 09, 2015 2:16 pm
by Trix
Thank you jedimoose, however I search my whole computer and nothing comes up for bfront2... So, I cannot find this log.
As for the actually era, I shall attempt to follow the 1.3 howto.
Thanks!
Re: Help creating an era mod please
Posted: Sat May 09, 2015 2:18 pm
by jedimoose32
As I mentioned, the BFront2.txt will only generate if you run the game with BF2_ModTools.exe.
Good luck with following the 1.3 documentation.
Re: Help creating an era mod please
Posted: Sun May 10, 2015 12:33 pm
by Trix
Ah right okay, well BF2_modtools.exe does not work for me... "The program can't start because binkw32.dll is missing from your computer. Try reinstalling the program to fix the problem." - Had this .dll missing for something else before and couldn't fix. Considering I can still make mods, what does the BF2_modtools.exe even do?
And thanks? - It seems followable for the first half, the second...not so...

Re: Help creating an era mod please
Posted: Sun May 10, 2015 1:10 pm
by razac920
You need to put BF2_modtools.exe in the same location as the main game executable.
Re: Help creating an era mod please
Posted: Sun May 10, 2015 2:11 pm
by Noobasaurus
Trix wrote:Considering I can still make mods, what does the BF2_modtools.exe even do?
It's a debugger for the game. When you play the game, it records all of the errors and happenings in the game so that you can see what's going wrong. It's extremely useful for finding the sources of crashes.
Re: Help creating an era mod please
Posted: Mon May 11, 2015 10:28 am
by Trix
This may help me, just a little for fault finding I think...
However, it now says "Please insert CD 1." - Thankfully I do have the disc copy as well as the new fangled Steam thing, however even when I insert the disc, I still get this message...
Any clues please?
Re: Help creating an era mod please
Posted: Mon May 11, 2015 10:44 am
by thelegend
Teancum wrote:Question #4 - I have the CD version of SWBF2 and I get a binkw32.dll error when trying to launch the BF2_modtools.exe, what's wrong?
Answer - The BF2_modtools.exe is the debug executable, copy it from C:\BF2_ModTools and paste it in the same folder as your BattlefrontII.exe, usually:
C:\Program Files\LucasArts\Star Wars Battlefront II\GameData
you can launch BF2_modtools.exe and play your map, then exit or let it crash to generate a BFront2.log located in that same folder.
If you encounter a "Please insert CD 1" dialog or have the DVD or digital download version of SWBF2, use THIS modified BF2_modtools.exe
THIS=
http://www.gametoast.com/viewtopic.php?f=27&t=13806