News:

Simutrans Sites
Know our official sites. Find tools and resources for Simutrans.

Extended vehicles to Standard

Started by emirkir, June 10, 2018, 01:09:58 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

emirkir

As we discussed in the previous thread about Standard to Extended, I decided to make a new one.

I played around with what all you said in the previous thread and did this:

1. Downloaded X40 trains .dat and .png file.
2. Copied the .dat file into a NotePad document.
3. Saved it in case I mess up, and opened a new one that I edited to match this coding that @Ves shared:

# X52A SJ Blå

obj=vehicle
copyright=Ves
name=Se_X52A_2000_SJ_BLAA
waytype=track
freight=Passagiere
length=18
payload=125
overcrowded_capacity=25
weight=65
axles=4
RunningCost=1340
intro_year=2000
intro_month=1
retire_year=2500
retire_month=1
#gear=110
power=1060
speed=200
cost=45000
engine_type=electric

constraint[next][0]=Se_X52A_2000_SJ_BLAA
constraint[next][1]=Se_UB52_2000_SJ_BLAA
constraint[next][2]=Se_UB52_Unpowered_2000_SJ_BLAA
constraint[next][3]=Se_X52B_2000_SJ_BLAA
#constraint[next][4]=none

#constraint[prev][0]=Se_X52A_2000_SJ_BLAA
constraint[prev][0]=Se_UB52_2000_SJ_BLAA
constraint[prev][1]=Se_UB52_Unpowered_2000_SJ_BLAA
constraint[prev][2]=Se_X52B_2000_SJ_BLAA
constraint[prev][3]=none


bidirectional=1
tractive_effort=71
is_tilting=0
#way_constraint_permissive[2]=2

EmptyImage[W]=X50-X54-SJ.0.0
EmptyImage[NW]=X50-X54-SJ.0.1
EmptyImage[N]=X50-X54-SJ.0.2
EmptyImage[NE]=X50-X54-SJ.0.3
EmptyImage[E]=X50-X54-SJ.0.4
EmptyImage[SE]=X50-X54-SJ.0.5
EmptyImage[S]=X50-X54-SJ.0.6
EmptyImage[SW]=X50-X54-SJ.0.7

---

# X52A Tåg i Bergslagen

obj=vehicle
copyright=Ves
name=Se_X52A_2000_TiB
freight=Passagiere
length=18
payload=125
overcrowded_capacity=25
weight=65
axles=4
RunningCost=1340
intro_year=2000
intro_month=1
retire_year=2500
retire_month=1
#gear=110
power=1060
speed=200
cost=45000
engine_type=electric

constraint[next][0]=Se_X52A_2000_TiB
constraint[next][1]=Se_UB52_2000_TiB
constraint[next][2]=Se_UB52_Unpowered_2000_TiB
constraint[next][3]=Se_X52B_2000_SJ_TiB
#constraint[next][4]=none

#constraint[prev][0]=Se_X52A_2000_TiB
constraint[prev][0]=Se_UB52_2000_TiB
constraint[prev][1]=Se_UB52_Unpowered_2000_TiB
constraint[prev][2]=Se_X52B_2000_TiB
constraint[prev][3]=none


bidirectional=1
tractive_effort=71
is_tilting=0
#way_constraint_permissive[2]=2

EmptyImage[W]=X50-X54-TiB.0.0
EmptyImage[NW]=X50-X54-TiB.0.1
EmptyImage[N]=X50-X54-TiB.0.2
EmptyImage[NE]=X50-X54-TiB.0.3
EmptyImage[E]=X50-X54-TiB.0.4
EmptyImage[SE]=X50-X54-TiB.0.5
EmptyImage[S]=X50-X54-TiB.0.6
EmptyImage[SW]=X50-X54-TiB.0.7

---

# X52A Player Color

obj=vehicle
copyright=Ves
name=Se_X52A_2000_player_color
waytype=track
freight=Passagiere
length=18
payload=125
overcrowded_capacity=25
weight=65
axles=4
RunningCost=1340
intro_year=2000
intro_month=1
retire_year=2500
retire_month=1
#gear=110
power=1060
speed=200
cost=45000
engine_type=electric

constraint[next][0]=Se_X52A_2000_player_color
constraint[next][1]=Se_UB52_2000_player_color
constraint[next][2]=Se_UB52_Unpowered_2000_player_color
constraint[next][3]=Se_X52B_2000_player_color
#constraint[next][4]=none

#constraint[prev][0]=Se_X52A_2000_player_color
constraint[prev][0]=Se_UB52_2000_player_color
constraint[prev][1]=Se_UB52_Unpowered_2000_player_color
constraint[prev][2]=Se_X52B_2000_player_color
constraint[prev][3]=none


bidirectional=1
tractive_effort=71
is_tilting=0
#way_constraint_permissive[2]=2

EmptyImage[W]=X50-X54-PLAYER.0.0
EmptyImage[NW]=X50-X54-PLAYER.0.1
EmptyImage[N]=X50-X54-PLAYER.0.2
EmptyImage[NE]=X50-X54-PLAYER.0.3
EmptyImage[E]=X50-X54-PLAYER.0.4
EmptyImage[SE]=X50-X54-PLAYER.0.5
EmptyImage[S]=X50-X54-PLAYER.0.6
EmptyImage[SW]=X50-X54-PLAYER.0.7

---

4. Saved the edited .txt file to a .dat file (renaming it in Save As).
5. Downloaded MakeObj from SourceForge.
6. Placed the .dat and the .png (I did not modify the .png at all) in the same folder that makeobj.exe was in.
7. Opened command-prompt (Windows-key, search for cmd).
8. Changed directory to the folder that makeobj.exe was in.
9. I ran the command: makeobj pak128 and this came up:
C:\Users\emirkir\Downloads\makeobj-win-60-0>makeobj pak128
Makeobj version 60.0 for Simutrans 120.2 and higher
writing invidual files to ./
   reading file ./X40.dat
   writing file ./vehicle.Se_X40a_2000_SJ_Dubbeldackaren.pak
      packing vehicle.Se_X40a_2000_SJ_Dubbeldackaren
Warning: Se_X40a_2000_SJ_Dubbeldackaren:        Entry "axles=4" ignored (check spelling)
Warning: Se_X40a_2000_SJ_Dubbeldackaren:        Entry "bidirectional=1" ignored (check spelling)
Warning: Se_X40a_2000_SJ_Dubbeldackaren:        Entry "is_tilting=0" ignored (check spelling)
Warning: Se_X40a_2000_SJ_Dubbeldackaren:        Entry "overcrowded_capacity=15" ignored (check spelling)
Warning: Se_X40a_2000_SJ_Dubbeldackaren:        Entry "tractive_effort=30" ignored (check spelling)
   writing file ./vehicle.Se_X40m_2000_SJ_Dubbeldackaren.pak
      packing vehicle.Se_X40m_2000_SJ_Dubbeldackaren
Warning: Se_X40m_2000_SJ_Dubbeldackaren:        Entry "axles=4" ignored (check spelling)
Warning: Se_X40m_2000_SJ_Dubbeldackaren:        Entry "comfort=180" ignored (check spelling)
Warning: Se_X40m_2000_SJ_Dubbeldackaren:        Entry "bidirectional=1" ignored (check spelling)
Warning: Se_X40m_2000_SJ_Dubbeldackaren:        Entry "catering_level=1" ignored (check spelling)
Warning: Se_X40m_2000_SJ_Dubbeldackaren:        Entry "is_tilting=0" ignored (check spelling)
Warning: Se_X40m_2000_SJ_Dubbeldackaren:        Entry "overcrowded_capacity=15" ignored (check spelling)
Warning: Se_X40m_2000_SJ_Dubbeldackaren:        Entry "tractive_effort=29" ignored (check spelling)
   writing file ./vehicle.Se_X40b_2000_SJ_Dubbeldackaren.pak
      packing vehicle.Se_X40b_2000_SJ_Dubbeldackaren
Warning: Se_X40b_2000_SJ_Dubbeldackaren:        Entry "can_lead_from_rear=1" ignored (check spelling)
Warning: Se_X40b_2000_SJ_Dubbeldackaren:        Entry "axles=4" ignored (check spelling)
Warning: Se_X40b_2000_SJ_Dubbeldackaren:        Entry "bidirectional=1" ignored (check spelling)
Warning: Se_X40b_2000_SJ_Dubbeldackaren:        Entry "is_tilting=0" ignored (check spelling)
Warning: Se_X40b_2000_SJ_Dubbeldackaren:        Entry "overcrowded_capacity=20" ignored (check spelling)
Warning: Se_X40b_2000_SJ_Dubbeldackaren:        Entry "tractive_effort=30" ignored (check spelling)

10. Now there was some .pak files in the directory where I installed makeobj.exe.
11. I copied these .pak files into \Documents\Simutrans\addons\pak128.
12. I ran the game (without Follow Timeline-setting).
13. I came up with this result: IGNORE THE MOVEMENTS OF THE TRAIN WHEN I MOVE THE MAP, (this is caused by the recording-software), look instead at the gates on roads and how the train moves when "Follow Me" is set, and when map is standing still
https://drive.google.com/file/d/1E7ERrI1rF40_Q_QpxLOm10vVknja3NdE/view?usp=sharing

See all .dat-files, .pak-files, .txt-files and the recording in this Google-Drive folder:
https://drive.google.com/drive/folders/1RTtDN1CJZyWgCF8PIEtstePXWZDYc3we?usp=sharing

What have I done wrong when converting it? (Is the train-length supposed to be that long or is that an issue?)

JOIN SIMUTRANS DISCORD-SERVER! https://discord.gg/fpXY772

Vladki

I think that you did everything right. The warnings from makeobj are about features that are only in extended. The scale of vehicles in pak128.sweden is different from pak128.

emirkir

But if you look at how the gates on roads behave when the train is passing by?
Everything doesn't seem to work properly if you watch the video (don't think about the lagging, it's the recording-software).

Is there a way to scale down vehicles?

JOIN SIMUTRANS DISCORD-SERVER! https://discord.gg/fpXY772

Ves

The vehicles are of approximately scale 24 meters per tile. The problems you are seeing is from vehicles above 24 meters, which means they are longer than a tile. It is a bug in the game that the crossings behave in that manner, that would be for a coder to look into. The strange gaps between the vehicles when they are doing corners are because I have not aligned them properly in the diagonal directions. It is not a difficult job, it's just a matter of finding the correct offset values and apply them in the datfiles.

It is, however, very difficult and tedious to rescale the vehicles. It would have to be done by hand, and it might be very tricky to get consistent results. Also, that would be a permanent job to do, for whenever I paint a new vehicle in 24m per tile scale :)

emirkir

Okay, then I succeeded with the transfer!
It wasn't such a tiedeous job... I just removed some numbers and added a new name in some places...

JOIN SIMUTRANS DISCORD-SERVER! https://discord.gg/fpXY772

Ves

Yes in principle it is quite easy, there are just quite a bunch of vehicles to go through, which is the teddious part. :P

May I ask, would you not consider to come over to Extended? Especially if you also want to contribute to the pakset, it is easier if we are all on the same platform! :)
If it only is the map that binds you to Standard, you could see it as an opportunity to redo the map and fix eventual mistakes you might have made  ;D

emirkir

Okay @Ves, here's the things that binds me to Simutrans Standard .pak128:
1. Östersund-map (but I can start it over in Extended, don't worry  :) )
2. Extended crashes on my computer, when a new map with NOT default settings is loaded the game freezes and it says: Simutrans Extended does not respond.
3. Extended crashes on my computer, when loading a map with default settings, just crashes with no freeze. (No error message or anything in neather of these crashes.)
4. To be honest, I think the estethics of Standard .pak128 looks a lot more real and bright, when in .pak Sweden it's a bit dark and only cottages, "old style" while Standard is 2018. (Sorry if someone gets hurt! I don't want to make anyone disappointed!)
5. It feels more stable in Steam than from an exe, I don't know why?

Help me with the crashes, then I'll look more into pakSweden, I have not access to it yet...

JOIN SIMUTRANS DISCORD-SERVER! https://discord.gg/fpXY772

Ves

Hmm.. I had no problems what so ever to modify the default settings and create a new map. I believe the best thing you can do is this:

- Ensure you have the latest nightly build executable and pakset (it updates every night, although the pakset has been the same for months currently)
- If the problem persists, delete the entire installation and redownload the complete package once again. Also, remove the "Simutrans" folder from your Documents folder (just rename it to keep it as a backup). A new one will be created by the game.
- If the problem still exists, take note of each steps you do, what setting you are altering and write it in a post so James can have a look.

Regarding number 4, there is not very much content, especially buildings, in the swedish pakset. So yes, its basically just forrests and "röda stugor" at the moment :P

emirkir

Ok I'll do that. I report here again my progress in a day or two.

Regarding the "röda stugor", does the game run slower with many addons? If not, then is there a possibility to import buildings and other stuff from the standard .pak128?

And maybe the "Stadshus" will appear! ;)

JOIN SIMUTRANS DISCORD-SERVER! https://discord.gg/fpXY772

Ves

I dont think it runs slower. You can always add the buildings as addons! Just copy their datfiles into pak.sweden, and they should show up!

Regarding the stadshus:
https://forum.simutrans.com/index.php/topic,15743.msg173690.html#msg173690

emirkir

VERY NICE!!!

It's very fun to have a familiar "Stadshus" in-game!
It looks like it too, just from that image.

Want more inspiration?

+If you are working on a tutorial about making objects, I could contribute with stuff to the pak too, I like to paint and code so, that's a BINGO!

JOIN SIMUTRANS DISCORD-SERVER! https://discord.gg/fpXY772

emirkir


JOIN SIMUTRANS DISCORD-SERVER! https://discord.gg/fpXY772