Page 1 of 1

How to change weapons they won't show up ingame [Solved]

Posted: Wed Apr 24, 2013 11:16 pm
by Lorul1
Hello I have been dealing with this problem for about a week now I've checked other post and none seam to be helping. All I'm trying to do is change a simple republic episode 2 clone troopers (sniper) weapon to a rifle or shotgun (it dosent matter just to anything) I tryed opening up the clones default sniper odf file and changeing it. I tryed a Manuel clean. I tryed coping the whole clone engineer class odf and coping and pasting the lua. I've tryed what I said above to other troopers (even a wookie). the problem is i munge and play and the trooper still has the same weapon before i tryed to add in the other weapons. I looked at the ep2 sniper odf the default odfs, but nothing's working :cry: keep in mind that i have copyed and pasted the rep side file so thati can edit the units. think the data for the weapons are in another file :? . if anyone can help me or just give me an example of a working sniper lua with a working shotgun I will be very thankful :D also I will post my lua and sniper units lua I will also post my error log even thogh I don't think there is an error. if there is anything else you want me to post I will (p.s. I actually don't know were to find my error log so if you need that just tell me where it is) thank you for your help :)

Re: How to change weapons they won't show up ingame

Posted: Thu Apr 25, 2013 3:13 am
by Bob
Havn't seen your LUA yet, but from the symptoms I'd guess you forgot to put

Code: Select all

dc:
into

Code: Select all

ReadDataFile("SIDE\\rep.lvl",
Hidden/Spoiler:
ReadDataFile("dc:SIDE\\rep.lvl",
is how it should look.
Custom sides always require the dc:, it tells the LUA to load a side from your mod's folder (your modified rep side) instead from the game itself (stock rep side).

Re: How to change weapons they won't show up ingame

Posted: Thu Apr 25, 2013 4:39 pm
by Lorul1
Thank you do much it works its people like you who make gametoast such a great place if I where general grievous I would give you 4 thumbs up :lol: