Get VersionNumber with /config

Post your ideas and suggestions how to improve the game.

Moderator: ickputzdirwech

Post Reply
illmaren
Long Handed Inserter
Long Handed Inserter
Posts: 78
Joined: Mon Jun 27, 2016 3:25 pm
Contact:

Get VersionNumber with /config

Post by illmaren »

Is it possible to add to the /config command or add an new command altogether which delivers the ServerVersion?

dont want to ask the multiplayer string for this more or less trivial information ;%

daniel34
Global Moderator
Global Moderator
Posts: 2761
Joined: Thu Dec 25, 2014 7:30 am
Contact:

Re: Get VersionNumber with /config

Post by daniel34 »

Something like this?

Code: Select all

/c game.player.print(game.active_mods['base'])
quick links: log file | graphical issues | wiki

illmaren
Long Handed Inserter
Long Handed Inserter
Posts: 78
Joined: Mon Jun 27, 2016 3:25 pm
Contact:

Re: Get VersionNumber with /config

Post by illmaren »

yeah something like this...

but is it possible to use it without triggering the anti cheat system there with the achievments?

edit:/ I mean I only want the version number there is no cheat in that.
want it for this here: http://illmaren.de/server (its in german atm) to show which server is on which version (using rcon here)


Edit²:/ I just figured out that this command does not work in the console...which I need for rcon ;$
Edit³:/ I just read that the print() command sends the message to ALL player in the console...so its quite the anouncement to the server....as i´m not caching the results atm that would result to spam...;%

one command dedicated to the version would be cool ;%

User avatar
ssilk
Global Moderator
Global Moderator
Posts: 12888
Joined: Tue Apr 16, 2013 10:35 pm
Contact:

Re: Get VersionNumber with /config

Post by ssilk »

Why not just look into the logfiles? :geek:

Code: Select all

   0.001 2017-05-04 23:37:50; Factorio 0.15.6 (build 29362, mac, alpha)
   0.004 Operating system: Mac OS X 10.12.4
   0.005 Program arguments: "/Applications/factorio.app"
   0.005 Read data path: /Applications/factorio.app/Contents/data
   0.005 Write data path: /Users/ssilk/Library/Application Support/factorio
   0.005 Binaries path: /
   0.018 System info: [CPU: Intel(R) Core(TM) i7-4558U CPU @ 2.80GHz, 4 cores, RAM: 16384MB]
   0.059 Display options: [FullScreen: 1] [VSync: 1] [UIScale: 60%] [MultiSampling: OFF] [Screen: 255]
   0.060 Available display adapters: 1
   0.060  [0]: resolution 1440x900px at [0,0]
   0.060 Create display on adapter 0. Size 1280x720 at position [70, 72].
   0.433 Initialised OpenGL:[0] Intel Iris OpenGL Engine; driver: 2.1 INTEL-10.24.45
   0.544 Graphics settings preset: medium
   0.544 Graphics options: [Graphics quality: normal] [Video memory usage: high] [Light scale: 100%] [DXT: false]
It's the first line of the current-log.
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...

illmaren
Long Handed Inserter
Long Handed Inserter
Posts: 78
Joined: Mon Jun 27, 2016 3:25 pm
Contact:

Re: Get VersionNumber with /config

Post by illmaren »

because i want it to work on different Servers too ;& like website on Server 1 factorio on server 2 and this works only if the log file is in var/htdocs and can be accessed trough internet ;%
These are some pretty special settings just to display later than the version of the server ;%

And making it possible to access the .log file trough internet is quite the huge security risk because rcon port and pass are in the log too ;%

Post Reply

Return to “Ideas and Suggestions”