Post by Redneck on Oct 5, 2004 8:53:00 GMT -5
Copied from Trucksims.com, to post as community help.
This took a while to track down, but I got it, read up.
Quote (FatEd @ 19 Nov. 2003, 00:13)
Ok found out how to add the trailers and not re-skinning but how do u get them to pop up during game play
****Note: you have to have already unzipped your base.scs file for this!!!****
you have to edit a couple defs.
go here: \My Documents\18 WoS Across America\defs\cargos
find a cargo that closely resembles the load you're trailer should be hauling. IE a tanker wouldn't be hauling eggs so look for liquid loads. open that def, lets say your doing a remake of the cola trailer with a new skin and you want it to haul cola too. open the cola.def file. this is what you see.
Code Sample
extdefs "!cargo_groceries.def"
def cargo:cargo_groceries {
name:"@@cn_cola@@"
imgs:"cola.shd"
trailer:"trailer5"
variant:3
income:468
}
K, now change the trailer line to this:
Code Sample
trailer:"trailer5;trailer99"
*Note: change trailer99 to whatever number you made your new trailer.*
Now save and play the game. Also I can't remember right now what the seperator was for trailers, I think it's the ; but it might be a comma ,
Now if you want an all new load say beer for example, do this:
change
Code Sample
trailer:"trailer5;trailer99"
to
Code Sample
trailer:"trailer99"
save that file as budweiser.def
Now go here: \My Documents\18 WoS Across America\defs\traders
now open !groceries.def
this is what you see:
Code Sample
extdefs "/defs/trader_base.def"
def trader_groceries:/trader_base {
name:"@@tdn_transship_groceries@@"
produce:"cola;frozenfood;packagedfood;coffee;eggs;milk"
accept:"cola;frozenfood;packagedfood;coffee;eggs;milk"
ico_shd:"/shaders/ui/icons/traders/angelo_groceries_ico.shd"
label_shd:"/shaders/ui/icons/traders/angelo_groceries.shd"
}
Now change these lines to reflect the new load:
Code Sample
produce:"cola;frozenfood;packagedfood;coffee;eggs;milk;budweiser"
accept:"cola;frozenfood;packagedfood;coffee;eggs;milk;budweiser"
now if you go to the distributor/distributors that is/are mentioned in that file
Code Sample
label_shd:"/shaders/ui/icons/traders/angelo_groceries.shd"
you should see your new trailer and your new load.
Hope this helps,
Yellow-Bird
Replied again.................................................
Quote (peterbuilt 379 @ 19 Nov. 2003, 18:00)
now i was wondering could you tell us how to add a complete trailer5 addon so that we would have twice as many as we have now. Or would that be way too hard lol
***Note: still assuming you have unzipped your base.scs. I'm also assuming your at patch version 1.10***
I'm going to assume that you already have the base.scs unzipped. K, go into your makes/trailer/trailer5 folder. Copy everything to a new folder and name it trailer22. (makes/trailer/trailer22) Now I'm only going to show you how to make one new trailer with one new load as I have to get back to other things. Go into your new trailer22 folder and you will see a folder (acc) and a file (description.def) open that file and change the name:"trailer5" to name:"trailer22". Go into your ACC folder now and open your base folder.
Change your !desc.def file to read
Code Sample
extdefs "/makes/trailer/acc_base.def"
def accessory:/accessory_base {
name:"trailer22 base"
type:"base"
model:"trailer22.psm"
shader0:"trailer22.shd:trailer22.shd"
weight:5000
}
Now save it and close. Go into your Flares folder and open the !desc.def file, change the name to read "trailer22" instead of trailer5. Save and close. go into your lblinker folder and change the !desc.def file to read name:"trailer22". save and close. do the same for rblinker, rearl, rlights, and wheel. (These steps may not be needed, but better to err on the side of safety then not to.
Now go into your shared folder, and delete all the trailer5 files EXCEPT the trailer you want to keep or if you have .jpg that you have modded. you WILL need these files: trailer5.shd (rename to trailer22.shd), trailer5.tobj (rename to trailer22.tobj), a .jpg for the trailer (renamed trailer22.jpg), trailer5_gloss.png (renamed trailer22_gloss.png) and trailer5_gloss.tobj (renamed trailer22_gloss.tobj).
--------------------------------------------------------------------------------
Now open your trailer22.shd file and change:Code Sample
TRUCK_PLAIN(trailer5.tobj,trailer5_gloss.tobj,512,512)
toCode Sample
TRUCK_PLAIN(trailer22.tobj,trailer22_gloss.tobj,512,512)
Save and close.
--------------------------------------------------------------------------------
Open your trailer22.tobj and change: Code Sample
map 2d trailer5.jpg
toCode Sample
map 2d trailer22.jpg
Close and save.
--------------------------------------------------------------------------------
now open your trailer22_gloss.tobj and change:Code Sample
map 2d trailer5_gloss.png
toCode Sample
map 2d trailer22_gloss.png
Save and close. K, now go back to your "My Documents\18 WoS Across America" folder. Go into your "efs/Cargos" folder and mak a copy of the cola.def file. Change this:
Code Sample
def cargo:cargo_groceries {
name:"@@cn_cola@@"
imgs:"cola.shd"
trailer:"trailer5"
variant:3
income:480
}
to
Code Sample
def cargo:cargo_groceries {
name:"@@some drink name here *Sunny_Delight*@@"
imgs:"cola.shd"
trailer:"trailer22"
variant:0
income:480
}
Now save it as the drink name you used. (IE sunny_delight.def). Now open your Defs/Traders folder and open the file !groceries.def.
Change this:
Code Sample
produce:"cola;frozenfood;packagedfood;coffee;eggs;milk"
to Code Sample
produce:"cola;frozenfood;packagedfood;coffee;eggs;milk;Sunny_delight"
--------------------------------------------------------------------------------
Now chnage this: Code Sample
accept:"cola;frozenfood;packagedfood;coffee;eggs;milk"
toCode Sample
accept:"cola;frozenfood;packagedfood;coffee;eggs;milk;Sunny_delight"
Save and close.
K, those are all the steps I took, and so far so good, haven't run into any snags.
Sorry for this post not being formated nicely, I just copied it from the tutorial on my site.
Hope this helps some,
Yellow-Bird
This took a while to track down, but I got it, read up.
Quote (FatEd @ 19 Nov. 2003, 00:13)
Ok found out how to add the trailers and not re-skinning but how do u get them to pop up during game play
****Note: you have to have already unzipped your base.scs file for this!!!****
you have to edit a couple defs.
go here: \My Documents\18 WoS Across America\defs\cargos
find a cargo that closely resembles the load you're trailer should be hauling. IE a tanker wouldn't be hauling eggs so look for liquid loads. open that def, lets say your doing a remake of the cola trailer with a new skin and you want it to haul cola too. open the cola.def file. this is what you see.
Code Sample
extdefs "!cargo_groceries.def"
def cargo:cargo_groceries {
name:"@@cn_cola@@"
imgs:"cola.shd"
trailer:"trailer5"
variant:3
income:468
}
K, now change the trailer line to this:
Code Sample
trailer:"trailer5;trailer99"
*Note: change trailer99 to whatever number you made your new trailer.*
Now save and play the game. Also I can't remember right now what the seperator was for trailers, I think it's the ; but it might be a comma ,
Now if you want an all new load say beer for example, do this:
change
Code Sample
trailer:"trailer5;trailer99"
to
Code Sample
trailer:"trailer99"
save that file as budweiser.def
Now go here: \My Documents\18 WoS Across America\defs\traders
now open !groceries.def
this is what you see:
Code Sample
extdefs "/defs/trader_base.def"
def trader_groceries:/trader_base {
name:"@@tdn_transship_groceries@@"
produce:"cola;frozenfood;packagedfood;coffee;eggs;milk"
accept:"cola;frozenfood;packagedfood;coffee;eggs;milk"
ico_shd:"/shaders/ui/icons/traders/angelo_groceries_ico.shd"
label_shd:"/shaders/ui/icons/traders/angelo_groceries.shd"
}
Now change these lines to reflect the new load:
Code Sample
produce:"cola;frozenfood;packagedfood;coffee;eggs;milk;budweiser"
accept:"cola;frozenfood;packagedfood;coffee;eggs;milk;budweiser"
now if you go to the distributor/distributors that is/are mentioned in that file
Code Sample
label_shd:"/shaders/ui/icons/traders/angelo_groceries.shd"
you should see your new trailer and your new load.
Hope this helps,
Yellow-Bird
Replied again.................................................
Quote (peterbuilt 379 @ 19 Nov. 2003, 18:00)
now i was wondering could you tell us how to add a complete trailer5 addon so that we would have twice as many as we have now. Or would that be way too hard lol
***Note: still assuming you have unzipped your base.scs. I'm also assuming your at patch version 1.10***
I'm going to assume that you already have the base.scs unzipped. K, go into your makes/trailer/trailer5 folder. Copy everything to a new folder and name it trailer22. (makes/trailer/trailer22) Now I'm only going to show you how to make one new trailer with one new load as I have to get back to other things. Go into your new trailer22 folder and you will see a folder (acc) and a file (description.def) open that file and change the name:"trailer5" to name:"trailer22". Go into your ACC folder now and open your base folder.
Change your !desc.def file to read
Code Sample
extdefs "/makes/trailer/acc_base.def"
def accessory:/accessory_base {
name:"trailer22 base"
type:"base"
model:"trailer22.psm"
shader0:"trailer22.shd:trailer22.shd"
weight:5000
}
Now save it and close. Go into your Flares folder and open the !desc.def file, change the name to read "trailer22" instead of trailer5. Save and close. go into your lblinker folder and change the !desc.def file to read name:"trailer22". save and close. do the same for rblinker, rearl, rlights, and wheel. (These steps may not be needed, but better to err on the side of safety then not to.
Now go into your shared folder, and delete all the trailer5 files EXCEPT the trailer you want to keep or if you have .jpg that you have modded. you WILL need these files: trailer5.shd (rename to trailer22.shd), trailer5.tobj (rename to trailer22.tobj), a .jpg for the trailer (renamed trailer22.jpg), trailer5_gloss.png (renamed trailer22_gloss.png) and trailer5_gloss.tobj (renamed trailer22_gloss.tobj).
--------------------------------------------------------------------------------
Now open your trailer22.shd file and change:Code Sample
TRUCK_PLAIN(trailer5.tobj,trailer5_gloss.tobj,512,512)
toCode Sample
TRUCK_PLAIN(trailer22.tobj,trailer22_gloss.tobj,512,512)
Save and close.
--------------------------------------------------------------------------------
Open your trailer22.tobj and change: Code Sample
map 2d trailer5.jpg
toCode Sample
map 2d trailer22.jpg
Close and save.
--------------------------------------------------------------------------------
now open your trailer22_gloss.tobj and change:Code Sample
map 2d trailer5_gloss.png
toCode Sample
map 2d trailer22_gloss.png
Save and close. K, now go back to your "My Documents\18 WoS Across America" folder. Go into your "efs/Cargos" folder and mak a copy of the cola.def file. Change this:
Code Sample
def cargo:cargo_groceries {
name:"@@cn_cola@@"
imgs:"cola.shd"
trailer:"trailer5"
variant:3
income:480
}
to
Code Sample
def cargo:cargo_groceries {
name:"@@some drink name here *Sunny_Delight*@@"
imgs:"cola.shd"
trailer:"trailer22"
variant:0
income:480
}
Now save it as the drink name you used. (IE sunny_delight.def). Now open your Defs/Traders folder and open the file !groceries.def.
Change this:
Code Sample
produce:"cola;frozenfood;packagedfood;coffee;eggs;milk"
to Code Sample
produce:"cola;frozenfood;packagedfood;coffee;eggs;milk;Sunny_delight"
--------------------------------------------------------------------------------
Now chnage this: Code Sample
accept:"cola;frozenfood;packagedfood;coffee;eggs;milk"
toCode Sample
accept:"cola;frozenfood;packagedfood;coffee;eggs;milk;Sunny_delight"
Save and close.
K, those are all the steps I took, and so far so good, haven't run into any snags.
Sorry for this post not being formated nicely, I just copied it from the tutorial on my site.
Hope this helps some,
Yellow-Bird