Men of War: Assault Squad 2

Men of War: Assault Squad 2

CheatsMod: Enhanced
 This topic has been pinned, so it's probably important
How to add new vehicles to spawn menu.
I have finally actually checked the code for the enhanced cheatsmod and fixed the guide at the time of 27.03.2024 22.05.2024.

EDIT: This guide currently doesn't work as for 05.04.2024. You can try these steps and maybe figure it out. I have gone through the mod and I think I've made it work. It is something about sorting and where you put it in relation to the value.

I recommend having Notepad++ for this.

First open one of the cheats_XXX.mi (I will use cheats_winter.mi) files in "resource\map\cheatmod\".
Then you want open it up with notepad++ (Normal notepad also works fine).

I recommend you launch mowas2_ed so that you can know what the vehicles names are.

Now this part is a bit difficult to explain so I will just give an example:
This part will explain how to add the M4A3 76mm VVSS from my Beta silly vehicle addons to the medium list.

Find the the batch of code {Entity "m12gmc" 0x0975 and paste this under it:


{Entity "m4a3e8vvss" 0x0976
{Position -379.69 1290.88}
{xform zl -90}
{TexMod "1"}
}


If you want to change the texmod of it you could just change it by adding "{TexMod "2"}" to the code under "{xform zl -90}".
Find the code {Tags "c_m12gmc" "cheat_delete" "hidden" 0x0975} and paste this under it:


{Tags "c_m4a3e8_vvss" "cheat_delete" "hidden" 0x0976}


It is important that the "0x0976" is a unique value.
Find {"cheat_usa_tank_medium_m7" and paste this under it (They all should look similar to the code):


{"cheat_usa_tank_medium_m4a3e8vvss"
{state hidden}
{text "M4A3 76(VVSS)"}
{image "m4a3e8"}
{hint "VVSS?"}
{count -1}
{score 0}
{delay 0}
{eventEnd "cheatmod/spawn/tank/11"}
{waypoint "3001"}
}


Now it is important to have the cheatmod/spawn/tank/ a uniqe number so that no other command interferes with it.
Now you find the line {"cheats/tanks/american/medium/10" and paste this over it:


{"cheats/tanks/american/medium/11"
{condition
{terms
{"1.event"
{id "cheatmod/spawn/tank/11"}
}
{"2.cmp_i"
{var "cheatmenu$"}
{op "=="}
{value 10}
}
{"3.cmp_i"
{var "cheatcountry$"}
{op "=="}
{value 2}
}
}
}
{actions
{"loop" 1
{"actor_to_waypoint"
{selector
{ignore_captured_by_user 0}
{tag c_m4a3e8_vvss}
}
{waypoint "3000"}
{clone}
{approach teleport}
}
}
{"loop" 5
{"actor_to_waypoint"
{selector
{ignore_captured_by_user 0}
{tag cheat_american_crew}
}
{waypoint "3002"}
{clone}
{approach teleport}
}
}
{"call"
{function "tankgetsfilled"}
}
{"event"
{event "cheatmod/spawn/tank/11"}
{mode reset}
{delay 0}
}
{"trigger"
{name "cheats/tanks/american/medium/11"}
}
}
}


This is what actually spawns the vehicle.
The "loop" 5 is how many crew members it will add. Change this if the tank has a different crew count than 5.

You can experiment with other vehicle by replacing everything with "m4a3vvss" (and changing the cheatmod/spawn/tank/11 to 12) to something else like "b1_bis" from beta's char b1 bis mod (1356765986).
This is a brief explanation on how to add vehicles.

Post your bugs in replies.
Last edited by Floppa gaming; May 22, 2024 @ 3:30am
< >
Showing 1-15 of 39 comments
Royal Lotus  [developer] Oct 8, 2023 @ 7:36am 
@Floppa gaming --> Hello, thank you for your kind guide post. This is the guide post that gave me an idea and i'm able to understand & modify some of the codes in the mod. I really appreciate it. :)
maatriX Oct 17, 2023 @ 9:01am 
hello man you have another linke to download the mod i dont have the game on steam i have crack
huckmurrell Oct 17, 2023 @ 9:59pm 
how does adding tanks from other mods work? just the same or?
huckmurrell Oct 17, 2023 @ 10:17pm 
I got the tank image to show up into up into the spawn menu, however upon 'spawning' no tank appears. Imma try to mess with it fix it
huckmurrell Oct 17, 2023 @ 11:06pm 
Got the code to work, although whenever the tank spawns the code doesn't end, and spawns and keeps spawning them. i tried debugging by myself, but I couldn't find any obvious reasons as to why. Please help :)
huckmurrell Oct 17, 2023 @ 11:23pm 
I recorded the spawning process, and i'll admit its hilarious. But i'd like to get this working. When I exit the spawn menu the tank stops spawning, but as soon as I reopen the menu the tank proceeds to spawn again. I matched the code with everything else and I just cannot figure this out, Thanks.
Royal Lotus  [developer] Oct 18, 2023 @ 3:32am 
@Chicken_Dodo --> Hello, i got you. :) But unfortunately, i have some business to deal with. I have to finish them first. Then i'll plan to share a guide with pictures here. I kindly ask you to wait patiently. :)

@Dark-Gamer --> Hello, i'm sorry but i don't have any other download links for this mod. But you can download it by different means. You just need to search for it, which is i can't explain it here. Try to search like how to download steam workshop mods without steam or something else.
huckmurrell Oct 18, 2023 @ 8:52am 
@Gonfaloniere Thank you, take your time please.
Royal Lotus  [developer] Oct 18, 2023 @ 10:50am 
@Chicken_Dodo --> Hello, thank you for waiting patiently. Here, please follow the steps with extra caution. One minor mistake can cause the game CTD.

https://steamcommunity.com/sharedfiles/filedetails/?id=3053923163

https://steamcommunity.com/sharedfiles/filedetails/?id=3053945038
huckmurrell Oct 18, 2023 @ 11:21am 
Yeah i got it fixed thanks ;). I also made a yt video explaining how to do it. It's not as nearly detailed as the pictures but here it is anyways.
https://www.youtube.com/watch?v=GcoEaC3W6Es
Royal Lotus  [developer] Oct 18, 2023 @ 12:18pm 
@Chicken_Dodo --> Hello, your welcome. :) YT video sounds like a good idea for people especially likes to learn by watching.
huckmurrell Oct 18, 2023 @ 10:41pm 
@Gonfaloniere is there a way to add custom ammo to the infinite ammo?
Royal Lotus  [developer] Oct 19, 2023 @ 12:09am 
@Chicken_Dodo --> Hello, yes. As far as i know, you need to find a different file.

Steam\steamapps\common\Men of War Assault Squad 2\mods\cheatsmod enchanced\resource\cheatsmod

In this folder, there is only a single file you'll find, which is what you're looking for. It's name is

--> "inf_ammo_cheatsmod.inc".

Open it with Notepad++, then i think you can solve it yourself by checking the codes, which is easier than what you have done before. For instance, there wasn't an ammo code for sWG 41 & SdKfz 25 Stuka zu Fuss. But i have found it, then added it to there. It's

--> "{item "swg41" "ammo" 2 {max 12}{value 5}}".
Last edited by Royal Lotus; Oct 19, 2023 @ 12:10am
huckmurrell Oct 19, 2023 @ 4:35pm 
Originally posted by Gonfaloniere:
@Chicken_Dodo --> Hello, yes. As far as i know, you need to find a different file.

Steam\steamapps\common\Men of War Assault Squad 2\mods\cheatsmod enchanced\resource\cheatsmod

In this folder, there is only a single file you'll find, which is what you're looking for. It's name is

--> "inf_ammo_cheatsmod.inc".

Open it with Notepad++, then i think you can solve it yourself by checking the codes, which is easier than what you have done before. For instance, there wasn't an ammo code for sWG 41 & SdKfz 25 Stuka zu Fuss. But i have found it, then added it to there. It's

--> "{item "swg41" "ammo" 2 {max 12}{value 5}}".
Thanks ^-^
Floppa gaming Oct 21, 2023 @ 3:24am 
Originally posted by Dark-Gamer:
hello man you have another linke to download the mod i dont have the game on steam i have crack
That was how I originally made the mod. I used the workshopdownloader.io when it used to work.
< >
Showing 1-15 of 39 comments
Per page: 1530 50