Page 1 of 3
I can`t make a simple edit on a bf 1942 map :(
Posted: Mon Apr 18, 2011 11:15 pm
by Frankie
I`ve just installed Battlecraft 1942 (v2.1) and start editing some things.
In Marked Garden i added 3 airplanes bf109 on german side and some more tanks/jeeps , i saved the changes but when i click on Functions/Test this level, the aircrafts and tanks simply doesn`t appear.
However when i deleted an existent tank -- it really dissapeared.
Do you have some advices for me ?
Thank you!
Re: I can`t make a simple edit on a bf 1942 map :(
Posted: Tue Apr 19, 2011 1:04 am
by fo0k
each game mode (conquest, ctf, tdm etc) can and will have different spawner objects.. maybe you have added the planes to ctf.. then testing in conquest (for example..)
not used BC for some time so not sure if this is a common issue.
someone will have more suggestions.
Re: I can`t make a simple edit on a bf 1942 map :(
Posted: Tue Apr 19, 2011 3:54 am
by Swaffy
The "test level" option in BC42 only plays the map on the Conquest game mode.
If you want objects to show up for Single Player, you will have to:
- place your object on the map using BC42 for Conquest game mode.
- Close BC42 after saving the map.
- Open the map's ".rfa" using WinRFA or another RFA file program.
- Go to the "ObjectSpawnTemplate.con" in the Conquest folder.
- Copy the vehicle's spawn template, and paste it in "ObjectSpawnTemplate.con" in the SinglePlayer folder [could also be named Coop]
- Save.
- Go to the "ObjectSpawns.con" in the Conquest folder.
- Copy the vehicle's object spawner, and paste it in "ObjectSpawns" in the SinglePlayer folder.
- Save.
- Testes the map out in Co-Op mode or Single Player and see if your object loads.
- - - - - - - - - - - - - -
For all other game modes, all you have to is check/uncheck the game mode box[es] on the object spawner [when using BC42].
- - - - - - - - - - - - - -
I have also learned this in the past:
- If your object spawns by itself and not attached to a flag point and its team is set to "none," it will not ever spawn.
- If its team is set to "none" then it will only spawn when attached to flags.
- You can spawn the object unattached to a flag point by setting the team, but will never change teams.
Re: I can`t make a simple edit on a bf 1942 map :(
Posted: Tue Apr 19, 2011 1:59 pm
by archer
Also, there is a particular problem with the way BC handles map patches (i.e. Market_Garden_000.rfa and Market_Garden_003.rfa.)
When loading a map, BF1942 first loads the main file (Market_Garden.rfa) and then, in memory, replaces everything with any data that it finds in patch files. For example, if both Market_Garden.rfa and MarketGarden_003.rfa contain ObjectSpawns.con for the Conquest mode, the game discards object spawns in the base file and uses ones from the patch instead.
There is a bug in the way BC handles map patches. Loading the map works fine, patches are loaded too and relevant data is replaced. However, while saving the map, BC would only write your changes to the base file (Market_Garden.rfa,) which means that the game, while loading, would override them with anything it finds in any patch.
The Best way around it is to never edit standard maps, but instead always use the "File->Copy Level To" option to make your own copy of the map. This way is so much better, because BC will copy everything to a single .rfa and there won't be any problem with patches. As a bonus, you also won't loose your game's multiplayer capability, and so won't anyone who you decide to share your map with.
Re: I can`t make a simple edit on a bf 1942 map :(
Posted: Tue Apr 19, 2011 3:30 pm
by fo0k
archer wrote:Also, there is a particular problem with the way BC handles map patches (i.e. Market_Garden_000.rfa and Market_Garden_003.rfa.)
When loading a map, BF1942 first loads the main file (Market_Garden.rfa) and then, in memory, replaces everything with any data that it finds in patch files. For example, if both Market_Garden.rfa and MarketGarden_003.rfa contain ObjectSpawns.con for the Conquest mode, the game discards object spawns in the base file and uses ones from the patch instead.
There is a bug in the way BC handles map patches. Loading the map works fine, patches are loaded too and relevant data is replaced. However, while saving the map, BC would only write your changes to the base file (Market_Garden.rfa,) which means that the game, while loading, would override them with anything it finds in any patch.
The Best way around it is to never edit standard maps, but instead always use the "File->Copy Level To" option to make your own copy of the map. This way is so much better, because BC will copy everything to a single .rfa and there won't be any problem with patches. As a bonus, you also won't loose your game's multiplayer capability, and so won't anyone who you decide to share your map with.
that makes almost too much sense

must be the problem..
Re: I can`t make a simple edit on a bf 1942 map :(
Posted: Tue Apr 19, 2011 10:56 pm
by Swaffy
I edit and save my maps in BC42 with out needing to "copy" the level.
Though it might be the issue he's having, I've never had trouble with that.
Re: I can`t make a simple edit on a bf 1942 map :(
Posted: Wed Apr 20, 2011 8:37 am
by archer
it all depends on what's in the patch and what aspect of the map you are editing. For example, patches hardly ever contain heightmaps, so if you only edit the terrain then there's good chance that your edit will work despite the patch bug.
I noticed it by accident when I was commiting a small map change to our mod's SVN. The repository program reported that only the base file had been changed and none of the patches. I had investigated and found out this behavior.
Maybe you've just been lucky so far, or perhaps your version of BC is smarter about patches

Re: I can`t make a simple edit on a bf 1942 map :(
Posted: Wed Apr 20, 2011 5:12 pm
by anselmus
Study these tutorials, they are the basis of everything. Basically help you add any vehicle.(CT,TDM or Co-op)
http://battlefieldmodding.com/ssm/phpBB ... 7f09fae0d2
http://battlefieldmodding.com/ssm/phpBB ... 7f09fae0d2
I use the BC to know better the positions and rotations of the object PCO.
Re: I can`t make a simple edit on a bf 1942 map :(
Posted: Thu Apr 21, 2011 4:53 am
by Swaffy
How about this: Just don't make a patch.
What's the point in a patch anyway? Just edit the orginal files. It's so much better and less complicated.
Re: I can`t make a simple edit on a bf 1942 map :(
Posted: Thu Apr 21, 2011 10:11 am
by archer
Swaffy wrote:How about this: Just don't make a patch.
What's the point in a patch anyway? Just edit the orginal files. It's so much better and less complicated.
The point is not to make patches, but to deal with patches that already are in the levels folder, those made by DICE.
If you want to edit default maps, you must either deal with them or simply copy the map.