Author Topic: [MOD] System Control v1.02  (Read 9411 times)

Multirez

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    13
    • View Profile
on: January 29, 2018, 12:49:32 PM
System Control

The mod allows player to create the templates (sets) of upgrades for ship systems and quickly switch its from
one to another.


Reasons

For sure you had to open the menu of upgrades many times and rearrange the same system upgrades,
especially for me it is relevant in the later stages of the game, when the ship has more than 10 installed
systems. I switch them again and again, not because I got new ones, but because I want to get the most out of
the ship, because I want to be able to shoot from 30-40 guns in combat, because I want to jump by 50 sectors,
because I want to dismantle as quickly as possible, because I want to see more signatures on the map,
carry more cargo, fly with maximum acceleration and so on. I again and again opened the management of systems
and rearranged the same improvements, again and again, and this was the reason for creating this modification.

In addition, if you play in the alliance and fly on the ship of the alliance, then there is one more thin,
it seems to me a flaw, in the fact that when installing and removing systems all the players of the alliance
have info that I added new upgrades to the inventory of the alliance, or deleted cool rare upgrades and these
messages filling the entire right side of the screen, 2-3 players are playing and you do not know when to be
happy that someone added a new upgrade because the right side of the screen is constantly clogged with messages
about systems replacing and you just start ignore them. So I tried to fix this flaw by adding the ability
to use the player's inventory when installing or removing improvements. With the help of specially selected
checkbox you can handle it or SystemControl use the inventory of the ship fraction or the player's inventory
even if the ship belongs to the alliance.

Download

SystemControl_v1.01.zip
  - Fixed issue on system replacement from vanilla UI.

SystemControl_v1.02.zip
  - Added [Info] button that is display the total amount of bonuses your ship
  - Fixed occasional error with getting system data on client.

Installation

1. Download the mod ShipScriptLoader by Dirtyredz and follow its installation instructions.
This is required to load this modification. If you are already using it you may skip this step.

2. Copy the directory mods contained in the SystemControl.zip file directly into the Steam installation
directory folder for Avorion.

3. Open the file Avorion/mods/ShipScriptLoader/config/ShipScriptLoader.lua
Before the last line containing return Config add this code:
Code: [Select]
   Config.Add("mods/SystemControl/scripts/entity/systemcontrol.lua")
How to use

If you installed everything correctly, you should see a system upgrade icon at top-right of the screen.[/size]



Install desired upgrades through the standard interface and press an upgrade icon, its will open
the SystemControl window. The topmost line (1) shows the current systems installed on the ship, the other
lines show your templates saved earlier. [Update](2) button will replace the template by the current
list of upgrades. The [Use](3) button calls the SystemControl to find and install the upgrades according
the tamplate. Search will be made in the player's inventory or ship's faction, depending on the status of
the checkbox [Use player inventory](4).

You can use hot keys to apply the required template Alt + #number of template.
Alt + 0 will remove all installed system upgrades.

Templates do not store upgrades, they just remember which systems should be installed, and try to search
for these in the inventory.

Known issues

* Upgrades do not drops out of the ship during a crash. In the event of partial destruction or change
in the ship size the upgrades, installed by SystemControl, are sent to the player's inventory,
even if the ship is lost from the collision.

* Upgrades that are installed by SystemControl are not displayed in the standard [system upgrades] menu.
The developer did not give the opportunity to correctly install ship system upgrades(or I can't find that way,
help me if I wrong), in form an API for working with inventory or somethig like it, or will allow to modify
the standard interface.
If I have one then it will be possible to improve the level of integration with the base UI.

Future improvements

* Add sounds to hotkeys;
* Save the current system set into the template by pressing Shift + Alt + #number;
* Make tamplate list srollable, increace template count to 9;
* Show inventory for drag the upgrades from inventory to current or template;
* All entities can has SystemUpgrades;

Credits

* Dirtyredz for the ShipScriptLoader.
* Multirez for everything else :)

« Last Edit: January 31, 2018, 03:57:11 PM by Multirez »



Nachtu

  • Jr. Member
  • **
  • Status:
    Offline
    Posts:
    53
    • View Profile
on: January 29, 2018, 02:10:02 PM
Useful stuff for bigger multipurpose ships! Will definitely use!



Shrooblord

  • Hero Member
  • *****
  • Status:
    Offline
    Posts:
    582
    • View Profile
on: January 30, 2018, 02:11:28 PM
Oh, it makes me happy to see that little Holy Grail icon up there.  ;D

----

This is AWESOME! What an amazing mod. Thank you for something that provides such utility. Well-explained reasoning and instructions, too. Thanks a bunch!

Quote
* Upgrades do not drops out of the ship during a crash. In the event of partial destruction or change
in the ship size the upgrades, installed by SystemControl, are sent to the player's inventory,
even if the ship is lost from the collision.
That almost sounds like a buff rather than a bug!
But yeah, you're right, it would probably be best to fix this at some point. If not for balancing, at least for the PvP side of things.
Shrooblord



Multirez

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    13
    • View Profile
on: January 30, 2018, 04:55:38 PM
Thanks for the flattering reviews, I hoped that the modification would be useful, and tried to make the game more comfortable, saving the player from having to do the same mechanical actions.

Quote
But yeah, you're right, it would probably be best to fix this at some point. If not for balancing, at least for the PvP side of things.

As for PVP, for normal competition in combat in this game there are not enough tools, anyone can escape by simply jumping into another sector, even if you have a fast ship. We need a weapon capable of holding a player from a jump, destroying the possibility of a warp, such as in EVE. Perhaps in the future there will be see similar game mechanics.

In addition, some factories in the game allow you to make a cheat weapons that deals more then 8ะบ damage per second, this is a vanilla game without any modifications. This fact, in my opinion, destroys the gameplay, making a such weapon you just kill everyone with a single click.

And all the same about PVP: with this mod, you can always press Alt + 0 at the last moment, that is removing all modules.



Shrooblord

  • Hero Member
  • *****
  • Status:
    Offline
    Posts:
    582
    • View Profile
on: January 30, 2018, 05:13:28 PM
And all the same about PVP: with this mod, you can always press Alt + 0 at the last moment, that is removing all modules.
I guess you've got a point there.

We need a weapon capable of holding a player from a jump, destroying the possibility of a warp, such as in EVE.
But perhaps you offer a solution right there: if there were to be a Hyperspace Blocker (which is functionality that is actually exposed to us modders, so someone could go out there and make a "Hyperspace Jammer within X km of this Ship" System Module Upgrade, or perhaps even a Hyperspace Jamming Turret of sorts), I propose that it would also block access to modifying System Module Upgrades. Basically, deadlock and cripple a ship, as is the intent of an offensive system like this.

But then a new problem arises: how to properly balance this so that it has valuable counterplay? If someone can have an offensive system like this, or maybe even more than one, we need some way to counteract that, or all combat just devolves into "who can have the most or best Hyperspace Jammers equipped".

Perhaps Hyperspace Jammers need to work on some kind of cooldown, or only be able to detain a ship for an amount of time dependent on the target ship's size and/or processing power (trying to reroute power to computers to counteract the "hack", or similar explanations as to how this can be countered), or maybe targets need to have an ability to "reverse the polarity", and counter-Jam their opponent with their own weapons??

I don't know. You raise an interesting set of problems, though. It would be nice to try and see how to design for and around those problems.
Shrooblord



Multirez

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    13
    • View Profile
on: January 30, 2018, 07:05:33 PM
But then a new problem arises: how to properly balance this so that it has valuable counterplay? If someone can have an offensive system like this, or maybe even more than one, we need some way to counteract that, or all combat just devolves into "who can have the most or best Hyperspace Jammers equipped".

I think here must be a type of turrets to keep the enemy, with overheating, so that the player can not jumm the target endlessly, the strength and the range of the jumm can also depend on the turret quality.

And we need a new type of system - warp core stabilizer (or hyperdrive booster etc.), which are made in the form of upgrade modules, the higher the quality of such a module, the more stabilization we obtain, that can be a balanced system.



Shrooblord

  • Hero Member
  • *****
  • Status:
    Offline
    Posts:
    582
    • View Profile
on: January 30, 2018, 07:59:39 PM
And stabilisation means reduced risk of being Hyperspace Jammed? Nice. I inherently like the idea of more System Module Upgrades. Right now, there's just a couple of good ones that fit their task really well, but you can get away with choosing one or two specialised SMUs like a Shield Booster and Energy-producing SMU, and then cram it full of, I don't know, Turrets, or Hyperspace-related SMUs, but adding more SMUs that add a meaningful difference in your chances of survival, means you'll have to start making decisions that balance combat prowess and utility - which gives ample room for strategising.
Shrooblord



Shrooblord

  • Hero Member
  • *****
  • Status:
    Offline
    Posts:
    582
    • View Profile
on: January 31, 2018, 12:38:22 AM
Sorry for the double-post, but I just had an idea. (And you know how I get when I have an idea.)

I know this is outside of the original scope of your mod, but do you think it would be possible to display the total amount of bonuses your ship is receiving because of all the System Module Upgrades? So instead of having to go by each SMU manually and adding up the totals to percentages and whatnot, you could have all the bonuses displayed somewhere, maybe only as a tooltip when you hover over something in the UI. Could also help clear up some confusion on whether percentages are additive or multiplicative (they're additive, for the record).

What do you say?
Shrooblord



Multirez

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    13
    • View Profile
on: January 31, 2018, 12:38:53 PM
... do you think it would be possible to display the total amount of bonuses your ship is receiving because of all the System Module Upgrades?
I think yes! This is possible, and I've added similar tooltip in the last update v1.02.  ;)
Spoiler: show



avorionj5jth4

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    5
    • View Profile
on: January 31, 2018, 05:15:00 PM
I tested v1.02 and it is WONDERFUL.   THANK YOU for making this mod.  The quality of life value for this mod is really high!  (Patch 0.15.8 live )



Shrooblord

  • Hero Member
  • *****
  • Status:
    Offline
    Posts:
    582
    • View Profile
on: February 02, 2018, 12:31:42 PM
... do you think it would be possible to display the total amount of bonuses your ship is receiving because of all the System Module Upgrades?
I think yes! This is possible, and I've added similar tooltip in the last update v1.02.  ;)
Spoiler: show

Ah, that looks fantastico. Thanks!
Shrooblord



avorionj5jth4

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    5
    • View Profile
on: February 03, 2018, 10:24:42 PM
I have been using this mod for over 20 hours now, and it is a godsend!  +1000 author hugs!



T4Ken

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    18
    • View Profile
on: February 24, 2018, 01:07:42 AM
Is there a Problem with Alliance Ship maybe too ?



MrMors

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    4
    • View Profile
on: April 11, 2018, 03:11:01 AM
Be aware that the mod currently is changing stats on upgrade modules. Seams like when the mod puts the item back in your inventory its modified.



Gantradies

  • Newbie
  • *
  • Status:
    Offline
    Posts:
    24
    • View Profile
on: May 22, 2018, 06:56:42 AM
Be aware that the mod currently is changing stats on upgrade modules. Seams like when the mod puts the item back in your inventory its modified.
o.o canya confirm this? was thinking of passing this one around my server