Post by dieseldog on Nov 11, 2010 7:33:12 GMT -5
Three things are involved to create your own custom cargo for trailers in PTTM,I will explain the process of first creating a cargo def,second adding the cargo to the company defs and last assigning the cargo to a trailer.The final step of the creation process you can follow the assigning cargo tutorial located in the tutorials section.
Navigate to My Documents\18 WoS Pedal to the Metal\defs\cargos(if this directory does`nt exist follow the extracting the base.scs tutorial), choose a cargo similar to the one you wish to create,copy and paste the cargo in the same directory,using gasoline.def as an example you would now have Copy of gasoline.def.Rename the Copy of gasoline.def to the cargo name of your choice,for this tutorial we`ll create diesel fuel,so we will rename the Copy of gasoline.def to diesel.def.Open the diesel def and it looks like this.
extdefs "/defs/cargo_base.def"
def cargo:cargo_base {
name: "@@cn_gasoline@@"
trailer:"tnk_gas"
variant:"1"
ico: "gasoline.mat"
}
Change the name to name: "@@diesel@@"
Unless your going to add the cargo to the local.def leave out the cn_,or it will show like that in the game.
Unless your going to add your own cargo icon,leave the ico:"gasoline.mat alone.
Save and close the diesel.def.
Second process is to add your new cargo to a companies.def,navigate to My Documents\18 WoS Pedal to the Metal\defs\companies,for this tutorial I will add the diesel cargo to the 24_amergine.def.Opening the def with notepad it looks like this.
extdefs "/defs/company_base.def"
def company:/company_base {
idx:24
name:"Amergine"
produce:"mech_parts:1|mobilehome:1|mobileoffice:1|gasoline:1|engines:1"
accept:"mech_parts|mobilehome|mobileoffice|gasoline|chemicals|pipes|engines"
ico:"amergine_ico.mat"
label:"amergine.mat"
ambients:"industrial_factory_1.ogg:industrial_factory_2.ogg:industrial_factory_3.ogg:industrial_factory_4.ogg"
}
Now simply add the diesel,or what ever the name of the cargo you`ve created to the def,once under produce and once under accept.Be sure to keep the format the same when editing the def.So the only two lines edited are the produce and accept.
produce:"mech_parts:1|mobilehome:1|mobileoffice:1|gasoline:1|engines:1|diesel:1"
accept:"mech_parts|mobilehome|mobileoffice|gasoline|chemicals|pipes|engines|diesel"
The last process is to assign a trailer(s) to your newly created cargo,you can read the assigning cargo tutorial for instructions on how to assign cargo in the assigning cargo tutorial,located in the tutorials section
Navigate to My Documents\18 WoS Pedal to the Metal\defs\cargos(if this directory does`nt exist follow the extracting the base.scs tutorial), choose a cargo similar to the one you wish to create,copy and paste the cargo in the same directory,using gasoline.def as an example you would now have Copy of gasoline.def.Rename the Copy of gasoline.def to the cargo name of your choice,for this tutorial we`ll create diesel fuel,so we will rename the Copy of gasoline.def to diesel.def.Open the diesel def and it looks like this.
extdefs "/defs/cargo_base.def"
def cargo:cargo_base {
name: "@@cn_gasoline@@"
trailer:"tnk_gas"
variant:"1"
ico: "gasoline.mat"
}
Change the name to name: "@@diesel@@"
Unless your going to add the cargo to the local.def leave out the cn_,or it will show like that in the game.
Unless your going to add your own cargo icon,leave the ico:"gasoline.mat alone.
Save and close the diesel.def.
Second process is to add your new cargo to a companies.def,navigate to My Documents\18 WoS Pedal to the Metal\defs\companies,for this tutorial I will add the diesel cargo to the 24_amergine.def.Opening the def with notepad it looks like this.
extdefs "/defs/company_base.def"
def company:/company_base {
idx:24
name:"Amergine"
produce:"mech_parts:1|mobilehome:1|mobileoffice:1|gasoline:1|engines:1"
accept:"mech_parts|mobilehome|mobileoffice|gasoline|chemicals|pipes|engines"
ico:"amergine_ico.mat"
label:"amergine.mat"
ambients:"industrial_factory_1.ogg:industrial_factory_2.ogg:industrial_factory_3.ogg:industrial_factory_4.ogg"
}
Now simply add the diesel,or what ever the name of the cargo you`ve created to the def,once under produce and once under accept.Be sure to keep the format the same when editing the def.So the only two lines edited are the produce and accept.
produce:"mech_parts:1|mobilehome:1|mobileoffice:1|gasoline:1|engines:1|diesel:1"
accept:"mech_parts|mobilehome|mobileoffice|gasoline|chemicals|pipes|engines|diesel"
The last process is to assign a trailer(s) to your newly created cargo,you can read the assigning cargo tutorial for instructions on how to assign cargo in the assigning cargo tutorial,located in the tutorials section