Page 4 of 4
Re: stuff to unhardcode
Posted: 07 Dec 2012, 08:45
by Cyp
Thought I once bumped MAX_FACTORY to 30, while fixing all related issues. Unless there are new issues, it should be possible to bump to 30 again, and do the limit of 5 in js.
Re: stuff to unhardcode
Posted: 07 Dec 2012, 08:53
by Reg312
In one of master versions we had unlimited armies
some players just got lags
Game engine developed for computes which 20 times slower
if you dont want make limits moddable, i suggest to make moddable damage\speed\weight formulas
Re: stuff to unhardcode
Posted: 07 Dec 2012, 09:04
by aubergine
@Cyp I think the only issue with factories is the commander settings panel:
viewtopic.php?f=48&t=10312#p113929
@Reg: I too would like to see those things unhardcoded, but we'll need to think about how AIs and other scripts can access/use the formulas even if they are modded (I have some rough ideas on this, will post elsewhere).
Re: stuff to unhardcode
Posted: 07 Dec 2012, 19:42
by Shadow Wolf TJC
@Cyp and aubergine: I'm guessing that the reason why there's a hardcoded limit of 5 factories is because the Commanders' orders screen can't handle the extra factories (
ticket #3521). While I've come up with
an idea for a temporary fix for the Commanders' factory assignment glitch, a more complete fix that would be more satisfactory still eludes me (mostly since I'm still coming to terms with figuring out how the source code works).
By the way, why exactly are the Satellite Uplink and LasSat Command Posts hardcoded? I'll be testing this out soon.
Edit: Seems like simply destroying ANY of the player's Satellite Uplinks doesn't necessarily disable the player's ability to view the entire map. Rather, it seems like the player has to have NO satellite uplinks present in order to lose that ability. Bravo devs, bravo.
However, because of this, I don't see any reason to keep the hard-coded limits for the Satellite Uplink or the LasSat Command Posts other than for gameplay balance of course, though multilim.slo and multilim.vlo already have that covered.

Re: stuff to unhardcode
Posted: 09 Dec 2012, 01:55
by dak180
Shadow Wolf TJC wrote:@Cyp and aubergine: I'm guessing that the reason why there's a hardcoded limit of 5 factories is because the Commanders' orders screen can't handle the extra factories (ticket
#3521). While I've come up with
an idea for a temporary fix for the Commanders' factory assignment glitch, a more complete fix that would be more satisfactory still eludes me (mostly since I'm still coming to terms with figuring out how the source code works).
The problem is that a real fix (as opposed to an inherently hacky one) requires that the entire GUI be rewritten from the ground up, an area that we could really use some help with if anyone is interested in pitching in.
Re: stuff to unhardcode
Posted: 19 Mar 2016, 14:06
by Alarak
Hey guys,
I realise i'm waking up what has died presumably. But i do think a wake up call wiuld be in order.
Are there any ways currently researched to unhardcode weapon trails?
'D like to make soms customizations to flame and mortar weapons, but they re not being allowed change. Thank you in advance