Page 2 of 2

Re: add commands for kick, ban, setting_newgame, restart to Gamescript

Posted: 24 Feb 2024 15:00
by agentw4b
I just want the players to be able to set some parameters of the game themselves, for example the growth of trees or the time until the end of the game... the most important commands still only go through the admin port, rcon and the console. Although I started this thread with the request that Gamescripts can do the same thing as consoles, but if it can't, then it can't, ok. I'll put up with it or send the commands through the admin port to another external program that will execute them on the server.


----------------------------------------------------------
admin.png
admin.png (69.5 KiB) Viewed 1733 times

Re: add commands for kick, ban, setting_newgame, restart to Gamescript

Posted: 24 Feb 2024 22:39
by ChillCore
agentw4b wrote: 24 Feb 2024 15:00 I just want the players to be able to set some parameters of the game themselves, for example the growth of trees or the time until the end of the game
Why should those be exposed to players and not to admins only in a MP game? ... nothing but conflicting trouble in the long run

either you 'just' play ... or you host and have admin port to ban, kick and do whatevs that is not a game-start setting ... I mean I get wanting a gui and not just console for admin stuffs ... but then don't have it available ingame for not admins

both of those settings you have full controll over when starting a game already (and should not be changed after) ... both for sp and mp

read: either you host your game or I host mine ... but you do not need any of the admin commands available to you in my game .... nor want you to have
this needs more thought ...

I mean I don't do MP games much ... but yeah ...

Re: add commands for kick, ban, setting_newgame, restart to Gamescript

Posted: 24 Feb 2024 23:13
by ChillCore
do present better ... make the admin stuffs only show to admin peeps ... don't let me stop you ... but yeah more thought ... and some things even an admin should not change midgame

have fun

Re: add commands for kick, ban, setting_newgame, restart to Gamescript

Posted: 26 Feb 2024 14:26
by _dp_
agentw4b wrote: 24 Feb 2024 07:52 I tested it with a friend and he can't see what I press for the buttons on the page, so this is not a problem.
Not seeing button presses doesn't mean data is not being sent and available to anyone with little effort.

Re: add commands for kick, ban, setting_newgame, restart to Gamescript

Posted: 26 Feb 2024 14:46
by agentw4b
I will create the Admin script anyway. I wanted to create it for about 5 years, but there was no time. At least I'll learn something from it, and then I can put useful functions for creating button menus into the Gamescript Library...

Re: add commands for kick, ban, setting_newgame, restart to Gamescript

Posted: 28 Feb 2024 20:24
by ChillCore
agentw4b wrote: 26 Feb 2024 14:46 I will create the Admin script anyway. I wanted to create it for about 5 years, but there was no time. At least I'll learn something from it, and then I can put useful functions for creating button menus into the Gamescript Library...
that's the spirit ... just don't expect this to land in trunk ... not for trees and end date... not if I get a say ....
^^^ I don't .... not a dev ...

Re: add commands for kick, ban, setting_newgame, restart to Gamescript

Posted: 29 Feb 2024 16:59
by agentw4b
So will you also block functions that have long been functional in the gamescript?
This is rather embarrassing .... such threats, it is sad that Openttd has such developers ... better read this :


GSGameSettings::SetValue

https://docs.openttd.org/gs-api/classGS ... 8fa51b80a1



(Or..we created buttons but had to cancel them because people clicked on them, that's horrible.... :-) )

Re: add commands for kick, ban, setting_newgame, restart to Gamescript

Posted: 01 Mar 2024 00:10
by ChillCore
noone is stopping you from anything ... what are these threats you are talking about ?

why do peeps keep reading more than what was said?

like just the other day someone put words in actual Devs mouths .. still waiting for the qoute....



for as far as I know I told you to continue .. but don't be sad when it does not make trunk .. and that is it.