Author Topic: Player Loadout Mathematics (3.6.12)  (Read 2583 times)

0 Members and 1 Guest are viewing this topic.

Offline SF-Junky

  • 29
  • Bread can mold, what can you do?
Player Loadout Mathematics (3.6.12)
In this mission (can be used without any mods) there are only 302 Hornet missiles available ingame, although I entered that 500 extra available in FRED. Same issue with Harpoons. Why is that so? I can't see any kind of mathematics behind this. FRED even states 402 Hornets to be used in wings, though this is arithmetically impossible.

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Re: Player Loadout Mathematics (3.6.12)
It subtracts the missiles actually loaded onto the ships at the start.

 

Offline SF-Junky

  • 29
  • Bread can mold, what can you do?
Re: Player Loadout Mathematics (3.6.12)
It subtracts the missiles actually loaded onto the ships at the start.
Then how does it come to 302 available missiles? 500 - 402 = 98. I don't even understand where the 402 comes from. Alpha, Beta and Delta wings together use 680 Hornets, Alpha and Beta lone 600.

Before 3.6.12 when I entered 500 extra available, I had 500 extra available in FS2. Is there a reason this has been changed?

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Player Loadout Mathematics (3.6.12)
There was a change to the loadout code, it could be related.  Perhaps even a bug.  Karajorma would know.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline FUBAR-BDHR

  • Self-Propelled Trouble Magnet
  • 212
  • Master Drunk
    • 165th Beer Drinking Hell Raisers
Re: Player Loadout Mathematics (3.6.12)
Love your idea of can be loaded without any mods.  Throws so many errors about missing weapons and AI classes thought I was going to wear my mouse out ignoring.

Notedpad is showing 902 Hornets available which does correspond to the 500 + 402 in FRED.  
Lets take the 500 off so that's 402 to figure out
Alpha + Beta are all herc 2's that would be 600 right there but Alpha has weapons locked so take their 300 off that total for 300
So 402-300 = 102
Now Delta uses 80
That leaves 22 unaccounted for.  Now where that those 22 are coming from I have no idea.  One possibility is that it is a bug.  Another is that since your mission contains invalid weapons it's causing the calculation to screw up.  So run Debug FRED until you can load the mission with retail data only without getting warnings then see if it's still messed up.  


« Last Edit: March 23, 2010, 03:47:13 pm by FUBAR-BDHR »
No-one ever listens to Zathras. Quite mad, they say. It is good that Zathras does not mind. He's even grown to like it. Oh yes. -Zathras

  

Offline karajorma

  • King Louie - Jungle VIP
  • Administrator
  • 214
    • Karajorma's Freespace FAQ
Re: Player Loadout Mathematics (3.6.12)
I think there's a good chance that there is a bug in the weapon calcs somewhere. I'll have to take a look into it.
Karajorma's Freespace FAQ. It's almost like asking me yourself.

[ Diaspora ] - [ Seeds Of Rebellion ] - [ Mind Games ]