Recent Posts

Pages: [1] 2 3 4 ... 10
1
Simutrans Help Center / Old Member - Wanna get into Simutrans again
« Last post by Anime on Today at 09:04:33 AM »
Hey guys,


I used to be active on this forum years ago. Lately, I found Simutrans on my PC again and I wanna get into playing again.
However, its been a few years so I've lost the feel for the game. Any tactics/techniques to make a profitable company (and reduce costs etc) for pak 128 would be very appreciated :)


Grtz
2
Imho. this is a problem of your script: It should accept empty schedules.
3
Scripting Scenarios and AI / Re: [line_x] Remove lines
« Last post by Dwachs on Today at 07:20:30 AM »
I see, 'delete' is a language keyword.. will fix tonight.
4
Bug Reports / Re: r8267: Can't be compile on macOS because of squirrel
« Last post by Dwachs on Today at 07:16:51 AM »
Could you try to compile with
Code: [Select]
-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0
sent to the compiler?
5
Scripting Scenarios and AI / Re: [line_x] Remove lines
« Last post by Yona-TYT on Today at 05:28:19 AM »
Please check r8274
For some reason the "delete()" function can not be used.  ???

6
@Dwachs

This is much better for me:  ;)

simutool.cc (line 6856)
Code: [Select]
                if (!scenario_check_schedule(welt, player, line->get_schedule(), can_use_gui())) {
                    player->simlinemgmt.delete_line(line);
                    break;
                }


I'm afraid there's a problem with this.  :-[

It seems that when I create a line "pl.create_line (wt)" it is deleted immediately.

Code: [Select]
                    pl.create_line(wt)
                    // find the line - it is a line without schedule and convoys
                    local list = pl.get_line_list()
                    local c_line = null
                    foreach(line in list) {
                        if (line.get_waytype() == wt  &&  line.get_schedule().entries.len()==0) {
                            // right type, no schedule -> take this.
                            c_line = line
                            break
                        }
                    }
                    c_line.change_schedule(pl, sched)
                    convoy[0].set_line(pl, c_line)
                    depot.start_convoy(pl, convoy[0])
                    this.step_nr(5)



Edit.
Luckily find a simple solution using a flag before using "pl.create_line(wt)". ;)
Code: [Select]
                    lin_flag = true
                    pl.create_line(wt)
Code: [Select]
function is_schedule_allowed(pl, schedule)
{
    if (lin_flag){
        lin_flag = false
        return null
    }
}

7
Simutrans Extended Development / Re: Crash on loading
« Last post by jamespetts on Yesterday at 10:01:51 PM »
Thank you for the report - I think that I have fixed this now: would you be able to re-test?
8
Bug Reports / Re: r8267: Can't be compile on macOS because of squirrel
« Last post by MMMHHH on Yesterday at 06:40:52 PM »
I tried add this
Quote
#define __ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES 0
inside every file in /squirrel but it doesn't work...
9
Simutrans Extended Development / Crash on loading
« Last post by Rollmaterial on Yesterday at 04:24:42 PM »
The game crashes immediately after loading the game linked below.

.sve: https://drive.google.com/file/d/0ByLSSg3gXTz-d0RHRVJ0Z01URmc/view?usp=sharing
10
[DE]Deutsch (German) / Re: inoffizielles pak64.german 0.112.3.x
« Last post by Frank on Yesterday at 03:38:14 PM »
noch ein paar Ă„nderungen und ne neue Lok

Mit den 2 neuen Loks sollten Karten zwischen 1860 und 1910 besser spielbar werden.

Quote
--- 0.112.3.8 ---
CHG: InputFactor brewery, Klosterbrauerei, DU_Brauerei
FIX: data from DU_Brauerei
CHG: Productivity scrap_yard
ADD: vehicle badVIIb from Kieron/JamesPetts
FIX: Gleis_60_Schotter winter images curves

Download im ersten Post


Pages: [1] 2 3 4 ... 10