I cant Change The Weapons [Solved]
Moderator: Moderators
-
- Recruit Womprat Killer
- Posts: 12
- Joined: Fri Jun 30, 2017 11:53 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
I cant Change The Weapons [Solved]
I am having trouble change the weapon of the jet trooper. I have the rep side in my side folder and went into the rep_inf_default_jettrooper and changed the weapon1 to rep_weap_inf_rifle. I munged the sides and went to test it out but there were no changes. Does anyone know why this could be?
Last edited by pk01 on Sat Nov 25, 2017 8:37 pm, edited 1 time in total.
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: I cant Change The Weapons
Is the dc in your .lua for the side loading part?
Hidden/Spoiler:
-
- Recruit Womprat Killer
- Posts: 12
- Joined: Fri Jun 30, 2017 11:53 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: I cant Change The Weapons
Yes I did that but nothing happened. I tried changing the weapon of the engineer and nothing happened again.
-
- Sergeant Major
- Posts: 234
- Joined: Sat Feb 04, 2017 5:52 pm
- xbox live or psn: No gamertag set
- Location: Milky Way, Solar System, Earth, Antarctica
Re: I cant Change The Weapons
Could you post your .lua please?
-
- Recruit Womprat Killer
- Posts: 12
- Joined: Fri Jun 30, 2017 11:53 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: I cant Change The Weapons
This is from c_con.
Hidden/Spoiler:
-
- Jedi
- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: I cant Change The Weapons
rep inf default jettrooper should be rep inf ep3 jettrooper.
-
- Recruit Womprat Killer
- Posts: 12
- Joined: Fri Jun 30, 2017 11:53 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: I cant Change The Weapons
Ok so I changed it. Now I added the dc: and got rid of jett default. But now whenever I start it up it goes to loading screen then crashes. I made a new world to see what was causing this and it was the adding dc:. What am I doing wrong?
-
- Jedi
- Posts: 1161
- Joined: Mon Mar 21, 2011 8:12 pm
- Projects :: Star Wars Battlefront - Tides of War
- xbox live or psn: I have ps4
- Location: STALKER!
- Contact:
Re: I cant Change The Weapons
The problem isn't the DC, it's something in your sides. The fact that it's crashing now is good, it means the game is loading your custom sides. Could you post the error log that you get from running the debug version of the game??
-
- Recruit Womprat Killer
- Posts: 12
- Joined: Fri Jun 30, 2017 11:53 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: I cant Change The Weapons
The debug log is just the BFront2 text you get from running modtools right?
Hidden/Spoiler:
-
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: I cant Change The Weapons
Correct.pk01 wrote:The debug log is just the BFront2 text you get from running modtools right?
As for your problem, it looks as if there's a missing weapon class that's trying to be used:
Code: Select all
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\Weapon.cpp(1604)
Weapon base class "com_weap_inf_lightsaber" not found
-
- Recruit Womprat Killer
- Posts: 12
- Joined: Fri Jun 30, 2017 11:53 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: I cant Change The Weapons
I found it but what do I do with it? I don't know why this would happen because I didn't change any of the weapons except the jet trooper to getting a rifle.
- Anakin
- Master of the Force
- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: I cant Change The Weapons
You copied the stock REP folder right?? So you copied the Heros as well.
This will add yoda as a hero to your map. What you did not copy was the common folder, or you miss the single file in the common folder.
Let me start explaining the common folder to you. Pretty sure it's something the most beginning modders do not know about:
You have multiple fractions and for each you have a own lvl file such as rep, cis, ... But they all have some values in common. Such as the termaldetonator. So the base files go all to the common FOLDER(!!) if you name your file just com_inf_....odf and put it in the rep folder it won't work. So let's say the file is in the common folder those files will be merged into ALL other fraction files (rep, cis, all, imp). That's why you need to munge the common side at first everytime you did some changes and AFTER that you can munge the sides.
In your case you made a custom cis and rep side, but in your common files you miss the lightsaber (used by maul and yoda).
2 solutions:
1) remove yoda and maul completely from your custom (dc:) lvl and load them from the stock rep file instead
2) add the missing file to the common folder, remunge all sides, or munge them manuell (common first and rep + cis second)
If you ONLY want to add the rifle to the jettrooper you should ONLY add the jettrooper with all needed files to your side folder and munge it. In the lua you'll load the jettrooper from your dc:rep.lvl and the other sides from the stock lvl files (without dc).But if you just wanted to start with the jettrooper, solution 2 would be the best choice for you. To understand the structure of SWBF2 and how the files belong to each other you better start with the last option i explained to you (only jettrooper and nothing else)
Code: Select all
SetHeroClass(REP, "rep_hero_yoda")
Let me start explaining the common folder to you. Pretty sure it's something the most beginning modders do not know about:
You have multiple fractions and for each you have a own lvl file such as rep, cis, ... But they all have some values in common. Such as the termaldetonator. So the base files go all to the common FOLDER(!!) if you name your file just com_inf_....odf and put it in the rep folder it won't work. So let's say the file is in the common folder those files will be merged into ALL other fraction files (rep, cis, all, imp). That's why you need to munge the common side at first everytime you did some changes and AFTER that you can munge the sides.
In your case you made a custom cis and rep side, but in your common files you miss the lightsaber (used by maul and yoda).
2 solutions:
1) remove yoda and maul completely from your custom (dc:) lvl and load them from the stock rep file instead
2) add the missing file to the common folder, remunge all sides, or munge them manuell (common first and rep + cis second)
If you ONLY want to add the rifle to the jettrooper you should ONLY add the jettrooper with all needed files to your side folder and munge it. In the lua you'll load the jettrooper from your dc:rep.lvl and the other sides from the stock lvl files (without dc).But if you just wanted to start with the jettrooper, solution 2 would be the best choice for you. To understand the structure of SWBF2 and how the files belong to each other you better start with the last option i explained to you (only jettrooper and nothing else)
-
- Recruit Womprat Killer
- Posts: 12
- Joined: Fri Jun 30, 2017 11:53 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: I cant Change The Weapons
Thank you that worked. The problem was (I'm dumb) that I totally forgot to put a common folder in sides.