LUA Help Needed! -1 reply

Please wait...

Starkiller2356

SW Force Unleashed 2!!

50 XP

16th April 2010

0 Uploads

281 Posts

0 Threads

#1 8 years ago

So I got a bunch of units ingame and I want the AI to build them in skirmish. I went to the file called TacticalMultiplayerBuildLandUnitsGeneric.lua and added in the line to build them (I use notepad++). I found it strange that the lines were in gray and the lines I added are in black. After editing it the AI won't build anything now :(! I think there was a post on this before but I can't find it. Could someone please help me? I am a noob at coding .lua files. Also I was wondering how to enhance the AI and make them real tough (build a lot, smart, use tactics, etc.). I know this was done on a few mods but like I said I don't understand very much about .lua files. Thanks anyone in advance.




D3matt

I take what n0e says way too seriously

27,515 XP

20th November 2007

0 Uploads

2,554 Posts

1 Threads

#2 8 years ago

Notepad++ may be hiding some formatting from you. Try using just plain notepad or wordpad and see if you notice anything different between your lines.




Starkiller2356

SW Force Unleashed 2!!

50 XP

16th April 2010

0 Uploads

281 Posts

0 Threads

#3 8 years ago

Thanks for your reply. I looked at the my lines compared to the lines that were already there and it looks the exact same formatting wise. I can post the code here if you like to see it, but I will be adding more units to it later on for my mod. I don't know what I did wrong. Thanks