Random option
Moderator: Moderators
Random option
Would it be possible to have a "random" option for picking which side (arm/core), and would people like this or not?
-
- Posts: 665
- Joined: 06 Jun 2006, 19:49
Make the host generate the random team shouldnt be to hard todo.
Was thinking of doing similar thing with spring-gui.
As for single side mods, just hide the option, random team for 1->1 sides is still side 1. So other than hiding the option wouldnt be hard. Maybe addition required to protocol code (not sure)
Damn threads = annoying. Anyway back to coding lobby code
Was thinking of doing similar thing with spring-gui.
As for single side mods, just hide the option, random team for 1->1 sides is still side 1. So other than hiding the option wouldnt be hard. Maybe addition required to protocol code (not sure)
Damn threads = annoying. Anyway back to coding lobby code
Re: Random option
yeah, from my programers point of view this is very little work with good result.LordMatt wrote:Bug Satirik about it.
Re: Random option
It needs to be engine or protocol side, Satirik isn't working on the protocol, is he? Or are you suggesting a lazy "random" option that doesn't show you which side you are but still sends it to all other players for script generation?
Re: Random option
Um, you could do this with LUA and a Gadget, really easily. Randomly swap out the commander units on the first frame. Very simple. Then nobody knows what they're playing until play begins, either- more challenging.
Re: Random option
...And this lua solution can be controlable via mod options, which would make it TASClient (and whatever other lobbies that support mod options) compatible without any changes in TASClient itself.
Re: Random option
But you'd have to tell the host "I want to be random". There are currently no player-accessible lua settings AFAIK.
Re: Random option
Couldn't you just make a Luarule gadget for this? Just add a dummy "Random" faction to your sidedata file so users can choose it, and have the gadget swap out the dummy commander with a randomly selected one from sidedata, except for Random again of course.
Each mod would have to include it on their own, but that's not necessarily a bad thing. If someone doesn't want random in their mod (perhaps a one-faction mod or something) they aren't forced to. Plus, we could set our own faction icon thing for it that way, and of course, no extra lobby compatibility would be required, since it should already work in theory.
Each mod would have to include it on their own, but that's not necessarily a bad thing. If someone doesn't want random in their mod (perhaps a one-faction mod or something) they aren't forced to. Plus, we could set our own faction icon thing for it that way, and of course, no extra lobby compatibility would be required, since it should already work in theory.
Re: Random option
And what the 'mod options' are for? You'll have to make a separate 'random race' checkbox for all the teams of course (or just limit it to first 4 teams, or whatever, since AFAIK it's not possible to dynamically change mod options list), but this can be done. Then you just replace the commander with a random one once the game starts using a gadget or LuaCOB.KDR_11k wrote:There are currently no player-accessible lua settings AFAIK.
Re: Random option
someone make it and ill include it for sure.Gnome wrote:Couldn't you just make a Luarule gadget for this? Just add a dummy "Random" faction to your sidedata file so users can choose it, and have the gadget swap out the dummy commander with a randomly selected one from sidedata, except for Random again of course.
Each mod would have to include it on their own, but that's not necessarily a bad thing. If someone doesn't want random in their mod (perhaps a one-faction mod or something) they aren't forced to. Plus, we could set our own faction icon thing for it that way, and of course, no extra lobby compatibility would be required, since it should already work in theory.
Re: Random option
Easy to code. Might get to it over the next few days.