energyUse invalid

energyUse invalid

Discuss game development here, from a distinct game project to an accessible third-party mutator, down to the interaction and design of individual units if you like.

Moderator: Moderators

Post Reply
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

energyUse invalid

Post by code_man »

energyUse tag just doesnt work in 0.96, whereas energyMake with a negative value does.
I didnt know if i should report this as an engine bug or a site (wiki) bug, so i post it here since its a game development issue.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: energyUse invalid

Post by Silentwings »

Works for me.
User avatar
code_man
Posts: 260
Joined: 19 Jan 2014, 13:10

Re: energyUse invalid

Post by code_man »

This is strange, i have had 2 buildings where it didnt work, changed it to energyMake negative and it works like a charm.

I dont have any gadgets that screw it up or something.
User avatar
knorke
Posts: 7971
Joined: 22 Feb 2006, 01:02

Re: energyUse invalid

Post by knorke »

energyMake:
The amount of the energy resource the unit generates unconditionally per game 'tick'.

energyUse
The amount of the energy resource the unit consumes per game 'tick'.

The wiki text is not 100% clear and can not test atm:
It might be that energyUse requires the unit to be turned on. (see onoffable and activateWhenBuilt)
User avatar
FLOZi
MC: Legacy & Spring 1944 Developer
Posts: 6242
Joined: 29 Apr 2005, 01:14

Re: energyUse invalid

Post by FLOZi »

knorke wrote: It might be that energyUse requires the unit to be turned on. (see onoffable and activateWhenBuilt)
I believe this is the case, yes.
User avatar
Silentwings
Posts: 3720
Joined: 25 Oct 2008, 00:23

Re: energyUse invalid

Post by Silentwings »

Yes, that's correct.
Post Reply

Return to “Game Development”