Hard Light Productions Forums

Modding, Mission Design, and Coding => FS2 Open Coding - The Source Code Project (SCP) => Topic started by: ryuune75 on March 05, 2004, 05:11:41 am

Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 05, 2004, 05:11:41 am
I have a reqeusts for the coders, is anyone willing to implement a ship trasformation add-on? This has been attemped time ago by the Robotech mod guys, with pretty good results, but the experiment was dropped long ago...

How hard will it be to implement? I hope not too much, as it will not be to different from ship-change-class. Is anyone willing to try it out?

I REALLY need this for my mod, and i think others will find this useful...
Title: Request: trasform-ship sexp?
Post by: Carl on March 05, 2004, 05:15:45 am
just to be clear, you want to make it so a ship will turn into a different ship?
Title: Request: trasform-ship sexp?
Post by: Turnsky on March 05, 2004, 05:18:15 am
well, think of the Apoc project for beast ships.. change textures to that of the infected ones..
Title: Request: trasform-ship sexp?
Post by: KARMA on March 05, 2004, 05:21:51 am
afaik both a substitute model sexp and a rotate subobj by command sexp are implemented
but since I'm not a fredder I'm not sure
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 05, 2004, 05:22:18 am
Quote
Originally posted by Carl
just to be clear, you want to make it so a ship will turn into a different ship?


Yes, you know, something very similar to the change-ship-class sexp, i'm not asking about animations of course, just a change the ship to another in the ship table, model and all, but unlike the exising change-ship-class i need:

- the ability off indicating in the tbl the new class the ship will trasform into
- keeping not only the health status, but also the ammuniton from one state to other (right now changing class refills all weapons to max)
- the possibility of binding it to a a keyboard key for the player

I have a very old buid that makes almost all the above things, but i want them implemented in the "official" builds (that old one didn't have any of the new features)
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 05, 2004, 05:24:05 am
Quote
Originally posted by KARMA
afaik both a substitute model sexp and a rotate subobj by command sexp are implemented
but since I'm not a fredder I'm not sure


This won't do, the change-ship-model only change the pof, not the stats of the ship (i.e. max speed, rotation time, etc...)
Also i need to bind it to a key, the is-key-pressed works only once per mission
Title: Request: trasform-ship sexp?
Post by: kasperl on March 05, 2004, 05:46:58 am
there is also change ship class or something like that, IIRC.

not very sure though.
Title: Request: trasform-ship sexp?
Post by: Nico on March 05, 2004, 06:11:41 am
The final thing we had worked that way:
when you pushed the transform button, it would switch the player's ship back and forth between the ships tbl entry and the next entry in the ships.tbl.
So everything ( pof data, tbl entry ) was changed.
Title: Request: trasform-ship sexp?
Post by: TopAce on March 05, 2004, 08:30:16 am
Quote
Originally posted by ryuune75

...the is-key-pressed works only once per mission


Really? Derelict had a mission in which, you had to place navbouys by pressing 1, 2, 3. So I suppose you ran into a habitant SCP coincidental bugs.
Title: Request: trasform-ship sexp?
Post by: Goober5000 on March 05, 2004, 08:40:28 am
:rolleyes: Read the manual.  key-pressed will work more than once, but you have to reset it each time.
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 05, 2004, 08:42:00 am
Quote
Originally posted by TopAce
Really? Derelict had a mission in which, you had to place navbouys by pressing 1, 2, 3. So I suppose you ran into a habitant SCP coincidental bugs.


Really? I tryed using is-key-pressed, but they activate only once, then it's not recognized anymore and won't start the event... it's not the usual behavior of this sexp? I mean, pressing the SAME key more than once, you are talkin about different keys.

Edit: just read Goober5000 post, didn't know about this reset thing, hey, i'm not an expert fredder, i don't know all the tricks involved...

Anyway, this don't really solve my problem, the change-ship-class is not exactly what i need, only similar.... :sigh:
Title: Request: trasform-ship sexp?
Post by: TopAce on March 05, 2004, 08:44:26 am
You can set a number in the Events editor, which says how many times you want your event be played.
You will find it.
But to be honest, I didn't use this SEXP much.
Title: Request: trasform-ship sexp?
Post by: Carl on March 05, 2004, 09:36:23 am
this feature would be good for cloaking, me thinks.
Title: Request: trasform-ship sexp?
Post by: kasperl on March 05, 2004, 09:39:19 am
uhm, no, bob had different idea's for that......
Title: Request: trasform-ship sexp?
Post by: Grug on March 05, 2004, 09:47:07 am
Yeh and as Turnsky said TAP could use this feature too. Though TAP is also about to get a setting change... but this could still be usefull. :D
For TAP though, it would mainly use the ship texture change and a change team sexp for the beast, if we wanted to include 'mimics' then this could be the way to go. :D

-Grug
Title: Request: trasform-ship sexp?
Post by: Unknown Target on March 05, 2004, 10:08:39 am
Try taking the code from the RT mod exe and put it into the main one :)
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 05, 2004, 10:21:32 am
Quote
Originally posted by Unknown Target
Try taking the code from the RT mod exe and put it into the main one :)


Yes, i already tought about this, but i'm not an expert programmer, i don't know if i can do it right... beside, who i need to ask to if i want to add myself features to the main source code?
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 05, 2004, 06:04:51 pm
Quote
Originally posted by Goober5000
:rolleyes: Read the manual.  key-pressed will work more than once, but you have to reset it each time.


BTW, i tryed that, and i can't make it work....
Title: Request: trasform-ship sexp?
Post by: Nico on March 05, 2004, 09:18:15 pm
it worked as many times as you wanted in the robotech mod.
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 06, 2004, 04:15:46 am
Quote
Originally posted by Nico
it worked as many times as you wanted in the robotech mod.


what are you talking about? the RT mod never used the change-ship-model sexp, only a destroyabe turret on verithes... :confused:
Title: Request: trasform-ship sexp?
Post by: Nico on March 06, 2004, 04:26:45 am
I'm talking about what I know, you should have guessed by now that I was part of the Robotech mod team, so I'm not spitting random sentences from my ass :p
The destroyable turret thing was before the source got released, it was some tweak to simulate transformation. When the source went public, we got some coder ( don't remember his nick, sorry dude ) who made some code fr us, that transformation thing, for instance.
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 06, 2004, 04:32:57 am
Quote
Originally posted by Nico
I'm talking about what I know, you should have guessed by now that I was part of the Robotech mod team, so I'm not spitting random sentences from my ass :p
The destroyable turret thing was before the source got released, it was some tweak to simulate transformation. When the source went public, we got some coder ( don't remember his nick, sorry dude ) who made some code fr us, that transformation thing, for instance.


Dude, i'm talking about the key-pressed sexp, not the old build you refer to, i know that one worked, and that's why i'm asking if someone can implement this in the latest builds.... :rolleyes:
Title: Request: trasform-ship sexp?
Post by: karajorma on March 06, 2004, 05:53:46 am
Quote
Originally posted by ryuune75
Dude, i'm talking about the key-pressed sexp, not the old build you refer to, i know that one worked, and that's why i'm asking if someone can implement this in the latest builds.... :rolleyes:


And nico is telling you that the code already exists and only needs to be merged with the current code :rolleyes:
Title: Request: trasform-ship sexp?
Post by: Nico on March 06, 2004, 07:33:55 am
voilaaaa :D
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 06, 2004, 08:01:48 am
Quote
Originally posted by karajorma


And nico is telling you that the code already exists and only needs to be merged with the current code :rolleyes:


Oh sure, there is only the problem that i DON'T KNOW how to do that.... :hopping:
Title: Request: trasform-ship sexp?
Post by: karajorma on March 06, 2004, 08:17:48 am
Quote
Originally posted by ryuune75


Oh sure, there is only the problem that i DON'T KNOW how to do that.... :hopping:


Do you know how to program the code into the SCP to make the SEXP you want either? :)

If not leave it to the programmers to decide which approach is better :)
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 06, 2004, 08:22:54 am
Quote
Originally posted by karajorma


Do you know how to program the code into the SCP to make the SEXP you want either? :)

If not leave it to the programmers to decide which approach is better :)


Of course no, i'm telling you, i'm no programmer, i don't have any idea of how to even touch the source code!! That's why i'm asking is someone who is able to is willing to work on that... why do you all suppose i should be able to program? :nervous:
Title: Request: trasform-ship sexp?
Post by: karajorma on March 06, 2004, 11:26:57 am
I'm not :) I just annoys me when people use the rolleyes smiley without thinking things through :)

Nico was trying to say that there is no need for the SCP coders to spend ages working on a SEXP to do this because there already is a way to do it in the edited Robotech exe.
  The fact that the code exists to do what you want makes it much more likely that you'll find someone to do it for you since adding to FS2_open may only be a few minutes work.

Strangely enough you kept argueing against him which makes the likelyhood of this change you want more remote. I'm guessing you must have misunderstood what he was on about because I can't think of any other reason why you'd suggest something and then argue with someone who knows exactly how to make it happen :confused:
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 08, 2004, 02:04:48 am
Quote
Originally posted by karajorma
Strangely enough you kept argueing against him which makes the likelyhood of this change you want more remote. I'm guessing you must have misunderstood what he was on about because I can't think of any other reason why you'd suggest something and then argue with someone who knows exactly how to make it happen :confused:


I wasn't argueing against anyone, especially Nico, you misunderstood me, i used the rolleyes (which are far from being an insult, i think) only because he was telling the same thing as me! The reason for me to ask for this implementation in the first place was, in fact, having seen that some time ago it was done the same by the RT mod...
Title: Request: trasform-ship sexp?
Post by: karajorma on March 08, 2004, 04:37:49 am
Make it more clear next time then and be more careful how you use the rolleyes smiley. It's a dangerous tool when misused :D
Title: Request: trasform-ship sexp?
Post by: Nico on March 08, 2004, 04:52:08 am
yeah: the :rolleyes: smiley directed to me WILL piss me off, coz it sounds like " yeah, right, whatever ****tard" to me :p
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 08, 2004, 07:19:11 am
Quote
Originally posted by Nico
yeah: the :rolleyes: smiley directed to me WILL piss me off, coz it sounds like " yeah, right, whatever ****tard" to me :p


I never meant to be offensive Nico, they are just smiley after all, Goober did use that on me only a few post before, but i didn't got pissed at all...

By the way, Nico, why is the Robotech mod dead? No one is willing to work on that anymore?
Title: Request: trasform-ship sexp?
Post by: karajorma on March 08, 2004, 07:30:29 am
In Goober's case you had made the mistake of not realising how the key-pressed SEXP works.

In the second case however the mistake of not being clear enough was yours so Nico didn't have any reason to feel he was wrong and offence was caused.

That's why I mean to be careful with it. You have to be pretty sure you're correct cause if you're wrong you will annoy someone.  Had Nico been wrong I sure he's big enough to have not taken offence.  :)
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 08, 2004, 08:43:06 am
Quote
Originally posted by karajorma
In Goober's case you had made the mistake of not realising how the key-pressed SEXP works.


I didn't made any mistake, i just didn't know how it worked, is that a fault? Btw i have made a search in the old posts and i've seen quite a lot of people had made the same wrong assumption, that the key-pressed worked only once, so i don't think i've said such a great blasphemy....
Title: Request: trasform-ship sexp?
Post by: karajorma on March 08, 2004, 09:57:49 am
I didn't say it was a big mistake ;)
Title: Request: trasform-ship sexp?
Post by: Nico on March 08, 2004, 10:05:02 am
Quote
Originally posted by ryuune75


I never meant to be offensive Nico, they are just smiley after all, Goober did use that on me only a few post before, but i didn't got pissed at all...

By the way, Nico, why is the Robotech mod dead? No one is willing to work on that anymore?


Smileys reflect what you say so people are not mistaken if you're being ironic ( being plain text w/o intonations ). Unless I've said something blatantly stupid, someone in real life who rolleyes at me can expect some beating ( unless they're really bigger than me :p ). That said I wasn't offended or anything, look, I didn't even have the time to reply then :D

As for RT, well, the first step is probably when Max Sterling left ( he started the whole thing ), then most people got stuck into real life problems/duties for some, school for others. There's also the fact it was a long, long developement. Probably one of the oldest campaigns, by then, and a TC, none the less. So everybody grew bored of it, I suppose. As for me, I moved because of study, and was overwhelmed with RL work. Then I started a campaign myself ( which died too ).
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 08, 2004, 10:45:33 am
I see. So will it be possible to use some things from that mod for my Macross mod? The first thing that comes in mind are the face anims, they will be very useful for me. :)
Title: Request: trasform-ship sexp?
Post by: Nico on March 08, 2004, 10:47:40 am
Sure, but don't ask me, I don't have anything left of it save for some pofs. Aki ( Gortef ) should have the personnas, since he made them, for exemple.
Title: Request: trasform-ship sexp?
Post by: ryuune75 on March 08, 2004, 11:02:04 am
I see, i'll ask him then, thanks!