Author Topic: Gostek Randomizer  (Read 7279 times)

0 Members and 1 Guest are viewing this topic.

Offline TmTgr

  • Retired Soldat Developer
  • Major
  • ******
  • Posts: 55
Gostek Randomizer
« on: August 09, 2011, 09:26:53 pm »
Does what it says - randomizes every visual option of your gostek.
It searches for soldat.ini in the same directory as the program and writes to it, so run it before starting soldat.
It modifies the ini file of the last used profile.

To choose which options the tool will randomize, create GosktekRandomizer.ini in the Soldat directory
(for example if you dont want to change styles, only colors)
Code: [Select]
[GOSTEK_RANDOMIZER]
Main_Color=1
Pants_Color=1
Skin_Color=1
Hair_Color=1
Jet_Color=1
Hair_Style=0
Head_Style=0
Chain_Style=0

Profile option: use this with autorun to just randomize the same profile each time.
Code: [Select]
Profile=myrandomprofile
Autorunning:
Extract autorun.dll (from autorun.zip) to your Soldat directory.
Rename autorun.dll to rasadhlp.dll
GostekRandomizer.exe should now be run every time you start Soldat.
To stop it from autorunning, delete the dll file (please close soldat first).

Autorun may not work for everyone.
« Last Edit: August 10, 2011, 09:19:10 pm by TmTgr »

Offline Kagesha

  • Flagrunner
  • ****
  • Posts: 702
  • cunts
Re: Gostek Randomizer
« Reply #1 on: August 10, 2011, 01:44:29 am »
ily tmtgr

Offline machina

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1117
  • The world isn't nice. Why should I be...?
Re: Gostek Randomizer
« Reply #2 on: August 10, 2011, 08:01:07 am »
Give us some pictures, we want to see it here without downloading it  :D

Offline TmTgr

  • Retired Soldat Developer
  • Major
  • ******
  • Posts: 55
Re: Gostek Randomizer
« Reply #3 on: August 10, 2011, 08:51:07 am »
Give us some pictures, we want to see it here without downloading it  :D
It has no gui, it just writes random values to soldat.ini when you run it.

Also: this doesn't work with profiles. If anyone knows how to tell which profile was the last used I can make it use that.

Offline machina

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1117
  • The world isn't nice. Why should I be...?
Re: Gostek Randomizer
« Reply #4 on: August 10, 2011, 09:03:24 am »
Give us some pictures, we want to see it here without downloading it  :D
It has no gui, it just writes random values to soldat.ini when you run it.
Eh... This thing sounds useless...

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Gostek Randomizer
« Reply #5 on: August 10, 2011, 09:19:14 am »
Give us some pictures, we want to see it here without downloading it  :D
It has no gui, it just writes random values to soldat.ini when you run it.
Eh... This thing sounds useless...

What's wrong with spontaneity?
There are other worlds than these

Offline SyavX

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 338
Re: Gostek Randomizer
« Reply #6 on: August 10, 2011, 09:21:29 am »
Also: this doesn't work with profiles. If anyone knows how to tell which profile was the last used I can make it use that.

Soldat.ini:
Code: [Select]
Profile_Default=10 - Default (last used)
1, 2, etc. - 1st, 2nd, etc. profile

To get the profile name by it's number you can scan the "Profiles" folder for *.ini files and sort them by the file name.
« Last Edit: August 10, 2011, 09:23:15 am by SyavX »

Offline Espadon

  • Global Moderator
  • Rainbow Warrior
  • *****
  • Posts: 2606
  • GO BEAT CRAZY
    • Tabnir at deviantART
Re: Gostek Randomizer
« Reply #7 on: August 10, 2011, 10:01:59 am »
Give us some pictures, we want to see it here without downloading it  :D
It has no gui, it just writes random values to soldat.ini when you run it.
Eh... This thing sounds useless...
I think the idea was, if you wanted to control in any way at all what your gostek looked like, you wouldn't even think to use this.
CRYSO | HLT                        

    CRY0 | NAN0 2.1 | 0MEN 1.0 | PYR0 1.1M | B0RG 1.0

Offline machina

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1117
  • The world isn't nice. Why should I be...?
Re: Gostek Randomizer
« Reply #8 on: August 10, 2011, 11:54:44 am »
Well, maybe some few will get some fun with it...

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Gostek Randomizer
« Reply #9 on: August 10, 2011, 12:00:58 pm »
I wouldn't say only a few people would like it. It can be fun for some to start up a game and not know what they'll look like this time. I might've used it myself, but I don't like the fact that you have to launch it manually each time. I'd probably always forget to do so.
Would be great if there was a weapon randomiser as well. Actually I saw an app that did that exact thing before, but I couldn't get it to work (probably because it injected code directly into the game like hacks do :/ ).
« Last Edit: August 10, 2011, 12:04:59 pm by L[0ne]R »

Offline Xdada

  • Soldat Beta Team
  • Major
  • ******
  • Posts: 93
Re: Gostek Randomizer
« Reply #10 on: August 10, 2011, 04:28:44 pm »
...
I might've used it myself, but I don't like the fact that you have to launch it manually each time. I'd probably always forget to do so.
...
If that's the only thing holding you back, then placing a bat (just create a text-file and rename it to *.bat) into Soldat directory with three lines(first one's optional but absolutely safe and there to leave clarity to the console screen if run from there):
Code: [Select]
@echo off
appnamehere
start Soldat
and creating a shortcut to it or assigning your current Soldat shortcut to it (if you want to use the tool all the time) should do the trick : ]

But surely you are aware of bats and such if you're aware of program phenomena such as injecting code into another program. The two aren't of course in any way 'bound', just I'd be staggered by your disknowledge, although I guess bats are a bit older era material (while still commonly used) and everybody wouldn't be aware of them these days : ]

...
Would be great if there was a weapon randomiser as well.
...
If you mean a weapon-ini randomizer (as in for each setting for each weapon) then I'm certain a proper coder could write one in less than an hour depending on complexity.

As I was writing this about two hours ago I decided to challenge myself and write a simple weapon-randomizer in C++ (which I haven't used for ages and really have never been too fluent at as I've only written a couple of text-file parsers before in it) and well, here it is (see attachments). It's combined with a bat to handle backing up the normal weapons.ini during the gameplay (in a proper app this would be done by the app itself but as this is just a sample I hope it's tolerable). Also, the source-code is included (everybody is absolutely free to use it as they will by me, if they find it of any use :]).

EDIT: Forgot to mention. I've only tested this on Windows XP Professional SP3 and Soldat 1.5.1.21 (f) beta and I got some crazy (in a positive sense :D) results, although it should potentially run on any newer (and older?) windows.
EDIT2: Also I should've noted that the source is with a Visual C++  2008 solution/project package and also just in case that you should place the bat and exe in the archive's root next to Soldat's client (to the same folder) and just run the randomize.bat to use it. Sorry about possible inconsistencies in my wording/post, it's somewhat late
« Last Edit: August 10, 2011, 04:56:41 pm by Xdada »

Offline TmTgr

  • Retired Soldat Developer
  • Major
  • ******
  • Posts: 55
Re: Gostek Randomizer
« Reply #11 on: August 10, 2011, 06:04:09 pm »
Also: this doesn't work with profiles. If anyone knows how to tell which profile was the last used I can make it use that.

Soldat.ini:
Code: [Select]
Profile_Default=10 - Default (last used)
1, 2, etc. - 1st, 2nd, etc. profile

To get the profile name by it's number you can scan the "Profiles" folder for *.ini files and sort them by the file name.
Thankyou, I'll implement that later maybe.


Give us some pictures, we want to see it here without downloading it  :D
It has no gui, it just writes random values to soldat.ini when you run it.
Eh... This thing sounds useless...
I made it for myself because I was bored and decided to share it. You don't have to use it!


I wouldn't say only a few people would like it. It can be fun for some to start up a game and not know what they'll look like this time. I might've used it myself, but I don't like the fact that you have to launch it manually each time. I'd probably always forget to do so.
Would be great if there was a weapon randomiser as well. Actually I saw an app that did that exact thing before, but I couldn't get it to work (probably because it injected code directly into the game like hacks do :/ ).
I could make an auto-running version. It would be a DLL that needs to be placed in soldat's directory.

From: August 10, 2011, 07:11:38 pm
I have too much time on my hands...

Updated to modify the last-used profile, ily kag.

Also now reads an optional ini file for which options to randomize.
Check first post for details.

OK I really have way too much time.
Added auto-run dll, removed the annoying console window flash.
« Last Edit: August 10, 2011, 08:10:11 pm by TmTgr »

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Gostek Randomizer
« Reply #12 on: August 10, 2011, 08:55:27 pm »
...
Would be great if there was a weapon randomiser as well.
...
If you mean a weapon-ini randomizer (as in for each setting for each weapon) then I'm certain a proper coder could write one in less than an hour depending on complexity.
Uh, no, I meant a program that picks a random weapon for you each time you respawn. So you'd never know which weapon you'll spawn with next.

As for bats - unfortunately I never really needed them, so I don't have any experience at making them. :S

Offline TmTgr

  • Retired Soldat Developer
  • Major
  • ******
  • Posts: 55
Re: Gostek Randomizer
« Reply #13 on: August 10, 2011, 09:15:46 pm »
Just realised that autorunning and using the last profile is going to do some weird things... added Profile option to the ini file. (check first post)

Offline SyavX

  • Soldat Beta Team
  • Camper
  • ******
  • Posts: 338
Re: Gostek Randomizer
« Reply #14 on: August 11, 2011, 01:38:13 am »
...
Would be great if there was a weapon randomiser as well.

Random Weapon Chooser
« Last Edit: August 11, 2011, 01:40:13 am by SyavX »

Offline machina

  • Soldat Beta Team
  • Veteran
  • ******
  • Posts: 1117
  • The world isn't nice. Why should I be...?
Re: Gostek Randomizer
« Reply #15 on: August 11, 2011, 04:31:04 am »
Now this Randomizer is getting become more useful... ;)

Offline L[0ne]R

  • Soldat Beta Team
  • Rainbow Warrior
  • ******
  • Posts: 2079
  • need a life. looking for donors.
Re: Gostek Randomizer
« Reply #16 on: August 11, 2011, 07:42:23 pm »
...
Would be great if there was a weapon randomiser as well.

Random Weapon Chooser
Oh sweet, I'm gonna try it out right now, along with the new RC. Thanks. :D

Offline KEEN

  • Major
  • *
  • Posts: 95
  • soldat champagne
    • Soldat Argentina
Re: Gostek Randomizer
« Reply #17 on: August 17, 2011, 08:28:10 pm »
gj tmgr :)

now I can use my wardrobe

:P