The International Simutrans Forum

 

Author Topic: Extended vehicles to Standard  (Read 560 times)

0 Members and 1 Guest are viewing this topic.

Offline emirkir se

  • *
  • Posts: 124
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Extended vehicles to Standard
« on: June 10, 2018, 01:09:58 PM »
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:
Code: [Select]
# 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:
Code: [Select]
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?)

Offline Vladki cz

  • Devotee
  • *
  • Posts: 2647
    • My addons, mostly roadsigns
  • Languages: EN, CS
Re: Extended vehicles to Standard
« Reply #1 on: June 10, 2018, 02:36:27 PM »
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.

Offline emirkir se

  • *
  • Posts: 124
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Re: Extended vehicles to Standard
« Reply #2 on: June 10, 2018, 03:26:15 PM »
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?

Offline Ves

  • Moderator
  • *
  • Posts: 1661
  • Languages: EN, SV, DK
Re: Extended vehicles to Standard
« Reply #3 on: June 10, 2018, 03:49:34 PM »
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 :)

Offline emirkir se

  • *
  • Posts: 124
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Re: Extended vehicles to Standard
« Reply #4 on: June 10, 2018, 05:29:33 PM »
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...

Offline Ves

  • Moderator
  • *
  • Posts: 1661
  • Languages: EN, SV, DK
Re: Extended vehicles to Standard
« Reply #5 on: June 10, 2018, 07:58:56 PM »
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

Offline emirkir se

  • *
  • Posts: 124
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Re: Extended vehicles to Standard
« Reply #6 on: June 10, 2018, 08:07:50 PM »
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...

Offline Ves

  • Moderator
  • *
  • Posts: 1661
  • Languages: EN, SV, DK
Re: Extended vehicles to Standard
« Reply #7 on: June 10, 2018, 08:28:57 PM »
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

Offline emirkir se

  • *
  • Posts: 124
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Re: Extended vehicles to Standard
« Reply #8 on: June 10, 2018, 08:32:27 PM »
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! ;)

Offline Ves

  • Moderator
  • *
  • Posts: 1661
  • Languages: EN, SV, DK
Re: Extended vehicles to Standard
« Reply #9 on: June 10, 2018, 08:45:10 PM »
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

Offline emirkir se

  • *
  • Posts: 124
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Re: Extended vehicles to Standard
« Reply #10 on: June 10, 2018, 08:50:04 PM »
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!

Offline emirkir se

  • *
  • Posts: 124
  • Join Simutrans Discord: https://discord.gg/fpXY772
  • Languages: SV, EN, FI
Re: Extended vehicles to Standard
« Reply #11 on: June 12, 2018, 01:38:31 PM »
Nope, still no gaming on Simutrans-Extended...
New topic/thread:
https://forum.simutrans.com/index.php/topic,18286.0.html