1.4.4 >Real multi-line, not a fake like 1.4.3 I find a solution! Now you can add multi-line bloc with triple-quote: Code: """'tur', 'alg' : begin objbase.maxhp := 100; SetObjBaseWeapon(objprop, objbase, 0, 9, default, default, 110, default, default, default, True); SetObjBasePrice(objbase, 55, 0, 0, 0, 2, 0); SetObjBaseProtection(objbase, 0, 0, 0, 0, 0, 0); end;""":"""'tur', 'alg' : begin objbase.maxhp := 200; SetObjBaseWeapon(objprop, objbase, 0, 9, default, default, 110, default, default, default, True); SetObjBasePrice(objbase, 55, 0, 0, 0, 2, 0); SetObjBaseProtection(objbase, 0, 0, 0, 0, 0, 0); end;""" Please report any bugs.
Code: { "name":"mod", "version":"1.0", "info":"nothing", "author":"yquinox", "file":{ "data/scripts/lib/unit.script":{ """'tur', 'alg' : begin objbase.maxhp := 100; SetObjBaseWeapon(objprop, objbase, 0, 9, default, default, 110, default, default, default, True); SetObjBasePrice(objbase, 55, 0, 0, 0, 2, 0); SetObjBaseProtection(objbase, 0, 0, 0, 0, 0, 0); end;""":"""'tur', 'alg' : begin objbase.maxhp := 200; SetObjBaseWeapon(objprop, objbase, 0, 9, default, default, 110, default, default, default, True); SetObjBasePrice(objbase, 55, 0, 0, 0, 2, 0); SetObjBaseProtection(objbase, 0, 0, 0, 0, 0, 0); end;""" """'rus' : begin objbase.maxhp := 90; SetObjBaseWeapon(objprop, objbase, 0, 8, default, 35, 90, default, default, default, True); // c1 damage 9, max range was 100, hp was 100. it have much greater attack speed then in c1 SetObjBasePrice(objbase, 50, 5, 0, 0, 15, 0); SetObjBaseProtection(objbase, 2, 8, 10, 25, 30, 8); SetObjBaseSearchBuildVisionScore(objprop, objbase, default, 160, default, default); end;""":"""'rus' : begin objbase.maxhp := 190; SetObjBaseWeapon(objprop, objbase, 0, 8, default, 35, 90, default, default, default, True); // c1 damage 9, max range was 100, hp was 100. it have much greater attack speed then in c1 SetObjBasePrice(objbase, 50, 5, 0, 0, 15, 0); SetObjBaseProtection(objbase, 2, 8, 10, 25, 30, 8); SetObjBaseSearchBuildVisionScore(objprop, objbase, default, 160, default, default); end;""" } }, "add_file":{}, "replace_file":{}, "remove_file":[] } Your code with "tur" and "alg" works but if I add "rus" it doesnt. Did I something wrong? Or between two sesions of """ (end of first and begin of second) should be something?
You forgot "," between """'tur', 'alg' : begin objbase.maxhp := 100; SetObjBaseWeapon(objprop, objbase, 0, 9, default, default, 110, default, default, default, True); SetObjBasePrice(objbase, 55, 0, 0, 0, 2, 0); SetObjBaseProtection(objbase, 0, 0, 0, 0, 0, 0); end;""":"""'tur', 'alg' : begin objbase.maxhp := 200; SetObjBaseWeapon(objprop, objbase, 0, 9, default, default, 110, default, default, default, True); SetObjBasePrice(objbase, 55, 0, 0, 0, 2, 0); SetObjBaseProtection(objbase, 0, 0, 0, 0, 0, 0); end;""" and """'rus' : begin objbase.maxhp := 90; SetObjBaseWeapon(objprop, objbase, 0, 8, default, 35, 90, default, default, default, True); // c1 damage 9, max range was 100, hp was 100. it have much greater attack speed then in c1 SetObjBasePrice(objbase, 50, 5, 0, 0, 15, 0); SetObjBaseProtection(objbase, 2, 8, 10, 25, 30, 8); SetObjBaseSearchBuildVisionScore(objprop, objbase, default, 160, default, default); end;""":"""'rus' : begin objbase.maxhp := 190; SetObjBaseWeapon(objprop, objbase, 0, 8, default, 35, 90, default, default, default, True); // c1 damage 9, max range was 100, hp was 100. it have much greater attack speed then in c1 SetObjBasePrice(objbase, 50, 5, 0, 0, 15, 0); SetObjBaseProtection(objbase, 2, 8, 10, 25, 30, 8); SetObjBaseSearchBuildVisionScore(objprop, objbase, default, 160, default, default); end;"""
I try "," at first, but it doesnt help so I have writen here to you for help. It doesnt work in my mod - still invalid .
Oh, I found it. It should be like this and it works: Code: """'tur', 'alg' : begin objbase.maxhp := 100; SetObjBaseWeapon(objprop, objbase, 0, 9, default, default, 110, default, default, default, True); SetObjBasePrice(objbase, 55, 0, 0, 0, 2, 0); SetObjBaseProtection(objbase, 0, 0, 0, 0, 0, 0); end;""":"""'tur', 'alg' : begin objbase.maxhp := 200; SetObjBaseWeapon(objprop, objbase, 0, 9, default, default, 110, default, default, default, True); SetObjBasePrice(objbase, 55, 0, 0, 0, 2, 0); SetObjBaseProtection(objbase, 0, 0, 0, 0, 0, 0); end;""","""'rus' : begin objbase.maxhp := 90; SetObjBaseWeapon(objprop, objbase, 0, 8, default, 35, 90, default, default, default, True); // c1 damage 9, max range was 100, hp was 100. it have much greater attack speed then in c1 SetObjBasePrice(objbase, 50, 5, 0, 0, 15, 0); SetObjBaseProtection(objbase, 2, 8, 10, 25, 30, 8); SetObjBaseSearchBuildVisionScore(objprop, objbase, default, 160, default, default); end;""":"""'rus' : begin objbase.maxhp := 190; SetObjBaseWeapon(objprop, objbase, 0, 8, default, 35, 90, default, default, default, True); // c1 damage 9, max range was 100, hp was 100. it have much greater attack speed then in c1 SetObjBasePrice(objbase, 50, 5, 0, 0, 15, 0); SetObjBaseProtection(objbase, 2, 8, 10, 25, 30, 8); SetObjBaseSearchBuildVisionScore(objprop, objbase, default, 160, default, default); end;""" But is it posible to make this line: Code: end;""","""'rus' : begin looks like this?: Code: end;""", """'rus' : begin
Doesnt work for me . Sometimes it works, but after adding new parts of """:""", it doesnt. Iam writing it right via scheme but cant force to work.
It works, but divide code to 100 parts is not an option. Code: { "name":"hotkeys", "version":"1.2", "info":"Hot keys setting", "author":"Kind-king", "option":[ ["bC", "C"] ], "file":{ "data/game/var/hotkeys.cfg": { """hotkeys : section.begin // buildings [*] : struct.begin Key = C Action = build|%nat%cen struct.end""":"""hotkeys : section.begin // buildings [*] : struct.begin Key = bC Action = build|%nat%cen struct.end""" } } } How to create a fields in the modification?
Does not work, but if you divide the code that each individual part is working properly. Code: { "name":"hotkeys", "version":"1.2", "info":"Hot keys setting", "author":"Kind-king", "option":[ ["bbC", "C"], ["bbH", "H"], ["bbL", "L"], ["bbB", "B"], ["bbE", "E"], ["bbS", "S"] ], "file":{ "data/game/var/hotkeys.cfg": { """hotkeys : section.begin // buildings [*] : struct.begin Key = C Action = build|%nat%cen struct.end [*] : struct.begin Key = H Action = build|%nat%hou struct.end [*] : struct.begin Key = L Action = build|%nat%bla struct.end""":"""hotkeys : section.begin // buildings [*] : struct.begin Key = bbC Action = build|%nat%cen struct.end [*] : struct.begin Key = bbH Action = build|%nat%hou struct.end [*] : struct.begin Key = bbL Action = build|%nat%bla struct.end""", """[*] : struct.begin Key = B Action = build|%nat%bar struct.end [*] : struct.begin Key = E Action = build|%nat%aca struct.end [*] : struct.begin Key = S Action = build|%nat%sta struct.end""":"""[*] : struct.begin Key = bbB Action = build|%nat%bar struct.end [*] : struct.begin Key = bbE Action = build|%nat%aca struct.end [*] : struct.begin Key = bbS Action = build|%nat%sta struct.end""" } } }
Weird let me take a look Edit: Works fine for me with the latest version of the mod manager on a fresh installed cossacks
Is it correct ? http://www.noelshack.com/2016-47-1480072427-capture.jpg My folder 'mod' contains 'day and night.json' and 'more gamespeed modes.json' files.