Ludeon Forums

Ludeon Forums

  • August 03, 2021, 01:16:25 AM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  
Pages: 1 [2] 3 4 ... 6

Author Topic: [MOD][A10] Battle Stations - Ctrl+ANYKEY RTS Squads - FML Special (23.04.2015)  (Read 39769 times)

Shinzy

  • Battering ram
  • Global Moderator
  • Transcendent
  • ****
  • Posts: 3105
  • Ramming speeed!
    • View Profile
    • My mods, all of them!

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

Logged

alfalfa140

  • Muffalo
  • *
  • Posts: 1
  • Dwarf
    • View Profile

No one recognizes the reference? No one? Ok, I'll go in the corner now and rethink my life.
Rangers: 1. Jerry: zero. ^^
Logged
Si vis pacem para bellum.

Berengar

  • Colonist
  • ***
  • Posts: 159
  • Refugee
    • View Profile

Work work work work.......
Logged

Iwillbenicetou

  • Tester
  • Colonist
  • **
  • Posts: 584
  • Mods are my lifeline
    • View Profile

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

JuliaEllie

  • Colonist
  • ***
  • Posts: 774
  • I am the one who mods.
    • View Profile

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

Iwillbenicetou

  • Tester
  • Colonist
  • **
  • Posts: 584
  • Mods are my lifeline
    • View Profile

Just the link: http://www.companyofheroes.com/en_us/I think the Url should be changed to where your country is...
Logged
Mod Help! The basics on how to download mods!

JuliaEllie

  • Colonist
  • ***
  • Posts: 774
  • I am the one who mods.
    • View Profile

ok I have a problem:

Code: [Select]
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

  • Muffalo
  • *
  • Posts: 12
  • Refugee
    • View Profile

You could take a look at https://ludeon.com/forums/index.php?topic=3612.0 and see how he does it. This feature is already in that mod.
Logged

john pretzel

  • Colonist
  • ***
  • Posts: 143
  • Refugee
    • View Profile

C&C for saturn, german version lol
Logged

Haplo

  • Global Moderator
  • Planetologist
  • ****
  • Posts: 2135
  • Shadow
    • View Profile

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

Iwillbenicetou

  • Tester
  • Colonist
  • **
  • Posts: 584
  • Mods are my lifeline
    • View Profile

Does the mod work?
Logged
Mod Help! The basics on how to download mods!

Haplo

  • Global Moderator
  • Planetologist
  • ****
  • Posts: 2135
  • Shadow
    • View Profile

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

JuliaEllie

  • Colonist
  • ***
  • Posts: 774
  • I am the one who mods.
    • View Profile

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

after that Ill work on sounds.

JuliaEllie

  • Colonist
  • ***
  • Posts: 774
  • I am the one who mods.
    • View Profile

UPLOADED complete rewrite - Have Fun!

currently working on squad names...

Iwillbenicetou

  • Tester
  • Colonist
  • **
  • Posts: 584
  • Mods are my lifeline
    • View Profile

Will you tell us when the updates are game-breaking?
Logged
Mod Help! The basics on how to download mods!
Pages: 1 [2] 3 4 ... 6