Unit trading problem

A forum for discussing map making ideas and problems for the Myth series.
Post Reply
hmp
Posts: 146
Joined: Fri Dec 14, 2007 3:00 am

Unit trading problem

Post 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. :(
User avatar
Pyro
Bug Finder Extraordinaire
Posts: 4751
Joined: Sun Mar 21, 2004 2:14 pm
Location: Texas

Re: Unit trading problem

Post 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.
hmp
Posts: 146
Joined: Fri Dec 14, 2007 3:00 am

Re: Unit trading problem

Post by hmp »

User avatar
Point
Posts: 1804
Joined: Mon Mar 22, 2004 12:58 pm

Re: Unit trading problem

Post 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.
if one does not learn from the failings of the past they are likely to suffer its return.
Myrd
Site Admin
Posts: 4031
Joined: Fri Mar 19, 2004 10:17 pm

Re: Unit trading problem

Post by Myrd »

This will be fixed for 1.7.2.
User avatar
Pyro
Bug Finder Extraordinaire
Posts: 4751
Joined: Sun Mar 21, 2004 2:14 pm
Location: Texas

Re: Unit trading problem

Post 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.
hmp
Posts: 146
Joined: Fri Dec 14, 2007 3:00 am

Re: Unit trading problem

Post 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 :)
Post Reply