Author Topic: SEXP help...  (Read 2247 times)

0 Members and 1 Guest are viewing this topic.

Offline Raptor

  • 210
I, ah, need one SEXP explained to me...

'Change-Ship-Model'

I would like to know more detail.

Why? I'm planing on making a Civilan/Corprate transport that is very popular with Corparations, private Haulers, Pirates and Smugglers, due to it's speed, agility, atmosphere capabilty, large Cargo-to-Crew ratio, toughness, and the ease it can be modified and upgraded.

So with the SEXP above, I could show all sorts of customisations, including extra turrets, gunbanks, subsystems, submodels, etc?

There are few other SEXPs I'd like a little more detail about as well, but they can wait.
...There ought to be something surreal about a Zoid offering romantic advice...and yet there is not. It seems perfectly normal that the Liger is giving Bit advice on relationships, and it shouldn't, but it does. Dangit man, you've confused me again.[/I]
NGTM-R review of one of the chapters in my fanfic story :D Story is here! -> 'Ancient Legacies'

 

Offline Black Wolf

  • Twisted Infinities
  • 212
  • Hey! You! Get off-a my cloud!
    • Visit the TI homepage!
Well, you could, but not efficiently. The sexp changes the ships class, not its pof, so it'd be effectively the same thing as putting several varienbtss into ships.tbl. I suggested a chaange pof sexp once, but I dunno if anything ever happened.
TWISTED INFINITIES · SECTORGAME· FRONTLINES
Rarely Updated P3D.
Burn the heretic who killed F2S! Burn him, burn him!!- GalEmp

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
There are two sexps... change-ship-class and change-ship-model.  Both require separate table entries.  And if you're using change-ship-model, both models should have very nearly the same POF data or else I won't guarantee the results. :)

 
what is the exact difference between those two then?

and would someone, who understands all of this perfecetly, add this to the wiki, link in my title?
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
One changes the class, which is the same as simply making it a different ship in FRED.  The other just changes the model, which is to say it changes what you see on screen, but all the other ship data stays the same.

 
then why does the model thing need it's own table entry?
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
So it can find the model to load from.  I did it that way, instead of asking for a file name, because it was easier to code.

 

Offline Trivial Psychic

  • 212
  • Snoop Junkie
So basically, if I wanted a Lilith to initialy be initially misidentified as a Cain, I would have a Cain jump in with the special hitcount flag to match the hull strength of a Lilith and with the correct armament set in FRED, then use the change-ship-class sexp once the ship is identified as a Lilith, to change the Cain to a Lilith.  Is this correct?  Would this also reset the armament of the Lilith to the default for that ship, and would it apply the previous special hitcount on top of the Lilith's native hull strenth?

Later!
The Trivial Psychic Strikes Again!

 

Offline Raptor

  • 210
Quote
Originally posted by Goober5000
There are two sexps... change-ship-class and change-ship-model.  Both require separate table entries.  And if you're using change-ship-model, both models should have very nearly the same POF data or else I won't guarantee the results. :)


Ah, well bang goes that idea (I'm riding the 128 ship limit already..) :mad2: 'wishs the SCP group could increase ship limits generally, not just for Inferno'

I was planing on the main hulls being almost the same, just added turrets and submodels.  But if it can't handle that, then...:sigh:
...There ought to be something surreal about a Zoid offering romantic advice...and yet there is not. It seems perfectly normal that the Liger is giving Bit advice on relationships, and it shouldn't, but it does. Dangit man, you've confused me again.[/I]
NGTM-R review of one of the chapters in my fanfic story :D Story is here! -> 'Ancient Legacies'

 
well, if you don;t want multiplayer, you could ask some coder to compile a version for your mod, with a raised limit. you'd just need to recompile it every time a new feature you want comes out.
just another newbie without any modding, FREDding or real programming experience

you haven't learned masochism until you've tried to read a Microsoft help file.  -- Goober5000
I've got 2 drug-addict syblings and one alcoholic whore. And I'm a ****ing sociopath --an0n
You cannot defeat Windows through strength alone. Only patience, a lot of good luck, and a sledgehammer will do the job. --StratComm

 

Offline Goober5000

  • HLP Loremaster
  • Moderator
  • 214
    • Goober5000 Productions
Quote
Originally posted by Trivial Psychic
So basically, if I wanted a Lilith to initialy be initially misidentified as a Cain, I would have a Cain jump in with the special hitcount flag to match the hull strength of a Lilith and with the correct armament set in FRED, then use the change-ship-class sexp once the ship is identified as a Lilith, to change the Cain to a Lilith.  Is this correct?  Would this also reset the armament of the Lilith to the default for that ship, and would it apply the previous special hitcount on top of the Lilith's native hull strenth?


It should, yes.  If it doesn't, make a note in Mantis. :) On that subject, we'll also be adding a change-alt-name sexp after 3.6 is out.

 

Offline Raptor

  • 210
Quote
Originally posted by kasperl
well, if you don;t want multiplayer, you could ask some coder to compile a version for your mod, with a raised limit. you'd just need to recompile it every time a new feature you want comes out.


To be fair, I have yet to use the multiplayer option (haven't known anyone else who has the game to play against!).

However, getting a custom .exe just for myself seems the height of arragance, to me.

Of course, once certain turret issuses are sorted, then I might change my mind...
...There ought to be something surreal about a Zoid offering romantic advice...and yet there is not. It seems perfectly normal that the Liger is giving Bit advice on relationships, and it shouldn't, but it does. Dangit man, you've confused me again.[/I]
NGTM-R review of one of the chapters in my fanfic story :D Story is here! -> 'Ancient Legacies'