Fractal Softworks Forum
Starsector => Mods => Modding => Topic started by: TheMessiah on July 01, 2012, 12:11:07 PM
-
This is my first attempt on making a weapon/ship but the weapon I'm making isn't getting placed at the right location. And it's not just in my ship but in all ships I've tried.
I want it as the RIGHT image but it is as the WRONG image.
(http://i.imgur.com/WSmf9.png)
Edit: here are the files, sorry for the messy .ship file:
https://www.dropbox.com/s/xxiwsn8s8vae0if/Deme%20laser%20%2B%20TDS%20Theos.zip
Edit2: This does only happen on hardpoints.
-
This is my first attempt on making a weapon/ship but the weapon I'm making isn't getting placed at the right location. And it's not just in my ship but in all ships I've tried.
I want it as the RIGHT image but it is as the WRONG image.
(http://i.imgur.com/WSmf9.png)
Edit: here are the files, sorry for the messy .ship file:
https://www.dropbox.com/s/xxiwsn8s8vae0if/Deme%20laser%20%2B%20TDS%20Theos.zip
I have an idea as to why this may be!, The energy ball thing could be set as the barrel, Which automatically adds itself to the end of it, maybe if you just move the barrel downwards until the end of it is in the middle of the turret :P
-
EDIT: Nevermind, the graviton beam also doesn't have that variable.
This is from the beam weapon sample.
I've bolded a variable your file lacks, I don't know if its important but its worth a try.
{
"specClass":"beam",
"id":"taclaser",
"type":"ENERGY",
"size":"SMALL",
"displayArcRadius":300, # radius of the arc on the overlay. Generally same as range, but not always.
"turretSprite":"graphics/weapons/...",
"turretGlowSprite":"graphics/weapons/...",
"hardpointSprite":"graphics/weapons/...",
"hardpointGlowSprite":"graphics/weapons/...",
"turretOffsets":[10, 0],
"turretAngleOffsets":[0],
"hardpointOffsets":[15, 0],
"hardpointAngleOffsets":[0],
"fringeColor":[155,0,0,255],
"coreColor":[255,255,255,255],
"glowColor":[255,255,255,255],
"darkCore":false,
"width":12.0,
"impactMass":0,
"textureType":ROUGH,
"textureScrollSpeed":64.0,
"pixelsPerTexel":1.0,
"pierceSet":["FIGHTER"]
### DO NOT SET - these are taken from weapon_data.csv (which in turn comes from a googledocs spreadsheet)
# "ordnancePoints":10,
# "turnRate":50,
# "beamSpeed":1400.0,
# "maxRange":500.0,
# "damagePerSecond":100.0,
# "chargeupTime":0.0,
# "chargedownTime":0.0,
}
-
I once saw that dark core and was like 'wut'
Me sense potential future update?
-
Well, if nothing else works you can try altering your sprite to have more blank space at the top, that will at least align it right (I hope). But I don't know what that will do when you turn it as a turret in the game.
-
Well the dark core didn't work but I found that this doesn't happen on turrets. Only on hardpoints.
-
Well the dark core didn't work but I found that this doesn't happen on turrets. Only on hardpoints.
I suppose making it a turret hard point with 1 degree axis would work
-
Well the dark core didn't work but I found that this doesn't happen on turrets. Only on hardpoints.
*strangles TheMessiah*
ffffffffffffffffffffff... And you waited this long to add that detail because?!
Please take a look in your graphics folder, please take a good look at the weapon pictures.
You may notice they come in pairs, one for turrets, another for hardpoints. Hardpoint pictures are slightly off center.
All this time I though you were complaining about a turret mount not showing right.
-
Well the dark core didn't work but I found that this doesn't happen on turrets. Only on hardpoints.
I suppose making it a turret hard point with 1 degree axis would work
That's impossible, its either a turret or a hardpoint, either can have any degree for its axis.
-
Well the dark core didn't work but I found that this doesn't happen on turrets. Only on hardpoints.
I suppose making it a turret hard point with 1 degree axis would work
That's impossible, its either a turret or a hardpoint, either can have any degree for its axis.
Well, I'm a noob xD
-
Well I didn't notice it until now, and this is my first time creating a weapon (both graphics and coding). But thanks.
-
Yes, hardpoint have different center than turret. Take look at mu weapons (Relics mod). I used same picture for turret and hardpoint but my turret weapons is much more "up" then hardpoint. Just look at pictures.
-
Might be a bit late, But i'll definately give this a try,
I'll post up what I can do later.
EDIT: and Done, While I know it's probably hardcoded how the sprites are arranged for hardpoints ( differently )
This doesn't mean it can't be fixed, You can use the "hardpointSprite" option to use a sprite that specifically fits the hardpoint.
(http://i.imgur.com/jGSWG.png)
Here you go, replace the current deme_laser.wpn with the new one in my file. Place the extra laser sprite alongside where you keep your other laser sprite, you'd need both now.
I couldn't help but notice that you probably didn't use Trylobots ship editor for your Theos, so I gave myself the liberty of putting it through a pass with the editor to make it slightly cleaner, hope you don't mind. ;D
Here you go, and good luck. :)
http://www.mediafire.com/?maean3my6mqagf0 (http://www.mediafire.com/?maean3my6mqagf0)
-
Thank you. And the reason I'm not using trylobot's ship editor is because I'm on a mac, and as far as I know there is no mac version.
-
You could try running it through wine or bootcamp. Dunno what's better for you though, because that's the only ways I've heard of being able to run .exes in mac. :)