Avorion Forum

General => Mods => Topic started by: Sether0 on April 05, 2017, 12:59:49 AM

Title: [MOD] Universal System
Post by: Sether0 on April 05, 2017, 12:59:49 AM
(http://i.imgur.com/IUopnog.png)

The mod is adding 1 extra system module: Universal System

Install:

Drop the content of the .zip file into ...steamapps\common\Avorion

It will overwrite the upgradegenerator.lua file (\data\scripts\lib folder) and add universalsystem.lua (\data\scripts\systems folder).


Uninstall:

Restore the upgradegenerator.lua from the backup and delete universalsystem.lua
Title: Re: [MOD] Universal System
Post by: Gaalidas on April 05, 2017, 07:19:45 AM
So... basically the ultimate OP module.  Funky.
Title: Re: [MOD] Universal System
Post by: SinBad on April 05, 2017, 11:34:02 AM
why build a ship? just slip this in your back pocket, take a deep breath and hop out an airlock.


 ;)
Title: Re: [MOD] Universal System
Post by: setozashk on April 07, 2017, 12:45:08 AM
this is a cool mod appart from the velocity and acceleration is there one that has all the same appart from thoes two?
Title: Re: [MOD] Universal System
Post by: Sether0 on April 07, 2017, 02:30:40 AM
this is a cool mod appart from the velocity and acceleration is there one that has all the same appart from thoes two?

To remove Velocity and Acceleration, you can edit universalsystem.lua by deleting the following lines of code:

Code: [Select]
local vfactor = 10 -- base value, in percent

local afactor = 10 -- base value, in percent

Code: [Select]
    addBaseMultiplier(StatsBonuses.Velocity, vfactor)
    addBaseMultiplier(StatsBonuses.Acceleration, afactor)

Code: [Select]
    if vfactor ~= 0 then
        table.insert(texts, {ltext = "Velocity"%_t, rtext = string.format("%+i%%", vfactor * 100), icon = "data/textures/icons/lucifer-cannon.png"})
    end

    if afactor ~= 0 then
        table.insert(texts, {ltext = "Acceleration"%_t, rtext = string.format("%+i%%", afactor * 100), icon = "data/textures/icons/blaster.png"})
    end
Title: Re: [MOD] Universal System
Post by: setozashk on April 07, 2017, 03:19:48 AM
i have no clue how to do lua or what program to use i tryed notpad and wordpad and IE and tryed loking for those lines with my own eyes and with ctrl f
Title: Re: [MOD] Universal System
Post by: setozashk on April 07, 2017, 03:40:01 AM
i tryed doing it but it just broke the script may have deleted or not deleted the right space or somthing
Title: Re: [MOD] Universal System
Post by: Sether0 on April 07, 2017, 04:03:35 AM
i have no clue how to do lua or what program to use i tryed notpad and wordpad and IE and tryed loking for those lines with my own eyes and with ctrl f

Use text editor Notepad++ https://notepad-plus-plus.org/repository/7.x/7.3.3/npp.7.3.3.bin.zip
Title: Re: [MOD] Universal System
Post by: Xanthic on April 12, 2017, 05:53:29 AM
Is there any way to reliably obtain this module?  Likewise is there a way to prevent the obtaining of this module?  It'd be nice for the admins on my server, not so nice to have players abusing it.  lol
Title: Re: [MOD] Universal System
Post by: Sether0 on April 13, 2017, 01:10:23 AM
Is there any way to reliably obtain this module?  Likewise is there a way to prevent the obtaining of this module?  It'd be nice for the admins on my server, not so nice to have players abusing it.  lol

At this point, you can get items manually through the developer panel. It is activated by the command:

Code: [Select]
/run Entity():addScript("lib/entitydbg.lua")
Access to the panel is displayed in the upper-right corner of the screen (~dev).

I do not know how to prohibit players from getting the system.
Title: Re: [MOD] Universal System
Post by: aurion on June 03, 2017, 07:35:13 AM
Hi, or thou boost to acceleration and velocity is nice but i find my self crashing in to the things almost always i pres W + Space xD, yea sure its easy just set this parameters off but i do enjoy that speed, so my question is: is it possible to add boost also to brake thrust, yaw, pitch and roll? or its nearly impossible bcs there is no original module system for these parameters?
Title: Re: [MOD] Universal System
Post by: Sether0 on June 03, 2017, 04:45:08 PM
Hi, or thou boost to acceleration and velocity is nice but i find my self crashing in to the things almost always i pres W + Space xD, yea sure its easy just set this parameters off but i do enjoy that speed, so my question is: is it possible to add boost also to brake thrust, yaw, pitch and roll? or its nearly impossible bcs there is no original module system for these parameters?
Now it is not possible to regulate braking with the help of modules. As an option, you can increase the number of inertial dampers when building a ship.
Title: Re: [MOD] Universal System
Post by: aurion on June 03, 2017, 06:10:24 PM
Hi, or thou boost to acceleration and velocity is nice but i find my self crashing in to the things almost always i pres W + Space xD, yea sure its easy just set this parameters off but i do enjoy that speed, so my question is: is it possible to add boost also to brake thrust, yaw, pitch and roll? or its nearly impossible bcs there is no original module system for these parameters?
Now it is not possible to regulate braking with the help of modules. As an option, you can increase the number of inertial dampers when building a ship.

Yea, i thought so. Well nevermind. Even so i like this mode.
Title: Re: [MOD] Universal System
Post by: BloodyMikey on July 04, 2017, 10:53:02 AM
Is there any way to reliably obtain this module?  Likewise is there a way to prevent the obtaining of this module?  It'd be nice for the admins on my server, not so nice to have players abusing it.  lol

At this point, you can get items manually through the developer panel. It is activated by the command:

Code: [Select]
/run Entity():addScript("lib/entitydbg.lua")
Access to the panel is displayed in the upper-right corner of the screen (~dev).

I do not know how to prohibit players from getting the system.

Exactly how do i get it thrue dev console?
Title: Re: [MOD] Universal System
Post by: Sether0 on July 04, 2017, 12:44:36 PM
Is there any way to reliably obtain this module?  Likewise is there a way to prevent the obtaining of this module?  It'd be nice for the admins on my server, not so nice to have players abusing it.  lol

At this point, you can get items manually through the developer panel. It is activated by the command:

Code: [Select]
/run Entity():addScript("lib/entitydbg.lua")
Access to the panel is displayed in the upper-right corner of the screen (~dev).

I do not know how to prohibit players from getting the system.

Exactly how do i get it thrue dev console?

Spoiler: show
(http://i.imgur.com/pmRMrCz.jpg)
Title: Re: [MOD] Universal System
Post by: Mattoropael on July 05, 2017, 11:35:40 AM
Is there any way to reliably obtain this module?  Likewise is there a way to prevent the obtaining of this module?  It'd be nice for the admins on my server, not so nice to have players abusing it.  lol

Got a little workaround here:

Only use the modified upgradegenerator.lua briefly, when only the admins are around to obtain it with the dev commands, then revert to the normal upgradegenerator.lua, but keeping universalsystem.lua around. This will keep any Universal System modules you have already created, but making it unobtainable through normal means.

Probably won't stop it from dropping when your ship is destroyed but frankly, something is wrong with you if you somehow get killed while having this installed...
Title: Re: [MOD] Universal System
Post by: BloodyMikey on July 08, 2017, 10:56:42 PM
Hi i have a problem The mod is working and it is dropping from kills and but the problem is there is no tooltip at all

Spoiler: show
(http://i.imgur.com/EOKofh4.png)
Title: Re: [MOD] Universal System
Post by: Hammelpilaw on July 08, 2017, 11:33:31 PM
Spoiler: show
(http://i.imgur.com/EOKofh4.png)


This looks to me like you are playing >0.12 beta? Maybe this mod is only compatible with 0.11.x, and needs to be adjusted for 0.12.x.
Title: Re: [MOD] Universal System
Post by: Sether0 on July 09, 2017, 10:33:01 AM
Mod is planned to be updated when version 0.12 becomes stable.
Title: Re: [MOD] Universal System
Post by: Feather on July 09, 2017, 11:21:45 AM
Goog thing!

Could there is an option so it doesn't drop from kills nor sell at vendor?
I plan on using it as a core item for a "Purge Squad" to create a agressive administration fleet on a server. A good way to "kick" people when they talk trash ;)
Title: Re: [MOD] Universal System
Post by: Sether0 on July 09, 2017, 01:17:39 PM
Could there is an option so it doesn't drop from kills nor sell at vendor?

You can use the method suggested by Mattoropael:

Only use the modified upgradegenerator.lua briefly, when only the admins are around to obtain it with the dev commands, then revert to the normal upgradegenerator.lua, but keeping universalsystem.lua around. This will keep any Universal System modules you have already created, but making it unobtainable through normal means.

Probably won't stop it from dropping when your ship is destroyed
Title: Re: [MOD] Universal System
Post by: Feather on July 09, 2017, 07:00:51 PM
Thank you, still that's kind of a jenky way. It would mean that each time I want to add a ship to this fleet, I would have to swap files, reboot the server, be sure there is no player, do my thing, reswap and reboot the server again.
Well I'll see if I could integrate your mod with some command-based item-spawning mods out there, would be a more practical solution imo ;)
Title: Re: [MOD] Universal System
Post by: plablo on July 23, 2017, 03:21:46 PM
so if i want to change the numbers for more or less do i need to change the base value or the * 100 ?
Title: Re: [MOD] Universal System
Post by: Sether0 on July 24, 2017, 12:27:08 PM
so if i want to change the numbers for more or less do i need to change the base value or the * 100 ?

Only lines that contain the marking "base value".
Title: Re: [MOD] Universal System
Post by: raz334 on February 09, 2018, 04:41:56 AM
Hey, its a nice idea, but that module is so overpowered i just can't see using it.  Anychance of getting a weaker version, perhaps with actual varying qualities?
Title: Re: [MOD] Universal System
Post by: vid3ogam3play3r on May 16, 2018, 08:42:06 PM
I just got this mod and all of the sudden, shields don't work... Why? How do I fix this?