Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2806943651
My mod will make the default window resizable/bigger hence you'll be able to fit more data on the window without the need of scrolling.
It's very difficult to change existing game windows, if possible at all.
And no multiple rules are not possible, as already answered to you at the forum.
For example:
local stockListConfig = {
stocks = { "PASSENGERS", "SAWDUST", "DIRTY_PAPER", "CHEMICALS", "COLOR_RED", "COLOR_GREEN" },
rule1 = { input = { {4,2,0,1,0,0},{5,1,3,2,0,0}, }, output = { PAPER = 1, PASSENGERS = 2 }, capacity = 100 },
rule2 = { input = { {5,4,0,2,0,0},{8,6,4,5,0,0}, }, output = { CARTONS = 1, PASSENGERS = 4 }, capacity = 100 },
rule3 = { input = { {5,2,0,2,1,1},{8,1,3,5,1,1}, }, output = { STICKER = 1, PASSENGERS = 4 }, capacity = 100 },
And if so, how to do it correctly.
Or - change the graphical representation to numeric (I always follow the sequence)
for example:
rule1 = { input = { { {4,2,0,1,0,0},{5,1,3,2,0,0}, }, output = { PAPER = 1, PASSENGERS = 2 }, capacity = 100 },
do not display 4 cargo icons, just "4"
https://steamuserimages-a.akamaihd.net/ugc/1858308488255416276/AEC5F2B316AF37E60693904271352FD2744124F0/?imw=1024&imh=623&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=true
Once the spring game update is deployed I will publish the mod. I want to be 1000% sure that this is compatible with the updated game.
Also :) I've just finished testing yuriyland's request and, guess what, it works :)
https://imgur.com/a/YTJc0LU
https://steamuserimages-a.akamaihd.net/ugc/1858308303535187527/933E42EE720F11B96E2DB9B61156CD5A6D3E1D96/?imw=5000&imh=5000&ima=fit&impolicy=Letterbox&imcolor=%23000000&letterbox=false
If you don't at first click on the Station window then the Construction windows are not affected by the mod (they cannot be resized).
I have spent my whole last weekend trying to figure this out but to no avail :(
I would appreciate if you could take a look at the code and provide some tips how to fix this.
Is there a way I could you safely send it?
PS. I have a feeling that I am stopped by this "If clause"
"if api.engine.getComponent(ent,api.type.ComponentType.STATION_GROUP) then"
Thank you very much for your help and useful tips :)
Hello, after a month :)
I was able to find some time to work on my mod and unfortunately stumbled upon a serious issue - Our mods are mutually exclusive irrespective of the loading order.
Maybe it is due the fact that "my" resize mod uses guiHandleEvent and your guiInit?
So after a number of trial and errors I decided to combine our resize mods into one.
Now I can manipulate both windows - the dynamic ones (Station) and the "menu.construction.*" from your mod.
However there is one issue that prevents me from declaring full victory.
This does not prevent the mod from delivering full functionality but is more a nuisance than a regular bug.
Once you load the game the mod will only work if follow these steps:
1. Load the game
2. Click and open the station window
3. Close the station window
Result: You can now manipulate both the Station Windows and the Construction ones
I am going to have some time this weekend, hopefully I'll put together something this weekend :)
So Congratulations for your first mod.
A big, enormous Thank You for your guidance and for pointing me to the right direction.
Here is the screenshot: https://imgur.com/a/x0VZIbD .
I am going to test it for a while locally and then, if you don't mind, publish it here.
I would also add you as co-author.
You can now read out the id and then check if this is station. For component type use "StationGroup". If so, you access the window via gui.util.getById. Then you can resize.
I do something similar in my mod Advanced Town Builder. There I access the town window. Have a look.
The output I got from the inspector is "temp.view.entity" followed by a unique ID for each Station. Unfortunately I wasn't able to make the Station resizeable. Any ideas how to make this window a bigger either via resizing or by hardcoding a larger size (I spent the entire weekend tinkering with game settings and couldn't get it working).
I even thought that maybe it's time to surrender because it's impossible but stumbled upon another mod (ID:2449624955) where this was made possible (The station window is 100% bigger).
Thanks again.
Thank you for this. It is especially useful for me for modded train stations - Thanks again :)
I have got also one question.
Have you considered also making the Station Details window re-sizeable ( this window which list all the lines going through a particular station).
I tried to do it myself but failed after couple hours trying to find the exact "ID" for the Station window to pair it with api.gui.util.getById.
Thank you.