Anuken / Mindustry-Suggestions

Repository for Mindustry suggestions and feedback
125 stars 57 forks source link

A new world processor commands concept - playback, weather control and console #5045

Closed AFARIUS closed 2 days ago

AFARIUS commented 4 weeks ago

Describe the content or mechanics you are proposing.

PLayback - new world processor command which makes it possible to play any audio files from the source code of the game. The command contains 2 options: play and stop. The "play" option contains an audio selection menu, settings for speed, volume and frequency of playback, and you can also adjust the duration of playback and the second from which playback begins if the command includes a large soundtrack. The "stop" option stops any sounds that are performed using this processor. In addition to this command, I suggest adding the ability to enable or disable the natural playback of music and sounds in the map rules menu.

Weather control - new world processor command which can start or stop weather events. It contains 2 options: start and stop. The "start" option takes into account the weather from the menu (where you need to select the desired weather), as well as the possible duration and frequency of the phenomenon (you can specify "always", then the weather will switch immediately), and starts it. The "stop" option starts the process of stopping the current weather. Moreover, any global processor on the map can control the weather.

Console - new world processor command which allows you to run the js code right during the game. It is important that this code will not be executed if it is not connected to game objects (it won't be able to run third-party scripts that are not related to Mindustry), and the execution of the code will affect ONLY the current map (if you exit and go to another map, then everything will return to normal for the player). it is also important that the code can be configured to be executed only for a specific game team (only for yellow, red or purple)

Describe how you think this content will improve the game. If you're proposing new content, mention how it may add more gameplay options or how it will fill a new niche.

The playback command will add the ability to play sound effects in addition to visual effects, which will be important for many mappers. The weather control command It will allow you to make even more atmospheric maps and add a deeper and more interesting plot to them (Just imagine: you destroyed one of the enemy cores and opened a spore laboratory. And then the plot cutscene begins, in which a spore storm is raging). The console command will give you access to an unlimited creative space. For example, you can make the speed of "Reign" exactly what you need, or, for example, make a sniper-collaris as a story boss.

Before making this issue, check the boxes below to confirm that you have acknowledged them.

camelStyleUser commented 4 weeks ago

console

yeah totally not a recipe for OS.exec("echo","hacked")

mahdoosh1 commented 4 weeks ago

console

yeah totally not a recipe for OS.exec("echo","hacked")

you havent tested it.

console has limited access.

when writing some code i noticed preserved keyword or preserved object something like this.

camelStyleUser commented 4 weeks ago

console

yeah totally not a recipe for OS.exec("echo","hacked")

you havent tested it.

console has limited access.

when writing some code i noticed preserved keyword or preserved object something like this.

I havent tested it???? bro i literally have a mod that does just that

SMOLKEYS commented 3 weeks ago

console has limited access.

no it does not.

in v6, maybe. but now it's practically unrestricted.

you are basically asking for an RCE vulnerability to be added as a feature.

AFARIUS commented 3 weeks ago

добавить That's the point, I'm asking you not to add a vulnerability, but to LIMIT the use of the console so that it is impossible to install viruses to players through world processors, for example.

camelStyleUser commented 3 weeks ago

добавить That's the point, I'm asking you not to add a vulnerability, but to LIMIT the use of the console so that it is impossible to install viruses to players through world processors, for example.

how are you going to limit it?SecurityManager?deprecated.dont import?steal a reference.

mahdoosh1 commented 3 weeks ago

bro i literally have a mod that does just that

what mod?

camelStyleUser commented 3 weeks ago

bro i literally have a mod that does just that

what mod?

haxorMindustryMod though it is broken since i forgor to pay for vps that hosts the js file

github-actions[bot] commented 2 days ago

This suggestion is now stale, and will be automatically closed.