Barotrauma

Barotrauma

46 ratings
[DS] Gather Resources Quickly (Lua)
2
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
904.218 KB
24 Sep, 2024 @ 10:08am
28 Apr @ 10:21am
17 Change Notes ( view )

Subscribe to download
[DS] Gather Resources Quickly (Lua)

Description
Description
Are you bored by collecting ores and plants? Do you have a lack of resources even for bullets? Do you want to reduce annoying routine of Barotrauma to focus on more fun aspects of the game? If your answer is YES - than this mod is for you!

This mod requires both: clientside and serverside Lua for Barotrauma to work.
If you don't know how to install it - than please, check this video.

This mod has XML version, which not requires Lua to work. It has less features, and it also has more issues with compatibility, but you can check it if you want: [DS] Gather Resources Quickly

By simply installing and enabling this mod you will get NOTHING at all! This mod provides a set of configurable tweaks for you to configure your game in the way you want it using in-game console. Press F3 to open it and type commands described below.

Note: The most important command of this mod is "grq-help". Type it in a console to get more details about commands from this mod and how do they work.
Please, keep in mind that every configuration which you change - is applied to all games where you are host. If you want to start a new game and reset your settings - you need to do that manually by executing this command: "grq-reset".
You can ensure that you have proper configurations for your game by executing this command: "grq-settings". It will print current settings into you console.


Plants are scannable with minerals scanner
To enable that just type:
grq-scannable 1
Zero to disable it
Note: Please, keep in mind that changes made by this command will get reflected only on the next round. Make sure that you have configured it before you undock from station.


ALL resources are glowing in darkness
By default: Esperite, Alien Materials and resources from mining quests are not glowing. To enable that just type:
grq-glow 1
Zero to disable it


Plants picking time
By default - you need to hang for 5 seconds on every plant to collect it. You can decrease or increase this time usign such command:
grq-picking 3
Command above will set 3 seconds to pick up any plant. Zero will allow you to pick it up instantly.


Ore deattach duration
Default deattach duration in vanilla is 4. This is not about seconds, because a lot of conditions might impact the time you spend to deattach ores (e.g. mechanic skill level). You can change this duration usign such command:
grq-deattach 3
Command above will make all players to deattach ores for 25% faster. Zero value will allow you to deattach it with plasma cutter instantly.


Note: If you set deattach duration value to 2 or less - mechanic's talent "Miner[barotraumagame.com]" will get updated and you will get "+%15 Swimming Speed" in addition to existing bonuses. Because otherwise - this talent becomes less beneficial.



Configurable sonar range
As example you can set it to the same value as Super Mining Sonar does.
Just type following command in a console:
grq-sonar 18000


Configurable server rates for resources
Finally you can create a server and name it: Barotrauma PvE x3 (or x5, or x10 or whatever...)
This mod will allow you to set server rates for deconstruction of different groups of non-craftable resources.

Example:
grq-rate 2
grq-rate 4 explosives
grq-rate 1 fuel
Commands above will set x2 rates for all resources globally, but x4 for explosives and x1 for fuel.

If you plan to set high rates (like x4 or more) I strongly advice you to use this mod: Material IO. It will help you with performance by reducing amount of active items in the game.

Note: Please, keep in mind that this mod impacts the amount of resources which you get from DECONSTRUCTION. It will not impact the amount of resources spawned in caves, wrecks or dropped by creatures.


Here is the list of non-craftable resources, deconstruction of which is impacted by modification of server rates:
  • Minerals[barotraumagame.com] and Plants[barotraumagame.com].
  • Creature loot: Swim Bladder, Adrenaline Gland, Endworm Shell Fragment, Hammerhead Ribs, Moloch Bone, Spineling's Spike, Watcher Shell Fragment, Alien Circuitry.
  • Pet production: Poop, Mucus Ball, Hallucinogenic Bufotoxin, Chitin Chunk.
  • Gardening: Raptor Bane, Mutated Raptor Bane, Pomegrenade, Mutated Pomegrenade, Tobacco Bud, Salt Bulb, Banana, Banana Peel.
  • Random deconstruction: Scrap, Diver's Remains.
  • Eggs: Mudraptor Egg, Strange Eggs.
  • Alien items: Alien Trinket, Alien Curio, Alien Ornament, Sky Artifact, Thermal Artifact, Nasonov Artifact, Faraday Artifact, Psychosis Artifact.

This table will explain you, amount of which materials will change upon deconstruciton of parent item (listed above), if you set rate for specific group:
Group
Explanation
global
Global rates for all resources, if more specific rate of specific group is not set
fuel
Set multiplied rates of deconstruction for materials like: uranium, thorium.
explosives
Rates for: phosphorus, magnesium, sodium, lithium, potassium
meds
Rates for: organicfiber, opium, ethanol, elastin, antibiotics, chlorine, calcium, alienblood, stabilozine, adrenaline
materials
Rates for: aluminium, carbon, copper, iron, lead, silicon, tin, zinc, titanium
alien
Rates for: "dementonite", "fulgurium", "incendium", "oxygeniteshard", "physicorium", "sulphuriteshard", "paralyxis".
other
Rates of deconstruction for materials from other mods (works only for ores and plants). As example you might enable a mod with silver and gold. In this case, if you want to manage their rates specifically (in non-global way) you may use this group.

From Author
I like to play a campaign when I set HP for enemies x2-x4. Sometimes I use Barotraumatic with Vanilla Weapons Overhaul. This setup makes me and my team to use resources for bullets much faster than we get them. Even if we stop for every cave. This mod helps me to balance my campaign. Hope it can do the same for you.

I am an experienced programmer, but this is my first mod written with Lua. So I just want to say Thank You to Evil Factory and Ydrec for their support.
38 Comments
Azuma  [author] 26 Apr @ 7:21am 
Those two bugs are not critical for usage of this mod, but I will fix them and get back with a report here.
Azuma  [author] 26 Apr @ 7:20am 
I have discovered two bugs which were mentioned here previously:

1. Settings are getting reset every game session
@Guest Every time I host a new game my settings which were set with "grq-rate" are not applied. Regardless of what "grq-settings" shows to you. Setttings are just getting reverted to Vanilla defaults. To fix that - you just need to type "grq-rate" and configure desired settings every time you start new game session.

2. Command "grq-deattach" makes resources unminable.
@Zhake Everything works as expected on the server side. But sometimes clients are not getting properly syncronized with a server. If you set "grq-deattach 1" and try to mine a resource - you might notice that progress bar will get to 25% and might stop moving. It means that resource is mined, but your sprite just not showing that. At this point you can collect it by a simple click.
This bug is purely visual. You can mine and collect mined resources even if they are not shown as mined.
Azuma  [author] 14 Apr @ 5:58am 
@pinkduck Thank you :)
Azuma  [author] 14 Apr @ 5:47am 
@RRNK235 yes, you got it right. It impacts only deconstruction. I think that this approach is better and more lightweight to achieve desired result.

And yes, it should work in single player as well.
Azuma  [author] 14 Apr @ 5:45am 
@Zhake I have checked your issue. I have set:
grq-deattach 1
Which should increase the speed of mining for 75% from normal and it works as expected.
Are you sure that you are doing it right?

If yes - than please, send me your list of mods and step by step guide on how to reproduce your issue. I will try to fix it.
Zhake 23 Mar @ 12:34pm 
In multiplayer, I might add.
Zhake 23 Mar @ 12:16pm 
From what I can tell, the grq_deattach just determines how far the bar goes up. Unless it's 0, it makes all materials unmineable. You can still pick them up manually if you set it to zero, but any other value just completely makes them unmineable.
RRNK235 9 Feb @ 5:05am 
nvm i misunderstood how it worked its only deconstruction side
RRNK235 9 Feb @ 4:54am 
does the extra ore generation work in single player? the sonar and all works just want to confirm b4 i spend hours searching an abyss to confirm
Moisesjns 1 Feb @ 9:18am 
one odd thing every time i set global rate to 5, if i save and quit at outpost close the game and come back the values i have set are always back to default at least for the Rate nothing else tho