Megaquarium

Megaquarium

What will you create?
Access an ocean of content for Megaquarium created by players like you. New animals, decorations, tanks and more are available to expand your game and tailor it to your liking.
Learn More
Timer not working properly in custom campaign
I am trying to use the timer for an objective but for some unknown reason it doesn't work an act as a counter of the specie instead.
< >
Showing 1-4 of 4 comments
Twice Circled  [developer] 3 21 Feb, 2022 @ 4:06am 
Could you post the code/json for the objective? I might be able to point out what is wrong.

Please just copy and paste the specific part, not the whole file. :)
Triggered Cat 52 21 Feb, 2022 @ 7:03am 
{
"id":"timer",
"conditions":[
{"tank":{"hostsMany":[{"id":"prickly_lanternfish","quantity":16},{"tag":"animal","differentSpec":true,"nonImmobile":true,"quantity":3}],"isFiltered":true,"isChilled":true}},
{"timer":{"ticksRemaining":7200,"insert":true}}
]
},
Here is the one I tried and failed
Twice Circled  [developer] 3 22 Feb, 2022 @ 2:51am 
Hello, I copy and pasted your code and it works fine at my end.

Originally posted by Triggered Cat:
I am trying to use the timer for an objective but for some unknown reason it doesn't work an act as a counter of the specie instead.

What you describe here would happen if...

"insert":true,

...was in the wrong place, on the tank condition rather than the timer condition:

{"tank":{"hostsMany":[{"id":"prickly_lanternfish","quantity":16},{"tag":"animal","differentSpec":true,"nonImmobile":true,"quantity":3}],"isFiltered":true,"isChilled":true,"insert":true}},

But in the code you copied for me, you actually have it in the right place - on the timer line.

Maybe have another close look at your file and make sure everything is as it should be. A good tactic is to simplify to reduce variables. Remove all but the objective you copied and pasted and see if that works first. It works fine at my end. Then slowly add in other objectives one by one and see when it goes wrong. Trial and error.
Last edited by Twice Circled; 22 Feb, 2022 @ 2:54am
Triggered Cat 52 22 Feb, 2022 @ 3:10am 
Originally posted by Twice Circled:
Hello, I copy and pasted your code and it works fine at my end.

Originally posted by Triggered Cat:
I am trying to use the timer for an objective but for some unknown reason it doesn't work an act as a counter of the specie instead.

What you describe here would happen if...

"insert":true,

...was in the wrong place, on the tank condition rather than the timer condition:

{"tank":{"hostsMany":[{"id":"prickly_lanternfish","quantity":16},{"tag":"animal","differentSpec":true,"nonImmobile":true,"quantity":3}],"isFiltered":true,"isChilled":true,"insert":true}},

But in the code you copied for me, you actually have it in the right place - on the timer line.

Maybe have another close look at your file and make sure everything is as it should be. A good tactic is to simplify to reduce variables. Remove all but the objective you copied and pasted and see if that works first. It works fine at my end. Then slowly add in other objectives one by one and see when it goes wrong. Trial and error.
Thank you very much TC
< >
Showing 1-4 of 4 comments
Per page: 1530 50