Skip to content

[Metrostroi] Wire integration (Entity owner) #595

@PM6176

Description

@PM6176

Describe the error
Hello guys,
if I use the "Train Spawner" tool, is seems only the first wagon get the correct assign of entity to the player, I found this issue by using the wiremod on the train.
If you spawn the train manually (w/o "Train Spawner") the entity work how expected.

How to get:
Set-by-step how to recreate an error.

  1. Take the tool "Train Spawner";
  2. Take the 81-717 (Moscow Custom) then add some wagons (like 4);
  3. Then place an E2 with the following code in the middle of the train composition and wait ~15 seconds, code:

@name TEST ENTS
@outputs A:array
interval(10000)
findInSphere(entity():pos(),1000)
findIncludeClass("gmod_subway_81-717_mvm")
findIncludeClass("gmod_subway_81-714_mvm")
A = findToArray()

for(I = 1,A:count()){
print(I:toString() + " " + A[I,entity]:id():toString() + " " + A[I,entity]:owner():toString())
}

  1. You get this list on chat:
    (Example)
    [Record] [ENT ID] [Owner of the entity]
    1 752 (null)
    2 746 (null)
    3 726 Player [1][PlayMaster6176[PoG]]
    4 740 (null)

What do i expect: (Note: I had reach this result by spawining the train manually without train spawner)
(Example)
[Record] [ENT ID] [Owner of the entity]
1 756 Player [1][PlayMaster6176[PoG]]
2 748 Player [1][PlayMaster6176[PoG]]
3 718 Player [1][PlayMaster6176[PoG]]
4 740 Player [1][PlayMaster6176[PoG]]

Console output
None

Console output screenshot
None

Game information

  • Garry's mod Version: beta /x86-64/chromium
  • Where the error happens: on server
  • Custom Metrostroi user mods: no
  • Operation System: Windows

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions