Author Topic: [Request] $Power_Output: Enabled  (Read 1580 times)

0 Members and 1 Guest are viewing this topic.

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Minecraft
    • Skype
    • Twitter
    • Headdie on Deviant Art
[Request] $Power_Output: Enabled
Actually does *NOTHING* unless set to zero; in which case weapon/shield/burner energy regeneration is disabled. Checked via code inspection 2014/12/29

Is there a chance that a flag can be created to enable this to have an effect on power management?
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline AdmiralRalwood

  • 211
  • The Cthulhu programmer himself!
    • Skype
    • Steam
    • Twitter
Re: [Request] $Power_Output: Enabled
What effect would you want it to have, exactly?
Ph'nglui mglw'nafh Codethulhu GitHub wgah'nagl fhtagn.

schrödinbug (noun) - a bug that manifests itself in running software after a programmer notices that the code should never have worked in the first place.

When you gaze long into BMPMAN, BMPMAN also gazes into you.

"I am one of the best FREDders on Earth" -General Battuta

<Aesaar> literary criticism is vladimir putin

<MageKing17> "There's probably a reason the code is the way it is" is a very dangerous line of thought. :P
<MageKing17> Because the "reason" often turns out to be "nobody noticed it was wrong".
(the very next day)
<MageKing17> this ****ing code did it to me again
<MageKing17> "That doesn't really make sense to me, but I'll assume it was being done for a reason."
<MageKing17> **** ME
<MageKing17> THE REASON IS PEOPLE ARE STUPID
<MageKing17> ESPECIALLY ME

<MageKing17> God damn, I do not understand how this is breaking.
<MageKing17> Everything points to "this should work fine", and yet it's clearly not working.
<MjnMixael> 2 hours later... "God damn, how did this ever work at all?!"
(...)
<MageKing17> so
<MageKing17> more than two hours
<MageKing17> but once again we have reached the inevitable conclusion
<MageKing17> How did this code ever work in the first place!?

<@The_E> Welcome to OpenGL, where standards compliance is optional, and error reporting inconsistent

<MageKing17> It was all working perfectly until I actually tried it on an actual mission.

<IronWorks> I am useful for FSO stuff again. This is a red-letter day!
* z64555 erases "Thursday" and rewrites it in red ink

<MageKing17> TIL the entire homing code is held up by shoestrings and duct tape, basically.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Minecraft
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: [Request] $Power_Output: Enabled
So that Recharge values are based on available Power per second rather than as a percentage of the total value of the sub system as exists with the current system regen rate system
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
Re: [Request] $Power_Output: Enabled
I think I would actually want this, too.  Assuming I ever get programming off the ground again, I could work on it if no one else wants to.  Are there any options which currently make power generation independent of difficulty setting? 

  

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: [Request] $Power_Output: Enabled
Eh, probably would require a significant amount of finagling. Could you elaborate on what you are envisioning?

FringeSpace is interested in this, since Tachyon's system had it so that your engines produced a certain amount of power and power flow to the shield and weapon subsystems was set at a specific rate. Once those subsystems were full in capacity, the power flow to them was shut off, thereby giving the engines more juice.

Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Minecraft
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: [Request] $Power_Output: Enabled
The way I envisioned it

A Power Output of 30 units per second
on a balanced ELS would mean 10 units per system per second
on a 40% 30% 30% ELS distribution would look like 12 9 9 units per second
 in the latter case:
 - 12 units per second would go into the weapons pool taking 10 seconds to charge a 120 unit weapon energy from empty

Engine overclock would probably be untouched
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline Cyborg17

  • 29
  • Life? Don't talk to me about life....
Re: [Request] $Power_Output: Enabled
With that system, the problem could be not with the rate but with the capacity of the systems.  Weapon capacity could be wildly different from Shield and Afterburner capacities, and so one system could be severely over or under powered.

Maybe instead have a system where an alternate rate is defined for each:

Code: [Select]
$Alternate Power Output Enable: Yes [Defaults to No]
+Alternate Engine Recharge Rate: 10
+Alternate Weapon Recharge Rate: 15
+Alternate Shield Recharge Rate: 45

Then the recharge rate is adjusted by percentage for each system.  So:

ETS
40% 40% 20%  Would come out to
12 18 27 

(Round(Base Rate * 3 * New Percentage))

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Minecraft
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: [Request] $Power_Output: Enabled
I don't see a problem with an effect modifier to compensate for differing scales
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: [Request] $Power_Output: Enabled
That, sounds like needless complexity, Cyborg, since FSO's current system allows for fine tuning of the recharge rates.

@headdie
Whats the goal with adding a power output figure? Maybe be able to do something like powerups / leech weapons that affect whole-system power?
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.

 

Offline headdie

  • i don't use punctuation lol
  • 212
  • Lawful Neutral with a Chaotic outook
    • Minecraft
    • Skype
    • Twitter
    • Headdie on Deviant Art
Re: [Request] $Power_Output: Enabled
My main goal is to simulate the ships power systems as my brain works better with those sort of hard numbers than percentages., especially when it comes to working out balances like drain and charge
Minister of Interstellar Affairs Sol Union - Retired
quote General Battuta - "FRED is canon!"
Contact me at [email protected]
My Release Thread, Old Release Thread, Celestial Objects Thread, My rubbish attempts at art

 

Offline z64555

  • 210
  • Self-proclaimed controls expert
    • Minecraft
    • Steam
Re: [Request] $Power_Output: Enabled
Ok, so in which case something like Cyborg's suggestion would work better, then:

Code: [Select]
$Use_Power_Units: Yes  ;; Instead of parsing the following as %, parse as units

$Shield Regeneration Rate:     100 ;; in units
$Support Shield Repair Rate:   200 ;; in units
$Weapon Regeneration Rate:      50 ;; in units
Secure the Source, Contain the Code, Protect the Project
chief1983

------------
funtapaz: Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Juche.
z64555: s/J/Do
BotenAlfred: <funtapaz> Hunchon University biologists prove mankind is evolving to new, higher form of life, known as Homopithecus Douche.