Cities: Skylines

Cities: Skylines

141 értékelés
City Web Server
   
Díjazás
Kedvenc
Kedvenc
Törlés
Mod
Fájlméret:
Közzétéve:
Frissítve:
811.508 KB
2015. ápr. 5., 7:53
2015. jún. 1., 21:37
8 változásjegyzék ( megnézés )

Feliratkozás a letöltéshez
City Web Server

Leírás
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 megjegyzés
toast 2023. máj. 30., 16:30 
Anyone have an update version of this?
Rena 2019. márc. 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. máj. 1., 15:35 
would love an update from this mod with more infoscreens
Angelino 2018. febr. 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. dec. 19., 23:13 
just made it work, fairly effortlessly; fyi, you guys, hold [Control] + Mouse Drag = moves the world icon
iM4g3Ry 2017. dec. 19., 23: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. dec. 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. aug. 30., 9:01 
For me it works fine but the Button is in the middle of the screen.
Modern Pyro 2017. aug. 13., 14: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. máj. 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 :)