News:

Simutrans.com Portal
Our Simutrans site. You can find everything about Simutrans from here.

pak64 tutorial - changes to multipak

Started by Andarix, October 28, 2024, 07:57:18 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Andarix

#35
A new release of Simutrans is planned for next week.

Please check the tutorials for pak64 and pak128 for functionality and correctness of the texts.

Texts are currently available for English, Spanish and German.
The texts can be changed here.
If you can't find a text, ask here before changing an incorrect text.

the linked text chapter_03#01_2-2.txt is Chapter 3 Step A Substep 2/2

And something else important: The texts presented here are based on pak64. If you make any changes to the content for pak128, please DO NOT CHANGE them, but post them here.

The current version r11559 of Simutrans is required.
Nightly Andarix
Nightly Simutrans Organisation

[EDIT]

new version below

Yona-TYT

Wouldn't it be a good idea to send the texts to simutanslator?.

Andarix

#37
Quote from: Yona-TYT on December 30, 2024, 11:55:22 AMWouldn't it be a good idea to send the texts to simutanslator?.

You are welcome to do that.

I don't have an account there and the service is very inefficient. Which is why I won't have an account there either.


or you translate in the Wiki

Yona-TYT

#38
I will use this link for the text update script https://simutrans-germany.com/translator_page/scenarios/scenario_5/data/language_pack-Scenario+Tutorial+multipak.zip

Edit.
I have already sent all the updates to pak128, and I have also updated the link of the script to download texts.
https://github.com/simutrans/pak128/commit/238d73031edffefe4a947654e82d57471cf7fb5b

Andarix

With Git you can also add other Git repos as subrepos.

There seems to be some confusion in the translations. It is necessary to delete them first. If you just copy them in, old files will remain.

Yona-TYT

Quote from: Andarix on December 30, 2024, 03:22:07 PMWith Git you can also add other Git repos as subrepos.

There seems to be some confusion in the translations. It is necessary to delete them first. If you just copy them in, old files will remain.
Ok, I'm going to delete them and download the new ones, I don't know much about git so I don't know how to create a sub repo

Andarix

Quote from: Yona-TYT on December 30, 2024, 04:02:40 PMOk, I'm going to delete them and download the new ones, I don't know much about git so I don't know how to create a sub repo

https://git-scm.com/book/en/v2/Git-Tools-Submodules

Andarix

#42
Quote from: Andarix on December 30, 2024, 11:21:45 AMA new release of Simutrans is planned for next week.

Please check the tutorials for pak64 and pak128 for functionality and correctness of the texts.

Texts are currently available for English, Spanish and German.
The texts can be changed here.
If you can't find a text, ask here before changing an incorrect text.

[EDIT]

new download here

the linked text chapter_03#01_2-2.txt is Chapter 3 Step A Substep 2/2

And something else important: The texts presented here are based on pak64. If you make any changes to the content for pak128, please DO NOT CHANGE them, but post them here.

The current version r11559 of Simutrans is required.
Nightly Andarix
Nightly Simutrans Organisation


[EDIT]

new testversion

Andarix

adding info text for paksets

example info_pak128.txt

Display below the tutorial short info

simscr07.png

Yona-TYT

Quote from: Andarix on December 30, 2024, 04:56:33 PMhttps://git-scm.com/book/en/v2/Git-Tools-Submodules

Clone the repo and delete all unnecessary files, this worked fine, it's the same as what they do in pak129.comic

https://github.com/simutrans/pak128/commit/ca8a57c50c232ce237a0b691aec1776b6e40d82e


Edit.

This is no longer a pak64-only tutorial, so I'd like to rename the repo to https://github.com/simutrans/tutorial_multipak 

I'd also like to stop it from being a forked, what happens if I delete the main repo? Will this one be deleted too?.

Yona-TYT

Quote from: Andarix on December 31, 2024, 02:22:33 PMadding info text for paksets

example info_pak128.txt

Display below the tutorial short info

simscr07.png
I think it's a good idea, each pack has its own unique economy and behavior. ;)



Andarix

add release script

https://github.com/simutrans/tutorial_multipak/releases

I just don't know how to add a tag in the browser.

Yona-TYT


Yona-TYT

#50
There are several uncommented debug messages, are you still testing?.



This isn't actually doing anything, however I'm not sure whether to remove that line now.
chapter            <- tutorial.chapter_02       // must be placed here !!!

https://github.com/simutrans/tutorial_multipak/commit/b6a6a9f8e06cff681c0d56472147c357fb90a95c

Andarix

Quote from: Yona-TYT on January 01, 2025, 12:14:30 AMThere are several uncommented debug messages, are you still testing?.

...

disable forgot


Yona-TYT

When reloading a savegame, the variables are not being sent correctly to the text files.
Captura de pantalla -2025-01-01 12-23-20.png


Isaac Eiland-Hall


Yona-TYT

The savegames from the other paksets are not removed, I tried to fix it but I realized this is not linux.

I reverted the changes here: https://github.com/simutrans/tutorial_multipak/commit/65ba87acf7556a7cf053f7647ba97b2a13813860

I also left "workflow_dispatch" enabled, but if you notice that it is detrimental you can remove it.  ;)
Captura de pantalla -2025-01-01 18-15-13.png

Andarix

Why shouldn't the other sve be included?

Since the rest of the code, including set_data.nut, contains references to all 3 sets, the sve files should also be included.

And 600 kByte more makes no difference.

But if that bothers you, you can do that.



change for single file

Quotecopy *.sve tutorial

->

copy [filename].sve tutorial

Yona-TYT

Quote from: Andarix on January 01, 2025, 10:53:13 PMBut if that bothers you, you can do that.
No, there is no problem, in any case the pak128 repo is in charge of cleaning everything and pak64 is @prissi who does it (manually I think).

prissi

#59
How to include the latest version into the pak64 svn? Download the entire folder? And the text import script, is that stil valid? I though this was now moved over to Frank?

And you are calling functions before initialisation like ttext() line 18 (see documentation, this is impossible for squirrel, "common pitfalls")

When accidentily close all windows, I close also the toturial and it does not come back. Also the tutorial is always at the bottom and the scrollbar is strange.

In the release version, I could not build a road. Any click on 185 and 186 never built anything. Only when dragging I could build a road. Quite confusing.

Later error message appear for a short time (There is a halt here and only 7 halts are needed) which vanish quickly and proceed to the next stop.

Also later, I had to click many times quickly to build the bridge. A single click was always ignored.

In the line window, if one makes any mistake, on cannot amend this in the depot window. I think the line window needs some words too,

Then I accidentally closed all windows and could not continue.

Yona-TYT



Quote from: prissi on January 02, 2025, 12:22:14 AMWhen accidentily close all windows, I close also the toturial and it does not come back.
I don't understand this, it seems to have more to do with the GUI than with squirrel.

Quote from: prissi on January 02, 2025, 12:22:14 AMIn the release version, I could not build a road. Any click on 185 and 186 never built anything. Only when dragging I could build a road. Quite confusing.
This is strange, on my PC I am not able to replicate this, maybe on touch devices it is different?.

Quote from: prissi on January 02, 2025, 12:22:14 AMLater error message appear for a short time (There is a halt here and only 7 halts are needed) which vanish quickly and proceed to the next stop.
"only 7 halts are needed", This should only appear once there are already 7 stops built, if it appears before then it is a bug.
"There is a halt here", This only appears if there is already a stop at the marked point and you click on it again.

Quote from: prissi on January 02, 2025, 12:22:14 AMAlso later, I had to click many times quickly to build the bridge. A single click was always ignored.
As with the road, on my PC this works fine, I don't know what factors could be causing failures from one device to another.



Andarix

Quote from: prissi on January 02, 2025, 12:22:14 AM....
When accidentily close all windows, I close also the toturial and it does not come back. Also the tutorial is always at the bottom and the scrollbar is strange.
....

This is probably due to the new nested menus.

pak64 reopern tutorial

reopen_scenario.png

And there was a bug report about the scroll bars a long time ago. Squirrel has no access to this at all.

Andarix

Quote from: prissi on January 02, 2025, 12:22:14 AM...
Later error message appear for a short time (There is a halt here and only 7 halts are needed) which vanish quickly and proceed to the next stop.
...

This happens when you have built the 7 stops and then accidentally click somewhere because the tool is still active.



I create a release v2.0.00

The files contain the translations and texts from now on.

prissi

I think we need a floating icon if a scenario is active. Or at least something like the networkicon to click on the continue the tutorial.

Bet would be check if close and reopen the window after 5 s from the script. Not sure if possible.

I will look into the scroll issues and maybe there is a way to jump to the top when replacing text from squirrel.

Andarix

Quote from: prissi on January 02, 2025, 12:51:04 PM....
I will look into the scroll issues and maybe there is a way to jump to the top when replacing text from squirrel.

When you resize the window, the bars jump to the edge.

Quote from: prissi on January 02, 2025, 12:51:04 PM...
Bet would be check if close and reopen the window after 5 s from the script. Not sure if possible.
...

As far as I know, there is currently no access from Squirrel.

That is also the problem that the toolbars cannot be closed when all icons are hidden.

prissi

#65
Backspace works ...

There was also an error that Simutrans crashed when editing a schedule as the calcuation of the has might never encounter a null byte before out of bounds access for that emory page. I still need to find the scrollbar error.

EDIT: found the error that the tutorial never realised that the texts were updated. But now I cannot preceed beyond clicking on the attractions. There is never something flashing any more.

Yona-TYT

Quote from: prissi on January 02, 2025, 01:25:04 PMBut now I cannot preceed beyond clicking on the attractions. There is never something flashing any more.
Now I have a horrible headache, so I'll try to fix it later, I'll try to use the time_x class to calculate the delay.

Andarix

Quote from: prissi on January 02, 2025, 01:25:04 PM...
EDIT: found the error that the tutorial never realised that the texts were updated. But now I cannot preceed beyond clicking on the attractions. There is never something flashing any more.

It looks like the delay_mark_tile() function no longer works.

This means that the label_bord() function is not terminated or the script is no longer called after execution.

Yona-TYT

Quote from: Andarix on January 02, 2025, 06:27:49 PMIt looks like the delay_mark_tile() function no longer works.

This means that the label_bord() function is not terminated or the script is no longer called after execution.

This is what causes the failure:
Quote from: Yona-TYT on January 02, 2025, 01:21:00 AMThis doesn't work currently, this patch fixes it: 0001-ADD-support-for-iterate-tile_x.patch

prissi

Reverted your patch and made also the scrollbar reset when text is changed. However, this has the side effect, that when building a stop, then scrollbar also reverts to zero. I have no easy idea how to fix that unless only looking at the first 128 bytes or so, which only change between chapter.