Logo Platform
logo amplifiers simplified

This is driving me crazy

Reply
Copied to clipboard!
12 years ago
Aug 24, 2012, 3:14:08 PM
Here's the relevant code





StarSystemDescriptor.xml

[CODE]





...











....

[/CODE]

StarSystemDescriptor.xml

[CODE]





























[/CODE]



This did absolutely nothing, but if I only do:



[CODE]





[/CODE]



This works.





I really want to get this to work. Help, especially dev help, would be awesome.
0Send private message
12 years ago
Aug 24, 2012, 3:46:23 PM
Your wall of code sort of threw me off for a bit hah and if I hadn't been following your pervious posts I would have been lost. It doesn't answer your question but why do you have all those priorities? Shouldn't the code work without it?
0Send private message
12 years ago
Aug 24, 2012, 4:01:07 PM
you could not do that, this will create a cyclic reference



you ask to compute Food from IndustryToFood which is based on Industry which will be modify by FoodToIndustry which is based on food. So you ask to compute food which is modified by food... which I cannot accept ^^



this is why, when you remove the link between IndustryToFood and food it works...



By the way, you can remove the "Path" attribute in the "PropertyDescriptor" definition. Path is only a "ModifierDescriptor" attribute.



I hope this will help you !



Cheers,

Flo
0Send private message
12 years ago
Aug 24, 2012, 4:17:54 PM
Not really, All I want to do is switch food and industry.



What I really need is a function that switches two variables, because there doesn't seem to be away to get it to work the way you have it set up.





I.E.



X = food

y = Industry



Food = Y



Industry = X



But since you don't have a function to set something = too another something (that I know of) this causes it to be cyclic.
0Send private message
?

Click here to login

Reply
Comment