Page 1 of 1

Unit trading problem

Posted: Wed Jun 09, 2010 10:08 pm
by hmp
Ok, so I have a a 2 team map and there is a problem with the unit trading. I have unit trading enabled on the map in fear and have 7 types of units set to tradable in loathing for both teams. Both teams are exactly the same. When I test it, no units are tradable, the unit trading box appears, but it is completely blank. This happens no matter whether I start with team 0 or 1. However, the wierd part is if I test it with 2 players, one of them is able to trade just fine. I haven't confirmed completely, but it seemed like it was the host that could not trade.

The only thing I can think of is that the ambient units are messing it up somehow? There are 20 different types all set to team -1, uncontrollable, and ambient life, and untradeable.

The only other things I could think of was the invisible observers which are deleted immediately, or some of the other scripting. I doubt its either of those though, writing this kind of convinced me it is the ambient life. Not sure how to fix it though. :(

Re: Unit trading problem

Posted: Wed Jun 09, 2010 10:30 pm
by Pyro
Were any of those players running in 1.7.0 or lower? If not, upload this plugin and I can figure it out.

Re: Unit trading problem

Posted: Wed Jun 09, 2010 11:41 pm
by hmp

Re: Unit trading problem

Posted: Thu Jun 10, 2010 2:17 pm
by Point
try it on 1.72 and see if it still happens.

if the ambiant units are first on the list they are probably taking slots and if the units set to unit trade are far down on the list they wont UT

Pyro knows more than I on this though first 16 slots of each team I believe are the only ones that will unit trade and -1 team units count for slots ... which would account as to why if one player loads they can ut... for the other player units arent created so the slots become open.

good luck.

Re: Unit trading problem

Posted: Thu Jun 10, 2010 7:25 pm
by Myrd
This will be fixed for 1.7.2.

Re: Unit trading problem

Posted: Thu Jun 10, 2010 7:50 pm
by Pyro
As Point stated, for some reason Myth looks at the first 16 slots for unit types of each team to add to the UT window. It also includes the ambient team (team -1) into each team. A case of this was fixed in 1.7.1, but you found another case of the same issue. So you can either wait for 1.7.2 or remove the ambient units and re-add them under the tradable units. One way to readd them is to add the same unit type to the list and place them in the same places as the originals. After that just delete the unit types on the top so only the newer ones remain. Then relink the script to the units that need it.

Re: Unit trading problem

Posted: Fri Jun 11, 2010 12:03 am
by hmp
Well I'd have to replace like 200 units and I'm sick of working on this anyways, so I'll just wait. Thanks :)