Well, I'm getting there. But I also keep running into issues.
Can someone help me with adding in weapons?
Here's what I did:
1.) I copied over the lightmg.WPN and lightmg_shot.PROJ files to my mod. Placed the lightmg file under weapons and the lightmg_shot file under the proj folder.
2.) I started to change around the stuff within the files, and changed their names to plato.WPN and slug.PROJ
plato.WPN:
{
"id":"plato", # this id must match what's in the spreadsheet
"specClass":"projectile",
"type":"BALLISTIC",
"size":"SMALL",
"turretSprite":"graphics/weapons/antediluvian_pressure_turret_final.png",
"turretGunSprite":"graphics/weapons/antediluvian_pressure_turret_final.png",
"hardpointSprite":"graphics/weapons/antediluvian_pressure_turret_final.png",
"hardpointGunSprite":"graphics/weapons/antediluvian_pressure_turret_final.png",
"visualRecoil":3, # the gun sprites are only used if this is non-0
"turretOffsets":[12, 0],
"turretAngleOffsets":[0],
"hardpointOffsets":[17, 0],
"hardpointAngleOffsets":[0],
"renderHints":[RENDER_BARREL_BELOW],
"barrelMode":"ALTERNATING", # or LINKED. whether barrels fire at the same time or alternate.
"animationType":"MUZZLE_FLASH",
"muzzleFlashSpec":{"length":20.0, # only used if animationType = MUZZLE_FLASH
"spread":6.0,
"particleSizeMin":6.0,
"particleSizeRange":8.0,
"particleDuration":0.15,
"particleCount":7,
"particleColor":[255,240,165,200]},
"projectileSpecId":"slug", # projectile that will be fired
"fireSoundOne":"machine_01",
"fireSoundTwo":"slug_01",
}
slug.PROJ:
{
"id":"slug",
"specClass":"projectile",
"spawnType":"BALLISTIC_AS_BEAM",
"collisionClass":"RAY",
"collisionClassByFighter":"RAY_FIGHTER",
"length":30.0,
"width":3.5,
"fadeTime":0.3,
"fringeColor":[240,220,220,200],
"coreColor":[245,245,245,80],
"textureScrollSpeed":64.0,
"pixelsPerTexel":5.0,
"bulletSprite":"graphics/weapons/proj/slug.png"
}
3.) I also have the sound files and image files in all the right folders, all lower case to match the text in the .WPN and .PROJ files.
SF boots up just fine. However, the weapons are missing from the codex ingame. I can't figure out why. Is it these lines?:
"turretSprite":"graphics/weapons/antediluvian_pressure_turret_final.png",
"turretGunSprite":"graphics/weapons/antediluvian_pressure_turret_final.png",
"hardpointSprite":"graphics/weapons/antediluvian_pressure_turret_final.png",
"hardpointGunSprite":"graphics/weapons/antediluvian_pressure_turret_final.png",
Can't I use the same image for all lines?
Any help would be appreciated!Oh yeah, the weapon_data.CSV has the following line:
Plato,plato,0,100,300,,25,,1,50,3,1000,KINETIC,3,,0,0.4,5,0.1,0,5,1,15,,500,,,10,PD,0.5