(http://i.imgur.com/cwSKVwg.png)
naming your squads is currently broken.. FML
Hello everyone,
I integrated a RTS style squad system into the game. Hit Ctrl + ANYKEY to assign squads and the SQUADKEY to select the squad. This is still in the working and I will add a few more features later.
Now you can set battle stations for your squads with Ctrl+Alt+SQUADKEY and send them there with Alt+SQUADKEY
Also squad names are in - RIGHTCtrl+SQUADKEY to rename it.
Dont worry its all documented with ingame tooltips :)
NOW WITH SOUNDS!!
GL & HF (Download me) (https://www.dropbox.com/s/28wm2hwkx57wcp1/BattleStations.zip?dl=0)
sounds "borrowed" from C&C
You need to start a new game to use this mod!
if you use 1-4 you are overwriting the speed control buttons, either that or it activates both the squad and the speed control button. Either way, this is not something I like to have happen. I recommend only using 5-0. Or you could make it so that ctrl+1 sets the group and shift+1 selects it. I'm not sure if that would cause the speed button to activate still though, haven't tested it just yet.
Quote from: Igabod on January 04, 2015, 10:20:35 AM
if you use 1-4 you are overwriting the speed control buttons, either that or it activates both the squad and the speed control button. Either way, this is not something I like to have happen. I recommend only using 5-0. Or you could make it so that ctrl+1 sets the group and shift+1 selects it. I'm not sure if that would cause the speed button to activate still though, haven't tested it just yet.
You are right. The mod wont overwrite any keybindings but yes if you use 1-4 you will also fire the time controls but I let it in anyways because of reasons :D maybe I will change it to the num-block instead of alpha
Quote from: JuliaEllie on January 04, 2015, 10:23:53 AM
Quote from: Igabod on January 04, 2015, 10:20:35 AM
if you use 1-4 you are overwriting the speed control buttons, either that or it activates both the squad and the speed control button. Either way, this is not something I like to have happen. I recommend only using 5-0. Or you could make it so that ctrl+1 sets the group and shift+1 selects it. I'm not sure if that would cause the speed button to activate still though, haven't tested it just yet.
You are right. The mod wont overwrite any keybindings but yes if you use 1-4 you will also fire the time controls but I let it in anyways because of reasons :D maybe I will change it to the num-block instead of alpha
If you mean the keypad to the right of the keyboard then I think that would be an excellent additional area. But some people play on laptops which don't have a keypad to the right so it shouldn't be the only one. I think that letting people know in the OP about the 1-4 buttons would probably be sufficient. I personally would end up using the keypad on the right for my squad assignments cause I use a full keyboard that is just plugged into my laptop or a full keyboard that is wireless when I have batteries for it.
This mod is usefull but first to fix it replace the squad keys with F1,etc. or with others,but the keys 1,2, etc are being used for speed time.
Changed from Alpha to KeyPad/NumBlock
Added Battle Stations wohoo..
Squad names soon to come YAY..
(http://a.deviantart.net/avatars/a/l/almightyhelixplz.png)All praise our Lord and Saviour Lord Helix (http://a.deviantart.net/avatars/a/l/almightyhelixplz.png)
A GUI for selecting can also mitigate the keypress issue.
Quote from: Anduin1357 on January 04, 2015, 01:04:42 PM
A GUI for selecting can also mitigate the keypress issue.
It could, but that might cause incompatibilities with EdB's UI mod which a lot of people use.
Quote from: Igabod on January 04, 2015, 01:06:54 PM
Quote from: Anduin1357 on January 04, 2015, 01:04:42 PM
A GUI for selecting can also mitigate the keypress issue.
It could, but that might cause incompatibilities with EdB's UI mod which a lot of people use.
Im rewriting the whole thing at the moment :D It became unfeasible to expand the whole system as it is now.
You know what would be cool? Sounds.
Like at all rts games, when you select an squad, and when you send them somewhere.
Besides great mod.. will brings the city fighting to an new era!
Edit: But i think finding the right soundfiles could be hard.. i mean how do talk the pawns? Like normal humans? Dont think so.. hrm... maybe a bit like the jawas from star wars.
acknowledge!
yes sir!
infantry out!
reporting!
Ahh... dune 2.. ;D
Panzergrenadiers moving out. Oops wrong game! but something like that
I think more something like:
1: Yes sir!= Kla Truta!
2: Attaaaack!!= Bartaaaaaaaaaaaa!!
And so on. Some "kaudawelsch" that no one understands. :D
No one recognizes the reference? No one? Ok, I'll go in the corner now and rethink my life.
Quote from: Iwillbenicetou on January 04, 2015, 02:10:49 PM
No one recognizes the reference? No one? Ok, I'll go in the corner now and rethink my life.
My wild guess would be Sudden Strike? Good old WW2 game.
also UTINIIII!!
what what? what!
Yeshmiloood
okhaay
raaighthoo
Crossssteeelbooys
crossteelbooyss
croosssteeellboys
tabouuu
youdaboss
iinthepipe five by fiiive
Ohh but nothing ever beats the bowmen from TA: kingdoms
Quote from: Iwillbenicetou on January 04, 2015, 02:10:49 PM
No one recognizes the reference? No one? Ok, I'll go in the corner now and rethink my life.
Rangers: 1. Jerry: zero. ^^
Work work work work.......
Quote from: JuliaEllie on January 04, 2015, 02:19:00 PM
Quote from: Iwillbenicetou on January 04, 2015, 02:10:49 PM
No one recognizes the reference? No one? Ok, I'll go in the corner now and rethink my life.
My wild guess would be Sudden Strike? Good old WW2 game.
Company of Heroes 2. Good game, $40 dollars (don't know in Euros) top-down Strategy. Sort of like Rome Total War, except no campaign map, only battles.
wow easy easy easy.. Im still working on the rewrite but when it works I might add sounds - I like the idea.
Just the link: http://www.companyofheroes.com/en_us/ (http://www.companyofheroes.com/en_us/)I think the Url should be changed to where your country is...
ok I have a problem:
public void savePositionsOfGroup(KeyCode key)
{
if (isValidSquad(key))
{
foreach (Pawn pawn in this.SquadKeys[key].pawnsInSquad)
{
this.SquadKeys[key].battleStations[pawn] = pawn.Position;
}
}
}
public void sendPositionsOfGroup(KeyCode key)
{
if (isValidSquad(key))
{
Log.Error("sending");
foreach (Pawn pawn in this.SquadKeys[key].pawnsInSquad)
{
pawn.playerController.Drafted= true;
pawn.pather.StartPath(new TargetPack( this.SquadKeys[key].battleStations[pawn]),Verse.AI.PathMode.OnCell);
Log.Error(pawn.ToString() + " at " + this.SquadKeys[key].battleStations[pawn].ToString());
}
}
}
in the safe method I assign a Pawn to a specific IntVec3 but when I want to read it out I get "Key not present in Dictionary"
You could take a look at https://ludeon.com/forums/index.php?topic=3612.0 (https://ludeon.com/forums/index.php?topic=3612.0) and see how he does it. This feature is already in that mod.
C&C for saturn, german version lol
My version is rather simple because I had some serious issues back in alpha 7 with the saving and loading of a list of pawn. In alpha 7 the game crashed when you tried to load a null list. I never bothered to remove my safety for that to test if it does work now.
So my code is still a bit simple, but you can find most of what you need in there. It works with both positioning and grouping. And some other stuff..
The source code is at the end of the first post. Look for Keybinding or ColonistGroups. Can't remember the name right now :)
Does the mod work?
Which one?
This mod? I would think so, else it wouldn't be released.
The Keybinding in Miscellaneous? Yes, that too.
total rewrite done :) just adding a bit of flavour shananigans - then release :)
after that Ill work on sounds.
UPLOADED complete rewrite - Have Fun!
currently working on squad names...
Will you tell us when the updates are game-breaking?
Quote from: Iwillbenicetou on January 04, 2015, 08:36:34 PM
Will you tell us when the updates are game-breaking?
I try to but I might not notice it because I often start new worlds and maps during the test phase.
... Ctrl + Alt + Del ... Alt+ Del. Oops!!!
ADDED Squad names!!
working on sound now!
running out of modifier keys..
This is going to be SUPER USEFUL. Thank you so much for making this! Funny thing is, I actually tried to do the Ctrl+# thing when I first played to see if it worked. Too much C&C. xD
Its hard for me to find good sound files.. Send/post your favourite sound files I could use for the squad commands.
ADDED SOUNDS!!
Borowed them from C&C - if you have better sounds post them or send them and I might put them in :)
your so punny... I am ... the one ... who mods!
Quote from: Iwillbenicetou on January 05, 2015, 06:50:10 PM
your so punny... I am ... the one ... who mods!
I did nazi dat coming.
Someone makes a game which gets a lot of free awesome content and you think that game is mine? No I am the one who mods!
I wonder who/when will we first see "I can't find the ANYKEY on my keyboard."
Maybe I should start.
...I can't find the ANYKEY on my keyboard. Help?
Quote from: StorymasterQ on January 05, 2015, 08:21:20 PM
I wonder who/when will we first see "I can't find the ANYKEY on my keyboard."
Maybe I should start.
...I can't find the ANYKEY on my keyboard. Help?
(http://www.quickmeme.com/img/be/be1086cd20c8c02ae8eeac16defcda450fac5f7cf367b9b9da04567aae72218e.jpg)
Found it..
(http://upload.wikimedia.org/wikipedia/commons/2/2a/Keyboard-anykey.jpg)
Is there a way to remove a keybinding once it's been set? And disable the sounds?
no not yet but it looks like its time to "invent" config files in RimWorld
And this is once again why I start with you to see what sort of awesomeness has rolled off the press since I last checked in with you. Just got back into town, sat down, and bam! a mod that should have always been a part of the game.
Can you have people be a part of more than one group? Like key 5 all people, key 6 only snipers, etc? I guess I will start up a new super modded world of awesomeness, set up some Marine drop beacons and see what sort of insanity ensues. Btw, C & C sounds meets with the highest forms of approval ;D
Quote from: Ouan on January 07, 2015, 01:42:07 AM
And this is once again why I start with you to see what sort of awesomeness has rolled off the press since I last checked in with you. Just got back into town, sat down, and bam! a mod that should have always been a part of the game.
Can you have people be a part of more than one group? Like key 5 all people, key 6 only snipers, etc? I guess I will start up a new super modded world of awesomeness, set up some Marine drop beacons and see what sort of insanity ensues. Btw, C & C sounds meets with the highest forms of approval ;D
Thanks a lot - yes your pawns can be in several squads.
I hate to be a bother, but is there any way you could make a compatibility patch for this and the personal shields from "Enhanced Defense: Phoenix Edition"? I don't know how your code works, but if I'm not mistaken you would just have to copy/paste some code and change it to accept the "ShieldedHuman" race from that mod.
It should work with those if they use the Pawn ThingClass.
It uses the ThingClass "Enhanced_Defence.PersonalShields.ShieldedPawn"
Quote from: MeMyselfAnDie on January 07, 2015, 04:24:20 AM
It uses the ThingClass "Enhanced_Defence.PersonalShields.ShieldedPawn"
Well then Jaxxa apparently needs to learn how to use the appropiate ThingClass (https://raw.githubusercontent.com/schmich/kappa/master/assets/kappa.png)
My laptop lagged right when I assigned someone so all key has been set to her :( Is there anyway to unassign it?
Quote from: Austin_Kim on January 08, 2015, 12:23:17 PM
My laptop lagged right when I assigned someone so all key has been set to her :( Is there anyway to unassign it?
Same issue, once you hit your keyboard with a bunch of keys to assing them to a squad, you have a bunch of tags flying across your screen, unassign option please :|
I don't know if there's a way to do it in game, but you can use an XML editor on your save to remove squads. A good editor is Notepad++. Open up your save, search for "battlestations" without the quotes, you'll see,
<li Class="battlestations.newSelectorThing">
<Squads>
<keys>
<li>M</li>
<li>K</li>
</keys>
<values>
<li Class="battlestations.Squad">
<SquadName>Mike</SquadName>
<PawnsInSquad>
<li>Human22</li>
</PawnsInSquad>
<Battlestations>
<keys />
<values />
</Battlestations>
<KeyBind>M</KeyBind>
</li>
<li Class="battlestations.Squad">
<SquadName>Kappa</SquadName>
<PawnsInSquad>
<li>Human22</li>
</PawnsInSquad>
<Battlestations>
<keys />
<values />
</Battlestations>
<KeyBind>K</KeyBind>
</li>
</values>
</Squads>
</li>
That shows two squads, squad Mike and Kappa, which share the same single squadmember and they've been assigned the M and K keys respectively.
To remove the squad and keybind, under <Keys> delete whichever you don't want, including the tags. If I wanted to remove squad Mike and the M key, I'd delete <li>M</li>.
Then, I'd look at squad name tags, find <SquadName>Mike</SquadName>, and then starting from the <li Class="battlestations.Squad"> above the squad name, select and delete everything between <li Class="battlestations.Squad"> and the end of the </li> tag below the <KeyBind>M</KeyBind> line. It should look like this now,
<li Class="battlestations.newSelectorThing">
<Squads>
<keys>
<li>K</li>
</keys>
<values>
<li Class="battlestations.Squad">
<SquadName>Kappa</SquadName>
<PawnsInSquad>
<li>Human22</li>
</PawnsInSquad>
<Battlestations>
<keys />
<values />
</Battlestations>
<KeyBind>K</KeyBind>
</li>
</values>
</Squads>
</li>
If I wanted to remove all squads, I'd do the same for all of them and end up with,
<li Class="battlestations.newSelectorThing">
<Squads>
<keys>
</keys>
<values>
</values>
</Squads>
</li>
how can you ungroup a squad? i grouped a squad to w which is a window movement key and it is annoying everytime i press to move the window it selects them. trying to simply have nothing selected and setting an empty squad to w doesn't reset it. and changing the squad to another key doesn't erase the previous squad.
Same with me...
This mod rocks.
How to remove a squad ?
(http://i.imgur.com/aIajqg0.png)
UPDATERINO
Quote from: JuliaEllie on February 19, 2015, 06:37:32 AM
(http://i.imgur.com/aIajqg0.png)
UPDATERINO
Hooray for updates!
What does this mod do? All the hotkeys don't work for me, and there are zero in-game tooltips to explain. That, or they're really well hidden for no good reason at all.
Quote from: Hoovytaurus on February 21, 2015, 03:23:57 PM
What does this mod do? All the hotkeys don't work, the tactical computer just calls people to itself (which you can do manually extremely easily) and there are no in-game tooltips.
Taktical computer?? Wrong mod :D
Quote from: JuliaEllie on February 21, 2015, 03:30:16 PM
Quote from: Hoovytaurus on February 21, 2015, 03:23:57 PM
What does this mod do? All the hotkeys don't work, the tactical computer just calls people to itself (which you can do manually extremely easily) and there are no in-game tooltips.
Taktical computer?? Wrong mod :D
Yeah, I realized :P but the squad stuff doesn't work on old saves, only new ones.
It possible to hide tips about squad name and so on which displayed on the top of colonist figurines?
And reset the destination?
hate to be a bother but the mod doesnt seem to work for me. i dont get any errors but holding ctrl and hitting a key doesnt do anything for me. it shows up in my mod list but it doesnt work. i can provide any more information that you need, i really want to be able to use this! thanks.
I'm quite bad suggesting things, but i had an idea to expand this mod further:
Adding a function to recall scattered pawns to base, have them eat (and maybe take a nap) if below a certain %, in preparation for an attack. It may be their last, after all, might as well thank them for their sacrifice :)
Just because It's quite annoying when enemies are preparing to strike and we have to do this manually for each of the how many pawns we might have, since we don't want them to fight a horde while exhausted, starving, and take the massive mood hit from all that plus all the blood, filth, colonist and enemy corpses. Many times i had massive breakdowns because of such, and it feels silly. After all, they don't get a mood bonus from winning a fight... now that i mention it, why not add that? It makes a lot of sense.
how do i delete the squads, im stuck until i figure it out
When I select a squad, only one member of the squad goes to the battle stations.
I can't figure out why. :)
Started a new game altogether so the mod is working, except:
The squad key persists just fine when you load a game, but the squad positions do not. I target multiple guys and assign them to "K", hitting "K" even if I load a game still works just fine, they all have the floating "K" over their heads. However if I assign them to a position with Ctrl+Alt+K, make a new save game/overwrite another save game, then load that game, the "K" still works to target them all, but the Alt+K to send them to their saved positions is gone.
Basically the battle stations I assign them to isn't carrying into save games. Am I doing something wrong here?
Hey miss ellie, would it be possible for you to add a "delete group" function, so if you accidentally bind the wrong key, you can change it?
not working for me either, i get the text when i pres the apropriate keys saying assing, send etc but cant assing send save or rename, nothing, sad would spare me much time
Working fine here. Dig the old voices..lol started searching for some old games after hearing them. Good work.
How do you turn off the sound.. love the mod...
I had a a zombie apocalypse mod and this didnt work on it jus so oteers know :D i like this anyways.
(http://i.imgur.com/D3kTe3P.png)
Hi, My Notebook has the right 'Ctrl' and 'Alt' Key in on button! Then I Cannot test this mod, any way to use alternative keys?
Quote from: tommofork on January 13, 2015, 10:11:00 AM
I don't know if there's a way to do it in game, but you can use an XML editor on your save to remove squads. A good editor is Notepad++. Open up your save, search for "battlestations" without the quotes, you'll see [...]
This really works well, thank you! Also everyone who wants to delete squads, this stuff isn't really complicated.
Besides, great mod, I really love it ;D
any chance of an update? i haven't played rimworld in months, but i remember using this mod quite extensively. this mod is a godsend for me, and im sure many like me.