My first attempt to mod

For discussion and help on modding and customizing the game
Grumpus
Posts: 366
Joined: Wed May 05, 2004 9:36 pm
Contact:

My first attempt to mod

Postby Grumpus » Mon Nov 19, 2007 1:50 am

My goal is to create several neighborhood venues such as a grocery, drug store, etc. These would all have the same characteristics as the butcher shop. This is my first arrempt to mod so please bear with me.

I have gone to the SC5B butcher shop.xml file and obtained the source code:
---------------------------------------------------------------------

<?xml version="1.0" encoding="utf-8" ?>
- <Building ID="Butcher Shop">
<Type>Venue</Type>
<Cost>450</Cost>
<portrait>SC5BP_ButcherShop</portrait>
<PortraitCard>SC5BPC_ButcherShop</PortraitCard>
<Special_days>Full_Week</Special_days>
<Special_hours>Whole_Day</Special_hours>
<Visit_Duration>Normal</Visit_Duration>
<Sim_cash_pay>0</Sim_cash_pay>
<Happiness_effects>3</Happiness_effects>
<Max_population>7</Max_population>
<Operational_Priority>1</Operational_Priority>
<IdeaXPAmount>0</IdeaXPAmount>
- <!-- Add Any new Data above this line
-->
- <!-- Objects Table Data
-->
<FigureBubbleZOffset>3</FigureBubbleZOffset>
<TileWidth>3</TileWidth>
<TileHeight>3</TileHeight>
<InnerCollisionSphere>12</InnerCollisionSphere>
<MiniMapColor>Venue</MiniMapColor>
<UISelectionSet>SC5BuildingCardView</UISelectionSet>
<Model>SC5B_Butcher_Shop</Model>
<RecycleRefund>225</RecycleRefund>
<CanBeDeleted>True</CanBeDeleted>
<Ground_texture>0</Ground_texture>
<ObjectSoundSet>butcher_shop</ObjectSoundSet>
<RubbleModelFinal>SC5BC_6x6</RubbleModelFinal>
<BurntModel>SC5BC_6x6</BurntModel>
<BuildonElevation>true</BuildonElevation>
<BuildingBase model="SC5BB_Urban_6x6x2" mindif="0" maxdif="1" />
<BuildingBase model="SC5BB_Urban_6x6x4" mindif="1" maxdif="2" />
<BuildingBase model="SC5BB_Urban_6x6x6" mindif="2" maxdif="6" />
- <EmployeeClothing>
<SimClothingSet set="Blue Collar" frequency="1" />
</EmployeeClothing>
<Ability type="Unhealthy" />
<BuildingAction type="activated_cooldown" Resource="money" amount="200" action_object_name="BACT_AddAbility" param="ability=Special Pricing" />
<Resource resource="Industry" quantity="3" />
<Resource resource="Power" quantity="-5" />
</Building>
--------------------------------------------------------------------
I intend to change all references to butcher shop to whatever my new venue will be, and then place the amended file in

"\Documents and Settings\All Users\Application Data\SimCity Societies\Data"



Then, as I understand it, I should make a ScsPack file as follows:

<?xml version="1.0" encoding="utf-8"?>
<Package>

<FileAdd name="Data\XMLDb\Game\Objects\BUILDINGS\Grocery.xml" />

</Package>

and place it in:

"\Documents and Settings\MY_USER_NAME\My Documents\SimCity Societies\Export"

Does any of this have the slightest chance of success or am I trying to create a flying pig?

DhevynStarr
Posts: 16
Joined: Sun Nov 18, 2007 8:57 pm

Postby DhevynStarr » Mon Nov 19, 2007 3:24 am

Here is a list of directories that I used for my custom venue. Maybe this will help. You probably won't need all of them, but the information might be a helpful reference for others. You don't need to modify the original game files, copy and rename the existing file, then add your mod info and remove all the SCS stuff from your new file.

Directory Listing:
Data\Graphics\Models\Venues (a copy of the original model, if you make one)
Data\Graphics\Textures\Buildings(New Texture Location)
Data\Graphics\Textures\interface\portraits(Interface Card picture of your new venu)
Data\XMLDb\Categories (so it will show up in specific categories, should put in all even if you don't want it specialized)
Data\XMLDb\Game\Cultural Graphics Effects (Needs this if you are changing a texture)
Data\XMLDb\Game\Metrics (Another one that should be added to at least the normal metric file)
Data\XMLDb\Game\Objects\BUILDINGS (Your building xml file)
Data\XMLDb\Game\Profiles (Add to all)
Localization\en_us\ObjectText (Used for setting the name in the catalog along with description of venue, action info if any, etc.) Add for entry for each localization

Once you make sure it works the way you want it to in game, then your package xml looks ok, except for the space in xml, probably just a typo from your typing it in. :)
D

matrix089
Posts: 2
Joined: Tue Nov 20, 2007 3:56 pm

Postby matrix089 » Tue Nov 20, 2007 4:04 pm

Well this seems to be the right spot for starters.

First of all - "Hi" I am the new guy ;)

Now my problem. I changed the texture for the bus station as well as for the subway.

Now I wanted to create the scspack. But this seems to be more difficulty than I thought.
As I have just changed the original png for the bus station I wrote my XML for the export folder like this:

<?xml version="1.0" encoding="utf-8"?>
<Package>
<FileAdd name="Data\Graphics\Models\Transportation\SC5B_Bus_Stop.xac" />
<FileAdd name="Data\Graphics\Textures\interface\portraits\SC5BP_BusStops" />
<FileAdd name="Data\Graphics\Textures\interface\portraits\SC5BPC_BusStop.png" />
<FileAdd name="Data\XMLDb\Categories\All.xml" />
<FileAdd name="Data\XMLDb\Game\Objects\BUILDINGS\SC5B Bus Stop.xml" />
<FileAdd name="Localization\German\ObjectText\BuildingText.xml" />
</Package>

I put this xml into my export folder. Unfortunately it didn't change into a scspack.
Does it have something to do with the "my package" crap in the pdf? So must I rename the SC5B part?

Thanx for help!

DhevynStarr
Posts: 16
Joined: Sun Nov 18, 2007 8:57 pm

Postby DhevynStarr » Tue Nov 20, 2007 6:44 pm

This line: <FileAdd name="Data\Graphics\Textures\interface\portraits\S C5BP_BusStops" />
is missing the file extension. Should probably have .png at the end.
One thing that might be a good idea is to use you initials or something instead of the SC5 text, that way there is less of a chance that you will conflict with any expansions in the future. I know when I was modding Sims2 stuff they actually started a database for identifiers, to help eliminate conflicts. I just continued to use the one I had there on my mods here.

D

matrix089
Posts: 2
Joined: Tue Nov 20, 2007 3:56 pm

Postby matrix089 » Wed Nov 21, 2007 8:50 am

I thought so too with the png ending. But it is not mentioned in the how to pdf. :(

I also gave this line a thought:
Data\XMLDb\Game\Objects\BUILDINGS\SC5B Bus Stop.xml"

that probably the blank's between Bus and Stop make problems.

But you are right. I think I'll try to replace SC5 with my initials.


Return to “Mods (Discussion)”

Who is online

Users browsing this forum: No registered users and 3 guests