Then instead of a single patch that determines what everyone plays with and keeps. How about a catalog method that lists items and things you may want to add... Kind of the best we can do for now work-around.Dilloh wrote:Yeah, but there are restrictions for individual versions. We can only use one units.csv, one masterpartlist, etc. The more mods exist, the lower the possiblity for cross-over compatibility is (due to regularly appearing new versions), so we all need to have a consens, at least until some really smart guy invents what we need - a installer which allows to alter the files with saved lines created by the modder (==> a plugin), something similar to the Bridge Commander Foundation as seen on www.bcfiles.com - If we had something like that, everybody could make a mod without any necessarity for updates in case of a new version of PU, canonHUDs, or other new stuff.
...
Here's what I'm trying to talk about:
Think of this as a cookbook layout sort of... just listing what you need to add and where and then you have your own little "patch job" making what PR you do have, yours. I understand this maybe quite a bit trouble for some to go through, but it's as good as we can do for now if you want to personalise your own version of PR.I wrote:I've created a new quad laser weapon with graphics. I don't have a 3d modeler that I know how to use confidently yet, so I'm just going to repost the laser file renamed for ease of use in this example.
(Use Notepad/any text editor to add the following in these files:)
Add a new line at the bottom of this file...
"\Privateer\master_part_list.csv"
...and add the following:Near the bottom of...quad_lasers,upgrades/Weapons/Mounted_Guns_Medium,10000,0.01,1,@upgrades/quad_lasers.png@ Quad Lasers which fire bolts with normal damage at a much faster rate than just the regular laser
"\Privateer\weapon_list.xml"
...add a few new lines right above where it says "</Weapons>" and add the following:Finally, the last file to add something to is...<Bolt name="quad_lasers" mountsize="light">
<Energy rate="13" stability="3.5" refire=".075">
</Energy>
<Damage rate="3.4" longrange="1">
</Damage>
<Distance speed="5000" radialspeed="1" radius="1.8" length="10" pulsespeed="15" range="5424" >
</Distance>
<Appearance file="weapons/laserred.png" soundwav="Laser.wav" r="1" g=".3" b=".3" a="1" >
</Appearance>
</Bolt>
"\Privateer\units\units.csv"
Create a new line at the bottom and add:
EDIT: (Note: I had entered some return characters to make the forum easier on the eyes. Just paste in each line at a time from the forum quote, into the same line in the file. Make sure all the code goes into a single line in the file and it should be fine.
Also Note that it may be useful to turn off "word wrap" in whatever text editor you're using.)Then look at the attached files and follow the directions on the comments.quad_lasers__upgrades,./factions/upgrades/quad_lasers,quad_lasers,
FIXME,FIXME,,,,,,,,,,,,,,,0,0,,0,0,0,0,0,0,0,0,0,0,0,0,,,,,,,0,1,,0,0,FALSE,
1,,0,,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,FALSE,0,FALSE,0,0,0,0,,0,0,0,0,0,,0,0,0,0;
0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0,0;0;0;0;0;0;0;
0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0;0,0,0,0,0,0,0,0,0,0,0,,,,,,,
{Quad_Lasers;;;;;;;;;;;;;;;1;1},,,,,,0,0,0,0,0,,,0
... And there you have it! Quad Lasers have been added to the game for you.
EDIT: If you have problems with cutting out some of the code into your own PR, scroll down to see another post which has the two .csv files in .txt format.