PDA

View Full Version : How to make a new building?



serenius4tsd
01-21-2007, 19:09
Hey folks.
Having seen how highways are still in the game files but not in the game itself (theres a thread about it here), I wanted to add it as another road level.
I have edited export_descr_buildings and the enum file, as well as the export_buildings file. I made the necessary changes.. i think. But I have a problem - the game loads up, but the changes arent there. No third level for roads is there.

Could someone go through the steps that are needed to create a new building? This would help me a lot.

SilentResident
01-21-2007, 22:46
I'm glad for your same interesting with me about Highways!
Yes, Highways are really in the game (50% completed).

As I posted, the way to change the road_level 1 to 2 in export_descr_buildings.txt is unrealistic.

Maybe if we follow an "add new building" guide from Rome Total War to take an idea how to do this, is better.
I have already created and completed the new -in game- pictures - building cards for Highways!
For now remains the way to add the new building to the game...

KnightErrant
01-22-2007, 16:49
Hi guys,

I did this mod this weekend. You just need
the correctly named .tga graphics files in the
right place. Go look at your unpacked files
and find a path that looks like ...\buildings\#northern_european\...
or better yet just search for paved_roads (for cities)
and c_paved_roads (for castles).

If you added in a third upgrade like highway_roads
in your EDB file then you need a .tga file with this
name. Actually you need three: you need a
highway_roads.tga and a highway_roads_constructed.tga
under buildings\#northern_european\... and there
is also a subdirectory called \construction underneath this
that also needs a highway_roads.tga file. Sorry I'm at
work so I don't have the exact path names for you but I
know I got it to work.

Best of luck:beam:

serenius4tsd
01-23-2007, 18:54
@ KnightErrant: Even with those files in, a new building does not appear. Thanks for the suggestion though.
Welcome btw. :)

KnightErrant
01-23-2007, 20:12
Thanks for the welcome!
Did you put your highway_road (or whatever you called it)
in the upgrades section of the paved_roads part in the EDB?
I know I forgot this the first time and the building didn't
show up as an available option.

serenius4tsd
01-24-2007, 16:19
Thanks mate, works now. :)

KnightErrant
01-24-2007, 17:50
Excellent!:beam:

ezekiel6
01-25-2007, 17:45
What did you use for the highway.tgas? Is there any chance that you could share them?

KnightErrant
01-25-2007, 19:35
I just copied the paved_roads.tga, paved_roads_constructed.tga, c_paved_roads.tga, and c_paved_roads_constructed.tga plus the
ones in the \construction subfolder and then renamed them. I started
to edit them and try to put something like curbs on them to make them
more "highway like" but realized two things:
(1) I stink at graphics stuff.
(2) You have to do this under each culture. That's 6 times 4 .tga
files if you leave out greek and mesoamerican.

Now I just live with them looking like paved roads. Didn't
SilentResident mention something about having made building
cards for them? Maybe he could post some nice graphics.
Hint, hint.:yes:

SilentResident
01-25-2007, 23:54
Hey friends, I returned.

But how to upload the .tga files on TWC? is anywhere a method to do this?
Sorry if it's look odd that I say, but I have never uploaded any files in my "Internet life", only I have downloaded files. Never uploaded any file from PC.

How to do this? I have the .tga files of Highway on my desktop, updated and for all the Muslim & European Factions (Highway for Muslim Culture in sand & for Christian Culture in grass).

ezekiel6
01-26-2007, 01:09
Well there's a sticky in the Mod Chat forum about how to upload stuff, that should be helpful, if it's under 2mb you can put it on the RTW uploader and it should show up instantly (according to what it says)

SilentResident
01-26-2007, 01:21
Thanks! I will read it!

SilentResident
01-26-2007, 03:12
EXCELLENT NEWS!!!


I have Uploaded my image files! My files are available for downloading here:

http://www.totalwar.org/Downloads/Rtw_Uploads/RTWupload/

Look for the: Highways_by_SilentResident.zip and download it!

Tell me if I am good Image designer! Heheheh!!! :laugh4:




Have a nice day!:yes:

ezekiel6
01-26-2007, 03:23
These are cool, thanks for posting them up, really appreciated:D

SilentResident
01-26-2007, 15:36
Highways seems to doesn't work to the game as a new building.

I tried all the essential changes on the following files: export_descr_buildings_enums.txt, export_descr_buildings.txt, and export_buildings.txt.

And also, all the highways & c_highways TGA files are in their UI folder locations and subfolders (eastern_european, middle_eastern, northern_european, southern_european).

The game loads but before gets to the menu, craches.

In system.log.txt file (where all the game errors posted) says the following:

[script.err] [error] Script Error in data/export_descr_buildings.txt, at line 2972, column 17
Invalid upgrade specified

(It means that the game does not recognizes the new building upgrades in the road sections of the file).

Is something wrong? Here is my copy from export_descr_buildings.txt:

---------------------------------------------------------------------

building hinterland_roads
{
convert_to hinterland_castle_roads
levels roads paved_roads
{
roads city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
{
convert_to 0
capability
{
road_level 0
}
material wooden
construction 1
cost 400
settlement_min town
upgrades
{
paved_roads
}
}
paved_roads city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
{
convert_to 1
capability
{
road_level 1
}
material wooden
construction 3
cost 1200
settlement_min city
upgrades
{
highways
}
}
highways city requires factions { northern_european, middle_eastern, eastern_european, greek, southern_european, }
{
convert_to 2
capability
{
road_level 2
}
material wooden
construction 5
cost 3600
settlement_min city
upgrades
{
}
}
}
plugins
{
}
}
----------------------------------------------------------------------
The same and with the Castle roads entries, (c_highways)

All works fine except the export_descr_buildings.txt. missing something? :wall:


Please, can anyone to post his copy of road sections of this file?

ezekiel6
01-26-2007, 17:10
Well I haven'tactually tried this yet, (I'm waiting to complete my current game) but at the top where you've got
"convert_to hinterland_castle_roads
levels roads paved_roads"
shouldn't you have highways after that, so that there are 3 levels of road? Also I'm not sure about this and it possibly doesn't have to be done as long as all the names are right but, to be recognised as roads does the highways need a suffix at the end so it should be called highways_roads? Just my thoughts, hope they help

SilentResident
01-26-2007, 17:30
Thanks a lot, my friend! I like your accuracy! I has tired from modding all the last days.

I will fix the problem and I will post the results.

Thanks again!!!:2thumbsup:

serenius4tsd
01-26-2007, 21:32
Hey SilentResident, I like your highways icons! Is it possible I can add it to the minimod I made? http://www.twcenter.net/forums/downloads.php?do=file&id=1125

Ta.

SilentResident
01-27-2007, 01:13
Hey SilentResident, I like your highways icons! Is it possible I can add it to the minimod I made? http://www.twcenter.net/forums/downloads.php?do=file&id=1125

Ta.


Of course my friend! I am happy to include them to the mod!

But, wait for me to upload soon the 2 missing pictures of the ui\southern_european\buildings\bacck up folder.
They have different Picture Frame around the image and they are very important for a full-completed mod.

Wait until I upload all the pictures of UI folder with RTW Uploader again, and then, update your mod. OK? I will upload them very soon!! :yes:

KnightErrant
01-27-2007, 02:53
Very nice, SilentResident!:2thumbsup:

I'd like to add them to my game too.
I guess I should wait for your next upload
to do them all together. Thanks for posting
them.~:)

SilentResident
01-27-2007, 02:57
******UPDATED*****

The updated UI Folder with all .tga files is available for downloading!

The new UI folder is now 100% finished! No anymore work is needed!

DOWNLOAD IT:
http://www.totalwar.org/Downloads/Rtw_Uploads/RTWupload/
(Look for the Highways_Completed.rar file.)


***NOTE***

serenius4tsd, if its possible, I recommended you to replace all of the previous .tga files, with the new .tga from the Highways_Completed.rar file.

The changes for the Highway pictures are:
All the images have their correct size.
All the resized images are categorized with their possible sizes in their UI subfolders.
All the Images have now their correct picture frames.




The new UI folder is 100% finished for Highways!

Have a nice day.:beam:

serenius4tsd
01-27-2007, 10:48
Thanks! :beam: