Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!

Author Topic: Question about upkeep  (Read 6734 times)

0 Members and 3 Guests are viewing this topic.

February 12, 2017, 01:07:08 PM

Offline Mr.Puerto

  • Mod Team Member
  • Admiral
  • ****
  • Posts: 643
  • Approval: +18/-6
  • Professional Shut in, Steam Name: Mr.puertorican
    • View Profile
Question about upkeep
« on: February 12, 2017, 01:07:08 PM »
So in the Pentastar playthrough, I saw that the upkeep mechanic was put into place, however, when you moved your fleet into the orbit of an enemy planet upkeep doesn't take effect. So the question is can I just station a fleet above an enemy planet and leave it there so it doesn't take any credits to upkeep it?
“In this world, whenever there is light, there are also shadows. As long as the concept of winners exist, there must also be losers. The selfish desire of wanting to maintain peace causes wars and hatred is born to protect love.“


February 12, 2017, 02:14:44 PMReply #1

Offline kucsidave

  • Mod Team Member
  • Grand Admiral
  • ****
  • Posts: 1,018
  • Approval: +44/-4
  • Don't fear your Demons. Make them fear YOU.
    • View Profile
Re: Question about upkeep
« Reply #1 on: February 12, 2017, 02:14:44 PM »
At the moment, yes. When 2.2 comes out? Who knows. Maybe we won't even use the mechanic if it hurts AI/balance, and there is the question if we can make it so that even if they are on enemy planet to still take effect. This is a pretty much testbed of new stuff. Question is what works, how it can be improved and how can we implement it if we can in the first place.
"He who fights with monsters should be careful lest he thereby become a monster.
And if thou gaze long into an abyss, the abyss will also gaze into thee." - Friedrich Nietzsche

February 12, 2017, 11:46:12 PMReply #2

Offline Mr.Puerto

  • Mod Team Member
  • Admiral
  • ****
  • Posts: 643
  • Approval: +18/-6
  • Professional Shut in, Steam Name: Mr.puertorican
    • View Profile
Re: Question about upkeep
« Reply #2 on: February 12, 2017, 11:46:12 PM »
At the moment, yes. When 2.2 comes out? Who knows. Maybe we won't even use the mechanic if it hurts AI/balance, and there is the question if we can make it so that even if they are on enemy planet to still take effect. This is a pretty much testbed of new stuff. Question is what works, how it can be improved and how can we implement it if we can in the first place.
Yeah that's true I was just wondering, it seemed like an interesting work around.
“In this world, whenever there is light, there are also shadows. As long as the concept of winners exist, there must also be losers. The selfish desire of wanting to maintain peace causes wars and hatred is born to protect love.“


February 13, 2017, 01:49:30 PMReply #3

Offline thdhted

  • Stormtrooper Captain
  • ***
  • Posts: 12
  • Approval: +0/-0
  • Elite Stormtrooper, AKA: better cannon fodder.
    • View Profile
Re: Question about upkeep
« Reply #3 on: February 13, 2017, 01:49:30 PM »
If I'm remembering correctly, Awakening of the Rebellion has a unit upkeep system. From what I saw of it, unit upkeep does NOT occur above an enemy planet, but instead forces the credit drain upon whichever faction you have those units parked above.
"When in war, men must die, they can't be managed to their deaths, they must be led."

February 13, 2017, 02:07:45 PMReply #4

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Question about upkeep
« Reply #4 on: February 13, 2017, 02:07:45 PM »
If we ultimately decide to keep the upkeep costs, I'm going to try to do it through LUA, which will keep the costs even on enemy planets.
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


February 14, 2017, 01:32:15 AMReply #5

Offline Mr.Puerto

  • Mod Team Member
  • Admiral
  • ****
  • Posts: 643
  • Approval: +18/-6
  • Professional Shut in, Steam Name: Mr.puertorican
    • View Profile
Re: Question about upkeep
« Reply #5 on: February 14, 2017, 01:32:15 AM »
If we ultimately decide to keep the upkeep costs, I'm going to try to do it through LUA, which will keep the costs even on enemy planets.
I think the aspect of upkeep is really cool, so I hope you will keep,I hope it does work.
“In this world, whenever there is light, there are also shadows. As long as the concept of winners exist, there must also be losers. The selfish desire of wanting to maintain peace causes wars and hatred is born to protect love.“


March 15, 2017, 04:41:37 AMReply #6

Offline Megabalta

  • Stormtrooper
  • **
  • Posts: 6
  • Approval: +0/-0
    • View Profile
Re: Question about upkeep
« Reply #6 on: March 15, 2017, 04:41:37 AM »
Do you mind sharing how you've made it? Is it the original games maintenance system revived?

March 15, 2017, 08:28:02 AMReply #7

Offline HobbesHurlbut

  • Rear Admiral
  • *****
  • Posts: 149
  • Approval: +5/-4
    • View Profile
Re: Question about upkeep
« Reply #7 on: March 15, 2017, 08:28:02 AM »
If we ultimately decide to keep the upkeep costs, I'm going to try to do it through LUA, which will keep the costs even on enemy planets.
I dunno....having the upkeep be a drain on enemy planets invoke the concept of the fleet raiding/blockading said enemy planet which is rather fitting. In addition to preventing any production from happening.

March 15, 2017, 09:09:05 AMReply #8

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Question about upkeep
« Reply #8 on: March 15, 2017, 09:09:05 AM »
That part of it we like, which we could try to keep in a scripted version. But the way it currently is, it also means if you have a fleet in transit between planets when it ticks over to the next week, you're also not paying upkeep for them.
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


March 16, 2017, 05:47:47 PMReply #9

Offline Kad_Venku

  • Stormtrooper Captain
  • ***
  • Posts: 11
  • Approval: +1/-0
    • View Profile
Re: Question about upkeep
« Reply #9 on: March 16, 2017, 05:47:47 PM »
Unit upkeep is a nice concept we're experimenting with as well.
I've found scripting it is pretty easy. You're basically running a loop timed to a fiscal time cycle which computes a sum of the unit cost for each desired faction and substracts it accordingly. Mapping a unit to its cost is more of a problem, but can be avoided by either using a unified naming convention and string operators, or maintaining a cost database, which is a tad more work.

But as Corey already said, its use is debatable, specially for the AI.
« Last Edit: March 19, 2017, 09:47:17 PM by Kad_Venku »

March 17, 2017, 04:28:37 AMReply #10

Offline Megabalta

  • Stormtrooper
  • **
  • Posts: 6
  • Approval: +0/-0
    • View Profile
Re: Question about upkeep
« Reply #10 on: March 17, 2017, 04:28:37 AM »
This is my solution, it'll always draw the same amount, no matter where the ships are.

      <Abilities SubObjectList="Yes">
         <Planet_Income_Bonus_Ability Name="CR90_maintenance">
            <Specific_Mod_Source_Text>TEXT_CR90_MAINTENANCE</Specific_Mod_Source_Text>
            <Absolute_Income_Modifier>-108</Absolute_Income_Modifier>
         </Planet_Income_Bonus_Ability>
      </Abilities>

The only area where I find this lacking, is my supply system. The concept would be to simulate operational costs: if a ship is above a friendly planet with a supply station, it's cheaper to maintain, if a ship is blockading an enemy planet, it's more expensive etc.
I've added supply ships to reduce the maintenance values over planets which do not have supply stations, and as a vulnerability gameplay element to fleets. They use this ability:

      <Abilities SubObjectList="Yes">
         <Planet_Income_Bonus_Ability Name="Supply_Ship_Income_Bonus">
            <Specific_Mod_Source_Text>TEXT_ECONOMY_SUPPLY</Specific_Mod_Source_Text>
            <Percentage_Income_Modifier>0.00105</Percentage_Income_Modifier>
         </Planet_Income_Bonus_Ability>

They're supposed to reduce maintenance costs, but I didn't find a way to reduce the above maintenance modifier relative to it's value, since this value is independent from the planets income, and relative modifiers only modify planetary income values.

March 17, 2017, 07:07:35 AMReply #11

Offline kucsidave

  • Mod Team Member
  • Grand Admiral
  • ****
  • Posts: 1,018
  • Approval: +44/-4
  • Don't fear your Demons. Make them fear YOU.
    • View Profile
Re: Question about upkeep
« Reply #11 on: March 17, 2017, 07:07:35 AM »
megabalta, csak nem magyar vagy?
"He who fights with monsters should be careful lest he thereby become a monster.
And if thou gaze long into an abyss, the abyss will also gaze into thee." - Friedrich Nietzsche

March 17, 2017, 09:00:15 AMReply #12

Offline Helix345

  • Vice Admiral
  • ******
  • Posts: 284
  • Approval: +8/-3
    • View Profile
Re: Question about upkeep
« Reply #12 on: March 17, 2017, 09:00:15 AM »
why do you think he's hungarian?

March 17, 2017, 11:30:27 AMReply #13

Offline Megabalta

  • Stormtrooper
  • **
  • Posts: 6
  • Approval: +0/-0
    • View Profile
Re: Question about upkeep
« Reply #13 on: March 17, 2017, 11:30:27 AM »
Because balta means axe in hungarian.
A válaszom pedig de bizony.

March 19, 2017, 11:41:40 AMReply #14

Offline Helix345

  • Vice Admiral
  • ******
  • Posts: 284
  • Approval: +8/-3
    • View Profile
Re: Question about upkeep
« Reply #14 on: March 19, 2017, 11:41:40 AM »
ahh

March 19, 2017, 12:24:24 PMReply #15

Offline Corey

  • Mod Leader
  • Administrator
  • Emperor
  • *****
  • Posts: 7,520
  • Approval: +410/-80
  • Dream Crusher
    • View Profile
Re: Question about upkeep
« Reply #15 on: March 19, 2017, 12:24:24 PM »
Quote
This is my solution, it'll always draw the same amount, no matter where the ships are.

      <Abilities SubObjectList="Yes">
         <Planet_Income_Bonus_Ability Name="CR90_maintenance">
            <Specific_Mod_Source_Text>TEXT_CR90_MAINTENANCE</Specific_Mod_Source_Text>
            <Absolute_Income_Modifier>-108</Absolute_Income_Modifier>
         </Planet_Income_Bonus_Ability>
      </Abilities>

We're not talking about making it pull the same amount of credits regardless of the planet it's on. That's set up the exact same way ours is. The problem is that if you move that fleet to an enemy planet, the enemy is now paying that ship's maintenance, and if you have the fleet in transit, you're no longer paying for it, even with the code you posted. This code ties it to the planet, even if it's an absolute modifier; if it's not your planet, it's still tied to it, and if it's in transit, it's not tied to a planet and therefore doesn't cost money. As Kad said, LUA's a much better solution for this.
I also have a YouTube channel where I talk about mod development and gaming, do tutorials, and Let's Plays. If you like the content, consider supporting it on Patreon


March 20, 2017, 05:14:10 AMReply #16

Offline Megabalta

  • Stormtrooper
  • **
  • Posts: 6
  • Approval: +0/-0
    • View Profile
Re: Question about upkeep
« Reply #16 on: March 20, 2017, 05:14:10 AM »
Strange, I remembered that it pulled credits even on enemy planets from the player. But yeah, you're right, it seems it doesn't. That is really a problem. No maintenance costs during hyperspace routes could be compensated though, if every hyperspace jump costed a certain amount of money (depending on the ships making it and the number of jump points/distance), like the corrupt jumps in FOC.

March 20, 2017, 07:59:30 AMReply #17

Offline kucsidave

  • Mod Team Member
  • Grand Admiral
  • ****
  • Posts: 1,018
  • Approval: +44/-4
  • Don't fear your Demons. Make them fear YOU.
    • View Profile
Re: Question about upkeep
« Reply #17 on: March 20, 2017, 07:59:30 AM »
but that really put too much on the AI
The AI, unlike humans constantly moves it's fleet, usually back and forth troughout the galaxy.
If we would put a penalty on that, that would cripple the AI.
"He who fights with monsters should be careful lest he thereby become a monster.
And if thou gaze long into an abyss, the abyss will also gaze into thee." - Friedrich Nietzsche

March 21, 2017, 07:44:48 PMReply #18

Offline Megabalta

  • Stormtrooper
  • **
  • Posts: 6
  • Approval: +0/-0
    • View Profile
Re: Question about upkeep
« Reply #18 on: March 21, 2017, 07:44:48 PM »
If that behavior can't be cut from the AI, and it's a constant thing, there's always the possibility to compensate it in difficultyadjustments.xml.
<Credit_Multiplier>1.2</Credit_Multiplier>

October 25, 2017, 04:38:17 PMReply #19

Offline Megabalta

  • Stormtrooper
  • **
  • Posts: 6
  • Approval: +0/-0
    • View Profile
Re: Question about upkeep
« Reply #19 on: October 25, 2017, 04:38:17 PM »
If you didn't find a solution yet, here's a quicky:

- if galactic population can only be increased by a type of building (I'm not sure how to do this yet, ideas are welcome)
- the building has an upkeep via above ability and a population cap increase value
- a units upkeep costs are translated into pop cap values

basically the game has to change one value to another, but the results are the same, a units upkeep needs annual money. no problems with enemy planets or hyperspace travel.
« Last Edit: October 25, 2017, 04:39:54 PM by Megabalta »

 

Those working on this mod do so in their own free time and for no pay.
Show your support for them by enabling ads on this site!