Men of War: Assault Squad 2

Men of War: Assault Squad 2

Bot Revised V2
Liima 7. sep. 2022 kl. 0:03
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!
< >
Viser 1-10 af 10 kommentarer
Nishtyak RUS  [udvikler] 8. sep. 2022 kl. 9:42 
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 kl. 0:17 
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  [udvikler] 9. sep. 2022 kl. 8:05 
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 kl. 11:20 
Thanks for help. One more question: ModFolderName = " Tinos " is this correct command or do I need file path or something else?
Nishtyak RUS  [udvikler] 12. sep. 2022 kl. 13:21 
This variable is used to specify path to .set files, so yeah.
Liima 13. sep. 2022 kl. 1:07 
ModFolderName = "mods\\Tinos\\resource\\set\\multiplayer\\units" would be the format?
Nishtyak RUS  [udvikler] 13. sep. 2022 kl. 12:42 
No, ModFolderName="Tinos".
Liima 23. sep. 2022 kl. 8:18 
Many thanks! I get it wok! thanks for help and this awesome mod!
Willst du Panzer? 5. nov. 2022 kl. 20:38 
I can't get the AI for ASV UMW to work, can you help? I'm new to MoWAS modding....
Nishtyak RUS  [udvikler] 6. nov. 2022 kl. 4:20 
Oprindeligt skrevet af 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.
< >
Viser 1-10 af 10 kommentarer
Per side: 1530 50