Farmscape Blitz is in action!
Put any bug reports and feedback here.
Any offtopic will be removed.
I was told there is a bug with poison mist and rain, where if there is one mist, and part of it is cleared out by rain, and then a different mist is cast on it, even the area of the first mist that was cleared by the rain turns into poison mist.
Interesting, I think that bug is in my backlog and I didnāt have time to fix it. Will fix it asap, thanks
Fixed, thanks! 20charss
np its fine just noticed
for looping in javascript over a array with positions: (ex:var array=[āA1ā,āA2ā]) gives a error of cant find undefined.
either im bad a coding or its just a bug
also are the AI_some chinese characters
actually aiās?
No, they are not AI, 20 chars
Could you give at least a fragment of your code?
They are ai younth they are a group in china on the china servers
Your code has an error, I asked the fragment where is the error. Also give an error next time please.
Iām having a problem where I canāt seem to interface the āmodifierā property of the farm objects. Iāve tried testing them with mist, rain, and boosts but it always seems to return null.
The Field Object Properties tab lists the modifier property as a property of farms but is not mentioned anywhere else. The only other mention of modifiers keyword is under the āboostsā section in hint 9 of the hints menu.
I wrote some Lua code to demonstrate the issue:
hero.build("wheat", "C3")
hero.mist("wheat", 3) -- I tested this with all types (patch, garden, wheat).
local farm = hero.whatAt("C3")
print(hero.findMists()[2].row)
print(hero.time, farm.modifier)
This code outputs:
3
3.1 undefined
Itās the same result with rain as well.
Iām not entirely sure if this is just an issue with Lua, but Iād love to know what the problem could be.
The field.modifier
property was an API for a previously intended feature that didnāt make it into the final design, guess we forgot to remove the documentation for it, apologies for the confusion, thank you for the report!
The āpoisonMistRecoverFactorā of rivers is listed as 30% in the hint menu however its actual in-game value is more likely set to 40%. I discovered this after noticing that calculating income for a farm would be incorrect when it was next to a river and had poison mist while considering the 30% factor. Iām not entirely sure which value is correct, so I thought to ask.
Also, I canāt seem to find any officially documented way to view what boost is active on a hero. Currently, the only way to see this is very hacky and an official API would be extremely helpful. For example:
local currentBoost = hero.getCurrentBoost() --> boost object {type: string, duration: number}
print(currentBoost.type, currentboost.duration) --> "fire|water|earth 8"
Hello, thanks for the report!
It was indeed 40%, sorry for the confusion, fixed that in the documentation.
Unfortunately I donāt think we can add additional APIs at this stage of the competition since the period for gameplay, API, and balance changes have ended.
Thanks for the clarification. In that case, would it be possible for the behavior of āhero.findBoosts()ā to be made easier to work with? Currently, the method returns every single boost on the board, regardless of whether itās already been picked up or not. This leads to it potentially returning boost objects that donāt actually exist in a given location which makes it a lot harder to manage.
Also, Iām having issues accessing the code editor from Farmscape. Whenever I try to load a level I get this error:
Pressing any of the buttons at the bottom just re-prompts the error message.
This is what the developer console looks like:
I get this same error on the direct subdomain, the main website, and also in an incognito tab.
Hello, I am unable to open any games from the farmscape arena. Clicking reset level or comment out my code doesnāt work. Iāve also tried switching accounts, clearing cache, switching browsers, resetting my computer and using a different computer.
Here is a screenshot:
Here is the console log:
|Tengri's Archer| Non-UserCodeError: TypeError: Cannot read properties of undefined (reading 'getColumnByX')
TypeError: Cannot read properties of undefined (reading 'getColumnByX')
at e.update (eval at module.exports.World.loadClassFromCode (https://direct.codecombat.com/javascripts/world.js:2:986349), <anonymous>:266:29)
at e.exports.e.callChainedMethod (https://direct.codecombat.com/javascripts/world.js:2:964848)
at e.p [as update] (https://direct.codecombat.com/javascripts/aether.js:2:821917)
at Existence.update (eval at module.exports.World.loadClassFromCode (https://direct.codecombat.com/javascripts/world.js:2:986349), <anonymous>:112:15)
at e.exports.e.getNextFrame (https://direct.codecombat.com/javascripts/world.js:2:1000492)
at module.exports.World.getFrame (https://direct.codecombat.com/javascripts/world.js:2:978296)
at module.exports.World.loadFrames (https://direct.codecombat.com/javascripts/world.js:2:980597)
at self.runWorld (https://direct.codecombat.com/javascripts/workers/worker_world.js:1:8889)
at https://direct.codecombat.com/javascripts/workers/worker_world.js:1:12013
Angel.coffee:197 Infinitely looped. false true Object false