Cities: Skylines

Cities: Skylines

141 평점
City Web Server
   
어워드
즐겨찾기
즐겨찾기됨
즐겨찾기 해제
Mod
파일 크기
게시일
업데이트일
811.508 KB
2015년 4월 5일 오전 7시 53분
2015년 6월 1일 오후 9시 37분
변경 사항 8개 ( 보기 )

다운로드 위해 구독하기
City Web Server

설명
Allows you to access real-time information about your city via your web-browser.

Once you've loaded up your city, simply open a browser and navigate to http://localhost:8080/index.html

In the center of your screen you'll see a small globe. Clicking on this will open the web page using your default web-browser. You can hold the left-shift key and drag this button anywhere on the screen (its position will be saved between sessions). If you don't hold down the left-shift key, you can still drag the button, pressing shift just suppresses the button's click events, so you don't open your browser multiple times.

By default, the server runs on port 8080. If this port is in use, it won't work. As a workaround, hold down the left-control key, and click on the globe. This will open a folder that contains the configuration file. Close the game before opening this file, or your changes will be overwritten when the game closes. Open the file (ModSettings.json) in any text editor, and edit the "webServerHost1" with the desired port number. Afterwards, simply save the file and reload your game. In the interest of security, the server only works when accessed via the "localhost:8080" address, but you can edit the configuration file to bind to all local addresses. Simply modify your ModSettings.json file to look like this: https://gist.github.com/Rychard/d9c608880a779d8e4165

Note: It appears that this doesn't work inside the steam browser, so you'll need to use a browser outside the game.

View the source-code (available on Github): https://github.com/Rychard/CityWebServer/
댓글 96
toast 2023년 5월 30일 오후 4시 30분 
Anyone have an update version of this?
Rena 2019년 3월 29일 오전 11시 49분 
It works, but the only items in the navbar are Home and Log. Clicking the city name shows more pages, but they just show raw JSON.

Also how do I go about adding more pages? Are there HTML files somewhere I can edit?
xpala 2018년 5월 1일 오후 3시 35분 
would love an update from this mod with more infoscreens
Angelino 2018년 2월 2일 오전 3시 22분 
Where are the "Mister Slurp's UI" in this MOD? I re-installed Cities Skylines and Mister Slurp's U is gone :(
iM4g3Ry 2017년 12월 19일 오후 11시 13분 
just made it work, fairly effortlessly; fyi, you guys, hold [Control] + Mouse Drag = moves the world icon
iM4g3Ry 2017년 12월 19일 오후 11시 00분 
This is a breathtaking idea, after looking for more than an hour for some mod that would do just this... #RIP- Rush Hour, but I still use it and I can't see any data since it's maybe been a month instead of like, 2-3 years...

tl;dr -- could you make this accessible in game some how? the main thing I'm interested in is the update interval. It goes between Years (by default). Could it easily be done? I'm willing to be shown how. I have some solid experience with C++ but no C# :steamfacepalm: I'll send a request to communicate about it possibly tomorrow, so I don't interfere with your Rocket League match :orochi:
Galameth 2017년 12월 10일 오전 2시 23분 
Also running into charts not displaying. I get basic city info in data tables, but no charts through Chrome.
eddymurphy@3080Ti ♥ StDeck 2017년 8월 30일 오전 9시 01분 
For me it works fine but the Button is in the middle of the screen.
Modern Pyro 2017년 8월 13일 오후 2시 14분 
Has anyone been able to port the city statistic to an editable table? I'm interested in using city growth data for research. I appreciate any help.
Junelicious 2017년 5월 23일 오전 11시 41분 
The description might need a little tweak.
Closing the game overwrites the setting file (at least it did in my case and it took me 3 reloads to properly do it) and game needs to be closed before the edit.

Also, maybe there should be an option to make viewing stats on an iPad/other tablet accessible for people without the knowledge of how config files work :)