[MOD][A10] Battle Stations - Ctrl+ANYKEY RTS Squads - FML Special (23.04.2015)

Started by JuliaEllie, January 04, 2015, 10:01:40 AM

Previous topic - Next topic

Shinzy

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


alfalfa140

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. ^^
Si vis pacem para bellum.


Iwillbenicetou

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.
Mod Help! The basics on how to download mods!

JuliaEllie

wow easy easy easy.. Im still working on the rewrite but when it works I might add sounds - I like the idea.

Iwillbenicetou

Mod Help! The basics on how to download mods!

JuliaEllie

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"

alphalol



Haplo

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 :)

Iwillbenicetou

Mod Help! The basics on how to download mods!

Haplo

Which one?
This mod? I would think so, else it wouldn't be released.
The Keybinding in Miscellaneous? Yes, that too.

JuliaEllie

total rewrite done :) just adding a bit of flavour shananigans - then release :)

after that Ill work on sounds.

JuliaEllie

UPLOADED complete rewrite - Have Fun!

currently working on squad names...

Iwillbenicetou

Mod Help! The basics on how to download mods!