Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Spidey- on December 24, 2010, 07:11:19 pm

Title: New Fredder asking for help
Post by: Spidey- on December 24, 2010, 07:11:19 pm
I'm setting up a chase with the lead fighter heading towards a waypoint. I want the lead fighter to keep flying straight without maneuvering even when fired upon.
I set the waypoint priority to 89 and set the ship to ignore the pursuer, but it still starts making turns when fired upon

Do you have any suggestions?

Thanks!
Title: Re: New Fredder asking for help
Post by: Black Wolf on December 24, 2010, 07:55:21 pm
Give it play dead orders, and then move it with sexps.
Title: Re: New Fredder asking for help
Post by: Spidey- on December 24, 2010, 08:35:49 pm
Perfect, thanks!
Title: Re: New Fredder asking for help
Post by: General Battuta on December 24, 2010, 09:21:02 pm
Disabling dynamic goals would also probably do the trick, and be easier?
Title: Re: New Fredder asking for help
Post by: Scotty on December 24, 2010, 11:04:56 pm
I'm pretty sure they still dodge out of the way of fire.  Isn't that why you guys had to lock weapons on the first mission with Sanctuary in it in AoA?
Title: Re: New Fredder asking for help
Post by: Spidey- on December 25, 2010, 01:33:36 am
that's not the problem I had with it,
actually, my problem was that set speed appears overridden by play-dead. so the ship just stops
I figured out that every-time//face-object works well
Title: Re: New Fredder asking for help
Post by: Spidey- on December 26, 2010, 12:29:49 am
I have another problem,
For some reason I can't get this corvette to kamikaze into a hostile destroyer. I've set-goals, forced speed, made sure invul's off, but they just keep turning away from each other.

Thanks for your help!
Title: Re: New Fredder asking for help
Post by: Mobius on December 26, 2010, 12:48:22 pm
Have you actually set the corvette up to be a kamikaze ship? If not, you need to do any of the following:

1) Ship Editor ---> Edit Ship ---> Misc ---> Kamikaze. You can even select the damage it inflicts.

2) Use the "kamikaze" SEXP ("not-kamikaze" to undo). You can select the damage here, too. This one is useful if you want a given ship to go kamikaze after event X has occurred during the mission, and not by default.
Title: Re: New Fredder asking for help
Post by: Spidey- on December 27, 2010, 12:26:45 am
yes, i have
Title: Re: New Fredder asking for help
Post by: Mobius on December 27, 2010, 11:25:27 am
Is the destroyer supposed to attack the corvette? If so, it'd be hard to collide in the resulting flying circus.
Title: Re: New Fredder asking for help
Post by: Spidey- on December 27, 2010, 02:25:14 pm
*face-palm*
I had my priorities mixed up :p

Thanks again
Title: Re: New Fredder asking for help
Post by: Mobius on December 27, 2010, 02:29:45 pm
You're welcome, Spidey. :D
Title: Re: New Fredder asking for help
Post by: Stormkeeper on December 28, 2010, 10:50:06 am
Quote from: Mobius
collide in the resulting flying circus.
Rather mild description of the spectacle of directly ordering two capital ships to engage each other.
Title: Re: New Fredder asking for help
Post by: Spidey- on December 28, 2010, 08:29:43 pm
no, it's not that, i had one going to a waypoint

New problem, is it me or is set-object-speed-z broken? absolute reference has it moving in x axis and relative doesn't even work.
I'm trying to have the corvette collide with the destroyer at speed and set-speed is the only way I can think of.

-edit: nvm, normal speed is sufficient for what I need, but I still don't know about the SEXP, did a search and didn't find anyone reporting
Title: Re: New Fredder asking for help
Post by: FreeSpaceFreak on December 29, 2010, 04:35:06 am
IIRC, those SEXPs only works if the ship has no other goals at the time. Try adding a clear-goals, see if that helps?
Title: Re: New Fredder asking for help
Post by: Spidey- on December 29, 2010, 01:31:19 pm
i have it set to play dead, clear-goals would not work because the ship just starts flying around. either way, the set-speed-x/y work fine

anyways, new problem, I'm trying to get the subtitle-image to work. I have a TGA in the maps folder. I couldn't find the option in launcher so I'm assuming TGA/JPEGs are enabled with recent builds. Right now I'm just using a 500x500 gray testimage

when
-has-time-elapsed
   -2
-show-subtitle-image
  -testimage
  -50
  -50
  op=false
  op=false
  -0
  -0
  -6000

I've also tried all settings to default (except time), placing the image in data/hud and data/interface

Thanks for your suggestions
Title: Re: New Fredder asking for help
Post by: Mobius on December 29, 2010, 01:42:23 pm
I'm not sure, it's been a while since I last used image subtitles, but I think you should move the pic from the maps folder to the hud folder.
Title: Re: New Fredder asking for help
Post by: Droid803 on December 29, 2010, 02:20:28 pm
effects, actually.
Title: Re: New Fredder asking for help
Post by: Mobius on December 29, 2010, 02:22:40 pm
Uhm, I've just checked, I used to place the image subtitles I wanted to use in data/hud. The engine could check both subfolders looking for image subtitles, who knows.
Title: Re: New Fredder asking for help
Post by: Droid803 on December 29, 2010, 02:33:36 pm
I have a working example of the subtitle images placed in effects from my own mods.
Its also where they're found for WoD.

EDIT: wait I was using show-subtitle :nervous:
Title: Re: New Fredder asking for help
Post by: Spidey- on December 29, 2010, 03:16:28 pm
no joy with the effects folder either
the text subtitles work fine
does anyone have  an example using the newer subtitle-image?
Title: Re: New Fredder asking for help
Post by: FreeSpaceFreak on December 30, 2010, 01:46:37 am
Show-subtitle-image works with images placed in \interface too. And yes, JPG/TGAs are enabled by default nowadays.
Title: Re: New Fredder asking for help
Post by: Spidey- on December 30, 2010, 02:11:24 pm
so...  :nervous:

am I supposed to write a table for the images? 'cause i didn't need to for sounds...

-edit: I looked at BP's intro and it turns out my TGAs weren't formatted properly
Title: Re: New Fredder asking for help
Post by: FreeSpaceFreak on December 31, 2010, 01:47:18 am
so...  :nervous:

am I supposed to write a table for the images? 'cause i didn't need to for sounds...
No, you don't.

Quote
-edit: I looked at BP's intro and it turns out my TGAs weren't formatted properly
So it works now? Good!
Title: Re: New Fredder asking for help
Post by: crizza on January 24, 2011, 11:14:48 am
Well, I board this thread this time.
Is there a sexp which let one ship attack anything which dares to stray into weapon range?
Title: Re: New Fredder asking for help
Post by: Shade on January 24, 2011, 11:28:13 am
Capital ships will do that automatically. Fighters will also fight even if given no orders if an enemy comes too close, but if you want them to actually go hunting, use ai-chase-any. Finally, if you want them to go hunting but still stay in a general area, have them guard something there and they'll try to keep enemies away but not stray more than a couple of clicks from the object they're guarding.
Title: Re: New Fredder asking for help
Post by: crizza on January 24, 2011, 01:32:51 pm
While this works well for the Dante...a Sathanas won't fire at anything except some ship is jumping right before her frontal beams...
Title: Re: New Fredder asking for help
Post by: Scotty on January 24, 2011, 01:45:36 pm
Capship fights should be handled by waypoints SEXPs, not ai orders.

At least, it makes it much easier to balance.
Title: Re: New Fredder asking for help
Post by: crizza on January 28, 2011, 08:30:41 am
Well, I will stck with this thread.
Next question: How does texture replacement work, for example replacing the texture of a Leviathan with that of a...Raynor?
Title: Re: New Fredder asking for help
Post by: FreeSpaceFreak on January 28, 2011, 08:54:42 am
Well, you look at the name of the texture you want to replace and the one you want to use, then you put them in their respective textboxes. You don't need to replace -shine,-normal or -glow maps, FS will do that for you. Simple as that.

HOWEVER, not all ships are textured the same way. In the specific example you mentioned, the Leviathan (at least the hi-poly one) has been UVmapped (i.e. the entire ship uses just one texture), while the Raynor has been tilemapped (i.e. uses multiple textures). Try it out, you'll see that the result looks really bad. UVmapped ships usually require a custom-made texture if you want them to look different.
You can, for example, make the Orion or the Colossus use Raynor textures, since both ships are tilemapped; but if you really want a different-looking Leviathan you'll either have to use the retail model (which is tilemapped) or make a new texture for it - in which case you can use texture replacement to make it use the new texture, of course.
Title: Re: New Fredder asking for help
Post by: crizza on January 28, 2011, 09:11:52 am
Well...I already failed after trying to replace a Leviathan with a Deimos...but where do I find...which ship uses which texture?
Title: Re: New Fredder asking for help
Post by: FreeSpaceFreak on January 28, 2011, 09:15:15 am
The easiest way would be to download and install PCS2 or ModelView. Look around on the Wiki, there must be some links there.
Title: Re: New Fredder asking for help
Post by: Droid803 on January 28, 2011, 09:19:40 pm
For most mediaVPs ships, there should be a (semi-)up to date listing of which textures it uses in the ship's article. By that I mean if the mesh has been altered from retail.
After all, I put most of them there :P