Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: 1 ... 22 23 [24] 25 26 ... 706

Author Topic: Misc modding questions that are too minor to warrant their own thread  (Read 1699662 times)

Thule

  • Admiral
  • *****
  • Posts: 580
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #345 on: March 28, 2013, 04:04:17 PM »

the offset value, 1 barrel , xy offset
2 barrels 2 xy offsets and so on
Logged

phyrex

  • Admiral
  • *****
  • Posts: 751
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #346 on: March 28, 2013, 04:07:03 PM »

the offset value, 1 barrel , xy offset
2 barrels 2 xy offsets and so on

oh ? thats it ? i thought the offset were just there to indicate where the barrel ended and the projectile animation was to "appear"
Logged

Thule

  • Admiral
  • *****
  • Posts: 580
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #347 on: March 28, 2013, 04:15:29 PM »

hmm, on second thought you might be right, it's to late, sorry not helpful ;)
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #348 on: March 28, 2013, 06:23:37 PM »

No, that's right, it uses the offsets to figure out what the spacing between barrels should be, and then just slices it up vertically. If you had a triple-barreled weapon with uneven spacing, it probably wouldn't work right.

The barrels can be specified in any order, though - iirc it sorts them from left to right before figuring out where the dividing lines are.
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #349 on: March 28, 2013, 06:30:04 PM »

Is there any way to set it so decorative weapons can get damage on them? So that we can make ship parts appear damaged even if they move
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

FlashFrozen

  • Admiral
  • *****
  • Posts: 988
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #350 on: March 28, 2013, 06:32:56 PM »

My only question about the barrel recoil is there any way to have it not always shoot from right to left? Ice if you had a 4 barrel weapon in alternating with only 2 shot burst firing the outer 2 then inner 2, I've tried setting the offsets in the order of how I'd want them to to fire but the recoil does its own thing and decides right to left.
Logged

CrashToDesktop

  • Admiral
  • *****
  • Posts: 3876
  • Quartermaster
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #351 on: March 28, 2013, 08:19:36 PM »

I think the order matters in the order you put the weapon offset coordinates in (I uninstalled SS to get a fresh start after somehow destroying the core files, haven't gotten to time to reinstall it yet, so that's just from what I remember).  For example, if you have coordinates at {4, 4}, {4, -4}, {4, 2} and  {4, -2}, if you put it into the .wpn file in that order, that's how the barrels will fire.
Logged
Quote from: Trylobot
I am officially an epoch.
Quote from: Thaago
Note: please sacrifice your goats responsibly, look up the proper pronunciation of Alex's name. We wouldn't want some other project receiving mystic power.

FlashFrozen

  • Admiral
  • *****
  • Posts: 988
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #352 on: March 28, 2013, 08:26:50 PM »

It doesn't work, I did try, it just offsets where the projectiles fire while the barrel mismatches, offsets don't seem to affect the order in barrel recoil.
Logged

CrashToDesktop

  • Admiral
  • *****
  • Posts: 3876
  • Quartermaster
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #353 on: March 28, 2013, 08:30:59 PM »

You changed the order of them, right?  I vaguely remember doing something like that with a quad barrel flak cannon early in my days of weapons making...hmm.  Guess either something change or I can't remember for shite. :P
Logged
Quote from: Trylobot
I am officially an epoch.
Quote from: Thaago
Note: please sacrifice your goats responsibly, look up the proper pronunciation of Alex's name. We wouldn't want some other project receiving mystic power.

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #354 on: March 28, 2013, 10:10:12 PM »

My only question about the barrel recoil is there any way to have it not always shoot from right to left? Ice if you had a 4 barrel weapon in alternating with only 2 shot burst firing the outer 2 then inner 2, I've tried setting the offsets in the order of how I'd want them to to fire but the recoil does its own thing and decides right to left.

Looking at the heavyac.wpn file, you have:
"hardpointOffsets":[25, -5, 27, 0, 25, 5],
And it fires from right to left.

If you change it to:
"hardpointOffsets":[25, 5, 27, 0, 25, -5],
It will fire from left to right. Just verified it.
Logged

phyrex

  • Admiral
  • *****
  • Posts: 751
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #355 on: March 28, 2013, 10:46:33 PM »

My only question about the barrel recoil is there any way to have it not always shoot from right to left? Ice if you had a 4 barrel weapon in alternating with only 2 shot burst firing the outer 2 then inner 2, I've tried setting the offsets in the order of how I'd want them to to fire but the recoil does its own thing and decides right to left.

Looking at the heavyac.wpn file, you have:
"hardpointOffsets":[25, -5, 27, 0, 25, 5],
And it fires from right to left.

If you change it to:
"hardpointOffsets":[25, 5, 27, 0, 25, -5],
It will fire from left to right. Just verified it.

its weird that you say that because i have two triple-barreled weapons in my mod, and they both showed huge problems if theire offset werent done from right to left.
on my biggest one, there was no recoil animation at all until i putted the right-most barrel first in the offset.

and strangely enough, on my PD one, it kept mistracking target until i putted the middle barrel first in the offset list, and it still fired right-to-left.

maybe there wa san underlying problem but i remember pretty well i was cursing for "having putted the minus on the wrong side"
Logged

FlashFrozen

  • Admiral
  • *****
  • Posts: 988
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #356 on: March 28, 2013, 11:12:38 PM »

Not exactly what I had in mind, I'll try elaborating



My original offsets were to of been
   
Code
"turretOffsets":[10, -4.5, 5, 11.5, 10, 4.5, 5,-11.5],

Starting from the middle left barrel to far right barrel, then to middle right barrel and then to far left, and repeat, it didn't work out, as it'll recoil in a right to left fashion while the projectiles were spawned in the method I wanted.

Firing Offset Pattern (projectile spawn)

xOxx
xxxO
xxOx
Oxxx

Ingame Recoil pattern (Sprite Recoil)

xxxO
xxOx
xOxx
Oxxx

Another firing pattern I tried was firing both outer barrels at the same time and then firing the middle 2.
Also unable,

OxxO
xOOx

In the end I had to settle for the only offset that matched the recoil
Code
	"turretOffsets":[5,-11.5, 10, -4.5, 10, 4.5, 5, 11.5],

If I used the reverse,
Code
	"turretOffsets":[5,11.5, 10, 4.5, 10, -4.5, 5, -11.5],
The projectiles wouldn't match up to the recoil,

Firing Offset Pattern (projectile spawn)

Oxxx
xOxx
xxOx
xxxO

Ingame Recoil pattern (Sprite Recoil)

xxxO
xxOx
xOxx
Oxxx

My only question about the barrel recoil is there any way to have it not always shoot from right to left? Ice if you had a 4 barrel weapon in alternating with only 2 shot burst firing the outer 2 then inner 2, I've tried setting the offsets in the order of how I'd want them to to fire but the recoil does its own thing and decides right to left.

Looking at the heavyac.wpn file, you have:
"hardpointOffsets":[25, -5, 27, 0, 25, 5],
And it fires from right to left.

If you change it to:
"hardpointOffsets":[25, 5, 27, 0, 25, -5],
It will fire from left to right. Just verified it.
I'm not sure if I'm doing this correctly But I just tried it on my own version and the recoil doesn't fire in the correct direction,
Code
	"turretOffsets":[20, 5, 22, 0, 20, -5],
"turretAngleOffsets":[0, 0, 0],
"hardpointOffsets":[25, 5, 27, 0, 25, -5],
"hardpointAngleOffsets":[0, 0, 0],

In the screenshots I took (by the way I was getting an OOM*? error every 5-6 screenshots consistently, with and without mods, )
The first barrel to recoil with the new offset doesn't match up,

The right most barrel recoils, but the offset is set to the leftmost barrel,
Spoiler
Firing Offset Pattern (projectile spawn)


Oxx
xOx
xxO

Ingame Recoil pattern (Sprite Recoil)

xxO
xOx
Oxx




[close]
Spoiler
Firing Offset Pattern (projectile spawn)

Oxx
xOx
xxO


Ingame Recoil pattern (Sprite Recoil)

xxO
xOx
Oxx



[close]


Kudos to the barrel recoil sprite splitting system on my mod weapon, I actually didn't believe it'll split the barrels seeing as there was no spacing between them, Not to bash or anything even with the above, The recoil system is more than I'd of hoped for :)
Not sure if I got the point across, but this was my best try :P
« Last Edit: March 28, 2013, 11:53:10 PM by FlashFrozen »
Logged

Alex

  • Administrator
  • Admiral
  • *****
  • Posts: 23986
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #357 on: March 29, 2013, 08:15:20 AM »

Is there any way to set it so decorative weapons can get damage on them? So that we can make ship parts appear damaged even if they move

Not at the moment, no, but I'll add it to the list of things to look at (not necessarily do). Need to decouple being damageable from capable of being disabled, though.


@FlashFrozen: Ah, thank you for clarifying, I see that now. I think I was just paying too much attention to the muzzle flash and didn't see the fact that the barrels were going in the wrong order. I blame it being late :) Anyway, this is fixed for the next release.

(What was happening is it would use the sorted barrel order for figuring out which one pick for recoil, while using unsorted order for figuring out which to fire, both using the same index. Btw, now that I've looked at it again, some detail on how the cutting is done: it'll pick the midpoint between adjacent barrels - adjacent after being sorted in a right-to-left order. So, non-uniformly-spaced barrels should work fine.)
Logged

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #358 on: March 29, 2013, 10:06:08 AM »

Great, Thanks!

Guys, How do I make a kind of arc effect? That connects to a central beam from other weapons? :P
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)

Sproginator

  • Admiral
  • *****
  • Posts: 3592
  • Forum Ancient
    • View Profile
Re: Misc modding questions that are too minor to warrant their own thread
« Reply #359 on: March 29, 2013, 10:32:03 AM »

Cause I want this:
Logged
A person who's never made a mistake, never tried anything new
- Albert Einstein

As long as we don't quit, we haven't failed
- Jamie Fristrom (Programmer for Spiderman2 & Lead Developer for Energy Hook)
Pages: 1 ... 22 23 [24] 25 26 ... 706