Nakron wrote: ↑Sat Sep 16, 2023 4:45 am
Thanks for all the info, i downloaded the UTPT i am giving a try and now i understand now why you say "It takes a while if you add a lot of weapons" because there's tons of stuff for you to go through its not separated in alphebetical order so you waste a lot of time it's a torture to find the stuff you want inside this mess
so now talking about UTPT you said "find the weapons and ammo, make a note of their names (packagename.weaponclassname) and then add them to StuffSwapperItems.ini in the appropriate place(s)", so in this case for example the "SFB9Pistol" would be the package name? and "SpatialFear.SFWeapon" would be the weaponclassname? i kinda confused in this so if you can clear my mind it would be appreciated.
also how you properly put these packagename and weaponclassname line of codes inside the stuffswapper.ini?
anyways maybe i will give it a try, if you still have this file of stuffswapper.ini with the spatialfear and nightsedge weapons you mentioned and could send it here to me to download? it would be very appreciated if is not ask too much, many thanks.
Yes, I should have given a fuller reply setting out in detail how to do all that - so apologies for that. I will come back and add to this post later today or tomorrow.
So here we are - a more detailed explanation :
Nakron wrote: ↑Sat Sep 16, 2023 4:45 am
so now talking about UTPT you said "find the weapons and ammo, make a note of their names (packagename.weaponclassname) and then add them to StuffSwapperItems.ini in the appropriate place(s)", so in this case for example the "SFB9Pistol" would be the package name? and "SpatialFear.SFWeapon" would be the weaponclassname? i kinda confused in this so if you can clear my mind it would be appreciated ...
...also how you properly put these packagename and weaponclassname line of codes inside the stuffswapper.ini?
OK - before directly answering the questions, I would suggest that you read through the StuffSwapper documentation if you haven't done so before or if it was some time ago when you last did so - this will/should help to clarify some things.
Right, so on to the details.
You will have noticed that the StuffSwapperitems.ini has 3 Sections (or Pages), namely WeaponPage, AmmoPage and PickupPage with a numbered list of weapons, ammo and pickups respectively in each Section.
The entries in the WeaponPage are set out in this way
Code: Select all
[StuffSwapper.StuffSwapperWeaponPage]
Weapon[0]=MOD:Uweaponway2k4 DES:assaultrifle STR:Uweaponway2k4.assaultrifle AMO:Botpack.EClip
where
MOD is the name you want to give to the weapon mod (or collection of weapons) - so if you want to group Spatial Fear weapons together you put MOD:Spatial Fear;
DES is the name of the weapon - again this is for you to fill in and for the SFB9Pistol you could put SFB9Pistol or B-9 Disruptor Pistol (the name given to it in Spatial Fear);
STR is the packagename.classname of the weapon - so for the SFB9Pistol this would be STR:SFWeapon.SFB9Pistol. For all of the weapons in Spatial Fear, SFWeapon is the package name as they are contained in SFWeapon.u (the package or file);
AMO is the packagename.classname of the ammo the weapon uses - for the SFB9Pistol this would be SFWeapon.SFB9Ammo.
Just to clarify, you add the weapon packagename and classname (plus the ammo and pickups, if any) to the StuffSwapperItems.ini, not the StuffSwapper.ini.
To add the Spatial Fear weapons to the StuffSwapperItems.ini, open it up in a plain text reader (I have a Mac and my text reader/writer is called TextEdit, I can't remember now what it is called in Windows).
Go to the end of the numbered list under the heading
[StuffSwapper.StuffSwapperWeaponPage] - the last weapon in mine is
Weapon[307]=MOD:Steele Dawn DES:SD AutoMag STR:SteeleDawnPak.SDAutoMag AMO:none
so if I were adding the SFB9Pistol, I would type in
Weapon[308]=MOD:Spatial Fear DES:SFB9Pistol STR:SFWeapon.SFB9Pistol AMO:SFWeapon.SFB9Ammo
It is important that (a) you number each new weapon consecutively so there is no gap in the numbering - so here the weapon after Weapon[308] would be Weapon[309] and so on; and (b) there are no typos and no additional spaces - the spacing between words/characters for STR and AMO must be as in the example but that you can have additional spaces in MOD and in DES.
Nakron wrote: ↑Sat Sep 16, 2023 4:45 am
Thanks for all the info, i downloaded the UTPT i am giving a try and now i understand now why you say "It takes a while if you add a lot of weapons" because there's tons of stuff for you to go through its not separated in alphebetical order so you waste a lot of time it's a torture to find the stuff you want inside this mess
OK on to UTPT.
But before we get there ... one way to make searching for info on the weapons and ammo easier is to look through all the documentation for the mod as you may find a list of the weapon names as their appear in their package (.u file). Also look through any .int file (to be found in your /System folder or a folder for the mod) that there may be for the mod - so for Spatial Fear, if we look in SpatialFear.int we find the following list
Code: Select all
Object=(Name=SFWeapon.SFPrybar,Class=Class,MetaClass=SpatialFear.SFWeapon,Description="Prybar")
Object=(Name=SFWeapon.SFHardWave,Class=Class,MetaClass=SpatialFear.SFWeapon,Description="Hard Wave Rifle")
Object=(Name=SFWeapon.SFB9Pistol,Class=Class,MetaClass=SpatialFear.SFWeapon,Description="B9 Pistol")
Object=(Name=SFWeapon.SFB9Rifle,Class=Class,MetaClass=SpatialFear.SFWeapon,Description="B9 Rifle")
Object=(Name=SFWeapon.SFGrenadeLauncher,Class=Class,MetaClass=SpatialFear.SFWeapon,Description="Grenade Launcher")
Object=(Name=SFWeapon.SFUSRifle,Class=Class,MetaClass=SpatialFear.SFWeapon,Description="Ultra Sonic Rifle")
Object=(Name=SFWeapon.SFRapidEddy,Class=Class,MetaClass=SpatialFear.SFWeapon,Description="Rapid Eddy")
Object=(Name=SFWeapon.SFEProj,Class=Class,MetaClass=SpatialFear.SFWeapon,Description="Electric Projector")
So from this we know the STR for each weapon (for the Prybar, this is
SFWeapon.SFPrybar and we know what we can call the weapon so we know what to put in DES.
OK onto UTPT
Open up UTPT -> open SFWeapon.u -> go to the tab
ExportTree (this sets out everything that is in SFWeapon.u, including classes/code, textures, meshes, sounds, etc) -> left mouse click on one of the bold headings, like
GLauncher, to highlight it and then right mouse click to bring up a context menu -> in that menu, click on
Full collapse and this will compress the list to classes (plus lod meshes, etc but we are not concerned with those) -> if the list of classes, etc is not in alphabetical order, click on Name at the top left and this should sort it - if it is in reverse alphabetical order, click again on Name and this will sort the list in descending alphabetical order.
Now you can go through the list, looking for weapons. You should see a column headed Super and in this column against weapons you will see
SpatialFear.SFWeapon. Look for these.
The first is weapon is SFAlien but let's have a closer look at SFB9Pistol. Find that -> left mouse click on SFB9Pistol to highlight it -> right click to bring up the context menu -> look for and click on
View object properties -> this will open a list of properties on the righthand side of the window -> click on Name at the top of the window to sort it in alphabetical order.
We already know the weapon packagename.classname (SFWeapon.SFB9Pistol) so we now need the ammo name. Look down the list of properties and you will see AmmoName and against that to the right you will see a number followed by
Class SFB9Ammo - this gives us the name of the ammo and we can ignore Class so the ammo name is SFB9Ammo.
Go through the rest of the classes on the left of the screen, looking for weapons and for the name of their ammo.
You can enter the information about the weapon and the ammo into StuffSwapperItems.ini directly as you find each one or you can make a separate list of weapon name and ammo name and add them to the ini later.
Nakron wrote: ↑Sat Sep 16, 2023 4:45 am
anyways maybe i will give it a try, if you still have this file of stuffswapper.ini with the spatialfear and nightsedge weapons you mentioned and could send it here to me to download? it would be very appreciated if is not ask too much, many thanks.
I don't have Spatial Fear weapons in my StuffSwapperitems.ini (well, there are a couple but they are not grouped under the mod name Spatial Fear for a reason I no longer remember) - however these are the Nights Edge entries
Code: Select all
Weapon[197]=MOD:Night's Edge DES:MP5K STR:NightsEdge.UT_MP5K Amo:NightsEdge.UT_Ammo9mm
Weapon[198]=MOD:Night's Edge DES:Sako TRG22 STR:NightsEdge.UT_SakoTRG22 Amo:NightsEdge.UT_Ammo762mm
Weapon[199]=MOD:Night's Edge DES:CyTek Laser Rifle STR:NightsEdge.UT_CyTekLaserRifle amo:NightsEdge.UT_AmmoPowerCell
Weapon[200]=MOD:Night's Edge DES:Ithaca M37 Stakeout STR:NightsEdge.UT_IthacaM37 amo:NightsEdge.UT_Ammo12gauge
Weapon[201]=MOD:Night's Edge DES:Heckler & Koch Pistol STR:NightsEdge.UT_SOCOM amo:amo:NightsEdge.UT_Ammo45ACP
Weapon[202]=MOD:Night's Edge DES:TAR-21 Rifle STR:NightsEdge.UT_TAR21 amo:NightsEdge.UT_Ammo556mm
Weapon[203]=MOD:Night's Edge DES:HK UMP45 SubMG STR:NightsEdge.UT_UMP45 amo:NightsEdge.UT_Ammo45ACP
Weapon[204]=MOD:Night's Edge DES:Vektor CP-1 Pistol STR:NightsEdge.UT_VektorCP1 amo:NightsEdge.UT_Ammo9mm
Weapon[205]=MOD:Night's Edge DES:M17 Laser Pistol STR:NightsEdge.UT_Vortex17 amo:NightsEdge.UT_AmmoPowerCell
Code: Select all
Ammo[128]=MOD:Night's Edge DES:9mm Ammo STR:NightsEdge.UT_Ammo9mm
Ammo[129]=MOD:Night's Edge DES:762mm Ammo STR:NightsEdge.UT_Ammo762mm
Ammo[130]=MOD:Night's Edge DES:Power Cell STR:NightsEdge.UT_AmmoPowerCell
Ammo[131]=MOD:Night's Edge DES:Shotgun Shells STR:NightsEdge.UT_Ammo12gauge
Ammo[132]=MOD:Night's Edge DES:45ACP Ammo STR:NightsEdge.UT_Ammo45ACP
Ammo[133]=MOD:Night's Edge DES:Rifle 556mm ammo STR:NightsEdge.UT_Ammo556mm
If you use these, then you need to change the Weapon[ ] and Ammo[ ] numbers.
I hope that this explains everything clearly but if not, come back to me if you have any questions or need further info.