Duplicated Obelisk and changed the cost to 100. This 1 will upgrade from photon cannon. The problem is that the button showes that it costs -50 minerals(i tested by setting the units cost to 0 then the button showes -150) Any idea whats happening?
Interestinly tho I use the same morph ability (I actually duplicated this for the Plasma Tower and changed the button name and such) for a pylon that upgrades from a (weaker) pylon and i have no such button problem with it...Thought this might help a bit to narrow the problem source..
I've had errors like this occur before. Usually, it happens when you have two different costs associated with the same unit. For example, if in the unit tab, Obelisk costs 100 minerals, and an charges 200 minerals for Obelisk, there is probably an issue.
Do you have any idea where i can change/see this second cost ?
I've been lookin around maddly but didnt find anything. ( I was thinking that its the "repair resource" but it doesnt seem to exist anymore...seen it in OneTwo's tutorial...)
If the cost in unit tab is 0 and the cost in the ablility tehc cost is 0 it actually gives me 100 minerls ... wierd..
@ElBushido: Go The morph cost always take itno account the difference between starting unit and final unit. So if you want to make the Photon Cannon morph into an Obelisk at no cost you just need to give both units the same cost. Check how it's done for the Orbital Command or the Planetary Fortress, the cost is actually built in the final unit.
Ahh ok that solwed 1 of my problems lol. Had a problem with the sell refundnow i see how it works. So the morph ability counts: cost of morph to unit - cost morph from unit = morph cost (so cost of tower 2 minus cost of tower 1 equals to cost of morph) thx that helped a lot for me to understand it.
Unfortunetly the problem still exists, it still takes of 50 minerals somehow. I set the Plasma tower cost to 500 so now the morph cost is 350 ( the photon cannon costs 100 so thats only 450 for Plasma tower..) where is that 50 $ lol ?..
Coriously it charges me the 400 for the upgrade so the PT's cost is actually 500 wich is good but on the button its only 350 instead of 400...
hmm... it seems like its accounting for the original cost of the unit..
See I made a unit by duplicating Infestor and made some changes to it like changed the model and added diff weapon and such. This supposed to be the upgraded version of another tower.. So tower 1 in this case cost 100 (I work with this nuimbers for now easier to see whats up lol) and this tower 2 would cost 500. So now the button shows the right mineral cost for the up ($400) but it also shows -150 gas lol ! I dont use gas in this game at all to buy towers....
So we know that Infestor costs 100 minerals and 150 gas by default. So its like it doesnt want to change the cost!
It changes it only visually lol i dont get it.
This actually would explain the problem with my Plasma Tower as well since by default Photon cannon costs 150 minerals wich I changed to 100 thus the -50 on the upgrade button, but what the hell LOLZ!?
How is it that it doesnt change the default cost velues to whatever I set it to !?
I made another tower this 1 is a duplicate of Stalker (costd 125 min 50 gas default)changed some stuff on it an this is as well a tower 2.
And voala the button work and shows what it sould 400 mins for upgrade tower 1 is 100 tower 2 is 500.
Worth mentioning i think that tower 1 is a zealot wich costs 100 by deafault too so since i didnt change the cost of tower 1 it shows the correct amount???
Not understanding it.
EDIT:
Yup it doesnt change the cost value. I changed zealots cost to 200 now, left stalker at 500 but the button still shows 400 instead of 300 for the upgrade.
But it does charge the correct amount (500) for the 2 towers.
I needed to check "Ignore Unit Cost" box in the morph ability's "Stats:Flags" section. This removed the cost, but didnt charge me and didnt show the cost!
To fix this I set the Field "Cost: Cost - Technology Resource Cost" section of the morph ability to 400, now it charges 400 minerals and shows 400 minerals for cost on the button as well. Also I needed to set the cost of the unit in the unit tab to 500 so when I sell the tower
it will give me the 20% of tower 1's and tower 2's cost combined (100 for tower 1 and 400 for the upgrade = 500 refound for salvage = 100)
Thx a lot u helped me by making me understand morph ability!
Duplicated Obelisk and changed the cost to 100. This 1 will upgrade from photon cannon. The problem is that the button showes that it costs -50 minerals(i tested by setting the units cost to 0 then the button showes -150) Any idea whats happening?
Interestinly tho I use the same morph ability (I actually duplicated this for the Plasma Tower and changed the button name and such) for a pylon that upgrades from a (weaker) pylon and i have no such button problem with it...Thought this might help a bit to narrow the problem source..
@ElBushido: Go
I've had errors like this occur before. Usually, it happens when you have two different costs associated with the same unit. For example, if in the unit tab, Obelisk costs 100 minerals, and an charges 200 minerals for Obelisk, there is probably an issue.
Hope that helps.
@Trinseno: Go
Do you have any idea where i can change/see this second cost ? I've been lookin around maddly but didnt find anything. ( I was thinking that its the "repair resource" but it doesnt seem to exist anymore...seen it in OneTwo's tutorial...)
If the cost in unit tab is 0 and the cost in the ablility tehc cost is 0 it actually gives me 100 minerls ... wierd..
@ElBushido: Go The morph cost always take itno account the difference between starting unit and final unit. So if you want to make the Photon Cannon morph into an Obelisk at no cost you just need to give both units the same cost. Check how it's done for the Orbital Command or the Planetary Fortress, the cost is actually built in the final unit.
@SoulFilcher: Go
Ahh ok that solwed 1 of my problems lol. Had a problem with the sell refundnow i see how it works. So the morph ability counts: cost of morph to unit - cost morph from unit = morph cost (so cost of tower 2 minus cost of tower 1 equals to cost of morph) thx that helped a lot for me to understand it.
Unfortunetly the problem still exists, it still takes of 50 minerals somehow. I set the Plasma tower cost to 500 so now the morph cost is 350 ( the photon cannon costs 100 so thats only 450 for Plasma tower..) where is that 50 $ lol ?..
Coriously it charges me the 400 for the upgrade so the PT's cost is actually 500 wich is good but on the button its only 350 instead of 400...
@ElBushido: Go
hmm... it seems like its accounting for the original cost of the unit.. See I made a unit by duplicating Infestor and made some changes to it like changed the model and added diff weapon and such. This supposed to be the upgraded version of another tower.. So tower 1 in this case cost 100 (I work with this nuimbers for now easier to see whats up lol) and this tower 2 would cost 500. So now the button shows the right mineral cost for the up ($400) but it also shows -150 gas lol ! I dont use gas in this game at all to buy towers.... So we know that Infestor costs 100 minerals and 150 gas by default. So its like it doesnt want to change the cost! It changes it only visually lol i dont get it.
This actually would explain the problem with my Plasma Tower as well since by default Photon cannon costs 150 minerals wich I changed to 100 thus the -50 on the upgrade button, but what the hell LOLZ!? How is it that it doesnt change the default cost velues to whatever I set it to !?
@ElBushido: Go
I made another tower this 1 is a duplicate of Stalker (costd 125 min 50 gas default)changed some stuff on it an this is as well a tower 2. And voala the button work and shows what it sould 400 mins for upgrade tower 1 is 100 tower 2 is 500. Worth mentioning i think that tower 1 is a zealot wich costs 100 by deafault too so since i didnt change the cost of tower 1 it shows the correct amount??? Not understanding it.
EDIT:
Yup it doesnt change the cost value. I changed zealots cost to 200 now, left stalker at 500 but the button still shows 400 instead of 300 for the upgrade.
But it does charge the correct amount (500) for the 2 towers.
@ElBushido: Go
ALRIGHT so I fixed the problem now. This is how:
I needed to check "Ignore Unit Cost" box in the morph ability's "Stats:Flags" section. This removed the cost, but didnt charge me and didnt show the cost! To fix this I set the Field "Cost: Cost - Technology Resource Cost" section of the morph ability to 400, now it charges 400 minerals and shows 400 minerals for cost on the button as well. Also I needed to set the cost of the unit in the unit tab to 500 so when I sell the tower it will give me the 20% of tower 1's and tower 2's cost combined (100 for tower 1 and 400 for the upgrade = 500 refound for salvage = 100)
Thx a lot u helped me by making me understand morph ability!
@ElBushido: Go Good you found everything, I totally forgot to tell you about the cost in the ability and those flags, maybe because I never use them.