I can`t make a simple edit on a bf 1942 map :(

Ask questions, discuss ideas, get answers
Frankie
Posts: 6
Joined: Thu Apr 07, 2011 4:15 pm

I can`t make a simple edit on a bf 1942 map :(

Post 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!
Attachments
market_garden.jpg
market_garden.jpg (147.43 KiB) Viewed 14118 times
Last edited by Frankie on Tue Apr 19, 2011 3:56 pm, edited 2 times in total.
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: I can`t make a simple edit on a bf 1942 map :(

Post 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.
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: I can`t make a simple edit on a bf 1942 map :(

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
archer
Posts: 54
Joined: Fri Feb 05, 2010 4:40 pm
Location: Übertów
Contact:

Re: I can`t make a simple edit on a bf 1942 map :(

Post 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.
dzn.battlefield.pl - my Bf1942 modding website
User avatar
fo0k
Posts: 1434
Joined: Fri Oct 16, 2009 4:21 pm
Location: UK

Re: I can`t make a simple edit on a bf 1942 map :(

Post 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..
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: I can`t make a simple edit on a bf 1942 map :(

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
archer
Posts: 54
Joined: Fri Feb 05, 2010 4:40 pm
Location: Übertów
Contact:

Re: I can`t make a simple edit on a bf 1942 map :(

Post 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 ;)
dzn.battlefield.pl - my Bf1942 modding website
anselmus
Posts: 82
Joined: Sun Oct 18, 2009 6:42 pm

Re: I can`t make a simple edit on a bf 1942 map :(

Post 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.
User avatar
Swaffy
Posts: 1715
Joined: Sun Aug 29, 2010 9:25 pm
Location: Cibolo, Texas

Re: I can`t make a simple edit on a bf 1942 map :(

Post 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.
(Forum Thread|Download) Swaffy'sMod v0.34 | Download link to come Soon™
User avatar
archer
Posts: 54
Joined: Fri Feb 05, 2010 4:40 pm
Location: Übertów
Contact:

Re: I can`t make a simple edit on a bf 1942 map :(

Post 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.

Image

If you want to edit default maps, you must either deal with them or simply copy the map.
dzn.battlefield.pl - my Bf1942 modding website
Post Reply