How many times have we heard that a Cap can't be placed on the AIs ability to spam units.
Since the new developer came on board a lot of AI myths have been busted.
The problem dear JoJo is not in our stars but in ourselves. Built into the LUA programming language (of which SCAR is a subset) is the flexibility to choose what ever style of I/O one chooses. Boolean Neverbuild_FCN if return=false is not the same as FCN return= -1, never build; is it?
Who said that? You can place a limit to any unit for AI and AI won't build more units then limit, only few(3-6) units are limited in most of AIs. That spam issue is something that is a little different and has problem with demand, long story short if AI sees he can have a good unit in 1 min he will always wait for it that is why AI spams -> so it makes bottleneck that has to be resolved.I will fix it asap.
DEMAND_NeverBuild is constant with value -9999 which does not mean that we can be 100% sure AI won't build that unit, if AI gets demand table with all units with -9999 demand he will probably build one of them depending on lowest ETA, random factor and other factors...Problem is someone (probably relic) made that bottleneck cuz all call-in units have demand_offset around 500-1000 that is why they are always on top in demand table and there is no other unit with similar demand and standard deviation(variance) has no effect. IMO all demand_offsets should be at max 100. Also some of them should depend on map control and other more human-like factors.
I think demand_offsets should be maximum = 100 - variance(in integer format) - Demand(in integer format) -that is being offset.
Edit:DEMAND_NeverBuild(-9999)
Never build (for the rest of the game) > FCN(-1) means never. Can the infinitesimal chance(-9999) be over-ridden by the Boolean (-1)
QuoteAm not sure what do you mean with this, but Boolean can only be true or false nothing else -1 or similar.Can you explain this a little more .Some of the LUA variables have a value(null). value(-1) is similar usage. Since Lua allows you to define Functions pretty much however you wish to programmer A will define a FCN_Q one way Programmer B will define the identical function as FCN_R or maybe even FCN_Q, Programmer A returns Boolean(null) Programmer B is uncomfortable using nulls --me for one and defines null=-1. I have seen examples both ways in the limited time I've spent studying LUA. I think you agree it is very confusing.
Am not sure what do you mean with this, but Boolean can only be true or false nothing else -1 or similar.Can you explain this a little more .
I think I love you for saying this
Apparently Lua accepts the normal Boolean true,false paradigm; the old C language 1,0 paradigm and accepts a condition where nul and -1 are predefined non-false conditions, THere also seems to be a boolean form with 0,1,2 values. Unfortunately all three forms appear in the ai programming for CoH/EF. weirder and weirder.
I can't wait till they add british to CoH:O; the extreme forces leveled by the new imbalances will create a black hole around the servers that destroys half of Canada.
Conscripts generate their own population, so you only need the initial seven free pop.
once they hit the field they will cost 7 pop but will generate their own pop, so it will basically cover this problem.