Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - w00zla

Pages: [1]
1
Good news everyone ;D

I created a mod that should make having multiple ships in the game just more fun!

DESCRIPTION:

This mod tries to make the management of a ship fleet in Avorion easier and to provide additional features like custom ship orders. 
In the first place, the mod provides an UI window which you can use to:
  • assign fleet ships to groups
  • give orders to complete ship-groups or single ships
  • configure the look and feel of the UI (group-names, colors etc.)
  • enable highly customizable HUD display (so you have the info about your ships right at the screen!)

SCREENSHOTS:
Spoiler: show
Fleet Orders:


Fleet Groups:


Configuration:


HUD Example:



FLEETCONTROL v0.5.1:

Commands:

/fleetcontrol
Enables/disables the Fleet Control UI (menu item & window).

Usage:
/fleetcontrol
/fleetcontrol enable
/fleetcontrol disable


/fleetcontrolconfig
Command to change advanced server-configurations used by Fleet Control UI.

Usage:
/fleetcontrolconfig updatedelay <NUMBER>
/fleetcontrolconfig enablehud <BOOLEAN>
/fleetcontrolconfig clear <TARGET>


Parameters:
<NUMBER> = any positive number or 0
<BOOLEAN> = true or false
<TARGET> = player or server


INSTALLATION:
Download ZIP for latest release from GitHub and extract it to <Avorion>\data\ directory.
No vanilla script files will be overwritten, so there should be no problem with other mods!

Server/Client:
The scripts are server- and client-side.
All files have to be available on the client for multiplayer games!


HOW TO:
Spoiler: show

First use in a galaxy:
(following instructions have to be done once per galaxy and player)

To enable the Fleet Control UI for yourself, you must enter following command into chat: 
/fleetcontrol

This will create a new menu icon which you can use to show the UI window: 


If you want to hide/disable the UI (or remove and uninstall the script), then use: 
/fleetcontrol disable


Advanced server configuration
These configs will help server admins and curious users to tweak performance values and en-/disable features of the UI.

updatedelay:
- defines the delay (in milliseconds) for the update of ship-states etc. in UIs and HUDs of players
- possible values: 0 - 99999999
- default: 750

enablehud:
- can be used to disable the display the Fleet Control HUD globally for a server
- possible values: true or false
- default: true



Integration of custom orders/other order mods:
The mod does not bring its own version of the default ship orders, instead it calls functions in the vanilla "craftorders.lua" script.   
If you or one of the mods you are using modified this script, this version will also be used by Fleet Control! In most cases there should be no issues with a modified "craftorders.lua", but be aware of potential problems here (please PM me in this case)!

Easy integration of additional custom commands added by other mods or yourself is planned for the near future!

Known Issues/Limitations:
  • Only ships in player's current sector are listed as selectable ships in several places:
    this is due to game engine limitations and cannot be changed at the moment
    (just visit every sector your ships are in, the UI remembers all your ships once seen)
  • Only states of ships in player's current sector are available:
    this is due to game engine limitations and cannot be changed at the moment
  • Destruction and sector-change of a ship which is not in player's current sector is not recognized
    this is planned to be improved in the near future (maybe even not possible at the moment)
  • Selecting order "Escort Me" results in order "Escort Ship":
    currently, its not possible to get the ships (escort) target via script, so the more general order is displayed

Planned Features/TODOs:
  • integration/configuration of other order mods like "Haul Goods" etc.
  • integration of additional custom orders:
    - order "Escort Chain/Polonaise"
    - order "Collect Loot"
  • improvements for multiplayer:
    - improved state-handling for out-of-sector ships
    - recognize if ships are controlled by other players
  • add sounds for actions like "give order" (with config)
  • notifications for orders and other events (with config)
  • keyboard-shortcuts for GUI and HUD display
  • more ship state infos in UI and HUD, like hull, shield, velocity etc.
  • better HUD alignments based on actual HUD size
  • warning on improper player jump-distances when escorted by ships (required API requested from koonschi, waiting...)
  • info on current target for states like "Escort" (required API requested from koonschi, waiting...)


Changelog:

0.5.1
  • fixed bugs and problems with script changes and some strange client behaviour (thx to Shrooblord for feedback)
  • added clear action to /fleetcontrolconfig command for removing all saved mod values (for troubleshooting purposes)

0.5
  • made the mod compatible with the latest versions of the game (0.18-beta & 0.17.1-stable)
  • added support for playing random sounds when giving orders (configurable)
  • added script namespaces, fixed and refactored much infrastructure code

0.4
  • initial public release


Feedback on bugs on suggestions for new features are of course welcome!

2
Good news everyone ;D

I found a way to read the sector XML files in an usable way within ingame scripts :)
This means i managed to create a mod which can be used to search for specific stations in every found/created sector in your galaxy!

SCREENSHOTS:

Search UI


Search Command



The mod stays alpha until sector data is provided by game API!
This implementation is a workaround until proper access to sector data is provided by the game for scripts, and some functions used for file access by this script even may be permitted in the future due to security/performance reasons (mods being able to read/write any file on the system is never good in terms of security)!
BACKUP YOUR FILES/GALAXY!


FINDSTATION v0.6alpha:
Commands:


/findstationui
Enables/disables the UI (menu item & window) for station search.

Usage:
/findstationui
/findstationui enable
/findstationui disable



/findstation
Finds near stations in any of the found/created sectors in the galaxy and displays them in chat-window.

Usage:
/findstation <SEARCHTERM>
Parameters:
<SEARCHTERM> = term to search in station names (spaces possible, case-insensitive)


/findstationconfig
Used to set the configuration values for /findstation command.

Usage:
/findstationconfig galaxy <GALAXYNAME>
/findstationconfig galaxypath <GALAXYPATH>
/findstationconfig searchmode <MODE>
/findstationconfig maxresults <NUMBER>
/findstationconfig framesectorloads <NUMBER>
/findstationconfig maxconcurrent <NUMBER>
/findstationconfig searchdelay <NUMBER>

Parameters:
<GALAXYNAME> = name of current galaxy
<GALAXYPATH> = full directory path for galaxy
<MODE> = one of the available search modes player or galaxy
<NUMBER> = any positive number or 0


INSTALLATION:
Download ZIP for latest release from GitHub and extract it to <Avorion>\data\ directory, like with other mods.
No vanilla script files will be overwritten, so there should be no problem with other mods or file changes due to game updates!

Server/Client:
The scripts are server- and client-side by now!
Following files have to be available on the client for multiplayer games:
Code: [Select]
scripts\entity\findstation\searchui.lua
scripts\lib\findstation\common.lua
scripts\lib\findstation\config.lua
scripts\lib\findstation\sectorssearch.lua
textures\icons\findstation\searchstation.png
TIP: If you disable the /findstationui command on your server (and thus not using the search UI), no client files need to be installed at all!


HOW TO:
Spoiler: show

First use in galaxy:
The mod tries to auto-detect the configuration when first search is executed in a galaxy. 
If the auto-configuration fails, you must execute /findstationconfig and configure the name of the galaxy manually (this has only to be done once per galaxy).

/findstationconfig galaxy <GALAXYNAME>
Example:
/findstationconfig galaxy myfirstgalaxy

If you want to use the search UI, you must enable it first by using:
/findstationui
If you want to hide/disable the UI and remove or uninstall the script, then use:
/findstationui disable


First use in galaxy (dedicated server with "--datapath"):
The mod tries to auto-detect the configuration when first search is executed in a galaxy. 
If the auto-configuration fails, and you use the --datapath parameter for your server, you must execute /findstationconfig and configure the directory path of the galaxy (this has only to be done once per galaxy). Just use the same path as for "--datapath" plus the galaxy name.

/findstationconfig galaxypath <GALAXYPATH>
Example:
/findstationconfig galaxypath C:\avorionserver\galaxies\myfirstgalaxy


Search modes
The available search modes define which sectors are searched for stations.

searchmode:
- defines the search mode to be used for all searches
- possible values:
    - player (search only in sectors discovered by player)
    - galaxy (search in all sectors created in the galaxy)
- default: player


Performance tweaking
If your searches are too slow or performance cost of searches is too high then you can modify some of the configs to tune the behavior (use /findstationconfig for this):

framesectorloads:
- defines the maximum number of searched/loaded sector files per frame (quite like "file reads per frame")
- higher values mean faster search but more performance cost
- possible values: 0 - 1000000 (0 disables the limit)
- default: 10

maxresults:
- defines after how many found results the search will stop
- lower values means faster search in some cases, but also gives you less output obviously
- possible values: 0 - 99999999 (0 disables the limit)
- default: 30


Advanced server configuration
These configs will help server admins to keep impact of searches on server load at a minumum and to prevent flood/spam!

maxconcurrent:
- defines the maximum number of concurrent searches, meaning how many players can have a search running at the same time
- possible values: 0 - 99999999 (0 disables the limit)
- default: 0

searchdelay:
- defines the minimum time (in seconds) a player has to wait before he can start a new search, after each search
- possible values: 0 - 99999999 (0 disables the limit)
- default: 0




CHANGELOG & TODOs:
Spoiler: show

Changelog:

0.6a
- introduced search modes and related config (by default, the mod now searches only in sectors discovered by the player)
- mod now tries to auto-detect its configuration for a galaxy (this may fail so you would have to configure manually with /findstationconfig)

0.5a
- mod now supports linux servers *insert penguin here*
- new configs maxconcurrent and searchdelay for anti-flood/-spam on servers (see "HOW TO - Advanced server configuration" section)
- minor changes and bugfixes
- decided to introduce proper versioning

alpha4
- new command /findstationui to enable fancy new UI for station search (means menu item and window, check the screenshots)
- the /findstationconfig command checks now if given galaxy or galaxypath is valid (valid means a "server.ini" file is found)
- minor changes and bugfixes
- additional mod structure and code refactoring (sry guys)

alpha3
- implemented much faster way of checking for existing sectors (credit to LoSboccacc, screw the API!)
- mod structure and code refactoring

alpha2
- added per-frame processing of sector checks and station search

alpha1
- initial experimental release


TODOs:
- split up workload of search into multiple frame-steps to minimize impact on performance
- improve and optimize "sector picking"code for better general performance of searches
- create nice dialog/window and menu item for the search
- integration of anti-spam/-flood features and configs
- linux support
- (localization support for other game languages?)



And now have fun searching those pesky hyperdrive-overloader parts ;D

Feedback of any kind and bug-reports are of course welcome!

3
Troubleshooting / How to use "DebugScript" function?!
« on: February 24, 2017, 07:14:21 AM »
Hello together,

found something interesting in the overview for keybindings:
DebugScript (default key: F4)

For me, just nothing happens when pressing F4 :( But that function sounds too usefull for modders ...

Anyone managed to get that working or knows whats exactly behind that feature??

4
Hello together,

i just wanted to give you the little mod i made for this lovely game, hopefully someone finds it as usefull as i did :D

DESCRIPTION:
This mod delivers you two commands which can be used to display the distance of the player to certain locations, measured in sectors.
Those locations can either be the center/core of the galaxy, the home sector of the player or a user-defined sector.

This may be usefull for different things like finding Boss Swoks ;) or planning some trading- and jump-routes...

Note:
I know there is already a mod with similar functionality, but i didnt know before beginning to create this one and i am still posting because it has more features ... funnily enough the mod creator had the same intention to find Swoks with his mod in the first place ;D


FEATURES:
Commands:

/showdist
Shows distance of player to defined location in chat window.
Usage:
/showdist center
/showdist home
/showdist home <PLAYER>
/showdist sector <XXX:YYY>
/showdist sector <XXX:YYY> <NAME>


/showdistjump
Shows distance to registered locations after each jump as notifications.
You can register multiple locations which will all be shown after jumps!
Usage:
/showdistjump center
/showdistjump home
/showdistjump home <PLAYER>
/showdistjump sector <XXX:YYY>
/showdistjump sector <XXX:YYY> <NAME>
/showdistjump off


Parameters:
<PLAYER> = name or index of existing player
<XXX:YYY> = coordinates value (like "321:456" or "12:-34")
<NAME> = name value (like "Trade1" or "SomeSector", no spaces)


INSTALLATION:
Download ZIP for latest release from GitHub and extract it to <Avorion>\data\ directory, like with other mods.
No vanilla script files will be overwritten, so there should be no problem with other mods or file changes due to game updates!

Multiplayer: This mod is server-side only, so no files have to be installed on clients for multiplayer games.


Changelog:
v0.4
- added possibility to show/register distance to any existing player's home-sector
- fixed problem with negative and reversed coordinates
- the /showdistjump command now remembers registered locations over saves and loads (you must use the /showdistjump off command now to get rid of the notifications!)
v0.3
- added possibilty to also define a name for user-defined sectors
- improved output of /help showdist and /help showdistjump commands
- minor changes and code comments =)
v0.2
- added possibility to register multiple user-defined sectors with /showdistjump command


Feedback:
Feel free to post feedback, bugs and feature suggestions if you like, I was having fun developing this and would really like to continue on it :)

Pages: [1]