Lua callout. Sets AllyTeam for a given team# to whatever we want.
Not important for P.U.R.E., if anybody cares, but it'd be nice for what I'm working on this weekend, as there doesn't seem to be a way to force people to not be allies on the Lobby end (that I know of).
AllyTeam(team,allyTeam)
Moderator: Moderators
Re: AllyTeam(team,allyTeam)
What we need, and is actually worth anywhere near the effort to implement it, is to have the startscript parsed by lua.
Re: AllyTeam(team,allyTeam)
script.txt, you mean?
I was going to do it, but then trepan did a bunch of tdf->lua conversions as well (and cleaned up all my rubbish code) and I thought he had done that, too.
I was going to do it, but then trepan did a bunch of tdf->lua conversions as well (and cleaned up all my rubbish code) and I thought he had done that, too.
Re: AllyTeam(team,allyTeam)
I don't see an advantage in that.
The script.txt should just removed and replaced by a hostbased system, so just the host generates something similar to the script.txt and sends it to the clients (the clients should just start spring.exe -ip 123.123.321.1).
The script.txt should just removed and replaced by a hostbased system, so just the host generates something similar to the script.txt and sends it to the clients (the clients should just start spring.exe -ip 123.123.321.1).
Re: AllyTeam(team,allyTeam)
The host already sends out the script in git; not sure what you mean. But there is still the issue of wanting to make specific changes or put down specific constraints that currently need lobby modifications.
Re: AllyTeam(team,allyTeam)
Yeah, exactly. It's one thing, to say in giant, bold letters, "DON'T PLAY THIS WITH ALLIES OR IT WILL NOT BE FUN"... but players are players, and won't generally listen to that. It's not a vital thing, the game will run without errors, if teams are allied... it just won't play correctly, and there isn't any way to change the Ally state, so I'm stuck on that for now.But there is still the issue of wanting to make specific changes or put down specific constraints that currently need lobby modifications.
Re: AllyTeam(team,allyTeam)
Please no! I love to be able to play Spring with handmade (or tiny program made) scripts instead of having to deal with the multiplayer lobby everytime.jK wrote:The script.txt should just removed