Rseding91 wrote:badgamernl wrote:Rseding91 wrote:Thanks for the report. That's however working as intended: the lua commands are not part of the RCON interface and as such have no concept of RCON or where they're called from.
For example: in the Lua command it calls "player.print(...)" which is sent to the player - the game isn't going to also send that to RCON.
Then the command system should be redone then because to just output back the returned String or another workaround... because it's getting pretty frustrating...
It's not a matter of redoing anything: it's a fundamental part of how game logic works: you're telling the game to execute a Lua command and it does so. The Lua command doesn't know who executed it - it's simply going to run and do what it was programmed to do. A lua command has no "output" - it could do nothing or it could create 10,000 files - the RCON interface simply tells the game to execute the command and that's what happens.
It would be nice to have a method to do this, and as a programmer I know its not that hard (determining how the game is coded) and certainly not impossible to do, so please don't push that bs on me. the lua command KNOW who sent it when in game, normal commands KNOW where it came from, OTHERWISE it would NOT reply to rcon when you do /time or /players, so in turn the lua commands could have another piece of code added for printing to rcon, that only works when rcon is detected, should not be difficult to do since the underlining code is already there.
but here is the REAL issue I see here, its a matter of a player who is requesting a feature that would NOT be hard to do, but to me it seems like you are making excuses, saying "thats how its suppose to work because it doesn't know that it came from rcon" or "rcon works that way, you send it commands and it does what you send it", what happen to the day that developers actually game a damn? Don't get me wrong, the game is great, I am a very big fan, and that is why I am running a server. I know its an alpha game, and it will get better, but it seems all the developers now a days only care about themselves or their bottom line. Maybe I am mistaken, but when all I see from most of the developers lately is excuses, its pretty sad. Its not just games, its all over, I stopped supporting invision power board, I wont purchase a new license anymore from them, because of 1 simple thing, a developer plain out being disrespectful to a CUSTOMER about a feature they removed that pissed a HUGE amount of their customer's off, and it was because the developers did not see a point in the feature anymore, but 100s of customers were using it, upgraded and got screwed over. Now I know that is not the situation here, but my point still stands, an hour or 2 of your time could fix this simple request, but instead you are disregarding it because "that is how it is suppose to work", excuse my language here, but that is pure bullshit. Such a setup would be a huge benefit to anyone with custom mods or custom code on their server that use rcon.
Let me explain a simple situation that I encounter that would make this request a good one in my eyes. right now I using the command.lua in the save file so that I don't have to force players to download a mod, especially since there is no way for the players to know what mod needs to be downloaded unless they know the server and are in the server's discord, or on the server's website. Can't forget the fact that my code is custom, its not a mod that is on a website, its all custom. The command is quite simple, take the stats using
Code: Select all
table.tostring(game.forces['player'].item_production_statistics.input_counts)
(and the other stats)
and save them to files server side only, this allows me to using a script to download it via ftp and parse it, the script takes some time to do the handshake, connect and download it via ftp. however when I parse it, its fast, I then can save the stats to a database and then my players can use my discord bot to get the stats or see it online. Now with a way to run commands via rcon I could skip the whole script downloading the files, save on resources, and do live stats since rcon is quick and painless for my other scripts to access with less performance hits then the way I am doing now.
Now as it seems the original poster has a different plan, another situation in which it would help. Sadly what I am seeing is excuses and total disregard to what the original poster is asking about, quite sad really. If I was in that situation as a developer, I would take it as a challenge, look at the code and figure it out, since it wouldn't just benefit 1 or 2 server admins, it would benefit any of them that do custom mods or code. However, it seems in your eyes, my views as well as the original poster are not of your concern, guess making money does that to developers. An indie developer just starting out would of looked at this as a challenge or a benefit to help players out, but like you, most established developers shrug it off or make excuses.
Well mark that is another situation the factorio developers losing my respect.
I thank you for reading this, because I know that your schedule is busy, and because even if I do have less respect for you, I still respect this game you have made, regardless of the little things like this.