Avorion Wiki
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Avorion Community
Official forum
Discord
Twitter
Reddit
Facebook
Steam
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
FANDOM
Fan Central
BETA
Games
Anime
Movies
TV
Video
Wikis
Explore Wikis
Community Central
Start a Wiki
Don't have an account?
Register
Sign In
Sign In
Register
Avorion Wiki
356
pages
Explore
Main Page
All Pages
Interactive Maps
navigation
Main page
Community portal
Recent changes
Random page
Admin noticeboard
Avorion Community
Official forum
Discord
Twitter
Reddit
Facebook
Steam
Gamepedia
Gamepedia support
Report a bad ad
Help Wiki
Contact us
Editing
Mod Example: Weapon
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
Mod Example: Weapon
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
This mod extends the Turret and Weapon generators to add a new Gatling-Railgun Weapon to the game. == About == * <code>weapontype.lua</code> A new <code>WeaponType</code> '''GatlingRailGun''' has to be added so that the Turret and Weapon generators can be extended for that type. * <code>turretgenerator.lua</code> is extended to add a new generator function for the new turret type and some specifics about that turret. * <code>weapongenerator.lua</code> is extended to add a new generator function for the new weapon type, which builds on the existing Railgun generation function * In <code>galaxy.lua</code> the drop probability for the new weapon is added and set to a weight of <code>1</code>, so that the turret will be generated in loot drops === modinfo.lua === * <code>serverSideOnly = false</code> This mod would be server-only, if it wasn't for some localization files that have to be present on the client to translate. * <code>clientSideOnly = false</code> The mod cannot be client side only, since weaponry has to be generated on the server. * <code>saveGameAltering = false</code> The mod doesn't add any new scripts or assets to the game, so it doesn't alter save games in a way that they might become corrupted once the mod is no longer active. It only alters some numbers in weapons, but doesn't add any actually completely new weapons. === Localization === In the <code>data/localization/</code> folder you can find an example for a German localization of texts that appear in the mod. === Workshop Link === * [https://steamcommunity.com/sharedfiles/filedetails/?id=1682482035 Workshop Link] == See Also == * [[Mod Examples]] * [[Modding]] * [[Writing your own Mod]] * [[Avorion Internal Architecture]] [[Category:Modding]]
Summary:
Please note that all contributions to the Avorion Wiki are considered to be released under the CC BY-SA 3.0
Cancel
Editing help
(opens in new window)
Follow on IG
TikTok
Join Fan Lab