Login

russian armor

Scar error when building sand bags and tank trap.

27 Nov 2021, 08:05 AM
#1
avatar of Support Sapper

Posts: 1220 | Subs: 1



I was cloning the sandbag to give it to a number of squad, mod built normally but when i built the sand bag in game, i have this error. How can i fix it ?

The same issue happen when i give tank trap to sapper.
27 Nov 2021, 09:10 AM
#2
avatar of SneakEye
Senior Modmaker Badge

Posts: 813 | Subs: 5

Both objects have a workaround to prevent ghosting which involves scar. This consists of two files,
the original: ending on _mp
and a new one: ending on __construction__mp

When the __construction__mp is constructed it will be replaced by the _mp version. This functioncall is located in construction_ext/on_construction_actions/3.scar_function_call. I think if you cloned the entity which ends on __construction__mp while there is no matching file without the __construction__ part this can happen.

So to fix it I think either remove the scar_function_call or create a second file without __construction__ in the name.
28 Nov 2021, 04:34 AM
#3
avatar of Support Sapper

Posts: 1220 | Subs: 1

Both objects have a workaround to prevent ghosting which involves scar. This consists of two files,
the original: ending on _mp
and a new one: ending on __construction__mp

When the __construction__mp is constructed it will be replaced by the _mp version. This functioncall is located in construction_ext/on_construction_actions/3.scar_function_call. I think if you cloned the entity which ends on __construction__mp while there is no matching file without the __construction__ part this can happen.

So to fix it I think either remove the scar_function_call or create a second file without __construction__ in the name.


it wored now, thank you.

On the other hand, i have a other issue, still with this ostruppen squad. I want to give them 2 upgrade, a Bren gun, mimic a ZB 26, i edited the epb file and it work. But, when i add the PPSH 41 to their file, they still come empty, what is it with this model ?
28 Nov 2021, 07:38 AM
#4
avatar of SneakEye
Senior Modmaker Badge

Posts: 813 | Subs: 5

The Bren gun is part of the CompleteMotionTree.abp and will work by default.
The PPSh is not, therefor you need to add this line to the .abp of the Osttruppen:

"..\\..\\..\\soviet\\weapons\\smg_ppsh41\\smg_ppsh41",

Just in case: Editing .abp files tutorial
28 Nov 2021, 10:58 AM
#5
avatar of Support Sapper

Posts: 1220 | Subs: 1

The Bren gun is part of the CompleteMotionTree.abp and will work by default.
The PPSh is not, therefor you need to add this line to the .abp of the Osttruppen:

"..\\..\\..\\soviet\\weapons\\smg_ppsh41\\smg_ppsh41",

Just in case: Editing .abp files tutorial


yes, i did add that line but it still doesnt work. I edited ABP file before, if i did something wrong, models turn to boxes, but not this time.

28 Nov 2021, 11:17 AM
#6
avatar of SneakEye
Senior Modmaker Badge

Posts: 813 | Subs: 5

That is strange, when I try this identical .abp it still works.

Is the folder structure of the .abp correct?
armies\german\soldiers\ostruppen\ostruppen.abp (ostruppen spelled with one t at both places?)

This can be tested by putting an invalid path in the .abp and see if a blue box appears.
28 Nov 2021, 13:25 PM
#7
avatar of Support Sapper

Posts: 1220 | Subs: 1

That is strange, when I try this identical .abp it still works.

Is the folder structure of the .abp correct?
armies\german\soldiers\ostruppen\ostruppen.abp (ostruppen spelled with one t at both places?)

This can be tested by putting an invalid path in the .abp and see if a blue box appears.


indeed, there is a misspelled in my file structure, i fixed it now. Thank.

Yet, the sand bag is now walked through, it still provide green cover but troop pass through it. Is there fix ?
28 Nov 2021, 15:21 PM
#8
avatar of SneakEye
Senior Modmaker Badge

Posts: 813 | Subs: 5

In impass_ext, set cant_build, land and light_crush to True
1 Dec 2021, 05:58 AM
#9
avatar of Support Sapper

Posts: 1220 | Subs: 1

In impass_ext, set cant_build, land and light_crush to True


sorry for the long reply. I tried but squad still go through it.

1 Dec 2021, 17:22 PM
#10
avatar of SneakEye
Senior Modmaker Badge

Posts: 813 | Subs: 5

Could you post your .xml file?

Also, did you remove the scar function call or add a second file without __construction__?
2 Dec 2021, 04:03 AM
#11
avatar of Support Sapper

Posts: 1220 | Subs: 1

Could you post your .xml file?

Also, did you remove the scar function call or add a second file without __construction__?


i removed the scar
1 user is browsing this thread: 1 guest

Ladders Top 10

  • #
    Steam Alias
    W
    L
    %
    Streak
Data provided by Relic Relic Entertainment

Replay highlight

VS
  • U.S. Forces flag cblanco ★
  • The British Forces flag 보드카 중대
  • Oberkommando West flag VonManteuffel
  • Ostheer flag Heartless Jäger
uploaded by XXxxHeartlessxxXX

Board Info

351 users are online: 1 member and 350 guests
empirescurropt
12 posts in the last 24h
38 posts in the last week
92 posts in the last month
Registered members: 44643
Welcome our newest member, Leiliqu96
Most online: 2043 users on 29 Oct 2023, 01:04 AM