Barotrauma

Barotrauma

[DS] Gather Resources Quickly (Lua)
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
Moisesjns 1 Feb @ 3:36am 
this mod works fine for me even with ssparkys additional ores,
pinkduck 21 Dec, 2024 @ 8:10am 
This is very well done.
pyro557 11 Dec, 2024 @ 10:26am 
when i have this mod enabled with the mods stabiloplant and/or ssparky's additional ores the game crashes back to the server screen. it gives out an error but its to long to put in the comments
pyro557 10 Dec, 2024 @ 6:55pm 
so i figured out the problem i completely forgot i was using an overhaul mod( barotraauma 40k) it makes the commands not exist.
pyro557 10 Dec, 2024 @ 4:02pm 
sorry to double post but i forgot to mention i have client and server lua and the mod appears to be wroking but no commands work
pyro557 10 Dec, 2024 @ 4:01pm 
not sure if i have a conflict or i did something wrong but the console commands say the command cant be found when i try to use them for example grq-help it retuens command grq-help not found
Guest 5 Dec, 2024 @ 11:22am 
Oh, ok it took me a 12 minutes to use my brain and just bind so the command will print into console whenever i use shift, you still could see if this a bug or not, btw thanks for such a great mod!!!:p2cube:
Guest 5 Dec, 2024 @ 11:08am 
Yo idk if it's bug or what ,but grq rate resets on game restart however it's the same number it was before restart so it's still 2 instead of 1 as default am something doing wrong or it is a bug? i can't see any thing over here about this.
Azuma  [author] 5 Nov, 2024 @ 12:56am 
@Jager Naught, hello!
If I will make this for items which you may craft - it will break game balance.
In order to craft ballistic fiber - you need:
Plastic (x2) and Titanium
Yields from deconstruction:
Plastic and Titanium

If I do what you are asking me for - you will start being able to get more resources from deconstruction than you use for crafting.
For example:
grq-rate 2
In order to craft ballistic fiber - you need:
Plastic (x2) and Titanium
Yields from deconstruction:
Plastic (x2) and Titanium (x2)
You get more Titanium than you use for crafting. It makes no sense for me, sorry...
Gibus Hatted Kim 20 Oct, 2024 @ 2:21am 
Maybe you can make so if you deconstruct materials from shop or crafting you'll get more? For example deconstruct ballistic fiber and get the amount you've put into grq-rate command?
heheboi 1 Oct, 2024 @ 10:02am 
Окей спасибо за ответ!
Azuma  [author] 1 Oct, 2024 @ 9:14am 
@heheboi Я толькочто проверил твой мод и талант в нем.
Мой мод не переопределяет талант, он к нему добавляет дополнительное свойство.
В некоторых случаях это может создать проблемы, но конкретно в твоем - нет. К твоему таланту просто добавится мой бонус.

Касательно Material IO - не смотря на его старость он до сих пор актуален. Не хочу ставить зависимости для Item framework IO, поскольку большинство желающих присоединится к моему серваку не читают описания и в упор не ставят галочку "Enable Cs Scripting".
heheboi 1 Oct, 2024 @ 8:48am 
А ну и Material IO старый, у него давно замена есть в виде Item framework IO
heheboi 1 Oct, 2024 @ 8:46am 
Доп.просьба: А можно талантище отдельно от скорости сьема руд и растений на луашечки, а то например мой мод, Combat Overhaul Legacy этот талант меняет и содержит рецепт и этот тупо оверрайднет его.
Azuma  [author] 1 Oct, 2024 @ 8:30am 
@objir If you want to make this mod compatible with your current game (mod with sonar upgrades) just type the same command as in my previous comment.
You can test if it works for you by setting values 10000 and 10001. The difference for you should be significant (if you have upgraded your sonar), in the moment when this difference sould be barely noticable.
Thanks one more time!
Azuma  [author] 1 Oct, 2024 @ 8:29am 
@objir thank you for help in sorting this out!

@everyone I have updated this mod. Updates include:
1. Defaul range for sonar is now 10000 instead of 6000
One or two years ago, when I was working with XML version of this mod - I have figured that default range of sonar is 6000 units. While I was working with this Lua mod, for some reasons, I haven't checked that this value has got updated by Barotrauma developers.
Previously it was added as XML attribute 6000, but now it's hardcoded into C# code as 10000.

2. I have provided compatibility with mods which provide sonar range upgrades.
When you set sonar range to mod default value (which is 10000 now) - my mod will respect any sonar range value which comes from Barotrauma. Range 10000 is now a magical number which is not guarantees you that your range is really 10000 :steammocking:

If you are already using this mod and if you want to get Vanilla range of your sonar please type:
grq-sonar 10000
Azuma  [author] 30 Sep, 2024 @ 9:22pm 
@objir Thanks for letting me know. I will definitely investigate those issues and respond here in a comments.
objir 30 Sep, 2024 @ 8:06pm 
Sorry. I actually mean FOV, not range. minimal FOV is the FOV that the sonar is at max zoom (smallest). The problem is, with this mod active, the sonar FOV is set to the near max zoom FOV even with no zoom.

Vanilla Sonar with no zoom: https://ibb.co/zQtgqhq
With this mod and no zoom: https://ibb.co/pzzBYJg

The sonar upgrade mod I use: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3255753995
Azuma  [author] 30 Sep, 2024 @ 6:30pm 
Sorry, I didn’t got the first sentence. Vanilla doesn’t have a minimal range. It just has a default range 6000.

Regarding compatibility - give me a link to the mod which you are using. I will try to check how to make them compatible.
objir 30 Sep, 2024 @ 4:23pm 
The new version, by default, appears to set the vanilla minimal sonar range as max range.
Also, it appears to be incompatible with mods that add sonar range upgrades to subs. Any chance to make it compatible or for an option to disable the range change?
Azuma  [author] 29 Sep, 2024 @ 11:50am 
@heheboi I have just realeased that 3 hours ago.
You can set:
grq-deattach 4 <<--- Default for Vanilla
grq-deattach 3 <<--- 25% faster
grq-deattach 2 <<--- 50% faster and in addition +15% swimming speed for "Miner" talent.
grq-deattach 1 <<--- 75% faster + swimming speed.
grq-deattach 0 <<--- instant + swimming speed.

I haven't tried, but I think that you can also use float values like:
grq-deattach 1.5

Everything is very flexible. Jest read out mod description.
Also you can check a command:
grq-help
Short version of mod description which is available for you while you in the game.
heheboi 29 Sep, 2024 @ 11:06am 
I wonder if it possible to have configurable detaching speed instead of instant
Azuma  [author] 29 Sep, 2024 @ 8:23am 
Hello guys!
I have released version 2.0 of this mod.
A lot of things were reworked.
Now you always need to have a plasma cutter to detach ores.
You have additional console commands to configure your game.

If you already using this mod - I strongly advice to read description of this mod again.
Have fun!
Альфарий 27 Sep, 2024 @ 9:05am 
Давно шукав шось подібне GOOD JOB
Azuma  [author] 27 Sep, 2024 @ 5:44am 
Yep, I was thinking about UI too. I think I will add that a little bit later to make this mod more user friendly.
epple 27 Sep, 2024 @ 3:45am 
This is great! I've seen other addons try the "faster mining" thing and I really like the flexibility of this one. I think a lot of people are looking for something like this. Please continue to iron this one out! It would be really awesome to see a UI menu like other tweak-able Lua addons such as Enhanced Immersion or Soundproof walls.
Azuma  [author] 27 Sep, 2024 @ 3:10am 
I got feedback from a lot of people that removing requirement from having plasma cutter to detach ore is too much.
I am going to rework that.
You will need to have a plasma cutter to detach ore, but this process will be happening almost instantly.
I will try to check if it’s easy to make that configurable…
Proxy 26 Sep, 2024 @ 4:15pm 
Тихо спиздив фізікорій і уйшов називається втік від харібди