Author Topic: Problems placing text labels.  (Read 1059 times)

0 Members and 1 Guest are viewing this topic.

Offline Yona-TYT

Problems placing text labels.
« on: October 08, 2016, 08:43:00 AM »

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.

« Last Edit: October 08, 2016, 08:55:25 AM by Yona-TYT »

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4224
  • Total likes: 168
  • Helpful: 148
  • Languages: EN, DE, AT
Re: Problems placing text labels.
« Reply #1 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.
« Last Edit: October 08, 2016, 01:50:44 PM by Dwachs »
Parsley, sage, rosemary, and maggikraut.

Offline Yona-TYT

Re: Problems placing text labels.
« Reply #2 on: October 08, 2016, 02:43:25 PM »
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 "))"

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4224
  • Total likes: 168
  • Helpful: 148
  • Languages: EN, DE, AT
Re: Problems placing text labels.
« Reply #3 on: October 08, 2016, 02:58:49 PM »
I could not reproduce this.
Parsley, sage, rosemary, and maggikraut.

Offline Yona-TYT

Re: Problems placing text labels.
« Reply #4 on: October 09, 2016, 10:18:44 PM »

I could not reproduce this.
I loaded this scenario to replicate: Tutorial-chapter3.zip

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4224
  • Total likes: 168
  • Helpful: 148
  • Languages: EN, DE, AT
Re: Problems placing text labels.
« Reply #5 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
Parsley, sage, rosemary, and maggikraut.

Offline Yona-TYT

Re: Problems placing text labels.
« Reply #6 on: October 20, 2016, 01:44:01 AM »
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. :-[
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