Author Topic: [Windows] Context menu entries to compile dat files  (Read 671 times)

0 Members and 1 Guest are viewing this topic.

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2594
  • Total likes: 290
  • Helpful: 89
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
[Windows] Context menu entries to compile dat files
« on: December 27, 2016, 08:53:49 PM »
What if Simutrans could read dat+png directly from a zipped file? This would work around the pak-file-format problem, at least for open paksets. Plus testing new objects would be a lot easier too - though loading time is probably longer.
Even though I disagree with the proposed solution, I agree that it can be a hassle to compile one or two files to test right away.

So I got some time and created this registry file that includes two context menu (right-click menu) entries to compile a dat to a pak immediately. One entry will compile in your preferred size and the second will ask you for the size.

You need to rename the txt to reg and edit the paths in the file. What you need to edit to make it work is explained in the file itself. After all that, just double-click the file to "install" it.

You can first try using the first attachment, if it fails try the second that ends with System.txt, this second files adds entries in HKCR\SystemFileAssociation\.dat and has worked for Leartin.
« Last Edit: January 07, 2017, 07:37:41 PM by An_dz »

Offline Leartin

  • Devotee
  • *
  • Posts: 843
  • Total likes: 301
  • Helpful: 44
  • !!!!!This user was banned for double posting!!!!!
  • Languages: DE, EN
Re: [Windows] Context menu entries to compile dat files
« Reply #1 on: December 28, 2016, 06:35:34 AM »
Could not test it yet, but it seems very, very useful. Many thanks!

Offline Leartin

  • Devotee
  • *
  • Posts: 843
  • Total likes: 301
  • Helpful: 44
  • !!!!!This user was banned for double posting!!!!!
  • Languages: DE, EN
Re: [Windows] Context menu entries to compile dat files
« Reply #2 on: January 06, 2017, 03:58:16 PM »
I tried to use it today, sadly, it did not work for me at all. I replaced the paths, saved as a reg-file and double-clicked it, then restartet my PC, but there is no new context menu entry to be seen. Which is strange - even if my paths were wrong, it should still show, right?

Offline An_dz

  • Web Admin
  • Administrator
  • *
  • Posts: 2594
  • Total likes: 290
  • Helpful: 89
  • D'oh
    • by An_dz
  • Languages: PT, EN, (it, de)
Re: [Windows] Context menu entries to compile dat files
« Reply #3 on: January 07, 2017, 07:36:30 PM »
I spoke with Leartin and we could fix it, the problem was that he needed to have the entries in HKCR\SystemFileAssociation\.dat

So I also uploaded a version that creates the entries on that point. It's the second file that ends with System.txt. You can use it if you don't see the entries on your side.