Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
Soma Mod Tools For Atom
A plugin for the Atom text editor which provides various tools and utilities to aid with mod creation for SOMA. You can follow the project, or contribute over at github.
Features
Angelscript syntax highlighting (.hps files)
Symbols support for .hps files using ctags
Detect lang, nodes, mat, cmb, ent, cfg, gui, ps, fnt, hpm, hpm_* files as xml
The package may notify you that it has disabled symbols-view. If this did not happen, go to the "packages" tab and search symbols-view and verify it is disabled (click disable if it isn't).
Note: If you already use atom and have installed atom-ctags please note that this package may conflict with it, as that package also replaces symbols-view.
Usage
Spoiler below!
Go to File->Add Project Folder and select your soma directory (the place with soma.exe in it).
You will see a list of folders and files down the left hand side of the screen.
You can open files from this list, or you can use ctrl+P to search for files.
Use ctrl+r when inside a .hps file bring up the symbols view. This will list all the functions / clases / interfaces inside the file you are currently working on, which you can search through.
If you wish to update to a later version of this package go to file->settings->Updates
You can find more detailed information on using atom here
Known issues
Spoiler below!
Parameters don't color correctly in constructors
Parameters with defaults (e.g. void function(type x=1)) don't color properly for non-built in types
Future Features & Wishlist
Spoiler below!
Detect hpsl as shader filers, and apply a similar shader grammar
Add menu options & keyboard short-cuts for opening up .ent, .hpm etc files using the appropriate editor
Option/shortcut for launching the game using a specific mod in develop mode
Have a look and see what other editor tools we can integrate with
Stop replacing symbols-view, when symbols-view provides a means of providing tags to it.
Snippets for the default soma angelscript api functions. Maybe even support special coloring for them.
Fix syntax highlighting issues on parameters in function calls
(This post was last modified: 10-03-2015, 06:09 PM by Apjjm.)