Both Methods for Making your Map Mod Compatible
Moderator: Moderators
- Nedarb7
- Lieutenant General

- Posts: 676
- Joined: Sat Sep 22, 2012 3:41 pm
Both Methods for Making your Map Mod Compatible
This tutorial is for those who want to make their maps mod compatible (make it so that other modders can add eras or game modes to the map from their own three letter map name).
NOTE: DO NOT USE THIS TUTORIAL AS A WAY TO ADD MODS TO OTHER PEOPLE'S MAPS UNLESS YOU HAVE THEIR PERMISSION!!!
Tutorial originally written for the BFU mod team but I figured it would be useful for the community
Open up your LUA
change this line:
ReadDataFile("dc:OOO\\OOO.lvl", "OOO_conquest")
to
ReadDataFile("OOO\\OOO.lvl", "OOO_conquest")
Create a new folder called OOO in:
Star Wars Battlefront II\GameData\DATA\_LVL_PC\
Place your OOO.lvl in:
Star Wars Battlefront II\GameData\DATA\_LVL_PC\OOO
Note: OOO replaces whatever the real three letter map name and world.lvl are.
Now all the modder needs is your LUA and perform the ordinary setup to add eras or game modes to your map. It would also be useful to make an installer and uninstaller for your map, otherwise make sure to note that the OOO containing OOO.lvl goes in: Star Wars Battlefront II\GameData\DATA\_LVL_PC\ in your readme. Easier method down further by AQT (explained in two seconds)
NOTE: DO NOT USE THIS TUTORIAL AS A WAY TO ADD MODS TO OTHER PEOPLE'S MAPS UNLESS YOU HAVE THEIR PERMISSION!!!
Tutorial originally written for the BFU mod team but I figured it would be useful for the community
Open up your LUA
change this line:
ReadDataFile("dc:OOO\\OOO.lvl", "OOO_conquest")
to
ReadDataFile("OOO\\OOO.lvl", "OOO_conquest")
Create a new folder called OOO in:
Star Wars Battlefront II\GameData\DATA\_LVL_PC\
Place your OOO.lvl in:
Star Wars Battlefront II\GameData\DATA\_LVL_PC\OOO
Note: OOO replaces whatever the real three letter map name and world.lvl are.
Now all the modder needs is your LUA and perform the ordinary setup to add eras or game modes to your map. It would also be useful to make an installer and uninstaller for your map, otherwise make sure to note that the OOO containing OOO.lvl goes in: Star Wars Battlefront II\GameData\DATA\_LVL_PC\ in your readme. Easier method down further by AQT (explained in two seconds)
Last edited by Nedarb7 on Sat Mar 02, 2013 5:09 pm, edited 7 times in total.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Making your Map Mod Compatible (Tutorial)
Wait, so like...what? What exactly is this teaching?
I honestly cannot make any sense of it whatsoever.
- Nedarb7
- Lieutenant General

- Posts: 676
- Joined: Sat Sep 22, 2012 3:41 pm
Re: Making your Map Mod Compatible (Tutorial)
Its a tutorial on how to make your map "modable". As I said this tutorial was originally written for the BFU mod team, since we want people to be able to add eras or game modes to the converted maps, we did this so that it is MUCH easier for the modder (also saves file space). Basically we made it like modding a stock map.
I can understand why you can't make any sense of it so I'll edit the tutorial.
I can understand why you can't make any sense of it so I'll edit the tutorial.
- Maveritchell
- Jedi Admin

- Posts: 7366
- Joined: Mon Aug 21, 2006 11:03 pm
Re: Making your Map Mod Compatible (Tutorial)
There's no need to add an extra folder with your map/mod to make it available to someone else. All you're doing by way of that is creating a junk folder that makes an easy install process (drop in "addon") more complicated. An "addme.script," no matter what folder it starts in, can pull .lvl data from any other folder.
- Nedarb7
- Lieutenant General

- Posts: 676
- Joined: Sat Sep 22, 2012 3:41 pm
Re: Making your Map Mod Compatible (Tutorial)
Really? When ever I try adding an era to one of my maps (from a different three letter map name folder) following the ordinary set up they wont work unless I set up my maps like that.
Is there a reason for that?
- Glitch25
- Sergeant Major

- Posts: 222
- Joined: Mon May 07, 2012 1:01 pm
- Projects :: [ISM] [BFU]
- Location: Baktoid Combat Automata
- Contact:
Re: Making your Map Mod Compatible (Tutorial)
Did you make sure you did all this?
*Note I've only tried this for side replacement.
*Note I've only tried this for side replacement.
Hidden/Spoiler:
- EliteJay
- Private Second Class
- Posts: 62
- Joined: Tue Nov 13, 2012 2:56 pm
- Projects :: Star Destroyer V1.0
- xbox live or psn: No gamertag set
- Contact:
Re: Making your Map Mod Compatible (Tutorial)
Wait so basically you mean add a era to the map.
- Glitch25
- Sergeant Major

- Posts: 222
- Joined: Mon May 07, 2012 1:01 pm
- Projects :: [ISM] [BFU]
- Location: Baktoid Combat Automata
- Contact:
Re: Making your Map Mod Compatible (Tutorial)
That tutorial allows you to add custom sides to mod maps that are already in your addon folder. It cannot be done without the mission.lua files (Unless of course you can re-create them) which is why for BFU, we are releasing the files needed. I'm not sure if that works the same way for adding eras, may be a few additional changes.
- Nedarb7
- Lieutenant General

- Posts: 676
- Joined: Sat Sep 22, 2012 3:41 pm
Re: Making your Map Mod Compatible (Tutorial)
I did all of that
. I could have done something wrong though. I'll try and see if I can get it to work.
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Making your Map Mod Compatible (Tutorial)
This is how you load something from someone else's map/mod located in the addon folder:
The example shown loads the ingame.lvl, but the directory location can be changed to load a map .lvl, side .lvl, etc.
Code: Select all
ReadDataFile("..\\..\\addon\\***\\data\\_LVL_PC\\ingame.lvl")- Nedarb7
- Lieutenant General

- Posts: 676
- Joined: Sat Sep 22, 2012 3:41 pm
Re: Making your Map Mod Compatible (Tutorial)
Thank you AQT that helps a ton
. So this tutorial is pointless I guess (unless you want to use it rather than the basic method).
