Men of War: Assault Squad 2

Men of War: Assault Squad 2

Bot Revised V2
Liima 7 Sep, 2022 @ 12:03am
Help
Thanks for this mod! I’m trying to get it work whit Tinos mod. Can you give me example of readSetFile command how it is formulated correctly that mod will read army.set and other needed files. Many thanks in advantage!
< >
Showing 1-10 of 10 comments
Nishtyak RUS  [developer] 8 Sep, 2022 @ 9:42am 
Calling of readSetFile() function looks like this: readSetFile("mods\\"..mod_content.version_current.."\\resource\\set\\multiplayer\\units\\army\\"..army..".set", purchases, army), where "mod_content.version_current" is name of the mod's folder (mod is Tinos in your case), and "army" is string that represents name of the .set file containing units for current army (e. g. "bas.set"). This example of readSetFile() function is taken from ASV UMW40k .lua files.
Liima 9 Sep, 2022 @ 12:17am 
Hi, Thanks for hint!
My code looks like this:
print("Reading units for: ", army)
local path="mods\\"Tinos"\\resource\\set\\multiplayer\\units\\"
readSetFile(mods\\"Tinos"\\resource\\set\\multiplayer\\units\\"squads.set", purchases, army)
readSetFile(mods\\"Tinos"\\resource\\set\\multiplayer\\units\\"vehicles.set", purchases, army)
readSetFile(mods\\"Tinos"\\resource\\set\\multiplayer\\units\\"vehicles_"..army..".set", purchases, army)
readSetFile(mods\\"Tinos"\\resource\\set\\multiplayer\\units\\"vehicles_x.set", purchases, army)
readSetFile(mods\\"Tinos"\\resource\\set\\multiplayer\\units\\"vehicles_xnotanks.set", purchases, army)
return purchases
end

However, when trying to create LAN game “session is full” warning popup and cannot create game. Any ideas. Many thanks!
Nishtyak RUS  [developer] 9 Sep, 2022 @ 8:05am 
You pass string data type in readSetFile() function so quotation marks in your case must be like this: "mods\\Tinos\\resource\\set\\multiplayer\\units\\vehicles.set". Also if you have variable called "path" specifying .set files location folder, you can pass string to function like this: path.."squads.set", where path is variable containing string, .. is concation of strings and "squads.set" is string.

As for your game creation problem i can say that i never met this problem before and it is definetely not bot's problem. Try to search around in web for solution.
Liima 12 Sep, 2022 @ 11:20am 
Thanks for help. One more question: ModFolderName = " Tinos " is this correct command or do I need file path or something else?
Nishtyak RUS  [developer] 12 Sep, 2022 @ 1:21pm 
This variable is used to specify path to .set files, so yeah.
Liima 13 Sep, 2022 @ 1:07am 
ModFolderName = "mods\\Tinos\\resource\\set\\multiplayer\\units" would be the format?
Nishtyak RUS  [developer] 13 Sep, 2022 @ 12:42pm 
No, ModFolderName="Tinos".
Liima 23 Sep, 2022 @ 8:18am 
Many thanks! I get it wok! thanks for help and this awesome mod!
I can't get the AI for ASV UMW to work, can you help? I'm new to MoWAS modding....
Nishtyak RUS  [developer] 6 Nov, 2022 @ 4:20am 
Originally posted by Willst du Panzer?:
I can't get the AI for ASV UMW to work, can you help? I'm new to MoWAS modding....
Oh, you dont need to. If you look onto ASV bot files, you will see that it is already integrated.
< >
Showing 1-10 of 10 comments
Per page: 1530 50