[NML] Only two railtypes showing up.
Moderator: Graphics Moderators
[NML] Only two railtypes showing up.
I'm currently working on a track set for maglev trains, which will contain 5 railtypes. When I compile the code, however. At most 2 tracks will show up in the game. I can only get the other one to show up if I comment out one of the ones that did show up.
Am I missing something?
Source in the attachments.
Am I missing something?
Source in the attachments.
- Attachments
-
- MTS source.rar
- Source last compiled
- (32.55 KiB) Downloaded 73 times
-
- Maglev_Track_Set.grf
- the latest working version of the track set.
- (30.1 KiB) Downloaded 67 times
-
- MMT.grf
- A version of Modern Maglev trains to work with this set.
- (165.61 KiB) Downloaded 63 times
Re: [NML] Only two railtypes showing up.
Update: I solved the problem. Turns out.
is case-sensitive.
Code: Select all
make -B
-
- Tycoon
- Posts: 2781
- Joined: 22 Feb 2011 18:34
Re: [NML] Only two railtypes showing up.
But why do you need the -B flag? What does it do and how does it solve your issue? Might be interesting to know, also for others, because I never needed the -B flag.Erato wrote:Update: I solved the problem. Turns out.is case-sensitive.Code: Select all
make -B
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
Re: [NML] Only two railtypes showing up.
I was told that the -B turns the .pnml file with all it's imports into one big .nml file, overwriting the .nml file that's already there.Transportman wrote:But why do you need the -B flag? What does it do and how does it solve your issue? Might be interesting to know, also for others, because I never needed the -B flag.Erato wrote:Update: I solved the problem. Turns out.is case-sensitive.Code: Select all
make -B
This didn't happen when I had -b instead.
-
- Tycoon
- Posts: 2781
- Joined: 22 Feb 2011 18:34
Re: [NML] Only two railtypes showing up.
There is no need to use the -B flag to do that, make without any flags also recreates the .nml file from your .pnml-files, and creates a .grf for it.Erato wrote:I was told that the -B turns the .pnml file with all it's imports into one big .nml file, overwriting the .nml file that's already there.Transportman wrote:But why do you need the -B flag? What does it do and how does it solve your issue? Might be interesting to know, also for others, because I never needed the -B flag.Erato wrote:Update: I solved the problem. Turns out.is case-sensitive.Code: Select all
make -B
This didn't happen when I had -b instead.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
Re: [NML] Only two railtypes showing up.
My makefile is just a .bat with the following command lines:
Code: Select all
gcc -C -E -nostdinc -x c-header -o BRTrains.nml BRTrains.pnml
nmlc BRTrains.nml
PAUSE
Re: [NML] Only two railtypes showing up.
Thing is, if I do that, it doesn't overwrite the .nml file that's already there, and instead chooses to instead compile the .nml that's already there. Only if I remove the .nml file will it recreate a .nml file. Or at least, that's the case on my machine. And I know that for a fact because I went ahead and just tested it: a new NML file did not get made.Transportman wrote:There is no need to use the -B flag to do that, make without any flags also recreates the .nml file from your .pnml-files, and creates a .grf for it.Erato wrote:I was told that the -B turns the .pnml file with all it's imports into one big .nml file, overwriting the .nml file that's already there.Transportman wrote: But why do you need the -B flag? What does it do and how does it solve your issue? Might be interesting to know, also for others, because I never needed the -B flag.
This didn't happen when I had -b instead.
Re: [NML] Only two railtypes showing up.
Transportman wrote:But why do you need the -B flag? What does it do and how does it solve your issue? Might be interesting to know, also for others, because I never needed the -B flag.Erato wrote:Update: I solved the problem. Turns out.is case-sensitive.Code: Select all
make -B
Code: Select all
-B, --always-make
Unconditionally make all targets.
-
- Tycoon
- Posts: 2781
- Joined: 22 Feb 2011 18:34
Re: [NML] Only two railtypes showing up.
I think it would then be in the makefile, as I never had to use the -B flag, not on Windows using MinGW or WSLrowdog wrote:Transportman wrote:But why do you need the -B flag? What does it do and how does it solve your issue? Might be interesting to know, also for others, because I never needed the -B flag.Erato wrote:Update: I solved the problem. Turns out.is case-sensitive.Code: Select all
make -B
I would guess that the makefile isn't set up with proper dependencies to support an incremental build. Or maybe it's a "make on windows" thing.Code: Select all
-B, --always-make Unconditionally make all targets.
Coder of the Dutch Trackset | Development support for the Dutch Trainset | Coder of the 2cc TrainsInNML
Who is online
Users browsing this forum: No registered users and 25 guests