Forts
The Forts Foundry
Player made maps and mods for the physics-based RTS Forts!
Learn More
H O W?
I have a mod almost ready but I can't make strings.lua for my guns, I've remade it dozens of times but it just doesn't work, this is what it looks like now

function Merge(t1, t2) for k, v in pairs(t2) do t1[k] = v end end

Merge(Device,
{
Large_Caliber_Flaming_100m_Gun = L"120mm S.I.C",
Large_Caliber_Flaming_100m_GunTip2 = L"S.I.C: Shockwaving incendiary cannon",
Large_Caliber_Flaming_100m_GunTip3 = L"Requires: Large caliber tech",
Large_Caliber_Cannon = L"375mm Salute",
Large_Caliber_CannonTip2 = L"WARNING: Very heavy, also has strong recoil",
Large_Caliber_CannonTip3 = L"Requires: Large caliber tech",
})
Help me pls
< >
Showing 1-3 of 3 comments
Romerolagus  [developer] 9 27 Oct, 2023 @ 9:07am 
Double check the folder hierarchy for your mod?

Your mod folder - > mods - > language-<language> - > weapons - > strings.lua

And, these are to add Weapon descriptions right, not Devices?
Omg, I changed device to weapon and everything worked, thank you,
i am immensely grateful. Oh, and is it also possible to make a projectile sprite smaller?
Last edited by (in)sane tea lover; 27 Oct, 2023 @ 11:29am
Romerolagus  [developer] 9 1 Nov, 2023 @ 5:28am 
There is a ProjectileThickness variable you can adjust, but it will only affect the thickness and not the length. You can scale the entire projectile by using a projectile root.

For more information and help with modding we highly recommend joining our official discord at https://discord.gg/forts

There's a great explanation of sprite scaling in this conversation:
https://discord.com/channels/304892363359256576/382043528877965315/1117835173564780666
< >
Showing 1-3 of 3 comments
Per page: 1530 50