Jump to content


Photo

Strike Force: How to edit inventories/pre-placed weapons?


  • Please log in to reply
11 replies to this topic

#1 Samz

Samz
  • Members
  • 57 posts

Posted 14 October 2023 - 11:20 AM

I've been messing around with the mod tools, I've managed to unpack the files of one of the levels but after that I've had no such luck figuring  things out. 

 

Is this something impossible? 

I've tried stuff like seeing if it's in the SEC file but all of the Sec tools either do nothing or throw up an error. (I presume they were for sec files of older games which presumably are different.) 



#2 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 610 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 14 October 2023 - 11:25 PM

Nothing is impossible :D We just don't have the right tools yet.
The biggest problem is that most text files are compressed. If you open them with an editor you'll only see the string "CSFFBS" but can't do anything with them.
 
But I think I figured out how to decode those files into normal text files.
For testing purposes I have converted the following file. The game can read my generated text file and accepts changes.

43 53 46 46 42 53 00 7F 01 00 00 00 09 00 00 00  CSFFBS..........
04 00 00 00 03 00 00 00 00 00 00 00 04 00 00 00  ................
FF FF 02 00 03 00 00 00 FF FF FF FF 00 00 00 00  ÿÿ......ÿÿÿÿ....
00 00 00 00 00 00 00 00 FF FF 05 00 05 00 00 00  ........ÿÿ......
FF FF FF FF 01 00 00 00 00 00 00 00 01 00 00 00  ÿÿÿÿ............
FF FF 05 00 07 00 00 00 FF FF FF FF 02 00 00 00  ÿÿ......ÿÿÿÿ....
00 00 00 00 02 00 00 00 FF FF 05 00 00 00 00 00  ........ÿÿ......
FF FF FF FF 03 00 00 00 00 00 00 00 01 00 00 00  ÿÿÿÿ............
FF FF 03 00 07 00 00 00 2E 49 4D 41 47 45 00 0A  ÿÿ.......IMAGE..
00 00 00 2E 46 4C 49 5F 4E 41 4D 45 00 05 00 00  ....FLI_NAME....
00 2E 46 4C 49 00 0C 00 00 00 2E 49 53 5F 47 45  ..FLI......IS_GE
4E 45 52 49 43 00 15 00 00 00 66 6F 74 6F 5F 61  NERIC.....foto_a
6C 65 6D 61 6E 5F 67 65 73 74 2E 70 6E 67 00 05  leman_gest.png..
00 00 00 67 31 37 34 00 05 00 00 00 67 31 37 35  ...g174.....g175
00                                               .

The resulting text file:

[
  .IMAGE "foto_aleman_gest.png"
  .FLI_NAME "g174"
  .FLI "g175"
  .IS_GENERIC "g174"
]

This is only a small step, a complete mission script contains hundreds of lines.



#3 Zakxaev68

Zakxaev68

    Stalking in the shadows

  • Members
  • 163 posts
  • Location:Bulgaria

Posted 15 October 2023 - 05:43 AM

Anything Herberts' takes a crack at is pretty much possible, @Samz

Thank god we still have you around, @herbert3000, other major modders who done epic amounts of work, disappeared in time, unfortunately.  :thumbsupcool:  :thumbsupcool:


comm-boot-camp-promo-revora-join-us-co.p


<<< CLICK ON THE IMAGE TO DO SO >>>


#4 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 610 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 15 October 2023 - 10:26 PM

I think I am on a good way. The result of a large file looks pretty good. But I still have to check if the game can read the file or if I have generated faulty data.

Attached File  Escape.scn.txt   500.79KB   76 downloads

 

 



#5 Samz

Samz
  • Members
  • 57 posts

Posted 15 October 2023 - 10:33 PM

I think I am on a good way. The result of a large file looks pretty good. But I still have to check if the game can read the file or if I have generated faulty data.

attachicon.gif Escape.scn.txt

I'm impressed.

I honestly wouldn't know the first thing about decoding text.


Edited by Samz, 15 October 2023 - 10:33 PM.


#6 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 610 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 18 October 2023 - 07:50 PM

Hi, just created a new thread here:

https://forums.revor...script-decoder/



#7 Samz

Samz
  • Members
  • 57 posts

Posted 23 October 2023 - 02:43 PM

It's been found out how to do so, thanks to SOMYST from the Commandos Bootcamp discord:

 

In the level's .gsc file, you will find "ADD_ARMA" which is adding weapons to a character's inventory.

 

In the level's BBD Folder then Armas.bbd (You will have to decode this file) you will find the ids of all weapons in the level. (As well as possibly alter their stats/which slot they fit in?)

 

By changing the ids of weapons, you can replace the gear.

 

For instance in "gestapo.gsc" (Trapped if I remember)

 

(
"CADENA"
"+ + + EQUIPACION DEL ESPIA + + +"
)
)
(
"ADD_ARMA"
(
"PLAYER"
)
(
"ARMA_CLASSID"
41
)
)

 

"ARMA_CLASSID"

41  is giving the Spy his PPK, change that and you can give him a Mauser as SOMYST did:

 

image (2).png

 

It also seems you can ignore "limits" with this as I managed to give Green Beret the PPK in Cold Reception, replacing his shotgun and he had both the Colt and Walter PP in his inventory  (when normally you can only have one pistol.)  as well as Somyst giving Spy the Mauser which he normally can't pickup.


Edited by Samz, 23 October 2023 - 02:44 PM.


#8 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 610 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 24 October 2023 - 04:49 PM

You've got it!
Here is a cheat sheet that shows you the ID and name of each entry in Armas.bdd:
Armas.png

This zip contains the entries of the other bdd files:
Attached File  CSF_BDD.zip   112.52KB   151 downloads



#9 Samz

Samz
  • Members
  • 57 posts

Posted 26 October 2023 - 11:57 AM

You've got it!
Here is a cheat sheet that shows you the ID and name of each entry in Armas.bdd:
Armas.png

This zip contains the entries of the other bdd files:
CSF_BDD.zip


Being able to change this thanks to SOMYST will be fun to mess around with once I have the time.

#10 herbert3000

herbert3000

    Guilty Until Proven Innocent

  • Division Admins
  • 610 posts
  • Location:Austria
  • Division:Commandos HQ
  • Job:Division Admin

Posted 29 October 2023 - 10:59 PM

Hi,

I've combined the individual *.bdd files from each mission into single files.

Attached File  BDD.zip   86.71KB   135 downloads

 

That means that if you extract all *.pak files and then save the files from the attached zip in the BDD folder, you can modify all missions without having to repack the archives.



#11 Samz

Samz
  • Members
  • 57 posts

Posted 02 December 2023 - 06:32 PM

A new discovery thanks to SOMYST in the Discord, it's possible to change NPC weapons in a level.

You need to open the map's "BDD" folder then decode and open up the "objetos" folder.

You can find each "ID" of every NPC (To my understanding, "generic" ids like Officers tend to be copy/pasted" and change their ARMAS like with the player.

 

Here's some Russian/German soldiers given the STG44. (and they seem to not have animations for it but it seems they can still shoot you, at least at close range.)

Curiously changing their "equipped" weapon doesn't change the actual weapon they drop upon death.

 

 

 

post-577423-0-18758000-1701541936_thumb.post-577423-0-65339600-1701541914_thumb.

Attached Thumbnails

  • CommXPC 2023-12-02 18-26-29-729.jpg
  • CommXPC 2023-12-02 18-25-57-817.jpg


#12 SOMYST

SOMYST
  • Members
  • 9 posts
  • Location:Ukraine
  • Projects:CSF Beta Content Mod

Posted 08 January 2024 - 01:36 PM

Hi,

I've combined the individual *.bdd files from each mission into single files.

attachicon.gif BDD.zip

 

That means that if you extract all *.pak files and then save the files from the attached zip in the BDD folder, you can modify all missions without having to repack the archives.

Sad there is no ids for multiplayer objetos
Like Jagd-Kommando character etc.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users