Jump to content


Photo

Sorting Soldier Utility


  • Please log in to reply
6 replies to this topic

#1 Admiral Harkov

Admiral Harkov

    Captain

  • Forum Members
  • PipPipPipPip
  • 113 posts

Posted 30 September 2004 - 10:57 AM

This is a small utility I wrote for sorting the soldiers, it is the very first version and I'm not sure if I'll ever add some funcionality, like sorting by such a criterium included in the command line.
Now you have just two options: either you order all of them, by placing in order the numbers they got for their current sorting (being 0 the first on th elist and so the first to go out the skyrangers) or selecting one soldier and moving him/her to a new position.
I thinks its work is clearly enough while you see it's questions while running, so not readme is given, just a the zipped exe.
You have to extract it in the game directory, so when it asks you for the game you want to edit finds it.
Open the command line, go to the directory and type soldman.
I guess you can use it while playing, but I haven't tried it (I notice this just now). Later I'll check it and edit this to tell you for sure.

P.D. - As you see below that short is a typo, of course my proggy doesn't make them midgets ;), but I have no will to upload it again.

Attached Files


Edited by Admiral Harkov, 01 October 2004 - 10:30 AM.


#2 stewart

stewart

    Programming Department

  • [Xenocide Senior Members]
  • 10,528 posts

Posted 30 September 2004 - 02:54 PM

Typo in topic title fixed. I'll leave correcting the post and download file name to the whim of the admiral.
Posted Image
I'm starting to like the heavy cannon more and more.

#3 Admiral Harkov

Admiral Harkov

    Captain

  • Forum Members
  • PipPipPipPip
  • 113 posts

Posted 01 October 2004 - 10:26 AM

Oops! I knew something sounded wrong with short. :hammer:
I checked that and it seems the game loads the file from the start and then my program doesn't change it while running. Well, you always can save, exit and load after modifying the sorting.

EDITED: Exit doesn't mind go to windows, but abandon game | Yes | Load game.

Edited by Admiral Harkov, 02 October 2004 - 09:44 AM.


#4 stewart

stewart

    Programming Department

  • [Xenocide Senior Members]
  • 10,528 posts

Posted 01 October 2004 - 11:39 AM

Ah fugidabadit. :wave:
Posted Image
I'm starting to like the heavy cannon more and more.

#5 Brick-To-Face

Brick-To-Face

    Captain

  • Xenocide Recruit
  • 150 posts

Posted 25 October 2006 - 09:13 AM

Oof, I suppose this has long been abandoned, but I just tried it out. The individual sort was very ambiguous, and did not do what I asked. When I tried the all-at-once method, it crashed and messed up that savegame :( I was wondering if the source is available, I'd like to fiddle with it...

#6 Zombie

Zombie

    Colonel

  • Xenocide Creative-Text Departmen
  • 2,947 posts

Posted 24 October 2007 - 06:00 PM

Nice editor, but I wonder why the huge size? At 442kb it's almost as large as the CE executable of X-COM itself. OMG

- Zombie
The Mr. Grognard of X-COM

Zombie: Empirical data's your only man, when formulating a research plan.
A soldier's death is never in vain if it makes the formula more plain.
A few dozen make a better case for refining that third decimal place.
They call me Zombie because I don't sleep, as I slowly struggle to climb this heap,
of corpses, data points, and trials, but from the top - I'll see for miles!


#7 Admiral Harkov

Admiral Harkov

    Captain

  • Forum Members
  • PipPipPipPip
  • 113 posts

Posted 06 October 2008 - 06:00 AM

Meh, I lost password then got my attention off X-COM and stopped looking around before the second to last post.

Wew, I didn't even remember I had done something like this ever.

Not that I'm expecting much interest as we have xcomutils and other patches doing it, but if there's interest I may try to dig it from my old back up CDs.

As for Zombie's question, I did it when I was starting to learn C/C++ and was done to help having the soldiers sorted as player wants and to practice my programming, so I guess the file size is due to the compiling options; at the start I didn't use the compiler's optimization options and that affects the exe's size big time. If I had fed the -O2 I guess the size would have dropped below 20KB

Edited by Admiral Harkov, 06 October 2008 - 06:03 AM.