Avorion

Avorion

Bank Station v1.2 [v2.3.*]
87 Comments
Ori 30 Nov, 2024 @ 11:56pm 
@endeyfire That right there is pretty much the only reason I install the mod, as I play Avorion for the action, not the empire management.
endeyfire 30 Nov, 2024 @ 9:29pm 
hey, by the way, bank robbers are attacking my sector... en mass. i figured you had disabled this feature. oh well, time to live with the consequences of letting 2 bastions get dogpiled by 50+ bank robbers.
Enlonwhite 12 Oct, 2024 @ 6:35am 
so I misread, and thought too deeply on it. Thanks for clarifying,
I feel ....less stupid now I think..ouch. :-P thinking hurt, need to just go make the money's now, with my precious bank.
Sir Mario  [author] 11 Oct, 2024 @ 6:11am 
@Enlonwhite - Once the bank reaches it's maximum deposit amount, the excess interest/money is sent directly to the Owner of the station. So it becomes a steady source of money.
Ori 9 Oct, 2024 @ 6:23pm 
Brazil
Enlonwhite 9 Oct, 2024 @ 3:49pm 
So " The station costs 1 million credits to found, and can hold a maximum of 1 million credits in its account. The bank can be upgraded to increase its maximum account balance. If the account is full, interest payments are added directly to the owning Factions credits."
Conflicts with
"Once you have a Bank Station built and you store some credits within, you will be generating - at a fixed rate, of 2% interest every few minutes! Please bare in mind, that you cannot generate or store any credits above its maximum capacity! At peak however, you can generate over 6.5m credits every interval!"
When bank is full, where does the money go?
Dodojesus 10 Aug, 2024 @ 6:17am 
and yes I know the UI is bugged on the after the last upgrade level, its just a test for now
Dodojesus 10 Aug, 2024 @ 6:02am 
If you want to try out the mod, I have sent you a friend request, because the mod is currently in the friends only setting because it is not properly balanced and also because I didnt ask Sir Mario yet if I am allowed to publicly upload it(Of course with alterations) and also because I need to use at least friends only so it can be played in MP(I think)
Dodojesus 10 Aug, 2024 @ 6:02am 
@Torkkar Kinda I have made an alternation to the mod where you have the normal station which doesnt spawn robbers and a new station that gives a lot more money but has a very high spawn rate for robbers(they are pretty unbalanced compared to vanilla but you can tweak it yourself,btw the high risk station is meant for you to be actively loaded in because if you are not the game could just simulate the sector leading to multiple waves of enemies "appearing" out of nowhere when you load in, so either be actively there or have very good defenses which you know of that they can kill them before the next batch spawns in)the mod also has an increased capacity for credits(I elevated it practically just before the point where the game starts dying because the value is too big).
Torkkar 9 Aug, 2024 @ 7:12pm 
so once the mods fixed can there be an in-game option added to turn on/off the robbers?
Dodojesus 4 May, 2024 @ 10:06pm 
Found the error in line 87 you removed the script after adding it in line 86, most likely so that the script is removed when already activated from an older version of the mod.Btw still interested in the things from the last comment (data type etc)
Dodojesus 4 May, 2024 @ 8:50pm 
I didnt realize that it was disabled because i used the addon (dont worry i disabled it before trying anything because i dont like some of the changes, so it doesnt interfere)with it, but i tried it with the changes you proposed (addon disabled of course)and the enemies still arent spawning.
PS: is there a limiting factor to upgrade level or the values of the stations, except in bankstation.lua line 203(function to hide upgrade button if already at max level of base mod(6)), like software restriction(data type etc.)?
Thanks in advance
Sir Mario  [author] 4 May, 2024 @ 5:59pm 
@Dodojesus - You are more than welcome to use this mod/code however you may wish, it is open source. In order to turn bank robbers back on (I disabled after reports of that feature bugging out and spawning like hundreds of ships and crashing someone's game - so maybe have a backup save first) you will need to edit the [data/scrips/entity/bankstation.lua] file and uncomment the lines which add the script to spawn robbers. [Lines: 86; 273; 409; 422]

That will enable the script to run on sectors where there are banks. Now, to increase the interval of spawning you will need to edit [data/scripts/sector/background/bankrobbers.lua] remove the random math functions [Lines 85; 91;] to be the number of seconds you wish them to spawn at. (I.e. 5 * 60s) It is currently setup to pick a random value between 15-20 minutes.

Hope that works/helps. Fly Safe.
Dodojesus 4 May, 2024 @ 9:24am 
Hello Sir Mario, I am trying to modify your mod(for personal use, i wont publicly upload them so i hope thats not a problem).I am currently trying to modify the mod to make it so that bankrobbers spawn in every five minutes not every 15-20 mins.Do you have a quick fix, because I have no experience with lua and want to completely understand how you programmed the timer.
Jesterhunter 20 Dec, 2023 @ 7:27pm 
I have the same problem that Beastman AIDS... any solution?
Mr Blue 7 Jun, 2023 @ 2:53am 
this is the mod i was looking for

i wish there is real estate mod in future
Beastman AIDS 3 Mar, 2023 @ 9:36am 
I'm not sure what is causing this issue but the "banking" option is visible only once after creating the station. better yet, clicking on it flashes a mostly empty tab for a split second and then closes it. After that the "banking" option is gone forever.
Kxawzìtan  [author] 5 Feb, 2023 @ 3:46pm 
Nah it's not this mod the problem's on @Stone Legion, the problem was on my addon mod I made. It should be fixed now.

And @Sir Mario, I've been wanting to establish contact with you for a while now with no response. Not sure what's up, but I can only assume you're not interested in what ideas I wish to share.
YouTube.com/StoneLegion 5 Feb, 2023 @ 3:28pm 
@UltraMassive so is this an issue using this mod? The Author did not seem to reply to your comment...
Sir Mario  [author] 27 Jan, 2023 @ 12:26pm 
@DasSemiPro, it shouldn't require a new save to add the mod. Once you add it though, i don't know what happens if you remove it.
DasSemiPro 27 Jan, 2023 @ 11:08am 
Does this require a new save?
UltraMassive 15 Jan, 2023 @ 8:58am 
@Sir Mario - I am running version 1.2 of the mod. There is a "bankrobbers.lua" in the mods files. I've noticed that something is causing the event to trigger back to back, but that's not the weird part. The event only triggers in rapid succession after logging back into the server after being offline for a while (overnight), but will eventually slow down and begin behaving as it seems it should. I couldn't find the exact number accelerated spawns, but my client logs suggest it was at least 16 almost exactly one minute apart from each other, leading to a sector populated with roughly 192 pirates (12 were spawning per event).

As a workaround, I limited the number of pirates the event spawns down to one regardless of bank balance to avoid crashing. I did this by editing the "bankrobbers.lua" file with the path *servergalaxy*/workshop/content/445220/2328171251/data/scripts/sector/background/bankrobbers.lua

Great mod overall! I hope this info helps.
Sir Mario  [author] 13 Jan, 2023 @ 11:47am 
@UltraMassive - are you using the most recent version of the Mod? I removed the script that spawned the pirates so in theory you shouldn't have any pirates.
UltraMassive 13 Jan, 2023 @ 9:27am 
I have recently noticed a spike in the bank robber spawn rate. The client logs suggest that the event is being triggered once every minute or so.
Ori 31 Dec, 2022 @ 11:27am 
I didn't realize you made the mod that added more levels to the bank stations
Kxawzìtan  [author] 26 Dec, 2022 @ 3:30pm 
More levels than 6? What do you mean Axol?
Ori 19 Dec, 2022 @ 12:53am 
You may want to update the description as there's more levels than 6 now but it doesn't say that
Ori 17 Dec, 2022 @ 9:17pm 
I love it
Ori 17 Dec, 2022 @ 9:17pm 
They already are Hotshot(cmbh). I keep getting pirates every bank robbery lol
Hotshot[cmbh] 7 Nov, 2022 @ 10:58pm 
Hi
Will the pirates be back in the Future? It was nice bonus mony and loot 😁
Nakinto 5 Nov, 2022 @ 11:50pm 
Thank you for removing the bank robbers. We were having issues with this causing severe lag as the robbers would spawn in unloaded systems, repeatedly but not do anything and not be killed... until the system was loaded again and then CRASH! Thank you for fixing it!
Kira 9 Oct, 2022 @ 8:23am 
So loving this, thanks for removing the bank robbers. It was a great idea, just so finnicky unfortunately.

Feature request:

Treasury station.
Treasury would allow you to horde up to 1 trillion credits per station. Why do I want this? It would be really fun to have treasuries for my seperate ingame corporations so i can track their wealth etc.

I think this would not be too hard to do? Just take the bank station, remove the income mechanic and raise the max cap on how much money you can store? Would love to see this, and thank you again for the excellent mod!
archmichael 1 Sep, 2022 @ 8:10pm 
i am having a issue where the store fund option is not showing up on the bank. i scanned over the lua scripts but did not see anything that should be causing any issues so anything i could check would be a huge help
Sir Mario  [author] 23 Aug, 2022 @ 3:16pm 
@Kira - I just pushed a update that should remove bank robbers altogether. There have been too many reports of issues with the spawning script. So instead of risking the mod being game breaking for some, i just removed them entirely.
Kira 8 Aug, 2022 @ 5:22am 
ok yeah, for sure, bank robberies are excessive.
Kira 8 Aug, 2022 @ 5:16am 
reallly good mod but dude.... 9 bank robberies in a row one after another and still counting
Kxawzìtan  [author] 26 May, 2022 @ 5:31am 
Made quite a decent mod here mate, though I do have one question and would like to have a discussion with you at some point Sir Mario.
My question for now is: When on servers, is there only meant to be one person that has a bank?
Me and a few friends want to make banks but it seems only 1 can be made throughout the server. Being allied to the bank owner seems fair imo though having 1 station per server as opposed to per person doesn't fit right tbh. Probably could nerf interest rate based on number of stations to prevent mass producing.
Cheers
D€NIABLE A$$ET 2 May, 2022 @ 1:49pm 
So what's the spawn rate doing. One says 20 mins, other say too much. Which is it?
kirb 25 Jan, 2022 @ 8:54pm 
It would be awesome if you could reduce the frequency that bank robbers spawn. by a LOT.
Rune Trantor 10 Jan, 2022 @ 9:27pm 
In case anyone is looking at this mod like I was, just tested and saw two pirate attacks come with 20 minutes between them or so. So not that bad.

Also, pirates seem to be as strong as the region the bank is in, so it may be doable to just place the bank back in the iron region and equip it properly and it just oneshots any pirate.
Rune Trantor 8 Jan, 2022 @ 8:32pm 
I see.

Will have to try on a separate galaxy then yeah.

Hopefully it works, your casino mod is pretty much bankrolling me. :P
So more income avenues would be nice, as the resource depot income was in material form.
Sir Mario  [author] 8 Jan, 2022 @ 8:01pm 
I'll be honest @Rune Trantor, haven't looked at this mod in months. I can probably add a check to make sure that it won't spawn more pirates if some are already in the system, but for some reason it sounded like @Ryvucz had it triggering an event like every minute which it shouldn't. He mentioned a incident rate setting which i am unaware of; having not played the game in like a year. So it's possible that could've been his issue. I would recommend setting up a fresh server with your desired settings with sandbox mode enabled and building a Bank station to see if it works okay with your configuration. If so it should be stable for a game.
Rune Trantor 8 Jan, 2022 @ 7:31pm 
Is the thing about far too many pirates the other person reported fixed, or is it intended?
I am interested in this, but unsure due to that thing, dont want to lag crash my galaxy..
dptowne1 1 Nov, 2021 @ 12:45pm 
If from what I'm hearing is true. Place a bank and a scrapyard in the same system and you will be making more credits than from the bank itself. Lol.
Ryvucz 27 Oct, 2021 @ 7:39am 
Bank robbers show up every 5 minutes, interest happens around two and a half minutes.
Sir Mario  [author] 27 Oct, 2021 @ 5:59am 
@Ryvucz how often is the bank paying out it's money? is that also happening at an accelerated rate?
Ryvucz 26 Oct, 2021 @ 8:27am 
I dismantled the bank completely, reset the server, played a full day without a bank, re-built a bank and used it as normal. Withdrew money for the night, reset the server, came back and the issue is still there. I'm wondering if the incident rate is messing with the script? Aside from the constant amount of pirates, it is nice to actually feel threatened to losing an entire sector to a relentless raid of pirates. =D
SirPhoenixBlood 22 Oct, 2021 @ 6:26pm 
@Sir Mario

there may be a way to fix the problem with a overflow of ships in a sector if there is a way to scan sector for active pirate ships then stop countdown till next wave and also a clear sector of wrecks after waves or a cooldown between waves is another way to deal with it
Sir Mario  [author] 22 Oct, 2021 @ 6:15am 
@Ryvucz I'm wondering if there was an issue with the timer, i pushed an update that may help. Sadly, I don't think there is a way to clear out the sector, but perhaps if you can take all the money out of the bank to stop more pirates. fight all the pirates, then dock to the bank and move it to a new sector to force it to reload the script. (If you're server admin there may be a command to clear all ships from a sector)
Ryvucz 21 Oct, 2021 @ 11:53pm 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2633969358

After the 240th pirate arrived, I had to spend four minutes withdrawing money from the bank to stop the pirates from coming, 6 more waves had snuck in by that time. Had to restart the server and pause it to get the screenshot.

Intense, yet hilarious. Server is hitting 120,000 ping trying to deal. I like the challenge honestly, but uh, need a new server. Seems to keep track of how long pirates would have attacked while no players were on the server. Putting money in starts the waves, pulling it out stops them.