The International Simutrans Forum

 

Author Topic: Label list  (Read 504 times)

0 Members and 1 Guest are viewing this topic.

Offline Vladki

  • Devotee
  • *
  • Posts: 3450
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Label list
« on: May 08, 2020, 07:17:40 PM »
Is it possible to store last modification time in labels (markers)? And then sort by last modified time in list?
It would be helpful for online games, to search for new labels, as they are used for communication with offline players

Offline Ranran

  • Devotee
  • *
  • Posts: 1223
  • Languages: ja
Re: Label list
« Reply #1 on: May 12, 2020, 08:09:33 PM »
I think that is logically possible and easy. Just add the construction date to the marker. Rewrite the date when the marker is edited.

But I want to improve the chat feature.
Server time is more convenient than in-game date. Both displays are more convenient.
I would like to know briefly "how many minutes and how many days ago did you write that message?"
A function to send a message to a specific player. Add the display target to the message. Only that player can see it.
This is a standard function in online network games. (´・ω・`)
I don't know how difficult these implementations are. (For example, is it possible to get the current time of the computer with the current code?)
« Last Edit: May 12, 2020, 08:37:46 PM by Ranran »

Offline prissi

  • Developer
  • Administrator
  • *
  • Posts: 10240
  • Languages: De,EN,JP
Re: Label list
« Reply #2 on: May 14, 2020, 02:05:10 PM »
You can send it to a certain client, not to a certain company. However, only the server knows of all the clients, not the client. So private messages are doable, but some exercise, I am afraid.

The server could of course store more infos per chat message, such as the time written. That is rather easy.


Offline Freahk

  • Devotee
  • *
  • Posts: 1325
  • Languages: DE, EN
Re: Label list
« Reply #3 on: May 14, 2020, 02:53:10 PM »
Imho a more preciese ingame time is preferable over the real-world server time e.g. 2018/11 7:13:42
Anyways, that's arguable.
If real-world times are used, these should be translated to local time respecting time zones (and daylight saving time) instead of server time.
stdlib can handle this quite well.

Offline Ranran

  • Devotee
  • *
  • Posts: 1223
  • Languages: ja
Re: Label list
« Reply #4 on: May 14, 2020, 10:00:02 PM »
I think it's a good idea to have both, as their relevance to in-game trends is important.

How about this style?
(4/1/1945) Ranran <Ranran Co.>: Hello  -  5/15/2020 6:59


You can send it to a certain client
For direct chat:
(4/1/1945) Ranran >> Whisper words of wisdom  -  5/15/2020 6:59

We also need to be able to see the message you sent.
(4/5/1945) Ranran << let it be  -  5/15/2020 7:32
or
(4/5/1945) >> Ranran : let it be  -  5/15/2020 7:32


Quote
but some exercise, I am afraid.
Is it kind a collusion?

EDIT:
By the way, is this for the Extended project? I think it's a common project with Standard.
« Last Edit: May 14, 2020, 10:38:36 PM by Ranran »

Offline Vladki

  • Devotee
  • *
  • Posts: 3450
    • My addons, mostly roadsigns, pak128.cs
  • Languages: EN, CS
Re: Label list
« Reply #5 on: May 15, 2020, 07:08:48 AM »
By the way, is this for the Extended project? I think it's a common project with Standard.
Of course this would be useful for both versions

Offline Ranran

  • Devotee
  • *
  • Posts: 1223
  • Languages: ja
Re: Label list
« Reply #6 on: July 02, 2020, 09:18:25 AM »
I've looked at the code for a bit of implementation and found it to be more complicated than I thought.
I thought the marker was an object like a road sign, but it is just placing textual data on the ground... (´・ω・`)