|
 |
| Author |
Message |
|
liveordie
|
Posted: 21 Mar, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
 (Rate-Based Economy System) ADDONS ONSRecommend to be used with the Economy Panel ModThanks to Mithy for his codding help and hooking tips  , And thanks to theshadowlord for the concept and giving me a starting point to work from. SUPPORT INFO• DLC Support only • Can Be Used With both Vanilla SC2 And Mods • Requests Mithys Mod Support MiniMod v6 and up Version 1.2• AI Has been given unlimited Mass and Energy (Blitzkrieg AI) • Pause Ability added to UEF Energy Generators Engineering Arm Version 1.1• Improved AI handling of new eco • Fixed rebuild bonuses costing resources • Fixed combat scoring removing points • AI Support added for the upcoming Revamp Expansion Mod Version 1.05 Version 1.0• Improved the work around system Play with a drain based economy like in SC1, FA. This mod is configured for use with SC2 Mod Manager Place the eco mod.scd within Steam\steamapps\common\supremecommander2\gamedata to enable it without the mod manager you will also need to place mithys mod support minimod into your game data folder as well. DOWNLOAD http://www.moddb.com/mods/revamp-mod/downloads
_________________ Creator of SupCom2 Revamp Expansion Mod


Last edited by liveordie on 07 May, 2011, edited 16 times in total.
|
|
| Top |
|
 |
|
jetsnguns
|
Posted: 22 Mar, 2011
|
|
Joined: 16 Feb, 2007 Posts: 443
|
|
| Top |
|
 |
|
liveordie
|
Posted: 23 Mar, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
|
| Top |
|
 |
|
Markth
|
Posted: 23 Mar, 2011
|
|
Joined: 17 Aug, 2010 Posts: 206 Location: Netherlands
|
|
| Top |
|
 |
|
redmoth
|
Posted: 23 Mar, 2011
|
|
Joined: 28 Aug, 2010 Posts: 951
|
Yay! 
_________________
|
|
| Top |
|
 |
|
liveordie
|
Posted: 24 Mar, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
|
| Top |
|
 |
|
redmoth
|
Posted: 25 Mar, 2011
|
|
Joined: 28 Aug, 2010 Posts: 951
|
|
When will it be live exactly, the update?
_________________
|
|
| Top |
|
 |
|
liveordie
|
Posted: 25 Mar, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
redmoth wrote: When will it be live exactly, the update? im just finishing a few small changes then ill be uploading it ill post a link up
_________________ Creator of SupCom2 Revamp Expansion Mod


|
|
| Top |
|
 |
|
redmoth
|
Posted: 25 Mar, 2011
|
|
Joined: 28 Aug, 2010 Posts: 951
|
Thanks much!  Ill get some sleep before installing it though 
_________________
|
|
| Top |
|
 |
|
redmoth
|
Posted: 26 Mar, 2011
|
|
Joined: 28 Aug, 2010 Posts: 951
|
|
Is it still not up or does 1.0 have the ai fix?
btw I'm not pushing you or anything, just wondering.
_________________
|
|
| Top |
|
 |
|
Mithy
|
Posted: 26 Mar, 2011
|
|
Joined: 19 Jul, 2009 Posts: 2972
|
|
Which files are being shadowed that it can only use v2 of the support mod?
New mods made with the intention of using the mod support mod shouldn't have any issues with newer versions - just hook the files that you would otherwise shadow. I'm only leaving v2 up for compatibility with revamp 1.01, which as far as I know is the only mod that creates custom abilities that hasn't been updated to support v4-5.
v5 has far fewer limitations than the previous versions, and can still operate alongside mods that replace lua.scd and z_lua_dlc1.scd as long as they don't also shadow the 3 core init files and orderstable.lua.
|
|
| Top |
|
 |
|
liveordie
|
Posted: 26 Mar, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
redmoth wrote: Is it still not up or does 1.0 have the ai fix?
btw I'm not pushing you or anything, just wondering. sorry man its taking longer than i thought but i want the AI to work right with the eco Mithy wrote: Which files are being shadowed that it can only use v2 of the support mod?
New mods made with the intention of using the mod support mod shouldn't have any issues with newer versions - just hook the files that you would otherwise shadow. I'm only leaving v2 up for compatibility with revamp 1.01, which as far as I know is the only mod that creates custom abilities that hasn't been updated to support v4-5.
v5 has far fewer limitations than the previous versions, and can still operate alongside mods that replace lua.scd and z_lua_dlc1.scd as long as they don't also shadow the 3 core init files and orderstable.lua. Mithy you change you ID of your mod support mod  i set the ReqModID to your V2 so when people try to use V5 it will tell them its the wrong version, and you no longer have a link to V4, The eco mod hooks doesn't shadow any think.
_________________ Creator of SupCom2 Revamp Expansion Mod


|
|
| Top |
|
 |
|
Mithy
|
Posted: 27 Mar, 2011
|
|
Joined: 19 Jul, 2009 Posts: 2972
|
|
Just change it to the new ID? I shouldn't need to change the ID from this point on - I mostly did that so anything requiring v5+ would turn down earlier versions, to eliminate confusion for mods that need the significant changes in v5 (e.g. my mass conversion mod).
I'm lobbying CerusVI for a $ReqVer parameter for mods, so that the ID never has to change and you can just specify a minimum version.
|
|
| Top |
|
 |
|
liveordie
|
Posted: 27 Mar, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
Mithy wrote: Just change it to the new ID? I shouldn't need to change the ID from this point on - I mostly did that so anything requiring v5+ would turn down earlier versions, to eliminate confusion for mods that need the significant changes in v5 (e.g. my mass conversion mod).
I'm lobbying CerusVI for a $ReqVer parameter for mods, so that the ID never has to change and you can just specify a minimum version. Thats why i asked CerusVI for a $ReqVer parameter before he release his last version but he didn't see need for it, I cant just change it to the new ID then it renders revamp not compatible once i release my next update that supports your version 5 then ill change the ID for now ill just remove it all together for the next release.
_________________ Creator of SupCom2 Revamp Expansion Mod


|
|
| Top |
|
 |
|
Mithy
|
Posted: 27 Mar, 2011
|
|
Joined: 19 Jul, 2009 Posts: 2972
|
|
Oh, right. That makes sense. v3/4 weren't compatible with revamp 1.01 either, so when you mentioned v4, it threw me off.
|
|
| Top |
|
 |
|
liveordie
|
Posted: 01 Apr, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
|
| Top |
|
 |
|
Mithy
|
Posted: 01 Apr, 2011
|
|
Joined: 19 Jul, 2009 Posts: 2972
|
|
I just took 3 seconds to look at the AI, and found /lua/AI/AIEconomyUtilities.lua.GetUnitEconomy, which seems to report unit costs to the AI. Why not just override this so that the AI sees units at something like 25% cost, which will keep it from building unlimited units, while also preventing it from choking on really expensive experimentals that it can never afford all at once?
Or for that matter, have it report actual cost, but cap the cost at a reasonable level so the most expensive experimentals don't report their full cost.
Edit: You could also override GetEconomyStorage in that file, and have it report more or less stored resources based on the AI's actual income. In other words, if the AI has positive net income, report more of that resource than is actually available. Vice versa, if the AI has net negative income, report less so that it slows down construction jobs once it has a lot of them going. If you wanted to be really enterprising, you could add a third function that reports net income, and work that into the two places that this file is used (Builder.lua and BaseManagerPlatoonThreads.lua) so those functions consider income as well as storage.
Edit 2: Yeah, both of those files have pretty straightforward economy estimations. Right now, the platoon cost manager just adds up total cost for a platoon based on the unit cost function, and checks if storage > cost. The base manager does the same thing, but on a per structure basis. Both are just a simple pass/fail, and those conditions could be easily changed to consider e.g. unit per-second cost averages for the platoon vs its current net income, with a modifier based on particularly high or low storage (e.g. less than 5x the cost per second, or more than 30x).
Last edited by Mithy on 01 Apr, 2011, edited 1 time in total.
|
|
| Top |
|
 |
|
liveordie
|
Posted: 01 Apr, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
Mithy wrote: I just took 3 seconds to look at the AI, and found /lua/AI/AIEconomyUtilities.lua.GetUnitEconomy, which seems to report unit costs to the AI. Why not just override this so that the AI sees units at something like 25% cost, which will keep it from building unlimited units, while also preventing it from choking on really expensive experimentals that it can never afford all at once?
Or for that matter, have it report actual cost, but cap the cost at a reasonable level so the most expensive experimentals don't report their full cost.
Edit: You could also override GetEconomyStorage in that file, and have it report more or less stored resources based on the AI's actual income. In other words, if the AI has positive net income, report more of that resource than is actually available. Vice versa, if the AI has net negative income, report less so that it slows down construction jobs once it has a lot of them going. If you wanted to be really enterprising, you could add a third function that reports net income, and work that into the two places that this file is used (Builder.lua and BaseManagerPlatoonThreads.lua) so those functions consider income as well as storage. Thanks mithy ill have a play around with this and see what i get.
_________________ Creator of SupCom2 Revamp Expansion Mod


|
|
| Top |
|
 |
|
redmoth
|
Posted: 09 Apr, 2011
|
|
Joined: 28 Aug, 2010 Posts: 951
|
|
LoD, the ai seems to build too many factorys, wich slows down its economy. Its just something I noticed, But I dont know if it actually slows down its eco.
_________________
|
|
| Top |
|
 |
|
liveordie
|
Posted: 09 Apr, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
redmoth wrote: LoD, the ai seems to build too many factorys, wich slows down its economy. Its just something I noticed, But I dont know if it actually slows down its eco. Yer this is a problem on my list ill be looking into soon 
_________________ Creator of SupCom2 Revamp Expansion Mod


|
|
| Top |
|
 |
|
liveordie
|
Posted: 16 Apr, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
|
| Top |
|
 |
|
redmoth
|
Posted: 30 Apr, 2011
|
|
Joined: 28 Aug, 2010 Posts: 951
|
Hey, LoD would it be possible to make a "quick" fix for the ai building too much factories? (limit the number of factories it produces) or even just point me out how to do this? 
_________________
|
|
| Top |
|
 |
|
liveordie
|
Posted: 30 Apr, 2011
|
|
Joined: 02 Jul, 2010 Posts: 1261
|
redmoth wrote: Hey, LoD would it be possible to make a "quick" fix for the ai building too much factories? (limit the number of factories it produces) or even just point me out how to do this?  That's was bug in revamp expansion which is fixed for next release  . EDIT look in the revamp expansion thread i have posted a updated patch.
_________________ Creator of SupCom2 Revamp Expansion Mod


|
|
| Top |
|
 |
|
redmoth
|
Posted: 01 May, 2011
|
|
Joined: 28 Aug, 2010 Posts: 951
|
liveordie wrote: redmoth wrote: Hey, LoD would it be possible to make a "quick" fix for the ai building too much factories? (limit the number of factories it produces) or even just point me out how to do this?  That's was bug in revamp expansion which is fixed for next release  . EDIT look in the revamp expansion thread i have posted a updated patch. Very nice, thanks 
_________________
|
|
| Top |
|
 |
|
paxton666
|
Posted: 02 May, 2011
|
|
Joined: 14 Dec, 2007 Posts: 58
|
With this mod enabled the AI never launches nukes. Shadowlords mod is the same way.  It is the same with the revamp and default AI.
|
|
| Top |
|
 |
 |
 |
|