News:

Simutrans Wiki Manual
The official on-line manual for Simutrans. Read and contribute.

Problems placing text labels.

Started by Yona-TYT, October 08, 2016, 08:43:00 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Yona-TYT


Problems placing text labels.
Scenario: Tutorial-%28test2%29.zip
Savegame: Tutorial3.sve
class_chapter_03.nut (63)
For some reason I can not put a label using the human player "label_x.create(label1, player_x (0), translate(" Form here "))", but if possible when are using the public service.


Other players show this error.


Dwachs

#1
Commands issued by the scneario will be checked again by is_work_allwoed_*, which is a bug, and will be fixed soon.

The error message you are getting (cannot convert string) is issued, when squirrel cannot convert a string to a number. Not sure, what is wrong in your script.

Edit: the label-placing bug should be fixed in r7897.
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

Quote from: Dwachs on October 08, 2016, 11:08:01 AM
The error message you are getting (cannot convert string) is issued, when squirrel cannot convert a string to a number. Not sure, what is wrong in your script.
This error occurs when placed for example: "label_x.create(label1, player_x (2), translate(" Form here "))"

Dwachs

Parsley, sage, rosemary, and maggikraut.


Dwachs

The problem is that player_x(2) is not active. The program displays a completely unrelated error message. This is now changed with r7918
Parsley, sage, rosemary, and maggikraut.

Yona-TYT

Quote from: Dwachs on October 19, 2016, 07:51:06 PM
The problem is that player_x(2) is not active. The program displays a completely unrelated error message. This is now changed with r7918
I did not realize that. :-[
Quote from: Dwachs on October 08, 2016, 11:08:01 AM
Commands issued by the scneario will be checked again by is_work_allwoed_*, which is a bug, and will be fixed soon.

The error message you are getting (cannot convert string) is issued, when squirrel cannot convert a string to a number. Not sure, what is wrong in your script.

Edit: the label-placing bug should be fixed in r7897.
By the way, text labels work very well. ;D