Issues modding SWBF2 Mission

Started by Trix, April 13, 2015, 02:05:48 PM

Previous topic - Next topic
Anyder,

Where you say go into assets and copy folders BES, COR etc, I have folders labelled sides etc, not the map names. Which folder do I take the map name folders from? Scripts?
You then say copy these map folders to the common folder. Is this just in the common folder or inside another folder there, such as scripts?
At the start of your code you have:
`
ucft

The ` needs to be removed for me of it crashes Munge. Is this correct, or is something else wrong as well?
Once it is built and in the addon folder of my Battlefront II install, will it override the default files for the vanilla maps, or do I need to replace the original .lvl files?

Thanks,
Trix
Thank you for your time and help.

#dierebelscum

Hey dude, sorry i couldnt answer before.
Uhh yes, it's in sripts: assets>scripts>maps folders, and yeah u gotta paste them in the common>scripts folder
I think that was a typing mistake haha, i'll remove it now.

Once u have everything edited, and u munge and do everything, u look for the new file (make sure the log didn't report any error or mistake) and just replace the mission.lvl for the new one.

I'll edit the post and check if the tutorial can be more accurate..
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

Anyder,

Thank you friend! I open assets>scripts and I have no maps folder, they are all just there in assets>scripts. Re-reading, I think this is what you mean but just for clarity. :)
That is fine, mistakes happen but just thought I had better let others know.

So the only file that needs to change is GameData>addon>ABC>data>_LVL_PC>mission.lvl? None of the .lvls in GameData>data>lvl_pc for example, >cor>COR1.lvl.

Thank you,
Trix
Thank you for your time and help.

#dierebelscum

Andyer,
Sorry to bother you. I have copied from where you said to where you said, and performed a simple .lua edit for cor1c_con.lua where I made the max troop count 250, rather than the original 150. I then munged together all the files and they are in addon>ABC, where they should be in my game folder, however when I play coruscant conquest, there is still only a maximum of 150 troops, so the .lua edit has not worked yet have done everything to the letter.
Have you any ideas please.
Thank you.
Trix
Thank you for your time and help.

#dierebelscum

Quote from: Trix on April 14, 2015, 08:56:12 AM
Anyder,

Thank you friend! I open assets>scripts and I have no maps folder, they are all just there in assets>scripts. Re-reading, I think this is what you mean but just for clarity. :)
That is fine, mistakes happen but just thought I had better let others know.

So the only file that needs to change is GameData>addon>ABC>data>_LVL_PC>mission.lvl? None of the .lvls in GameData>data>lvl_pc for example, >cor>COR1.lvl.

Thank you,
Trix
In the assets>scripts u have to see all maps' folder lol (unless im wrong what u said makes no sense).
Also yea, when u mod mission lua u just gotta replace the mission file, not the maps, that would be for reskins or something like that.

Quote from: Trix on April 14, 2015, 11:00:40 AM
Andyer,
Sorry to bother you. I have copied from where you said to where you said, and performed a simple .lua edit for cor1c_con.lua where I made the max troop count 250, rather than the original 150. I then munged together all the files and they are in addon>ABC, where they should be in my game folder, however when I play coruscant conquest, there is still only a maximum of 150 troops, so the .lua edit has not worked yet have done everything to the letter.
Have you any ideas please.
Thank you.
Trix
Honestly idk where u found that abc folder. U have to edit in the common>scripts folder the corc con lua, and then, just munge it. The new mission will be in the lvl pc folder, dunno where u are looking for it..
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

Anyder,

Okay, this is what I am doing.
I am going to C:\BF2_ModTools\assets\scripts where there are 22 folders labelled: BES, COR, DAG, DEA, end, FEL, gep, hot, kam, KAS, MUS, MYG, NAB, PC, POL, RHN, SPA, TAN, tat, TEST, UTA and YAV. No folder labelled all maps.
I am then copying all of these folders (BES, COR etc) to C:\BF2_ModTools\data_SOS\Common\scripts. From there I entered C:\BF2_ModTools\data_SOS\Common\scripts\COR\cor1c_con.lua and edited the file to increase the total soldier count for both the Republic and CIS to 250. I then saved cor1c_con.lua and went to C:\BF2_ModTools\data_LEL\Common and opened mission.req (C:\BF2_ModTools\data_LEL\Common\mission.req) where I pasted in your text that is in the guide, and saved this file.
Following that I went to C:\BF2_ModTools\data_LEL\_BUILD\Modtools VisualMunge.exe, and ran visual munge. I then went to my visual munge output folder (for me E:\Program Files (x86)\Steam\SteamApps\common\Star Wars Battlefront II\GameData\addon). This folder contains the munged mission.lvl at E:\Program Files (x86)\Steam\SteamApps\common\Star Wars Battlefront II\GameData\addon\LEL\data\_LVL_PC\mission.lvl.
So I then ran Battlefront II, and the map loaded as normal, but the modification I had made was not applied.
I know that the mission.lvl had updated in the latest munge, because its size had increased by about 1,000 KB after I copied all of the folders (BES, COR etc) into C:\BF2_ModTools\data_SOS\Common\scripts.

Hope this helps solve it,

Regards,
Trix
Thank you for your time and help.

#dierebelscum

Quote from: Trix on April 14, 2015, 12:04:16 PM
Anyder,

Okay, this is what I am doing.
I am going to C:\BF2_ModTools\assets\scripts where there are 22 folders labelled: BES, COR, DAG, DEA, end, FEL, gep, hot, kam, KAS, MUS, MYG, NAB, PC, POL, RHN, SPA, TAN, tat, TEST, UTA and YAV. No folder labelled all maps.
I am then copying all of these folders (BES, COR etc) to C:\BF2_ModTools\data_SOS\Common\scripts. From there I entered C:\BF2_ModTools\data_SOS\Common\scripts\COR\cor1c_con.lua and edited the file to increase the total soldier count for both the Republic and CIS to 250. I then saved cor1c_con.lua and went to C:\BF2_ModTools\data_LEL\Common and opened mission.req (C:\BF2_ModTools\data_LEL\Common\mission.req) where I pasted in your text that is in the guide, and saved this file.
Following that I went to C:\BF2_ModTools\data_LEL\_BUILD\Modtools VisualMunge.exe, and ran visual munge. I then went to my visual munge output folder (for me E:\Program Files (x86)\Steam\SteamApps\common\Star Wars Battlefront II\GameData\addon). This folder contains the munged mission.lvl at E:\Program Files (x86)\Steam\SteamApps\common\Star Wars Battlefront II\GameData\addon\LEL\data\_LVL_PC\mission.lvl.
So I then ran Battlefront II, and the map loaded as normal, but the modification I had made was not applied.
I know that the mission.lvl had updated in the latest munge, because its size had increased by about 1,000 KB after I copied all of the folders (BES, COR etc) into C:\BF2_ModTools\data_SOS\Common\scripts.

Hope this helps solve it,

Regards,
Trix
Lol... by all maps i mean ALL MAPS, not a folder called "All maps" xDDD

Idk what u're doing with the steam folder. What u gotta do after munge is go to the modding tools LVL_PC folder, and then look for the new mission file. Copy it and paste into ur normal swbf2/gamedata/data/lvl pc/

I might make a vid for u...
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

Haha :)

Oh right, so I am replacing the original file rather than creating a mod as such?

That would be nice if you have the time please.
Thank you for your time and help.

#dierebelscum

Quote from: Trix on April 14, 2015, 01:21:22 PM
Haha :)

Oh right, so I am replacing the original file rather than creating a mod as such?

That would be nice if you have the time please.
Hope this helps u now. Pardon my accent =P

Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

Quote from: Anyder on April 18, 2015, 01:28:02 PM
Hope this helps u now. Pardon my accent =P



Sorry for very long reply time!
Thank you, so I copy the mission.lvl that is created and shown at the end to Star Wars Battlefront II/GameData/addon/ANY/data/_LVL_PC and replace the mission.lvl there?

Thank you,
Trix

Oh and the accent is fine, don't worry about it! :)
Thank you for your time and help.

#dierebelscum

Quote from: Trix on April 29, 2015, 10:15:58 AM
Sorry for very long reply time!
Thank you, so I copy the mission.lvl that is created and shown at the end to Star Wars Battlefront II/GameData/addon/ANY/data/_LVL_PC and replace the mission.lvl there?

Thank you,
Trix

Oh and the accent is fine, don't worry about it! :)
U gotta copy the new one, and overwrite it in the server/client GameData/_LVL_PC folder
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

Quote from: Anyder on April 29, 2015, 12:41:37 PM
U gotta copy the new one, and overwrite it in the server/client GameData/_LVL_PC folder

Ah right, sweet. So I can do that thanks and now I have the custom modifications working to the vanilla maps. :)
However, unless I replace the side lvls (eg. rep.lvl) in GameData/_LVL_PC, I cannot load custom units because the mission.lvl is not in the mod folder, so putting dc:SIDE\\rep.lvl no longer loads my custom side. Is there a work around for this, or do I have to over-ride the rep.lvl file?

Thanks, Trix
Thank you for your time and help.

#dierebelscum

Where have the comments gone?/Did you get the last one asking if I have to replace the whole rep.lvl file in GameData/data/_LVL_PC, or can I somehow get it to read from the mod folder in addon/ABC?
Thank you for your time and help.

#dierebelscum

Quote from: Trix on April 29, 2015, 11:06:11 PM
Where have the comments gone?/Did you get the last one asking if I have to replace the whole rep.lvl file in GameData/data/_LVL_PC, or can I somehow get it to read from the mod folder in addon/ABC?
They are all here. I'm not sure how moderators want it, but i'd rather have the problems and the tutorials separated.
Anyder | Talent, Ops & Culture | SWBF & Player Engagement
Email: communityambassador@swbfgamers.com
SWBFSpy Discord: http://discord.swbfspy.com
SWBFSpy Info: http://info.swbfspy.com

Ah cool, thanks, so:

Ah right, sweet. So I can do that thanks and now I have the custom modifications working to the vanilla maps. :)
However, unless I replace the side lvls (eg. rep.lvl) in GameData/_LVL_PC, I cannot load custom units because the mission.lvl is not in the mod folder, so putting dc:SIDE\\rep.lvl no longer loads my custom side. Is there a work around for this, or do I have to over-ride the rep.lvl file?
Thank you for your time and help.

#dierebelscum