nml 코딩 또 질문드립니다;;
https://telk.kr/tb/free/2697
어제인가 질문드렸던 사람입니다. 덕분에 코딩을 끝내고 게임에 임시 적용해보았습니다.
근데 또 문제가 생겼습니다. 구매 페이지는 잘 나오는데, 차고지에서 꺼내고보니 기본 차량이 나오네요. NML 튜토리얼이나 한열셋 한버셋 코드를 봐도 뭐가 문제인지 잘 모르겠네요. 어디에서 문제가 되는지 혹시 알 수 있을까요? 차량은 전차입니다.
시험적용한 스프라이트
문제의 사진. 구매페이지에서는 잘 나오는데 차고지와 밖에서는 기본 차량으로 나옴.
// Graphics
template tmpl_tram (x, y) {
[ x, y, 7, 21, 0, 0]
[ x+20, y, 21, 16, 0, 0]
[ x+55, y, 31, 11, 0, 0]
[ x+100, y, 21, 16, 0, 0]
}
template tmpl_tram_purchase (x, y) {
[ x, y, 60, 11, 0, 0]
}
//Graphics Definition
spriteset (seoul_381, "./my_newgrf/gfx/seoul_381.png") {
tmpl_tram (70, 0)
}
spriteset (seoul_381_purchase, "./my_newgrf/gfx/seoul_381.png") {
tmpl_tram_purchase (0, 0)
}
// Item
item(FEAT_ROADVEHS, seoul_381) {
property {
// common properties
name :string(STR_NAME_SEOUL_381);
climates_available :ALL_CLIMATES;
introduction_date :date(1930,01,01);
sprite_id :SPRITE_ID_NEW_ROADVEH; //use custom sprites
// Spec
power :120 hp;
speed :48 km/h;
weight :18 ton;
length :8;
// model
model_life :VEHICLE_NEVER_EXPIRES;
vehicle_life :30;
retire_early :0;
reliability_decay :0;
// cargo
cargo_capacity :100;
refittable_cargo_classes :NO_CARGO_CLASS;
non_refittable_cargo_classes :NO_CARGO_CLASS;
cargo_allow_refit :[PASS];
cargo_disallow_refit :[];
loading_speed :25;
// Costs
cost_factor :10;
refit_cost :0;
running_cost_base :RUNNING_COST_ROADVEH;
running_cost_factor :90;
// Flags
misc_flags :bitmask(ROADVEH_FLAG_TRAM); //make this a tram
sound_effect :SOUND_BUS_START_PULL_AWAY;
}
graphics {
default :seoul_381;
purchase :seoul_381_purchase;
}
}
작성한 코드
이모지를 이용해서 글에 반응해보세요!
-
2,493
2020.11.02
150,699
-
4,578
2023.05.30
13,615
-
1,948
2021.06.25
19,979
-
1,911
2021.06.25
11,772
-
1,939
2005.11.04
19,489
-
1,947
2005.12.26
11,484
-
1,946
2021.06.25
29,785
-
1,945
2006.04.22
12,643
-
1,843
2006.11.04
15,556
-
1,842
2006.11.04
11,108
-
2,022
2006.11.04
18,247
-
1,841
2006.11.04
15,156
-
1,840
2021.02.14
18,916
-
1,839
2006.11.04
17,684
-
2,020
2006.11.04
13,425
-
1,838
2006.11.04
9,317
-
2,018
2006.11.04
13,881
-
1,837
2006.11.04
8,528
-
1,836
2006.11.04
9,869
-
1,835
2006.11.04
8,469
댓글