Men of War: Assault Squad 2

Men of War: Assault Squad 2

Bot Revised V2
Liima 2022 年 9 月 7 日 上午 12: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!
< >
目前顯示第 1-10 則留言,共 10
Nishtyak RUS  [開發人員] 2022 年 9 月 8 日 上午 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 2022 年 9 月 9 日 上午 12: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  [開發人員] 2022 年 9 月 9 日 上午 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 2022 年 9 月 12 日 上午 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  [開發人員] 2022 年 9 月 12 日 下午 1:21 
This variable is used to specify path to .set files, so yeah.
Liima 2022 年 9 月 13 日 上午 1:07 
ModFolderName = "mods\\Tinos\\resource\\set\\multiplayer\\units" would be the format?
Nishtyak RUS  [開發人員] 2022 年 9 月 13 日 下午 12:42 
No, ModFolderName="Tinos".
Liima 2022 年 9 月 23 日 上午 8:18 
Many thanks! I get it wok! thanks for help and this awesome mod!
Willst du Panzer? 2022 年 11 月 5 日 下午 8:38 
I can't get the AI for ASV UMW to work, can you help? I'm new to MoWAS modding....
Nishtyak RUS  [開發人員] 2022 年 11 月 6 日 上午 4:20 
引用自 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.
< >
目前顯示第 1-10 則留言,共 10
每頁顯示: 1530 50