Jump to content

[Stations] How to create a Station bigger as Smal -> M L XL XXL


Abraxsus

Recommended Posts

Hello Community,

Hello Koonchi,

 

If i buy a Builder ship and like to build a Station, its allways a S-Station

I Variade the Mass up to more then 4 Billion MT .... the station costs 1 Million Iron,Titanium,Nanoite,Trinium and 600.000 Xanion, and its still a Smal one .....

 

How to build a M L or XL ?

Link to comment
Share on other sites

Hello guys,

 

i made some changes in the "entity/merchants/factory.lua" script to expand stations based on their volume. Just add

function updateProductions()
    local self = Entity()
    local newProductions = 2 + (self.volume - (self.volume % 10000)) / 10000
    if(maxNumProductions ~= newProductions) then
      maxNumProductions = newProductions
    end
end

 

above the update method and add

 

updateProductions()

 

in the first line in the update method itself.

 

You will get more productions cycles in bigger stations. No Name changes jet.

 

Grettings Chaos

Link to comment
Share on other sites

Merged topics. Please try to search for similar topics next time. This one was just on the second page ;)

 

 

lol,I have searched for "player build stations" "station" "build larger stations"etc. but got pages of topics from suggestions. This one dived nowhere to be found. :o :o :o :o

 

I'm wondering when Koonschi will implemented these sort of small problems as it only takes less than 10 lines of coding.

So that we can play the game without edit xxx.lua every couple of days.

Link to comment
Share on other sites

Ýeah, the search function can make life really hard at times :)

 

I guess, as issues like these are not really game breaking and as high priority as some other stuff, he is pushing these back. Maybe he also has some changes to the system planned, which would make those fixes unnecessary. But that is just pure speculation from my side.

Link to comment
Share on other sites

Ýeah, the search function can make life really hard at times :)

 

I guess, as issues like these are not really game breaking and as high priority as some other stuff, he is pushing these back. Maybe he also has some changes to the system planned, which would make those fixes unnecessary. But that is just pure speculation from my side.

 

That an opinion ;D. But return to the beginning I'm still curious about what he is doing about the game now. It will be nice and inspiring if he can have somebody to post news every week or even every day.Since Avorion is now becoming global famous::) ::) ::).

Link to comment
Share on other sites

  • 2 months later...

Hello guys,

 

i made some changes in the "entity/merchants/factory.lua" script to expand stations based on their volume. Just add

function updateProductions()
    local self = Entity()
    local newProductions = 2 + (self.volume - (self.volume % 10000)) / 10000
    if(maxNumProductions ~= newProductions) then
      maxNumProductions = newProductions
    end
end

 

above the update method and add

 

updateProductions()

 

in the first line in the update method itself.

 

You will get more productions cycles in bigger stations. No Name changes jet.

 

Grettings Chaos

 

Does this mean, the bigger the station, more production bars? And I'am stupid, do I just need to add it to the .lua  as an extra sentence? Cause I don't have an "method" line  :P :-[

Link to comment
Share on other sites

  • 2 months later...

Hello guys,

 

i made some changes in the "entity/merchants/factory.lua" script to expand stations based on their volume. Just add

function updateProductions()
    local self = Entity()
    local newProductions = 2 + (self.volume - (self.volume % 10000)) / 10000
    if(maxNumProductions ~= newProductions) then
      maxNumProductions = newProductions
    end
end

 

above the update method and add

 

updateProductions()

 

in the first line in the update method itself.

 

You will get more productions cycles in bigger stations. No Name changes jet.

 

Grettings Chaos

 

Client & Server?

Link to comment
Share on other sites

Hello guys,

 

i made some changes in the "entity/merchants/factory.lua" script to expand stations based on their volume. Just add

function updateProductions()
    local self = Entity()
    local newProductions = 2 + (self.volume - (self.volume % 10000)) / 10000
    if(maxNumProductions ~= newProductions) then
      maxNumProductions = newProductions
    end
end

 

above the update method and add

 

updateProductions()

 

in the first line in the update method itself.

 

You will get more productions cycles in bigger stations. No Name changes jet.

 

Grettings Chaos

 

Client & Server?

 

Server only should do it I think. But you should test it before using on a server.

Link to comment
Share on other sites

  • 1 month later...

For anyone who wants to change the hardcoded station size that is determined upon founding station from S to other sizes modify open

data\scripts\entity\stationfounder.lua and search for line

station:invokeFunction("factory", "setProduction", production, 1)

and change the value 1 to any of the following

2=M

3=L

4=XL

5=XXL

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...