Tutorial: Add a new decoration (Basic level)

Discuss maps, trains and other modding topics
gczobel
Posts: 16
Joined: Wed Nov 29, 2006 3:46 pm

Tutorial: Add a new decoration (Basic level)

Post by gczobel » Sat Feb 17, 2007 8:54 am

Hi!
This is the first part of the tutorial to add decorations for the game.
http://www.hookedgamers.com/wiki/Sid_Me ... c_level%29

In the second part I'll try to explain how to create new textures.


Enjoy!

Ps: Thanks to Snoopy55 for the first revision!

User avatar
karsten
Posts: 643
Joined: Sun Dec 17, 2006 8:49 pm

Post by karsten » Sat Feb 17, 2007 12:41 pm

NOW were talking! 8) Excellent

User avatar
Jimmylh
Posts: 14
Joined: Sat Dec 23, 2006 5:57 pm
Location: Georgia, USA

Post by Jimmylh » Sun Feb 18, 2007 9:50 pm

:D Great tutorial! That helped me out a lot! Thanks for the time you spent to make that.
Jimmy

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Post by snoopy55 » Sun Feb 18, 2007 11:12 pm

Now, we just need a dock for unloading containers and the containers to unload. Use one of the existing flatcars for empty and make one with a container for full, and change the color of a building for unloading the containers to.

Go to it editers :D
I'm correct 97% of the time..... who cares about the other 4%....

gforce
Posts: 234
Joined: Thu Nov 09, 2006 3:24 am
Location: Belgium, Brussels

Post by gforce » Mon Feb 19, 2007 9:46 pm

I would like to reuse the nif files, fe having a new traincar defined with other colors, or adapting the texture of a bridge. But when i try to do so, i've got strange result, i can change the object but still he is using an other texture map, and i really changed this in the nif file... i hope someone will explain how to create a new one, just by a copy of an excisting one but with another name.
I've read somewhere that you will need to use a hexeditor because their will be still some references written in a file, wich must be changed in such way? anyone an idea... ???
Attachments
i've changed the model but the texture is not right, my new nif file has another new unique name, in nifskope it works but in game another texture is still used :(
i've changed the model but the texture is not right, my new nif file has another new unique name, in nifskope it works but in game another texture is still used :(
SMRailroads!0086.jpg (242.89 KiB) Viewed 11270 times

gczobel
Posts: 16
Joined: Wed Nov 29, 2006 3:46 pm

Post by gczobel » Tue Feb 20, 2007 7:23 am

I don't understand exactly your changes...
did you create a new texture (the .dds file) or modified an old one?
In the last case, you need to change the name of the texture in the nif file, you can make this with nifskope.

I'm working in the second part of the tutorial to create new textures... maybe tomorrow will be ready.

gforce
Posts: 234
Joined: Thu Nov 09, 2006 3:24 am
Location: Belgium, Brussels

Post by gforce » Tue Feb 20, 2007 5:23 pm

WHat i want to do:
- Create a new Traincar (a passengers car with another color) (fe red instead of blue)
- I've got 2 different passengers (let's say passenger and elves)
- the passengers will have a blue wagon, the elves a red one
- I want to create a traincar (a new name, another traincar, so not overwrite the excisting passengers-car) (an elf car)
- I don't have problems with the xml-files with this code:
<TrainCar>
<szName>Passenger Car</szName>
<szGood>Passengers</szGood>
<szModel>Passenger_Car.kfm</szModel>
<szDummyModel>Passenger_Car_dummies.nif</szDummyModel>
</TrainCar>
- so in the code i want to reference to a file Elves_car.kfm
and Elves_car_dummies.nif
- SO i copy all the files of the passenger-car-related nif, kfm etc...
I rename the kfm and nif files
I copy also the dds file (only the texture)
I reference in the nif file to the new texture file, wich i colored in red
the other files for specular effect and so on, i've copied those and renamed ones, but i also tried just by refferencing to those of the passenger, because they don't need to be changed (i think)
- when i load my elves...nif file, i see a red wagon
BUT
- can't make it work
- I think the problem is in the dummies file, there i can't find any reference to a passenger file (in nifskope)

****
now, i did more or less the same but then for my wooden bridge where i loaded the piece of the stone bridge, also there i adapt the texture reference,
but as you can see on the screenshot, everything is working fine, i've got that piece (textureshape) right, but the texture is still loaded from another file, that one of the original wooden bridge and not my file i had create with just a big wood texture, the object has another shape, that's why the texture are not correct... also here if i open the nif file in nifskope i've got a fine bridgepiece (with everywhere the wood textured mapped) but in game it is different

******
i think it will give me also the same fault, let's say if i want to have a polar bear(white) instead of the brown bear.
I'm sure i can change the bear in white just by overwriting his texture map BUT let say i want to have a brown and a white bear, then i need a total complete white bear...
I tried the same with a hospital (you can see that other mappers just use the building but are not using different textures for them,
in my game i got now maybe 4 hospitals, exact the same for 4 different types of building :(
*******
In the trains section, i see also people creating new textures for excisting traincars or locomotives, but they are just changing the texture and overwrite the excisting one or make a v2 or version3 of a traincar, insterad of a new object

******
I hope you will read all this till the end and you understand what i wnt to do... reusing the nif-files, wiothout going via a 3D modeller program, change references and have a new named nif :oops:

******
Thanx in advice :wink:
******
i hope you can explain or discover how it can be done easily, that would be great 4 alot of people jsut to reuse models

ps: Thanx for the other tutorial, it was clear and can be used easily for people who are not totally into creating 3D models! :wink:

choobacca
Posts: 190
Joined: Wed Jan 24, 2007 7:46 pm

Post by choobacca » Tue Feb 20, 2007 6:50 pm

snoopy55 wrote:Now, we just need a dock for unloading containers and the containers to unload. Use one of the existing flatcars for empty and make one with a container for full, and change the color of a building for unloading the containers to.

Go to it editers :D
snoopy55,
Ok, I wasn't planning to unveil it this early, but I have already been working on this concept for our next map.
Attachments
Port where containers are imported/exported, picked up by double-stack well cars, and delivered to a distribution center where they are turned into MFGed goods.
Port where containers are imported/exported, picked up by double-stack well cars, and delivered to a distribution center where they are turned into MFGed goods.
PortIdeaInProgress.jpg (50.38 KiB) Viewed 11232 times

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Post by snoopy55 » Tue Feb 20, 2007 10:16 pm

Neat!droooooooollllll :D
I'm correct 97% of the time..... who cares about the other 4%....

User avatar
CeeBee51
Posts: 141
Joined: Sun Dec 17, 2006 9:58 pm
Location: Chase BC Canada
Contact:

Post by CeeBee51 » Wed Feb 21, 2007 1:30 am

SWEET!!!

User avatar
dwax
Posts: 618
Joined: Sat Nov 18, 2006 3:40 pm
Location: So. Dak.

Post by dwax » Wed Feb 21, 2007 4:12 am

that's SWEET choobacca! :) I see you have your loco's doubled up. OzoB was going to help me do that but I think he is AWOL LOL I think i'm the only one that can't double up my Loco's. :(

gczobel
Posts: 16
Joined: Wed Nov 29, 2006 3:46 pm

Post by gczobel » Wed Feb 21, 2007 12:22 pm

Good work choobacca!!!

User avatar
karsten
Posts: 643
Joined: Sun Dec 17, 2006 8:49 pm

Post by karsten » Wed Feb 21, 2007 1:37 pm

Revolutionary ... and clever! :D

gforce
Posts: 234
Joined: Thu Nov 09, 2006 3:24 am
Location: Belgium, Brussels

Post by gforce » Wed Feb 21, 2007 4:10 pm

a question,
how do you set the prices for the containers
- do you get a price for a container or only after produced to a good like manufacterted good?
***
- maybe we can set a container as an input of mutliple industries, so in that way you decide wich good it contains,
fe moving the container to a toy factyory will produce wooden horses (so in this case in contained wood),
moving it to a textile mill will produce textile (in this case in contained wool)
- ok, maybe the profit can change in this production-chain, but if you've got a scenario that wants in the beginning textile to be delivered and lateron wooden horses, it could be neat... change the train of destination and produce other products...

Got the idea??? maybe there are some possibilities here, in that way? :wink: :roll:

choobacca
Posts: 190
Joined: Wed Jan 24, 2007 7:46 pm

Post by choobacca » Wed Feb 21, 2007 6:21 pm

Thanks for your ideas gforce.
I don't want to get too far off topic here but...
While we are still working out the details for the containers, they could contain raw materials delivered to industries, but the simple chain is Containers->MFGed Goods->Cities for import, and the reverse is MFGed Goods->Containers for export. Of course they could hold any goods for import/export and their purpose could be changed during the game depending on the scenario objectives.

The containers would probably fetch a good price at delivery, but to not let this get too out of control, the industries/cities they could be delivered to would have to be few and far between.

Another comment, the well cars are almost twice as long as regular cars, which makes for new routing challenges with longer trains. If we can't add more than 8(+tender) cars, then I'll make 'em longer. :D

Post Reply