Page 1 of 1
How to edit a shipped map?
Posted: Sun Aug 29, 2010 4:09 pm
by Ty294
I'm sure there's a tutorial for it somewhere but how do you take a shipped map and edit it? I wanna do something kinda like Majin Revan's "Rhen Var: Chaos".
Re: How to edit a shipped map?
Posted: Sun Aug 29, 2010 6:11 pm
by jedikiller32
Do you want to just change the sides for a shipped map and redistribute it as an addon map, or actually edit the map itself?
Re: How to edit a shipped map?
Posted: Mon Aug 30, 2010 10:03 pm
by Ty294
The first one (change sides and upload as addon map), although I may want to make a couple tweeks to the map itself as well.
Re: How to edit a shipped map?
Posted: Tue Aug 31, 2010 4:28 pm
by ANDEWEGET
New project.
Delete the ODF, MSH, world folder and the .req.
Copy and paste those folders/files from the map you want to edit.
I dont know about the luas but I think copy&paste should work here, too. If it doesnt work just copy map-specific code over to your lua.
I dont think youll need to change something in the addme but better check it.
Make your changes and then munge.
Should work...
Re: How to edit a shipped map?
Posted: Tue Aug 31, 2010 8:26 pm
by jedikiller32
Not exactly.
You can leave all the world stuff in- just be sure to delete it from your munged project to reduce file size. The only change you need to make in the LUA. This line, in particular:
Code: Select all
ReadDataFile("dc:modcode\\modcode.lvl")
If, say, you wanted to make it load Endor, you'd change it to this:
You can figure out what to replace them with by looking in your Battlefront _LVL_PC folder. The folder name is the first one and the file name is the last one. The rest of your LUA can be edited as needed.
Re: How to edit a shipped map?
Posted: Wed Sep 01, 2010 5:22 am
by ANDEWEGET
Yeah, this would work if he didnt want to edit anything in the map itself, but
Ty294 wrote:The first one (change sides and upload as addon map), although I may want to make a couple tweeks to the map itself as well.
Re: How to edit a shipped map?
Posted: Wed Sep 01, 2010 5:19 pm
by jedikiller32
If you want to do that, then yes you will need to copy over the assets. However, there was a way discovered a while back to load just a couple edits using a seperate LVL. I don't recall how to do it exactly though.
Re: How to edit a shipped map?
Posted: Wed Sep 01, 2010 11:05 pm
by Ty294
Ok, I'll have to try those methods. I have another question now: how do you change the faction icons?
Re: How to edit a shipped map?
Posted: Thu Sep 02, 2010 6:07 am
by ANDEWEGET
If i remember correctly you have to make a new .msh and override the old one(s) using one of Belks tools, cant remember the name(if you mean the rotating ones over the cps).
Re: How to edit a shipped map?
Posted: Thu Sep 02, 2010 8:21 am
by Ty294
Yah, those icons. Is it the lvl editor tool? Or something specific to faction icon editing?
Re: How to edit a shipped map?
Posted: Thu Sep 02, 2010 2:07 pm
by ANDEWEGET
I believe its the common.lvl builder(if there is one).
Re: How to edit a shipped map?
Posted: Fri Sep 03, 2010 2:16 pm
by Ty294
Ok, I found that tool. But now the problem is I don't know how to get the common.lvl to apply to my particular map since the common.lvl seems designed for the original game, not addon maps.
Re: How to edit a shipped map?
Posted: Fri Sep 03, 2010 3:58 pm
by ANDEWEGET
I dont know how much/if map dependent info is stored in the common.lvl, but have you tried to override yours with the new one?
Another, maybe working, idea: replace the icon meshes in your common folder and add dc: before common.lvl in your lua.
Never tested this though...
Re: How to edit a shipped map?
Posted: Sat Sep 04, 2010 3:05 pm
by Ty294
ANDEWEGET wrote:I dont know how much/if map dependent info is stored in the common.lvl, but have you tried to override yours with the new one?
Another, maybe working, idea: replace the icon meshes in your common folder and add dc: before common.lvl in your lua.
Never tested this though...
I tried placing the new common.lvl in lvl_pc/common/ENG but that didn't work. I don't know where else I'd put it to get it to override the regular common.lvl.
I don't think common.lvl is referenced in the LUA.
Re: How to edit a shipped map?
Posted: Sat Sep 04, 2010 5:04 pm
by ANDEWEGET
A few ideas:
Use a custom CP odf and place your custom icon mesh in the worlds MSH folder. Name it different and reference it in the new CP ODF.
Cant remember if the common.lvl builder supports adding new things instead of replacing one. IF then add the new icon to the games common.lvl and reference it in a custom CP ODF. Let the downloaders 'patch' their common.lvl.
Cant think of more ways.