Author Topic: "$use newtonian dampening" with default profile?  (Read 2249 times)

0 Members and 1 Guest are viewing this topic.

Offline Sushi

  • Art Critic
  • 211
"$use newtonian dampening" with default profile?
Hi,

I'm trying to create a mod that involves setting "$use newtonian dampening" to YES for the retail campaign. So far, I haven't had any luck.

I've tried creating a TBM file as follows:

Filename: data/tables/tweak-aip.tbm
Code: [Select]
#AI Profiles
   
$Profile Name:                               FS2 RETAIL
 
$use additive weapon velocity:                           YES
$use newtonian dampening:                                YES

#End

I've also tried using a whole new .tbl file (based on the sample here but with "$use additive weapon velocity" and "$use newtonian dampening" set to YES. Still no luck.

According to the wiki page linked above,

"There is a "hidden" profile called FS2 RETAIL that is hard-coded into FreeSpace Open and cannot be modified. It is always the default profile unless another is specified using $Default Profile. "

Does this mean I'm out of luck? Is it really not possible to change the default profile? Or is there something I've missed?
« Last Edit: April 14, 2009, 08:37:02 pm by Sushi »

 

Offline Zacam

  • Magnificent Bastard
  • Administrator
  • 211
  • I go Sledge-O-Matic on Spammers
    • Steam
    • Twitter
    • ModDB Feature
Re: "$use newtonian damping" with default profile?
Considering that the MediaVP retail-based SCP enhanced missions all use FS2 Retail in every mission file, this may indeed be the case unless they can open it to being ADDITIVELY modified by TBM.

(Note: I emphasised ADDITIVE above because I do not think a wholesale ability to change every variable to the Retail FS2 profile really suits. Most TC or Mods are probably going to want to use custom AIP's, while the retail needs to offer as close to original retail behaviour as possible).

But yeah, I think you are out of luck modifying the hardcoded one. And to test a custom one, you will need to specify in a test mission to use it or it will, as stated, default to using FS2 Retail anyway.
Report MediaVP issues, now on the MediaVP Mantis! Read all about it Here!
Talk with the community on Discord
"If you can keep a level head in all this confusion, you just don't understand the situation"

¤[D+¬>

[08/01 16:53:11] <sigtau> EveningTea: I have decided that I am a 32-bit registerkin.  Pronouns are eax, ebx, ecx, edx.
[08/01 16:53:31] <EveningTea> dhauidahh
[08/01 16:53:32] <EveningTea> sak
[08/01 16:53:40] * EveningTea froths at the mouth
[08/01 16:53:40] <sigtau> i broke him, boys

 

Offline Sushi

  • Art Critic
  • 211
Re: "$use newtonian damping" with default profile?
So, is it a bug that you can't additively modify FS2 Retail? Or is it an intended feature?

If the former, is anyone already working on it?

If the latter, what's the reasoning?

 

Offline Goober5000

  • HLP Loremaster
  • 214
    • Goober5000 Productions
Re: "$use newtonian damping" with default profile?
There's no way to modify FS2 RETAIL because it's a set standard.  But note the salient clause on the wiki page:
Quote
...unless another is specified using $Default Profile.

You want to make another profile the default instead.  So you can do what you want very easily like this:
Code: [Select]
#AI Profiles

$Default Profile:                            Sushi's Profile

$Profile Name:                               Sushi's Profile
$use additive weapon velocity:                           YES
$use newtonian dampening:                                YES

#End

With this new table, all missions that do not have an $AI Profile setting will use Sushi's Profile.  However, if they specifically say $AI Profile: FS2 RETAIL then you'll have to edit the mission.
« Last Edit: April 14, 2009, 05:48:02 pm by Goober5000 »

 

Offline Sushi

  • Art Critic
  • 211
Re: "$use newtonian damping" with default profile?
OK. So default profile means not just "default when FREDding a mission," but "default for any mission that doesn't explicitly say?" Interesting.

What if I add an optional ships.tbl flag that can set newtonian dampening on a per-ship basis? Something like

$Glide: <YES/NO>
    +Use Newtonian Dampening: <YES/NO>

If not specified, the AI_Profiles value would be the default. If specified, the flag is set for that particular ship. That would also get around the problem where the "$use newtonian dampening" flag is useful for fighters that glide but messes up mission timings because of how it affects capships. Viola! Fighters can turn in glide mode without exceeding their maximum speed, and since non-fighters still use "retail" damping the mission timings remain the same. In other words, it means that mods like RealFlight which could really benefit from newtonian dampening on the fighters could work on existing mods/campaigns (including retail) without destroying all of the timings.

This is trivial to implement, so I think I'll go ahead and add something like this to my SushiGlide build. :D Is there any good reason NOT to let newtonian dampening be optionally enabled/disabled on a per-ship basis?

 

Offline Nuke

  • Ka-Boom!
  • 212
  • Mutants Worship Me
Re: "$use newtonian dampening" with default profile?
ive always wanted to be able to force usage of glide at the mission level.
I can no longer sit back and allow communist infiltration, communist indoctrination, communist subversion, and the international communist conspiracy to sap and impurify all of our precious bodily fluids.

Nuke's Scripting SVN

 

Offline Sushi

  • Art Critic
  • 211
Re: "$use newtonian dampening" with default profile?
ive always wanted to be able to force usage of glide at the mission level.

That's a different issue. :) I agree that it would be cool, assuming that the AI didn't break down completely.

I'll add it to my list, and probably try it out and see what happens after I'm done with my current "SushiGlide" project.

 

Offline chief1983

  • Still lacks a custom title
  • 212
  • ⬇️⬆️⬅️⬅️🅰➡️⬇️
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: "$use newtonian dampening" with default profile?
Can't you use +nocreate in the tbm to modify the default FS2 profile?
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 Sushi

  • Art Critic
  • 211
Re: "$use newtonian dampening" with default profile?
Can't you use +nocreate in the tbm to modify the default FS2 profile?

I'll try it.

I still like the idea of enabling the newtonian dampening on a per-ship basis, though. It should help a lot for mods like RealFlight.