Author Topic: WC Saga ship editing  (Read 8463 times)

0 Members and 1 Guest are viewing this topic.

Offline Avatar

  • 26
  • Beet Taster
WC Saga ship editing
I have a horrible yearning. I yearn to fly an Arrow with two meson blasters and two mass drivers, because... well, I'm just that way. So, knowing full well that this was possible, I set off on a Interweb search to get me started on FS2 modding. Trusty Google did not fail me, and told me how to extract .vp files. A few pokes later, and I found myself face to face with what would soon prove to be my new arch-nemesis, the ships.tbl file.

This file seems absurdly simple to edit. I mean, how hard can it be? I mean, bust out SciTE,  and change the line
$Default PBanks:        ("Laser" "Ion")
to
$Default PBanks:        ("Mass Driver" "Meson")

However, I have achieved a whole constellation of different results. I used the arrow gauntlet mission as a testing ground and got:
1) 2 lasers, no ions
2) 2 ions, no lasers
3) 4 lasers, depending on various input values
4) no guns at all, just the missiles
5) the standard 2 laser 2 ion loadout

I highly suspect I'm missing something abundantly simple. I've done all my changes to each of the three Arrow variants, but... no joy. I suspected I may have just overlooked some instruction on the various modding tutorials that involved a special directory structure, so I set up various permutations on the filename.

 
Re: WC Saga ship editing
Make sure your editing the right Arrow, the pilots arrow is a different model than the AI's version.
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline takashi

  • Better than TrashMan
  • 29
Re: WC Saga ship editing
maybe its because missions where the freder pre-chose the ships and set it to a scramble mission; the laser and ion did'nt exist for you? HRM?

 

Offline Avatar

  • 26
  • Beet Taster
Re: WC Saga ship editing
I edited all three arrow variants in ships.tbl in order to avoid just that problem, Scooby Doo.

I used exactly the same mission each time,  takashi, the Arrow Gauntlet in the mission simulator. Should I be looking in the mission tables to set what weapons my custom Arrow is using?

 
Re: WC Saga ship editing
OH WAIT....

Code: [Select]
$Default PBanks:        ("Laser" "Ion")
to
$Default PBanks:        ("Mass Driver" "Meson")

you'll want that to be

Code: [Select]
$Allowed PBanks:        (  "Mass Driver" )( "Meson" )
$Allowed Dogfight PBanks:   (  "Mass Driver" )( "Meson" )
$Default PBanks:        (  "Mass Driver" )( "Meson" )
You can add more types of weapons to the Allowed PBanks. (hehehe use my cloudbursts and watch the fur fly then  :lol:)

Btw why does the arrow have two gun mounts yet it only uses one?




That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Avatar

  • 26
  • Beet Taster
Re: WC Saga ship editing
No joy... your code causes CTD I'm afraid

 
Re: WC Saga ship editing
Opps

Code: [Select]
$Default PBanks:        (  "Mass Driver" )( "Meson" )

should be
Code: [Select]
$Default PBanks:        (  "Mass Driver"  "Meson" )
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: WC Saga ship editing
First make tables that allow for the weapon.. That is

Code: [Select]
$Allowed PBanks:        ( "Laser" "Mass Driver" "Particle" "Ion" "Meson" )
Then open the mission file in FRED. Add the weapons to the 'allowed weapons' list (loadouts). Then start the mission, go to briefing screen. Press 'reset loadouts' (lower right side of the ship/weapon selection screen). Select the weapons. Play.

Or if you want to stick with the gauntlet missons.. Hmm.. well... You could change the $Default PBanks: ("Laser" "Ion") to $Default PBanks: ("Mass Driver" "Meson") and then try to press the 'reset loadouts'. Or if you cant 'reach' that, exit the game, start it again and create a new pilot and try the gauntlet again.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Avatar

  • 26
  • Beet Taster
Re: WC Saga ship editing
Or if you want to stick with the gauntlet missons.. Hmm.. well... You could change the $Default PBanks: ("Laser" "Ion") to $Default PBanks: ("Mass Driver" "Meson") and then try to press the 'reset loadouts'. Or if you cant 'reach' that, exit the game, start it again and create a new pilot and try the gauntlet again.

Tried this and got the 4 laser arrow variant. Which is still lots of fun, but just isn't the same. I changed the $Allowed PBanks line in all three arrows, as well as opened up Demo-Sim-03.fs2 and changed these lines:
Code: [Select]
+Weaponry Pool: (
"Laser" 1
"Ion" 5
"Dart Dumbfire" 30
"Pilum FF" 30
"Javelin HS" 34
"Spiculum IR" 52
)

To this:
Code: [Select]
+Weaponry Pool: (
"Mass Driver" 1
"Meson" 5
"Dart Dumbfire" 30
"Pilum FF" 30
"Javelin HS" 34
"Spiculum IR" 52
)

Still no joy, I'm afraid. The ship and weapons selection screens are unfortunately not available. Tried the new pilot, still no joy.

 

Offline Wanderer

  • Wiki Warrior
  • 211
  • Mostly harmless
Re: WC Saga ship editing
Just tested..

I added the weapons (mass driver and meson) to the loadout list in the mission file then edited the weapon entries in F-96D Arrow:
Code: [Select]
$Allowed PBanks:        ( "Laser" "Meson" "Mass Driver" "Particle" "Ion" )
$Default PBanks:        ( "Meson" "Mass Driver" )

Created a new pilot when i started the game. And done, it works.
Do not meddle in the affairs of coders for they are soggy and hard to light

 

Offline Starman01

  • 213
  • Mechwarrior
    • Wing Commander Saga
Created a new pilot when i started the game.

Most probably that's the problem why it isn't working for Avatar.  Try that, I also often had the problem that some changes don't work before I created a new pilot.
MECHCOMMANDER OMNITECH

9 out of 10 voices in my head always tell me that I'm not insane. The 10th is only humming the melody of TETRIS.

 

Offline Avatar

  • 26
  • Beet Taster
All right. Four pilots later, I'm still getting quad laser arrow.

Here's my code from the mission file.
Code: [Select]
+Weaponry Pool: (
"Meson" 1
"Mass Driver" 5
"Laser" 1
"Ion" 5
"Dart Dumbfire" 30
"Pilum FF" 30
"Javelin HS" 34
"Spiculum IR" 52
)
I'm not using FRED cause I've been having some trouble getting the ruddy thing and the mission files are all text files open. Is there some rock bottom super ultra secret mega necessity to be using FRED, or will SciTE do?

Here's my weapons from the F-96D arrow.
Code: [Select]
$Allowed PBanks:        ( "Laser" "Meson" "Mass Driver" "Particle" "Ion" )
$Allowed Dogfight PBanks:        ( "Laser" "Meson" "Mass Driver" "Particle" "Ion" )
$Default PBanks:        ( "Meson" "Mass Driver" )

I have made whole scores of pilots here, to absolutely no avail. I'm still getting quad laser arrow here, and feel like I'm missing something TERRIBLY basic. Shall I upload my files directly?

*EDIT*:
So, I got FRED. Opened up the Arrow gauntlet, added the meson blaster and mass drivers to the weapons list. Saved, quit, opened up WCSaga, made a new pilot, got the quad laser arrow.

So, I opened up the Arrow gauntlet in FRED again, added every gun to the weapons list. Then, I looked around for the "Scramble" option, turned it off, saved, and quit. I opened up WCSaga, made a new pilot, tried to access weapon selection and failed, started the mission anyway and got the quad laser arrow.

So, I opened up the Arrow gauntlet in FRED again, and went to the ships tab. It stated there I had mesons and mass drivers on my fighter. I saved and quit, opened up WCSaga, made a new pilot, and got the quad laser arrow.

So, I opened up the Arrow gauntlet in FRED again, and went to the ships tab. This time, I decided to see what happened when I said my arrow had photon guns in the first weapons bank and particle guns in the second weapons bank. I saved and quit, checked the code and saw that the mission itself had a line describing what was in my first and seconds weapons banks. I opened up WCSaga, made a new pilot, and got the quad laser arrow.

Wanderer, can you send me your files? I have a hunch they won't work over here.
« Last Edit: April 22, 2007, 01:36:10 pm by Avatar »

 

Offline Turey

  • Installer dude
  • 211
  • The diminutive form of Turambar.
    • FreeSpace Open Installer Homepage
Where are you putting the files your editing?
Creator of the FreeSpace Open Installer.
"Calm. The ****. Down." -Taristin
why would an SCP error be considered as news? :wtf: *smacks Cobra*It's a feature.

 

Offline Avatar

  • 26
  • Beet Taster
Root directory.
I was fiddling with the Ticonderoga mission, and noticed the other AI arrows had at least meson blasters. I was surprised, because all my other tweaks to the level had absolutely no effect.
« Last Edit: April 25, 2007, 08:50:09 pm by Avatar »

 
Shouldn't it go under \data\tables ?
That's cool and ....disturbing at the same time o_o  - Vasudan Admiral

"Don't play games with me. You just killed someone I like, that is not a safe place to stand. I'm the Doctor. And you're in the biggest library in the universe. Look me up."

"Quick everyone out of the universe now!"

 

Offline Tolwyn

  • The Admiral
  • Administrator
  • 214
  • Ridiculously Old Fraud
    • Wing Commander Saga
Root directory.
I was fiddling with the Ticonderoga mission, and noticed the other AI arrows had at least meson blasters. I was surprised, because all my other tweaks to the level had absolutely no effect.

a common mistake.

You have to maintain directory structure.

so tables go into the tables folder (you will need to create it manually), effects into effects and so on.
Wing Commander Saga: A Legend Is Reborn | WingCenter
 
Tolwyn’s reputation for risk taking with other people’s lives was considered  to understate the facts. The admiral’s willingness to sacrifice anyone or anything to achieve his objectives had long been lauded in the popular press. He was “the man who got things done”.- Colonel Blair

No errors, no random CTDs, just pure fun and proof of why getting hit with missiles is a bad thing.
-WC Saga's beta tester


Report Wing Commander Saga bugs with Mantis

 

Offline Avatar

  • 26
  • Beet Taster
Yeaaah, that did it. Thanks a lot guys!

...

Does anybody know why the meson blaster and the particle gun are the universes two best guns, and the photon cannon is a million times suckier than anything?

 

Offline Tolwyn

  • The Admiral
  • Administrator
  • 214
  • Ridiculously Old Fraud
    • Wing Commander Saga
hmm... smaller range perhaps? :)
Wing Commander Saga: A Legend Is Reborn | WingCenter
 
Tolwyn’s reputation for risk taking with other people’s lives was considered  to understate the facts. The admiral’s willingness to sacrifice anyone or anything to achieve his objectives had long been lauded in the popular press. He was “the man who got things done”.- Colonel Blair

No errors, no random CTDs, just pure fun and proof of why getting hit with missiles is a bad thing.
-WC Saga's beta tester


Report Wing Commander Saga bugs with Mantis

 

Offline Avatar

  • 26
  • Beet Taster
Re: WC Saga ship editing
Small problem: Something I've noticed recently is that often fighter monted energy weapons bypass the shields of other fighters entirely. Sometimes it's me in my jury-rigged Excalibur dropping a Zartoth to 43% right through it's pristine forward shields, or a Gothris vaporizing me with a single salvo from its particle guns. I did some poking around the forums, and heard it mentioned that capital ship turrets have a special flag that says they never pierce shields.

So I opened up my weapons.tbl file and added the "no pierce shields" flag to all of the fighter guns, made a new pilot, but had no effect. Now, I know the weapons.tbl file is in the appropriate place and all because I've jury rigged fighter scale reaper and tachyon cannons for a Excalibur. Is there some other setting or variable I need to be tweaking in order to make it so the only way Kilrathi fighters can hurt my hull is by eroding my shields?

On a somewhat unrelated note, I've also been doing quite a bit of tinkering with the weapons. It takes no more than a cursory glance at the various guns to realize that the best fighter in the entire universe would mount either meson blasters, mass drivers, or in the mod lasers and neutron guns, as they take effectively no energy at all to fire continuously. The only way these guns can be rebalanced sanely is to make sure there's a reason to be using all of them. Roughly grouped, I decided that Lasers, Ion guns, and Meson blasters were all "light" weapons, Mass Drivers, Neutron guns, Photon cannons, and Reaper cannons were all "medium" weapons, and Particle guns, Tachyon cannons, and Plasma cannons were all "heavy" weapons.

The WC3 damage/power ratios are completely insane; there's no reason anyone in their right mind would ever choose a photon gun, and given their incredible D-P ratio of 3.75 Mass Drivers are simply the dogfighter's best guns. I reasoned that there must be some way to keep the feel of WC3 fighter combat and weapon diversity without making some guns obsolete. The method I came up with after some experimentation was this: lighter guns would fire faster, but their shots would do less damage per hit and would be less efficient overall. Heavier weapons would do more damage a shot, and they'd be more power efficient, but they'd fire less shots so accuracy would matter more. Additionally, many of the heavier guns have lower velocity projectiles than the medium and lighter guns, which makes them more suited for destroying bombers and capital ship turrets than for fighter swatting.

Thusly, if you are flying a heavy fighter hull like the Thunderbolt, you'd have two of each kind of "slots", if you will. Instead of, say, 2 plasma, 2 photon, and 2 meson you could opt for 2 particle, 2 reaper, and 2 lasers for a balanced loadout weighted towards antifighter work. Additionally, presumably you could underfill the slots and opt for 2 particle and 4 mesons, or 6 lasers.

I ended up making a large table, tracking my "target" damage/power ratio for each gun, the final "adjusted" damage/power ratio to take into account miscellaneous tweaks, rate of fire, range, no. of shots before the battery is drained, damage/second, and damage/full battery. Here are some sample "tweaked" guns:
The laser now fires for 15 damage, consuming 1.2 units of power (Freespace style, 12 WC style), every .2 seconds, for a range of 999. It deals 70 damage a second for 60 power a second, and puts 5 shots out a second. Additionally, the laser has a higher velocity projectile than most, as in the WCSaga demo and in WC3 proper.
The photon cannon now fires for 48 damage, consuming 3.365 units of power  (Freespace style, 33.65 WC style), every .4 seconds, for a range of 1049. It deals 120 damage a second for 84 power a second, and puts almost three shots out a second.
Finally, the plasma cannon now fires for 80 damage, consuming 4.8 (WC: 48) units of power per shot. It fires every .6 seconds, for a range of 999. It deals 133 damage a second for 80 power a second, and puts out almost two low velocity shots a second.

I can make the table available to those who are interested, and also am willing to take any suggestions for an alternate weapon balancing system or improvements to this.

 

Offline Tolwyn

  • The Admiral
  • Administrator
  • 214
  • Ridiculously Old Fraud
    • Wing Commander Saga
Re: WC Saga ship editing
Small problem: Something I've noticed recently is that often fighter monted energy weapons bypass the shields of other fighters entirely. Sometimes it's me in my jury-rigged Excalibur dropping a Zartoth to 43% right through it's pristine forward shields, or a Gothris vaporizing me with a single salvo from its particle guns. I did some poking around the forums, and heard it mentioned that capital ship turrets have a special flag that says they never pierce shields.

So I opened up my weapons.tbl file and added the "no pierce shields" flag to all of the fighter guns, made a new pilot, but had no effect. Now, I know the weapons.tbl file is in the appropriate place and all because I've jury rigged fighter scale reaper and tachyon cannons for a Excalibur. Is there some other setting or variable I need to be tweaking in order to make it so the only way Kilrathi fighters can hurt my hull is by eroding my shields?

Well, that's exactly what we did after the release of the prologue. In my estimation "no pierce shields" flags minimizes shield piercing by energy weapons.

Quote
On a somewhat unrelated note, I've also been doing quite a bit of tinkering with the weapons. It takes no more than a cursory glance at the various guns to realize that the best fighter in the entire universe would mount either meson blasters, mass drivers, or in the mod lasers and neutron guns, as they take effectively no energy at all to fire continuously. The only way these guns can be rebalanced sanely is to make sure there's a reason to be using all of them. Roughly grouped, I decided that Lasers, Ion guns, and Meson blasters were all "light" weapons, Mass Drivers, Neutron guns, Photon cannons, and Reaper cannons were all "medium" weapons, and Particle guns, Tachyon cannons, and Plasma cannons were all "heavy" weapons.

This will change in the future since we have added weapon_energy_regeneration_rate to the code. This small addition should allow us to balance weaponry in a more sane way. :) Still waiting for a stable EXE though.

Quote
The WC3 damage/power ratios are completely insane; there's no reason anyone in their right mind would ever choose a photon gun, and given their incredible D-P ratio of 3.75 Mass Drivers are simply the dogfighter's best guns. I reasoned that there must be some way to keep the feel of WC3 fighter combat and weapon diversity without making some guns obsolete. The method I came up with after some experimentation was this: lighter guns would fire faster, but their shots would do less damage per hit and would be less efficient overall. Heavier weapons would do more damage a shot, and they'd be more power efficient, but they'd fire less shots so accuracy would matter more. Additionally, many of the heavier guns have lower velocity projectiles than the medium and lighter guns, which makes them more suited for destroying bombers and capital ship turrets than for fighter swatting.

Thusly, if you are flying a heavy fighter hull like the Thunderbolt, you'd have two of each kind of "slots", if you will. Instead of, say, 2 plasma, 2 photon, and 2 meson you could opt for 2 particle, 2 reaper, and 2 lasers for a balanced loadout weighted towards antifighter work. Additionally, presumably you could underfill the slots and opt for 2 particle and 4 mesons, or 6 lasers.

An interesting idea - but not usable for the mod per se. You can't switch guns in the Wing Commander universe.

Quote
I ended up making a large table, tracking my "target" damage/power ratio for each gun, the final "adjusted" damage/power ratio to take into account miscellaneous tweaks, rate of fire, range, no. of shots before the battery is drained, damage/second, and damage/full battery. Here are some sample "tweaked" guns:
The laser now fires for 15 damage, consuming 1.2 units of power (Freespace style, 12 WC style), every .2 seconds, for a range of 999. It deals 70 damage a second for 60 power a second, and puts 5 shots out a second. Additionally, the laser has a higher velocity projectile than most, as in the WCSaga demo and in WC3 proper.
The photon cannon now fires for 48 damage, consuming 3.365 units of power  (Freespace style, 33.65 WC style), every .4 seconds, for a range of 1049. It deals 120 damage a second for 84 power a second, and puts almost three shots out a second.
Finally, the plasma cannon now fires for 80 damage, consuming 4.8 (WC: 48) units of power per shot. It fires every .6 seconds, for a range of 999. It deals 133 damage a second for 80 power a second, and puts out almost two low velocity shots a second.

I can make the table available to those who are interested, and also am willing to take any suggestions for an alternate weapon balancing system or improvements to this.

I would love to see what you can come up with :)
Wing Commander Saga: A Legend Is Reborn | WingCenter
 
Tolwyn’s reputation for risk taking with other people’s lives was considered  to understate the facts. The admiral’s willingness to sacrifice anyone or anything to achieve his objectives had long been lauded in the popular press. He was “the man who got things done”.- Colonel Blair

No errors, no random CTDs, just pure fun and proof of why getting hit with missiles is a bad thing.
-WC Saga's beta tester


Report Wing Commander Saga bugs with Mantis