How do you copy a map?
Moderator: Moderators
-
Dragon93
- Rebel Warrant Officer

- Posts: 315
- Joined: Tue Mar 14, 2006 2:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
How do you copy a map?
ֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱ
I want to test some units out but i don't want to use the default test map, usually when i copy a map from assets there is no where to spawn.
What do i have to do?
ֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱ
- Dragon93
I want to test some units out but i don't want to use the default test map, usually when i copy a map from assets there is no where to spawn.
What do i have to do?
ֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱ
- Dragon93
-
Rekubot
- Jedi

- Posts: 1080
- Joined: Wed Apr 05, 2006 12:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: Rekubot
- Location: UK
RE: How do you copy a map?
What are you copying over? The whole folder or just the .WLD file? I think there was a topic about this a little while back, that should tell you how to copy the shipped maps.
-
Hebes24
- Sith Master

- Posts: 2594
- Joined: Sat Jun 03, 2006 5:15 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: In An Epic Space Battle!
- Contact:
RE: How do you copy a map?
I just did this myself:
1. Copy the map's folder from assets\worlds, the Whole folder. Paste it into data_***\worlds. Then rename the folder from the old name to the 3 letter mod ID name.
2. Now go into the world1(or 2) folder inside the new folder and rename all the files inside, including the ***.sky file, but not the sky textures and mshs, just the .sky file.
3. Then go into assets\scripts and find the scripts associated with the map you copied (you could alter the existing lua's, but it's much easier to do it this way) and paste them into your map's script folder, renaming them appropriately.
4. Then update the addme.lua, and the mission.req (in data_***\common) and the mode req's in common\mission. I suggest looking at how the req's are set up to make them, they're pretty simple.
5. Open the .wld file in ZE to make sure it comes up and looks OK. then save, munge and you should have an exact copy of the shipped map!
1. Copy the map's folder from assets\worlds, the Whole folder. Paste it into data_***\worlds. Then rename the folder from the old name to the 3 letter mod ID name.
2. Now go into the world1(or 2) folder inside the new folder and rename all the files inside, including the ***.sky file, but not the sky textures and mshs, just the .sky file.
3. Then go into assets\scripts and find the scripts associated with the map you copied (you could alter the existing lua's, but it's much easier to do it this way) and paste them into your map's script folder, renaming them appropriately.
4. Then update the addme.lua, and the mission.req (in data_***\common) and the mode req's in common\mission. I suggest looking at how the req's are set up to make them, they're pretty simple.
5. Open the .wld file in ZE to make sure it comes up and looks OK. then save, munge and you should have an exact copy of the shipped map!
-
archer01
If you want to make physical changes to the map itself (add/move items, etc) you have to use Hebes24's solution. However, if all you want to do is use one of the pre-existing maps with only unit/skin/script changes, then read on...
If all you want to do is use one of the pre-existing maps with only unit/skin/script changes, then only a single lua file is needed.
In the map's lua script you'll see a line that looks like this:
That is the line that actually loads the map itself. Now lets say you want to use Geonosis's map instead, just change that one line to the following:
Notice the lack of a "dc:" in there? Now that lua script will load the Geonosis map with the conquest setup instead of a mod map. All the rest of the lua scripting is exactly the same, except you may have to check the asset maps to find the names of some objects (CPs, regions, etc) in order to use them correctly.
After munging, you can even delete the ***.lvl from the addon folder since it isn't used. Once the lua for the map starts running, it will use the geo1.lvl from the game files instead. Only the mod map's core.lvl and mission.lvl are actually needed (core for localization, and mission for the lua scripts).
This is what I did for the Jedi Support mod I made.
If all you want to do is use one of the pre-existing maps with only unit/skin/script changes, then only a single lua file is needed.
In the map's lua script you'll see a line that looks like this:
Code: Select all
ReadDataFile("dc:LKA\\LKA.lvl", "LKA_conquest")Code: Select all
ReadDataFile("GEO\\geo1.lvl", "geo1_conquest")After munging, you can even delete the ***.lvl from the addon folder since it isn't used. Once the lua for the map starts running, it will use the geo1.lvl from the game files instead. Only the mod map's core.lvl and mission.lvl are actually needed (core for localization, and mission for the lua scripts).
This is what I did for the Jedi Support mod I made.
-
Ace_Azzameen_5
- Jedi

- Posts: 1119
- Joined: Sat Apr 23, 2005 8:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Would it be possible to load two main lvls, for example, one being a shipped map and another being a layer of new command posts, vehicle spawns and other objects?
Esentially, since the mrqs are the olnly things called by the lau, you'd have to load to modes at once, but I wonder if it could be rigged to work. It could really cut size for more complex redux maps.
Esentially, since the mrqs are the olnly things called by the lau, you'd have to load to modes at once, but I wonder if it could be rigged to work. It could really cut size for more complex redux maps.
-
archer01
-
Ace_Azzameen_5
- Jedi

- Posts: 1119
- Joined: Sat Apr 23, 2005 8:52 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Double Reinforced Terrain! I wonder if it's possible to have two terrains-that woay you could add terain without deleting existing terrain-just paint it real low where the existing terrain is. I should try this to see if it makes the game 's head explode, and if I feel up to it, try trouble shooting it.
- Teancum
- Jedi Admin

- Posts: 11080
- Joined: Wed Sep 07, 2005 11:42 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Indiana
-
Dragon93
- Rebel Warrant Officer

- Posts: 315
- Joined: Tue Mar 14, 2006 2:55 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Contact:
ֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱֱ
Archer01, i tried what you said and i change it in both LUAs, but when i played the map the game crashed, this is my log:
Archer01, i tried what you said and i change it in both LUAs, but when i played the map the game crashed, this is my log:
Code: Select all
ERROR[levelpack 23N.req]:Expecting bracket, but none was found.
File : munged\pc\23n_conquest.lvl.req(1)...
ucft <--
ERROR[levelpack 23N.req]:Expecting bracket, but none was found.
File : munged\pc\23n_conquest.lvl.req(1)...
ucft <--
[continuing]
2 Errors 0 Warnings
ERROR[levelpack 23N.req]:Expecting bracket, but none was found.
File : munged\pc\23n_conquest.lvl.req(1)...
ucft <--
ERROR[levelpack 23N.req]:Expecting bracket, but none was found.
File : munged\pc\23n_conquest.lvl.req(1)...
ucft <--
[continuing]
2 Errors 0 Warnings
-
archer01
-
wazmol
- High General

- Posts: 892
- Joined: Sat Sep 02, 2006 6:47 pm
- Projects :: Thinking...
- Location: London
- Contact:
sorry everyone to dig up an old topic but i must no one thing.
when you copy over the shipped scripts to your scripts do you have to edit the lua because it uses the original shipped map but i want it to use an edited version. do you have to change:
thanks alot and again sorry everyone
when you copy over the shipped scripts to your scripts do you have to edit the lua because it uses the original shipped map but i want it to use an edited version. do you have to change:
toReadDataFile("fel\\fel1.lvl", "fel1_conquest")
or anything?ReadDataFile("dc:fel\\fel1.lvl", "fel1_conquest")
thanks alot and again sorry everyone
-
fusillade
- Private
- Posts: 32
- Joined: Sun Sep 17, 2006 5:11 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: RE: How do you copy a map?
I'm bringing this one out of the Grave. I desperately need some help. I did steps 1,2 and 3 no problem.Hebes24 wrote:I just did this myself:
1. Copy the map's folder from assets\worlds, the Whole folder. Paste it into data_***\worlds. Then rename the folder from the old name to the 3 letter mod ID name.
2. Now go into the world1(or 2) folder inside the new folder and rename all the files inside, including the ***.sky file, but not the sky textures and mshs, just the .sky file.
3. Then go into assets\scripts and find the scripts associated with the map you copied (you could alter the existing lua's, but it's much easier to do it this way) and paste them into your map's script folder, renaming them appropriately.
4. Then update the addme.lua, and the mission.req (in data_***\common) and the mode req's in common\mission. I suggest looking at how the req's are set up to make them, they're pretty simple.
5. Open the .wld file in ZE to make sure it comes up and looks OK. then save, munge and you should have an exact copy of the shipped map!
As for step 4 what should I be updating on on my addme.lua and mission.req? I'm not sure where I should be looking as to "how the req's are setup".
Also, in the world1 folder, shouldn't I edit the renamed ***.req to correspond with all my newly renamed files?
I'm trying to do this with Kamino. Any help would be awesome. I spent all morning searching the forums for a more precise answer, haven't found it yet....
