Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic-ify plugin #20

Open
2 tasks
alifeee opened this issue Feb 18, 2024 · 0 comments
Open
2 tasks

Generic-ify plugin #20

alifeee opened this issue Feb 18, 2024 · 0 comments

Comments

@alifeee
Copy link
Owner

alifeee commented Feb 18, 2024

There is not much stopping the Mumble plugin being used for any game.

The Factorio mod portion of this project is very small

script.on_nth_tick(5, function()
for index, player in pairs(game.connected_players) do
local info = "XYZ, Player, sUrface, Server\n" .. "x: " .. player.position.x .. "\n" .. "y: " ..
player.position.y .. "\n" .. "z: " .. 0 .. "\n" .. "p: " .. index .. "\n" .. "u: " ..
player.surface.index .. "\n" .. "s: " .. game.get_player(1).name .. "\n"
game.write_file("mumble_positional-audio_information.txt", info, false, player.index)
end
end)

A similar script could be written for any game (Terraria, Don't Starve, ...) to output position.

What would be needed is:

@alifeee alifeee changed the title Generify plugin Generic-ify plugin Feb 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant