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: Chat Command
(section)
Back to page
Edit
VisualEditor
View history
Talk (0)
Edit Page
Mod Example: Chat Command
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!
== About == This mod adds new chat commands to the game: '''/mods''' and '''/outdatedmods''', represented by 2 files in <code>data/scripts/commands/</code>. It also shows how to use the <code>main.lua</code> file to have mod-specific update calls. * '''/mods''' lists all mods that are currently running on the server. * '''/outdatedmods''' lists all mods that are outdated, ie. a newer version is available in the steam workshop. In the <code>main.lua</code> file, it regularly prints a message to the chat when mods are outdated on the server. === 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> Client side only is impossible, since it uses chat commands that must run 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. === 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=1682700568 Workshop Link]
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