Login  Register
 



Post new topicReply to topic Go to page 1, 2  Next
 
Author Message
 PostPosted: 21 Mar, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Image
(Rate-Based Economy System)
ADDONS ONS
Recommend to be used with the Economy Panel Mod

Thanks 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
Image
Image
Image


Last edited by liveordie on 07 May, 2011, edited 16 times in total.

Top
 Profile  
 PostPosted: 22 Mar, 2011 
 
User avatar

Joined: 16 Feb, 2007
Posts: 443
Offline
can't wait :P

_________________
C.T. "I allways say, when something leaves the body,
Something else enters, that's how creative process works !" :)
Image


Top
 Profile  
 PostPosted: 23 Mar, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Download is now live :wink:

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 23 Mar, 2011 
 

Joined: 17 Aug, 2010
Posts: 206
Location: Netherlands
Offline
nice work LOD,


Top
 Profile  
 PostPosted: 23 Mar, 2011 
 
User avatar

Joined: 28 Aug, 2010
Posts: 951
Offline
Yay! :D

_________________
Image


Top
 Profile  
 PostPosted: 24 Mar, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
A update will be uploaded some time today to fix up the AI.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 25 Mar, 2011 
 
User avatar

Joined: 28 Aug, 2010
Posts: 951
Offline
When will it be live exactly, the update?

_________________
Image


Top
 Profile  
 PostPosted: 25 Mar, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
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
Image
Image
Image


Top
 Profile  
 PostPosted: 25 Mar, 2011 
 
User avatar

Joined: 28 Aug, 2010
Posts: 951
Offline
Thanks much! :D Ill get some sleep before installing it though :P

_________________
Image


Top
 Profile  
 PostPosted: 26 Mar, 2011 
 
User avatar

Joined: 28 Aug, 2010
Posts: 951
Offline
Is it still not up or does 1.0 have the ai fix?

btw I'm not pushing you or anything, just wondering.

_________________
Image


Top
 Profile  
 PostPosted: 26 Mar, 2011 
 
User avatar

Joined: 19 Jul, 2009
Posts: 2972
Offline
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
 Profile  
 PostPosted: 26 Mar, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
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 :wink:


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
Image
Image
Image


Top
 Profile  
 PostPosted: 27 Mar, 2011 
 
User avatar

Joined: 19 Jul, 2009
Posts: 2972
Offline
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
 Profile  
 PostPosted: 27 Mar, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
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
Image
Image
Image


Top
 Profile  
 PostPosted: 27 Mar, 2011 
 
User avatar

Joined: 19 Jul, 2009
Posts: 2972
Offline
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
 Profile  
 PostPosted: 01 Apr, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
Ill be releasing a blitzkrieg version of the eco mod that gives the AI unlimited mass and energy :lol:

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 01 Apr, 2011 
 
User avatar

Joined: 19 Jul, 2009
Posts: 2972
Offline
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
 Profile  
 PostPosted: 01 Apr, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
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
Image
Image
Image


Top
 Profile  
 PostPosted: 09 Apr, 2011 
 
User avatar

Joined: 28 Aug, 2010
Posts: 951
Offline
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.

_________________
Image


Top
 Profile  
 PostPosted: 09 Apr, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
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 :wink:

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 16 Apr, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
I've fixed a hook that i had on replace and not merge :roll: so now the eco mod can be run with other mods that hook modblueprints as well, No other changes so it remain the same version a new version will be released soon.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 30 Apr, 2011 
 
User avatar

Joined: 28 Aug, 2010
Posts: 951
Offline
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? :)

_________________
Image


Top
 Profile  
 PostPosted: 30 Apr, 2011 
 

Joined: 02 Jul, 2010
Posts: 1261
Offline
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 :wink: .

EDIT look in the revamp expansion thread i have posted a updated patch.

_________________
Creator of SupCom2
Revamp Expansion Mod
Image
Image
Image


Top
 Profile  
 PostPosted: 01 May, 2011 
 
User avatar

Joined: 28 Aug, 2010
Posts: 951
Offline
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 :wink: .

EDIT look in the revamp expansion thread i have posted a updated patch.


Very nice, thanks :D

_________________
Image


Top
 Profile  
 PostPosted: 02 May, 2011 
 

Joined: 14 Dec, 2007
Posts: 58
Offline
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
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic Go to page 1, 2  Next



Quick Tools

Search for:
Jump to:  

© 2002-2010 Gas Powered Games Corp. All Rights Reserved. Gas Powered Games is the exclusive trademark of Gas Powered Games Corp.
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
 
Home| Games | Company | News & Press | Support
  Terms of Use   |    Copyright Information   |    Privacy Policy