Recent Posts

Pages: 1 2 3 [4] 5 6 7 ... 10
Pak128.German / Re: Version 0.8 has been released
« Last post by fam621 on March 15, 2018, 05:27:44 PM »
@ Isaac.Island-Hall: It is a gathering of outstanding neighbours   ;)

While they don't need much space, the greatest soccer stadium in Germany does. It certainly is the largest stadium in the simutrans world.

The Football (Soccer) players/fans of Dortmund would be proud of that! Great picture/building mate!
Even after the updates been released, its never to early to start working on the next ones! xD

Simutrans Extended Development / Re: Schedule features: technical discussion
« Last post by jamespetts on March 15, 2018, 04:41:47 PM »
Are you referring to how to set and read the bitfields (of which condition_trigger) is one? If so, then you need to use the following methods as defined in schedule.h:

Code: [Select]
bool is_flag_set(schedule_entry_flag flag) const { return flag & flags; }

void set_flag(schedule_entry_flag flag) { flags |= flag; }

void clear_flag(schedule_entry_flag flag) { flags &= ~flag; }

So, if you want to check whether the condition trigger is set for a schedule entry called "kittens_entry", you would do as follows:

Code: [Select]
bool is_set = kittens_entry.is_flag_set(condition_trigger);

If you want to set the target_id_condition_trigger field, you need only set it directly from the relevant schedule_entry_t object, so, for example:

Code: [Select]
kittens_entry.target_id_condition_trigger = 5;

Does this assist?
Simutrans Gaming Discussion / Re: How do you name your routes?
« Last post by chung390 on March 15, 2018, 01:57:04 PM » player here.
I use a random city's name for the line. I mention every line that the train passes through.
Then I separate the fast and slow trains (sometimes I add names for the express trains)
After that I add the terminals if it only serves for a part of the line.

For trucks I currently use 'A-B Delivery Truck'
Simutrans Extended Development / Schedule features: technical discussion
« Last post by Ves on March 15, 2018, 01:46:29 PM »
Thanks, but how do I manipulate the entry? How do I set the condition trigger to, say 5?
Yes, when using mirror schedule, you can’t have any entry but the terminus as the first entry. Also, a schedule look much cleaner when the terminuses are at the ends of the schedule.
Archived Announcements / List server and SVN down for the next few days
« Last post by prissi on March 15, 2018, 01:34:04 PM »
The server hoster had taken down the server hosting the serverlist and the SVN, after 334 failed SSH login attemps (of course not mine). This does not seem to be a very high number in my mind, but he is the more powerful one, since he can decide what to do. He wants me to install fail2ban as well as changing to key login instead password.

Also becomes close to midnight here, so any action will not happen before tomorrow. Sorry.
Thank you for your report: I think that I have now fixed this. I should be grateful if you could re-test.
Simutrans Extended Development / Re: Schedule features: technical discussion
« Last post by jamespetts on March 15, 2018, 10:49:48 AM »
Can you clarify what you mean by fetch and alter values - do you mean actually triggering the conditions (which is what the broadcaster and receiver are about), or are you referring simply to setting the values by the GUI?

In terms of accessing the data, they are all public data members of schedule_entry_t: each schedule contains a vector of schedule_entry_t objects, and one can access each of schedule_entry_t's data members simply by retrieving the relevant schedule_entry_t object and directly manipulating it: no getter and setter methods are required.
Pages: 1 2 3 [4] 5 6 7 ... 10