Jump to content

[Dev Request] Lua accessible command to reset sector unload timer


Jey

Recommended Posts

I assume it would be relatively simple from a coding perspective so ill ask in hope that a dev add it to the binary.

 

The goal would be to give power for lua script to delay or prevent sector from unloading if needed (this way specific sector could be kept loaded permanently if the server owner desires it).

 

The way i see it, there should be a lastactivity time variable in the sector that once "now - lastactivity > sectorUpdateTimeLimit" unload the sector. A way for a lua function to set lastactivity to now would be good enough.

 

For all i know there may already be a function accessible from lua that happens to do it as a side-effect, but i haven't found any xD. I understand that keeping a ton of sectors loaded is bad, but the ability to designate a few specific sectors to remain open should be manageable (and in the host control so its on them anyway).

 

Proper Out of sector  idle would be ideal, but that's not likely to happen anytime soon (out of sector factory is great, but it doesnt cover mining ship, pirate attacks etc).

 

 

My specific use case would be for a server that only me and a friend play on, wed like our mining ships and patrol to keep sector open without having the side effect of keeping dozens / hundreds of sector open by upping the sectorUpdateTimeLimit to a crazy number.

Link to comment
Share on other sites

Hi cepheni,

 

It looks like you have the dev's ear. Do you think you could convince them to expose some of the other hard-coded variables like base salaries, item costs, trade prices, drop frequencies etc? In most games these are stored in some compressed format or, better, in easily moddable xml files, but with Avorion it seems they are baked into the executable. It would really expand the scope of mods if these could be tinkered with.

 

Thanks!

Link to comment
Share on other sites

Hi, this is currently not possible, it will be changed with the upcoming alliances update, so maybe then we can make it available to modders.

 

and yes i know it is not currently possible, this is why this is a dev request. Its the kind of thing that should be a 5mins thing to implement so if they feel like it they could.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...