Men of War: Assault Squad 2

Men of War: Assault Squad 2

Bot Revised V2
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!
< >
Zobrazuje se 110 z 10 komentářů
Nishtyak RUS  [vývojář] 8. zář. 2022 v 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.
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  [vývojář] 9. zář. 2022 v 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. zář. 2022 v 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  [vývojář] 12. zář. 2022 v 13.21 
This variable is used to specify path to .set files, so yeah.
Liima 13. zář. 2022 v 1.07 
ModFolderName = "mods\\Tinos\\resource\\set\\multiplayer\\units" would be the format?
Nishtyak RUS  [vývojář] 13. zář. 2022 v 12.42 
No, ModFolderName="Tinos".
Liima 23. zář. 2022 v 8.18 
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  [vývojář] 6. lis. 2022 v 4.20 
Willst du Panzer? původně napsal:
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.
< >
Zobrazuje se 110 z 10 komentářů
Na stránku: 1530 50