Tuesday, March 11, 2014

Map Editing Manual Section 3 of 7 – Creating cities and companies

Cara Mengedit Membuat Map Sendiri UK Truck Simulator (UKTS) Euro Truck Simulato (ETS) myspacenote.blogspot
Copyright © 2010 Dave “Crockett” Jackson. All rights reserved



Designing your first city
Have a think about what you want to include in the city and then build the city around those requirements, for example, do you want a service
station inside the city or on the approach road? Do you want to situate your companies in the city or create a special “Industrial” area for them (Similar to what I did with my shindig map)
Once you have decided this, decide how many roads are going to be in
the city and how many approach roads your city will have. Most cities have 2 approach roads which connect the city to the nearest motorway. Also bear in mind that the bigger the city is, the more models you will need to place to occupy it. The main trouble is is that there are not a lot of building models out there and there is a danger that your cities will start to look alike, try to use different building models (or at least place the building models in a different place in each city). It also improves playablility if your city doesn’t have any “Dead end” roads, sometimes it’s necessary to have a dead end road in a city where it would be impossible to link two road pieces together (two red nodes for example) for this you would need to draw a dead end blocker across the road entrance (you can find this in the buildings options aka e then 3)


Placing company entities
Company prefabs can be accessed by pressing e then 2 and use the – and
+ keys to scroll through the prefabs until you find the company prefab you want, then, move the prefab to the location that you want it to be
placed at but before you click the left mouse button to place the company prefab in your map, move the mouse pointer over the nearest road’s red
node, this sets the prefab height to the same as the road and helps to avoid positioning problems.


As a tip, keep a pen and paper handy as you’ll need it to help you declare the necessary definitions which we’ll look at now.


Creating or editing definition files
This is the most tedious but most important bit of city creation. In order for the game to recognize the city and the companies placed therein, you should take note of what the city name is going to be, followed by the
name of placed companies. Defining a city
1, Check which countries are available in the game (what I mean is if you
are playing GTS or UKTS, there is only one country available and you won’t have to worry too much about which country your city is in. If on

the other hand, you are designing the map for ETS, you will need to tie your city to the nearest country (for example, if you create a city in Estonia, the city will be tied to Poland so that the game can configure itself to be able to access and operate that city))
2, Open (in notepad) the samplecity.sii file included with this manual 3, change the city name from “Sample” to whatever your city name is.
4, change the ui_x and ui_y co-ordinates to pinpoint the location of your city on the map. If you are mapping for ETS, use the grid.jpg file to determine the x/y co-ordinates for your city.
5, Replace the country name “Sample” with the country name that your city is in or tied to (for GTS, enter “Germany” and for UKTS, enter “uk” 6, save the samplecity.sii file remembering to rename it cityname.sii (for
example, if your city is called Athens, name the file Athens.sii and save it into project def/economy/city directory (or def/city if playing GTS or UKTS)
7, save your map and exit the editor, zip your project folders into an scs file and place in the game’s mod directory.
8, start up the editor then find your newly designed city, when you find it,
press e then 9 to create a new city entity, a window will pop up that will have a list box in it, click the arrow and scroll through the available city entity names until you find your city name. click it then click on your map to place your new city entity.
Now it’s time to declare the city’s companies.
To define a company that is in your new city, follow these instructions: 1, find the company name’s sii file in your project’s
def/economy/company (or def/company) PLEASE NOTE: when editing company.sii files, there is a protocol to follow, you cannot just enter in the information anywhere as this would cause the definition and
ultimately your game, to fail. If the file is not formatted, to make it easier on yourself, format it (using the spacebar and enter) until it looks like this:

company_permanent: company.permanent.nbfc

{
name: "NBFC"


sound[]: "/sound/environment/chemical_factory_1.ogg" sound[]: "/sound/environment/chemical_factory_2.ogg" sound[]: "/sound/environment/chemical_factory_3.ogg


in_cargo[]: cargo.permanent.coal in_cargo[]: cargo.permanent.petrol

in_cargo[]: cargo.permanent.diesel in_cargo[]: cargo.permanent.acid in_cargo[]: cargo.permanent.chemicals in_cargo[]: cargo.permanent.hchemicals in_cargo[]: cargo.permanent.fertilizer


out_cargo[]: cargo.permanent.acid out_cargo[]: cargo.permanent.chemicals out_cargo[]: cargo.permanent.hchemicals out_cargo[]: cargo.permanent.fertilizer


city_names[]: prague city_names[]: edinburgh city_names[]: copenhagen city_names[]: gothenburg city_names[]: bergen city_names[]: groningen city_names[]: Sheffield

prefab_names[]: 44
prefab_names[]: 44
prefab_names[]: 44
prefab_names[]: 44
prefab_names[]: 44
prefab_names[]: 44
prefab_names[]: 44
}

Now, lets say for example, your city was called Athens, under the last city_name declaration, add: city_name[]: athens and copy one of the prefab_names[] lines and paste it under the last prefab name entry. Now you can save the file. Now, we need to enter some information into the initial_save directory which you should copy from base def/economy/initial_save and paste it into project def/economy/initial_save. Open the initial_save directory and you will see three directories, each of these directories contain the same files but all have to be added to. The three directories are called Normal, Preview and Quick. Let’s look at these files, you will need to make changes in each of these to make your companies work.


Game.sii

Your game.sii file looks very bewildering at the start, but the only portion of this file you will be working with are the company declarations, a list follows (Taken from crockett’s euro shindig)

companies[]: company.volatile.euroacres.berne companies[]: company.volatile.euroacres.lisbon companies[]: company.volatile.euroacres.warsaw companies[]: company.volatile.euroacres.bordeaux companies[]: company.volatile.euroacres.rome companies[]: company.volatile.euroacres.berlin companies[]: company.volatile.euroacres.madrid companies[]: company.volatile.euroacres.sheffield companies[]: company.volatile.euroacres.york companies[]: company.volatile.euroacres.carlisle companies[]: company.volatile.euroacres.gothenburg companies[]: company.volatile.euroacres.oslo companies[]: company.volatile.euroacres.lahti companies[]: company.volatile.euroacres.krakow companies[]: company.volatile.euroacres.lockerbie companies[]: company.volatile.euroacres.napoli companies[]: company.volatile.euroacres.coimbra companies[]: company.volatile.euroacres.dortmund companies[]: company.volatile.euroacres.eindhoven companies[]: company.volatile.euroacres.nantes companies[]: company.volatile.euroacres.zaragoza companies[]: company.volatile.euroacres.newcastle companies[]: company.volatile.eurogoodies.berlin companies[]: company.volatile.eurogoodies.prague companies[]: company.volatile.eurogoodies.paris companies[]: company.volatile.eurogoodies.berne companies[]: company.volatile.eurogoodies.brussels companies[]: company.volatile.eurogoodies.vienna companies[]: company.volatile.eurogoodies.barcelona companies[]: company.volatile.eurogoodies.milan companies[]: company.volatile.eurogoodies.warsaw companies[]: company.volatile.eurogoodies.london companies[]: company.volatile.eurogoodies.york companies[]: company.volatile.eurogoodies.manchester companies[]: company.volatile.eurogoodies.inverness companies[]: company.volatile.eurogoodies.arhus companies[]: company.volatile.eurogoodies.copenhagen companies[]: company.volatile.eurogoodies.oslo

companies[]: company.volatile.eurogoodies.lahti companies[]: company.volatile.eurogoodies.birmingham companies[]: company.volatile.eurogoodies.aberystwyth companies[]: company.volatile.eurogoodies.geneva companies[]: company.volatile.eurogoodies.genoa companies[]: company.volatile.eurogoodies.porto companies[]: company.volatile.eurogoodies.groningen companies[]: company.volatile.eurogoodies.eindhoven companies[]: company.volatile.eurogoodies.lehavre companies[]: company.volatile.eurogoodies.zaragoza companies[]: company.volatile.eurogoodies.gdansk companies[]: company.volatile.eurogoodies.belfast companies[]: company.volatile.stokes.newcastle companies[]: company.volatile.stokes.london companies[]: company.volatile.stokes.belfast companies[]: company.volatile.stokes.inverness companies[]: company.volatile.stokes.carlisle companies[]: company.volatile.stokes.aalborg companies[]: company.volatile.stokes.helsinki companies[]: company.volatile.stokes.geneva companies[]: company.volatile.stokes.coimbra companies[]: company.volatile.stokes.stuttgart companies[]: company.volatile.stokes.seville companies[]: company.volatile.stokes.exeter companies[]: company.volatile.bcp.exeter
companies[]: company.volatile.bcp.dublin companies[]: company.volatile.bcp.salzburg companies[]: company.volatile.bcp.manchester companies[]: company.volatile.fcp.avignon companies[]: company.volatile.fcp.lehavre companies[]: company.volatile.fcp.lyon companies[]: company.volatile.itcc.genoa companies[]: company.volatile.itcc.bari companies[]: company.volatile.itcc.milan companies[]: company.volatile.kaarfor.bordeaux companies[]: company.volatile.kaarfor.berne companies[]: company.volatile.kaarfor.brussels companies[]: company.volatile.kaarfor.madrid companies[]: company.volatile.kaarfor.frankfurt companies[]: company.volatile.kaarfor.belfast companies[]: company.volatile.kaarfor.copenhagen companies[]: company.volatile.kaarfor.napoli companies[]: company.volatile.kaarfor.groningen

companies[]: company.volatile.kaarfor.gdansk companies[]: company.volatile.kaarfor.paris companies[]: company.volatile.lkwlog.edinburgh companies[]: company.volatile.lkwlog.arhus companies[]: company.volatile.lkwlog.bergen companies[]: company.volatile.lkwlog.lockerbie companies[]: company.volatile.lkwlog.dortmund companies[]: company.volatile.lkwlog.gdansk companies[]: company.volatile.lkwlog.munich companies[]: company.volatile.nbfc.prague companies[]: company.volatile.nbfc.edinburgh companies[]: company.volatile.nbfc.copenhagen companies[]: company.volatile.nbfc.gothenburg companies[]: company.volatile.nbfc.bergen companies[]: company.volatile.nbfc.groningen companies[]: company.volatile.nbfc.sheffield companies[]: company.volatile.posped.aalborg companies[]: company.volatile.posped.helsinki companies[]: company.volatile.posped.bilbao companies[]: company.volatile.posped.aberystwyth companies[]: company.volatile.posped.coimbra companies[]: company.volatile.posped.porto companies[]: company.volatile.posped.eindhoven companies[]: company.volatile.posped.seville companies[]: company.volatile.posped.salzburg companies[]: company.volatile.posped.lisbon companies[]: company.volatile.sanbuilders.paris companies[]: company.volatile.sanbuilders.milan companies[]: company.volatile.sanbuilders.lisbon companies[]: company.volatile.sanbuilders.munich companies[]: company.volatile.sanbuilders.manchester companies[]: company.volatile.sellplan.prague companies[]: company.volatile.sellplan.berlin companies[]: company.volatile.sellplan.rome companies[]: company.volatile.sellplan.barcelona companies[]: company.volatile.sellplan.vienna companies[]: company.volatile.sellplan.amsterdam companies[]: company.volatile.sellplan.london companies[]: company.volatile.sellplan.newcastle companies[]: company.volatile.sellplan.exeter companies[]: company.volatile.sellplan.edinburgh companies[]: company.volatile.sellplan.aalborg companies[]: company.volatile.sellplan.lahti

companies[]: company.volatile.sellplan.geneva companies[]: company.volatile.sellplan.stuttgart companies[]: company.volatile.sellplan.seville companies[]: company.volatile.sellplan.munich companies[]: company.volatile.tradeaux.avignon companies[]: company.volatile.tradeaux.lehavre companies[]: company.volatile.tradeaux.lyon companies[]: company.volatile.trameri.carlisle companies[]: company.volatile.trameri.stockholm companies[]: company.volatile.trameri.birmingham companies[]: company.volatile.trameri.genoa companies[]: company.volatile.trameri.bari companies[]: company.volatile.trameri.porto companies[]: company.volatile.trameri.rome companies[]: company.volatile.transinet.dublin companies[]: company.volatile.transinet.krakow companies[]: company.volatile.transinet.bari companies[]: company.volatile.transinet.groningen companies[]: company.volatile.transinet.nantes companies[]: company.volatile.transinet.zaragoza companies[]: company.volatile.transinet.amsterdam companies[]: company.volatile.tree_et.frankfurt companies[]: company.volatile.tree_et.lyon companies[]: company.volatile.tree_et.inverness companies[]: company.volatile.tree_et.arhus companies[]: company.volatile.tree_et.gothenburg companies[]: company.volatile.tree_et.bilbao companies[]: company.volatile.tree_et.napoli companies[]: company.volatile.tree_et.dortmund companies[]: company.volatile.tree_et.nantes companies[]: company.volatile.tree_et.madrid companies[]: company.volatile.wgcc.frankfurt companies[]: company.volatile.wgcc.stuttgart

Notice that the company declarations are grouped by company name? this is to make it easier for you to find the right place to declare your city’s companies. Also, you must remember to copy the linux new line symbol (ڤ) To each and every new declaration you make otherwise your company declarations will not work. Also, remember that when you have finished adding your company declarations, save the game.sii into each of the three directories (quick, normal, preview) this will ensure that the files are identical in these directories and thus are less likely to fail.

Companies_new_game.sii


The companies_new_game.sii adds additional information regarding the companies to the game.sii file at runtime and therefore should also be updated with your company declarations but the way the companies are declared in this file is slightly different. The easiest way to add declarations to this file is to copy an existing declaration of the same company and change the city name to the name of your city. For your information, a sample list follows: (Taken from crockett’s euro shindig)

############# EUROACRES ############



company: company.volatile.euroacres.berne
{
permanent_data: company.permanent.euroacres
}


company: company.volatile.euroacres.lisbon
{
permanent_data: company.permanent.euroacres
}


company: company.volatile.euroacres.warsaw
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.bordeaux
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.rome
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.berlin
{
permanent_data:company.permanent.euroacres
}

company: company.volatile.euroacres.madrid
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.sheffield
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.york
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.newcastle
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.gothenburg
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.oslo
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.lahti
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.krakow
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.lockerbie
{
permanent_data:company.permanent.euroacres

}


company: company.volatile.euroacres.napoli
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.coimbra
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.dortmund
{
permanent_data:company.permanent.euroacres
}


company: company.volatile.euroacres.eindhoven
{
permanent_data:company.permanent.euroacres
}

As you can see, there is a structured way to make declarations in this file, the curly brackets as well as the linux new line symbols are critical for successful operation.


Now save this file in the same manner as game.sii, package project up into an scs file and paste the scs file into your game’s mod directory then test.


Siting companies on the city’s approach roads rather than in the city Sometimes it is not possible to ensure your company prefabs fall within the city entity, you can site them outside of the city but you need to add another city entity to make your companies work, press e then 9, select your city name from the drop down list but untick the box labelled “Show in ui map” then click OK, the city will be “Invisible” to the game but will still allow your companies to work.


Common Company Errors


Kdop link errors
These errors occur when the height of the company prefabs are higher or lower than one another in your city or the prefabs are higher or lower than

the height of your city entity. To fix, ensure your company prefabs are within your city entity and are not plus or minus more than .03 units to the height of your city entity. For example, if your city entity has a height of 17.35 units but your company prefabs have a height of 18.00 this will cause kdop link errors, reduce the height of your company prefabs until they either have a height of 17.38 or 17.32 NEVER set the height of your company prefabs at the same height exactly as your city.


Dangling pointer errors
These errors occur if you have declared your company prefab in the companies_new_game.sii but not in game.sii (or vice versa) check your declarations, it may even be something as simple as a missing dot or
bracket.

Copyright © 2010 Dave “Crockett” Jackson. All rights reserved
Part 1 Part 2 Part 3 Part 4 Part 5 Part 6 Part 7

Related Posts by Categories



0 comments :

Post a Comment

mohon koreksinya apabila salah (CMIIW), silahkan berkomentar dengan baik, penulis tidak bertanggung jawab atas apa yang anda sampaikan, jadi silahkan anda bertanggung jawab dengan apa yang anda sampaikan, terima kasih telah berkunjung, semoga bermanfaat [ baca disclaimer]