#1 Yesterday 18:31:34

fuzzysheep
Player
United States
Reputation: +3
Registered: 2024-07-09
Posts: 23
Windows 10 Chrome 131.0

Adding objects

Hi so here are the steps I follow to add things from mods or xpacks to my maps such as buildings:
Can anyone critique my method and/or tell me what might be going wrong with my bc42 talking to bf42 because more of ten than not these objects won't appear ingame.
I create a addmodel folder with the necessary directories
Objects
StandardMesh
Texture
if a vehicle is involved I use the appropriate sound, ai etc.
I then extract the objects such as EssenBuilding01
The standard Meshes for it EssenBuilding01_m1.rs and EssenBuilding01_m1.sm
Textures found in the .rs file
I put everything in the right directory and create an objects.con with the "run  EssenBuilding01_m1/ EssenBuilding01_m1" command pointing to the  EssenBuilding01_m1.con which has "run objects" "run geometries" in it.
I either use the add file to archive in bc42 or just copy and paste the folders into my map, either has worked in the past.
But now the EssenBuilding objects and many others just will not work or appear ingame. What's going wrong?

the structures of the folders are correct I think:
Objects/Objects.con
then Objects/"Whatever object folder/Objectname.con and whatever other files are in there like ai sounds etc.
StandardMesh
Texture

AND in the Init.con there is the line "run Objects/Objects"
and alternatepath ...bf1942/levels/Mymap/Texture

Offline

    Positive reputation 0   Negative reputation 0

#2 Yesterday 19:13:47

Black Mamba
Member
Canada
Reputation: +1494
Registered: 2012-12-01
Posts: 4,359
iOS Safari 18.1

Re: Adding objects

Can you share an example of a faulty map? Just upload the packed RFA to a file sharing site, share the link and I can take a look to see what might be causing the issue.

Also, would it be possible for you to post your future topics inside the Map Modding section of the forums if they pertain to that subject please? Thank you.

Last edited by Black Mamba (Yesterday 22:56:11)

Offline

    Positive reputation 0   Negative reputation 0

#3 Yesterday 21:25:45

fuzzysheep
Player
United States
Reputation: +3
Registered: 2024-07-09
Posts: 23
Windows 10 Chrome 131.0

Re: Adding objects

Yes I can do both of those. Sorry, I am still trying to get familiar with this forum, and the subforums.

https://drive.google.com/file/d/1pPlMqj … drive_link
this is the link for the file for my map.

It's still in earl-mid dev so it's quite rough. I am missing one of the buildings on the German side of the river, in the large town. It's an EssenBuilding.

Last edited by fuzzysheep (Yesterday 21:54:20)

Offline

    Positive reputation 0   Negative reputation 0

#4 Yesterday 22:58:11

Black Mamba
Member
Canada
Reputation: +1494
Registered: 2012-12-01
Posts: 4,359
iOS Safari 18.1

Re: Adding objects

Thanks I sent a request for access.

Offline

    Positive reputation 0   Negative reputation 0

#5 Yesterday 22:59:15

fuzzysheep
Player
United States
Reputation: +3
Registered: 2024-07-09
Posts: 23
Windows 10 Chrome 131.0

Re: Adding objects

Access granted. I'll update it for anybody else that wants to poke around

Offline

    Positive reputation 0   Negative reputation 0

#6 Today 00:39:07

Black Mamba
Member
Canada
Reputation: +1494
Registered: 2012-12-01
Posts: 4,359
iOS Safari 18.1

Re: Adding objects

Thx I’ll check out the map.

Offline

    Positive reputation 0   Negative reputation 0

#7 Today 01:16:10

fuzzysheep
Player
United States
Reputation: +3
Registered: 2024-07-09
Posts: 23
Windows 10 Chrome 131.0

Re: Adding objects

Thanks!
Yeah if you can, can you unpack the RFA and tell me why that EssenBuilding isn't appearing?
Note: I may it have it in the map itself but my game's main directories.

Offline

    Positive reputation 0   Negative reputation 0

#8 Today 04:48:51

Black Mamba
Member
Canada
Reputation: +1494
Registered: 2012-12-01
Posts: 4,359
Windows 10 Chrome 131.0

Re: Adding objects

I just looked at the map.

It seems some objects in your StaticObjects.con don't appear because they don't have any custom object files associated with them in your main map folder. For example, the objects essenbuilding6 and bg_italytower do not have any referenced CON file in your Objects folder. You will need to add the necessary files for these objects to your map for them to appear in the game (standardMesh, objects and textures).

Likewise, some custom objects you reference in the Objects.con file in your Objects folder do not exist in StaticsObjects.con. These are Outpost, Stonefencei_M1, SuburbHouse_3_m1, e_camp_fire (an effect rather than a static object I suppose), EssenBuilding10_M1, CitymeshEssen, EssenBuilding01_M1, EssenBuilding04_M1, Italytower_m1 and BG_Italiantower_m1. You will need to add these objects to your map via Battlecraft 1942 (as static objects) for them to show up in the game.

Also, for custom object textures to show up properly, you need to add the following line in your map's Init.con:

textureManager.alternativePath bf1942\levels\Rhine_Crossing\Texture.

Hope this helps.

Last edited by Black Mamba (Today 04:49:49)

Offline

    Positive reputation 0   Negative reputation 0

#9 Today 05:46:40

fuzzysheep
Player
United States
Reputation: +3
Registered: 2024-07-09
Posts: 23
iOS Safari

Re: Adding objects

The files that are referenced that don’t appear are because I didn’t use them after all, that’s just a one objects.con fits all lol.
As for the Essen files I have them in my main game directories, and they’ve worked in the past. I do want the bf tower.
I have set the alternate texture path but it always gets overwritten because next time I unpack the map to tweak anything in the actual files, it’s never there.

Offline

    Positive reputation 0   Negative reputation 0

#10 Today 05:47:16

fuzzysheep
Player
United States
Reputation: +3
Registered: 2024-07-09
Posts: 23
iOS Safari

Re: Adding objects

I will update things and let you know if it works or not on my end.
Thanks buddy.

Last edited by fuzzysheep (Today 05:48:36)

Offline

    Positive reputation 0   Negative reputation 0

Board footer