Author Topic: Add a Marker  (Read 447 times)

0 Members and 1 Guest are viewing this topic.

Offline railh

Add a Marker
« on: April 26, 2017, 05:34:35 PM »
I try to add a marker via a scenario (simutrans-extended):
Code: [Select]
function start() {

function setlabels() {
    label_x.create(coord(997,369), player_x (0),"Text")

And get: "Error: [the index 'label_x' does not exist]"

What am I doing wrong?

Offline Dwachs

  • DevTeam, Coder/patcher
  • Administrator
  • *
  • Posts: 4251
  • Total likes: 177
  • Helpful: 149
  • Languages: EN, DE, AT
Re: Add a Marker
« Reply #1 on: April 26, 2017, 07:13:25 PM »
It seems that simutrans-extended did not port some parts of the scripting api. This would be script/api/ in this case.
Parsley, sage, rosemary, and maggikraut.

Offline jamespetts

  • Simitrans-Extended project coordinator
  • Moderator
  • *
  • Posts: 15832
  • Total likes: 405
  • Helpful: 177
  • Cake baker
    • Bridgewater-Brunel
  • Languages: EN
Re: Add a Marker
« Reply #2 on: April 29, 2017, 03:18:47 PM »
Indeed: I have not ported a great deal of the scripting API, as it is highly complex and Extended is quite different such that a huge amount of time adapting it would be necessary.

If anyone would like to integrate the scripting code into Extended, however, I should happily incorporate those changes into the main Extended code provided that it works.
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.