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

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

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

Post 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 :)
Bob
Brigadier General
Brigadier General
Posts: 633
Joined: Thu May 27, 2010 4:28 am
Location: at home

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

Post 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).
User avatar
Lorul1
Rebel Colonel
Rebel Colonel
Posts: 562
Joined: Wed Apr 24, 2013 10:34 pm
Projects :: Assault on Theed
Games I'm Playing :: Battlegrounds
xbox live or psn: No gamertag set
Location: Your House

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

Post 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:
Post Reply