Help With Custom Trooper / Gun
Moderator: Moderators
-
bhawkgoalie10
- Private Second Class
- Posts: 60
- Joined: Mon Dec 29, 2008 1:55 pm
Help With Custom Trooper / Gun
If anyone can help me out that'd be greatly appreciated. I tried looking around for similar topics but nothing popped up.
Anyways, want I want to have done is a custom trooper and a custom gun to go with it. I'm making a tribute mod for my clan and I'm creating a trooper for each one of the ones that impacted me the most as their favorite trooper. For example, my reg would be -DEAD-Mission_Failed.
At first, to modify the gun for my reg, I edited the common rifle ODF because that was the highest parent file, yet that effected the CIS side too =P. I was able to edit the color, speed (lol hilarious), etc but then I thought it was easier to just copy all the trooper and rifle files and rename my own - didn't work out.
So my question is: How can I make my own trooper and gun using the same geometric files, but the changes only effecting that one trooper class?
*Notes* I'm not using a disc, parents took that away so im using the no-disc method, and im pretty sure i dont have an error log, but i do have a munge log.
Anyways, want I want to have done is a custom trooper and a custom gun to go with it. I'm making a tribute mod for my clan and I'm creating a trooper for each one of the ones that impacted me the most as their favorite trooper. For example, my reg would be -DEAD-Mission_Failed.
At first, to modify the gun for my reg, I edited the common rifle ODF because that was the highest parent file, yet that effected the CIS side too =P. I was able to edit the color, speed (lol hilarious), etc but then I thought it was easier to just copy all the trooper and rifle files and rename my own - didn't work out.
So my question is: How can I make my own trooper and gun using the same geometric files, but the changes only effecting that one trooper class?
*Notes* I'm not using a disc, parents took that away so im using the no-disc method, and im pretty sure i dont have an error log, but i do have a munge log.
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: Help With Custom Trooper / Gun
and that's why it affected both the CIS and REP rifle...it will also affect the IMP and ALL rifle as well...I edited the common rifle ODF because that was the highest parent file
now if you want to edit just one rifle you need to make a custom side
if you don't know what this is or don't know how to do it go here first.
http://www.gametoast.com/forums/viewtop ... 27&t=12729
I'm assuming you do since you knew where to look for the rifle
remove all changes you made to the common rifle then copy and paste the lines you want to edit ie color of laser, rate of fire...etc into the sides rifle file ie rep_weap_inf_rifle or rep_weap_inf_rifle_ord you get my point the game looks at the individual side class first before going to the common weapon.
then munge and you should be fine (also make sure you have the proper side checked in the munge box)
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Help With Custom Trooper / Gun
YaNkFaN wrote:now if you want to edit just one rifle you need to make a custom side
Not necesarily. All you need to do is copy the lines from the parent odf and paste them into your team's weapon odf. So, if you want to increase speed (lol hilarious) for just the republic's rifle, go into the common rifle odf and copy and paste the speed lines into the child's odf. Then adjust as you will. Any information in the child odf will override the parent odf.
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: Help With Custom Trooper / Gun
All you need to do is copy the lines from the parent odf and paste them into your team's weapon odf.
right but the team's weapon .odf must be in a custom side i believe otherwise the game won't read it it must be in data_abc/sides/( name of side)/odf otherwise i believe the game won't read it
- Fiodis
- Master of the Force

- Posts: 4145
- Joined: Wed Nov 12, 2008 9:27 pm
- Projects :: Rannoch + Tientia + Tools Programming
Re: Help With Custom Trooper / Gun
Well, of course it has to be there. I meant that you don't have to make a new sides folder, and a new ODF and REQ and MSH and MUNGED and all. You could toss the odf in the rep sides folder or something.
-
bhawkgoalie10
- Private Second Class
- Posts: 60
- Joined: Mon Dec 29, 2008 1:55 pm
Re: Help With Custom Trooper / Gun
what i did in the beginning was copy the common and rep sides to my mod's sides and then just put the DC in front of REP in my lua. it worked but yes, it did affect all sides.
now, i WILL be creating my own side because im going to be modifying every trooper on rep. because of this, should i copy the rep troopers, guns, etc and rename to fit my side? example: instead of rep_inf_ep3trooper i would rename it smd_inf_mf. of course, i'd rename all the MSHs ODFs too.
ill try it out and edit this post when im done.
--
*EDIT*
i renamed the rep_inf_ep3_trooper to smd_inf_ep3_trooper, copied the parent lines of code to be overritten, and all of that worked out perfectly. but...my changes for the rifle havent worked =/. i did everythign exactly the same for the rifle. do weapons need REQs?
--
*EDIT 2*
played around with it and it worked! cool, now im going to edit the texture but i cant find the file to edit it on photoshop. does anyone have the file rep_weap_inf_rifle to download or should i reinstall?
--
*EDIT 3*
sorry for all the edits, but encountering some more problems. there arent any AI using my custom trooper, anything to fix that?
now, i WILL be creating my own side because im going to be modifying every trooper on rep. because of this, should i copy the rep troopers, guns, etc and rename to fit my side? example: instead of rep_inf_ep3trooper i would rename it smd_inf_mf. of course, i'd rename all the MSHs ODFs too.
ill try it out and edit this post when im done.
--
*EDIT*
i renamed the rep_inf_ep3_trooper to smd_inf_ep3_trooper, copied the parent lines of code to be overritten, and all of that worked out perfectly. but...my changes for the rifle havent worked =/. i did everythign exactly the same for the rifle. do weapons need REQs?
--
*EDIT 2*
played around with it and it worked! cool, now im going to edit the texture but i cant find the file to edit it on photoshop. does anyone have the file rep_weap_inf_rifle to download or should i reinstall?
--
*EDIT 3*
sorry for all the edits, but encountering some more problems. there arent any AI using my custom trooper, anything to fix that?
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: Help With Custom Trooper / Gun
@ Edit 2
this is the texture files for the rifle
rep_1st_weap_inf_rifle.tga
can you play as your custom trooper in game and if you can post your abcc_con.lua
this is the texture files for the rifle
rep_1st_weap_inf_rifle.tga
can you play as your custom trooper in game and if you can post your abcc_con.lua
-
bhawkgoalie10
- Private Second Class
- Posts: 60
- Joined: Mon Dec 29, 2008 1:55 pm
Re: Help With Custom Trooper / Gun
well i think ive worked most of this out myself. i got the AI to play it (i had 1,1 on the addunitclass), i realized MY pic editor (jasc paintshop pro, very similar to photoshop but only $7) wouldnt save the targa's correctly, and thanks to the skinning tut i got that all squared away. i just cant seem to get a newly skinned rifle to work.
so here's a picture of him in-game
and here's a tight pic (original skin)
another tight pic but with maroon cause he wanted it red
here's my lua. (its a test map so nothing special)
--
*EDIT*
oh and another problem, the floating weapon when i switch to chaingun, but i think there's a fix to that in the Everything You Need Thread 2.0
so here's a picture of him in-game
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
--
*EDIT*
oh and another problem, the floating weapon when i switch to chaingun, but i think there's a fix to that in the Everything You Need Thread 2.0
-
YaNkFaN
- Field Commander

- Posts: 943
- Joined: Sat Dec 13, 2008 8:17 am
Re: Help With Custom Trooper / Gun
the floating weapon icon can be fixed
here
http://www.gametoast.com/forums/viewtop ... =64&t=9703
also i believe the gun texture you edit just like a normal texture
here
http://www.gametoast.com/forums/viewtop ... =64&t=9703
also i believe the gun texture you edit just like a normal texture
-
bhawkgoalie10
- Private Second Class
- Posts: 60
- Joined: Mon Dec 29, 2008 1:55 pm
Re: Help With Custom Trooper / Gun
yeah thats the topic. and haha yeah you're right i just edited it w/ gimp and boom - pink gun lol.
thanks
thanks
