Posted: Sat Jul 05, 2014 10:11 pm Post subject:
Weird issue with walls
I have a test map with neutral rocket soldiers imprisoned by walls OWNED BY NEUTRAL. I have one Refinery on the map for team GDI.This is a multiplayer map and when I play versus one AI player and that player is GDI (and I'm nod) the walls will be owned by the AI player and the neutral rocket soldiers will destroy the walls.
To summarize:
-Rocket soldiers owned by neutral
-Walls owned by neutral
-Refinery owned by team GDI
Skirmish settings:
-I play as Nod
-AI player is GDI
Result:
-Walls are owned by the GDI AI player and the rocket soldiers attack the wall.
This happens with walls added under [Structure] and [OverlayPack], it also happens when the walls are CREATED before the Refinery if the walls are added under [Structure].
Can someone reproduce this for me? I'm using Dawn of the Tiberium Age BUT I'd like to see results for Tiberian Sun. QUICK_EDIT
; WallOwner = Will this house own walls that are placed near its buildings (def=yes)?
So, try to add
[GDI]
WallOwner=no
to the map and look if its still happening _________________
So, yeah, I've created a new acc. 'cause no one could remember Ordosherrscher - and I didn't like that name anyway. QUICK_EDIT
I actually didn't know about this ini key and although adding this key indeed does appear to do the trick for vanilla TS (and HP), it doesn't help when running the game via the spawner (even without the -SPAWN argument).
Also, considering that the Spawn# houses aren't actual coded houses in Rules.ini, you can't for example just add this:
Code:
[Spawn1]
WallOwner=no
So what probably needs to be done is to make WallOwner= default to no for (at least) the Spawn# houses. _________________ QUICK_EDIT
Partially yes, but setting it to no is just a workaround; the real issue is that with the spawner and (AFAIK) only with the spawner the owner of the walls is wrong. Instead of being owned by Neutral (like they were placed on the map under Neutral's ownership), they're owned by a player. _________________ CnCNet Client | CnCNet TS patches | More Quality-of-Life Improvements for RA Remastered
Don't the walls change ownership to the owner of the closest object?
That's what RA2 has and I think it's inherited from TS.
Nordos wrote:
; WallOwner = Will this house own walls that are placed near its buildings (def=yes)?
Bittah Commander wrote:
adding this key indeed does appear to do the trick for vanilla TS (and HP), it doesn't help when running the game via the spawner (even without the -SPAWN argument).
Since Iran uses the spawner, it seems to be broken for him, in the end the spawner may need to be changed for that _________________
So, yeah, I've created a new acc. 'cause no one could remember Ordosherrscher - and I didn't like that name anyway. QUICK_EDIT
Just tried. Seems like it is not that the wall is changing owner, but infantry don't have space to
move, so they open up one section of the wall when the nearby building is destroyed and infantry
are released. If the wall enclosure is big enough for movement or there is a gate, then it does not
happen. QUICK_EDIT
This may happen, too, but I think its different for the given situation.
as far as I understood, they weren't moving to any place, rather they just started to attack the walls (which they will do by default. place some rocket infantry near your base, build walls to it, and look for yourself ) _________________
So, yeah, I've created a new acc. 'cause no one could remember Ordosherrscher - and I didn't like that name anyway. QUICK_EDIT
I'm not using the spawner for my testing, just HyperPatch. The issue is that the walls ownership changes to whatever house gets a building placed on a map under [Structures], even when the walls are listed under [Structures] and CREATED BEFORE the building.
In normal TS there's a small check to prevent the game from placing [Structure] buildings on the map for the player, but it will still place them for an AI opponent. That logic is what I'm using. When I hack out this check and the building is placed for me, the ownership of the walls change to me and I can sell them.
That's the issue.
This has nothing to do with the infantry being too close to the wall, if there are no buildings under [Structures] or the buildings are owned by neutral the walls are owned neutral and the rocket soldiers won't attack them. QUICK_EDIT
I'm not really sure if i understand the problem.
Is it that the walls belong to the wrong owner? Placed as Neutral house, yet switching to GDI, because of GDI having the only normal building?
Do you tried it with more than one normal building on the map? One building belonging to Neutral and one to GDI?
In the years of TS mapping and modding I never heard someone complain that his placed walls changed to the wrong owner.
Considering that Walls are Overlays and that Overlays have no house information when placed on a map in mapeditor (they only seem to have one when build ingame and then stored in the internal savegame datastructure),
I think the system of taking the closest normal buildings house as the walls house is working well enough for all the possible mapping cases. _________________ SHP Artist of Twisted Insurrection: Nod buildings
I'm not really sure if i understand the problem.
Is it that the walls belong to the wrong owner? Placed as Neutral house, yet switching to GDI, because of GDI having the only normal building?
As far as I can tell, no. Enable the map reveal trigger on DTA's City in Conflict, scroll top-right and you'll see the issue. If you're Spawn1, you might even own the walls and can sell them while the Neutral units are firing at them. Basically, if normal players have any buildings on the map, the game assigns the walls to the normal players instead of Neutral, despite there also being neutral buildings on the map (which are much closer to the walls than the actual players' buildings). _________________ CnCNet Client | CnCNet TS patches | More Quality-of-Life Improvements for RA Remastered
Oh, in this case it sounds like something MultiplayPassive=yes would cause as an additional sideeffect. Like Neutral not being considered as a real house into which walls could switch.
Well, no clue what WW really coded there and why walls do that. _________________ SHP Artist of Twisted Insurrection: Nod buildings
In vanilla TS structures belonging to the Neutral house do also work as WallOwner structures (so if a wall is closer to a Neutral structure than it is to a GDI or Nod structure, the wall will belong to the Neutral house).
The spawner somehow broke this; the WallOwner=no key appears to be entirely ignored when it's added to [GDI] or [Nod] and structures belonging to the Neutral house are no longer able to change the wall's owner to (or keep it as) Neutral if it's closer to the wall than any GDI or Nod structure. _________________ QUICK_EDIT
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum