marty007 1 Report post Posted January 20, 2009 I was just wondering how to make buildings disappear and reappear depending on the year. for example, we wouldn't have an airport in 1927, because the WORLD'S first airport was built in 1928 at Croydon near London (England). so how can i make it so that certain buildings of my choosing come or go depending on the year??? Thanking you in advance, -Marty007 Share this post Link to post Share on other sites
Edfake 0 Report post Posted January 21, 2009 I was just wondering how to make buildings disappear and reappear depending on the year. for example, we wouldn't have an airport in 1927, because the WORLD'S first airport was built in 1928 at Croydon near London (England). so how can i make it so that certain buildings of my choosing come or go depending on the year??? Thanking you in advance, -Marty007 when the maps are complete the maps will change according to year. Share this post Link to post Share on other sites
archer9234 20 Report post Posted January 21, 2009 Coding when to load and unload stuff. Share this post Link to post Share on other sites
Edfake 0 Report post Posted January 21, 2009 Coding when to load and unload stuff. speak sense please!!! Share this post Link to post Share on other sites
archer9234 20 Report post Posted January 21, 2009 You code what to load and unload when you want it... Share this post Link to post Share on other sites
marty007 1 Report post Posted January 21, 2009 I was hoping someone could give me an example Share this post Link to post Share on other sites
BACKINTIME 0 Report post Posted January 21, 2009 You code what to load and unload when you want it... in the main.scm, the code will be written Example: if the year is 1955, these buildings will load buildingA buildingB buildingC buildingD buildingE and so on................... Example: if the year is 2015, these buildings will load buildingW buildingX buildingY buildingZ and so on................... Share this post Link to post Share on other sites
Edfake 0 Report post Posted January 21, 2009 (edited) this is what it looks like: NOTE: this code doesnt work, its only for eg puporses :TIME_17634 if $YEAR >= 1975 // integer values else_jump @TIME_17709 Model.Load(#BLDNGST2MESH) Model.Load(#BUILD1) Model.Load(#HDRUGFACTORYINT) Model.Load(#LODLD1) Model.Load(#DOUBLESTREETLGHT1) Model.Load(#TRAFFICLIGHT1) 038B: load_requested_models :TIME_17671 wait 0 if and Model.Available(#BLDNGST2MESH) Model.Available(#BUILD1) Model.Available(#HDRUGFACTORYINT) Model.Available(#LODLD1) Model.Available(#STREETLAMP1) Model.Available(#MTRAFFIC1) else_jump @TIME_17671 jump @TIME_17758 :TIME_17709 Model.Load(#BLDNGST2MESHDAM) Model.Load(#BUILDBLOWN) Model.Load(#HDRUGFACTORYPOL) Model.Load(#LODLDBLOWN) Model.Load(#DOUBLESTREETLGHT1) Model.Load(#TRAFFICLIGHT1) 038B: load_requested_models :TIME_17727 wait 0 if and Model.Available(#BLDNGST2MESHDAM) Model.Available(#BUILDBLOWN) Model.Available(#HDRUGFACTORYPOL) Model.Available(#LODLDBLOWN) Model.Available(#DOUBLESTREETLGHT1) Model.Available(#TRAFFICLIGHT1) else_jump @TIME_17727 :TIME_17758 if $MODE == 0 // integer values else_jump @TIME_17801 wait 500 Car.PutAt(0@, 2000.0, 500.0, 5000.0) :TIME_17801 if $YEAR >= 1975 // integer values else_jump @TIME_17931 03B6: replace_model_at 117.991 -362.461 10.179 radius 80.0 from #BLDNGST2MESHDAM to #BLDNGST2MESH 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #BUILDBLOWN to #BUILD1 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #HDRUGFACTORYPOL to #HDRUGFACTORYINT 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #LODLDBLOWN to #LODLD1 03B6: replace_model_at -1585.6 899.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1572.4 899.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1572.4 929.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1586 869.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1586 839.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1552.8 869.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1534 899 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1523.5 899 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1523.5 924 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1534 924 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1577.5 850.635 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 03B6: replace_model_at -1570 864 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 03B6: replace_model_at -1529 870.5 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 03B6: replace_model_at -1527 932 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 03B6: replace_model_at -1536 939 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 jump @TIME_18035 :TIME_17931 03B6: replace_model_at 117.991 -362.461 10.179 radius 80.0 from #BLDNGST2MESH to #BLDNGST2MESHDAM 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #BUILD1 to #BUILDBLOWN 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #HDRUGFACTORYINT to #HDRUGFACTORYPOL 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #LODLD1 to #LODLDBLOWN 03B6: replace_model_at -1585.6 899.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1572.4 899.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1572.4 929.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1586 869.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1586 839.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1552.8 869.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1534 899 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1523.5 899 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1523.5 924 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1534 924 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1577.5 850.635 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 03B6: replace_model_at -1570 864 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 03B6: replace_model_at -1529 870.5 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 03B6: replace_model_at -1527 932 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 03B6: replace_model_at -1536 939 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 Edited January 21, 2009 by edfake Share this post Link to post Share on other sites
bluespace88 9 Report post Posted January 21, 2009 if you want other buildings, make sure they're defined in the DEFINED_OBJECTS header at the top. But be warned, there is a limit on how many can be defined (which is the reason I had to remove a bunch when the train came along) Share this post Link to post Share on other sites
marty007 1 Report post Posted January 21, 2009 this is what it looks like: NOTE: this code doesnt work, its only for eg puporses :TIME_17634 if $YEAR >= 1975 // integer values else_jump @TIME_17709 Model.Load(#BLDNGST2MESH) Model.Load(#BUILD1) Model.Load(#HDRUGFACTORYINT) Model.Load(#LODLD1) Model.Load(#DOUBLESTREETLGHT1) Model.Load(#TRAFFICLIGHT1) 038B: load_requested_models :TIME_17671 wait 0 if and Model.Available(#BLDNGST2MESH) Model.Available(#BUILD1) Model.Available(#HDRUGFACTORYINT) Model.Available(#LODLD1) Model.Available(#STREETLAMP1) Model.Available(#MTRAFFIC1) else_jump @TIME_17671 jump @TIME_17758 :TIME_17709 Model.Load(#BLDNGST2MESHDAM) Model.Load(#BUILDBLOWN) Model.Load(#HDRUGFACTORYPOL) Model.Load(#LODLDBLOWN) Model.Load(#DOUBLESTREETLGHT1) Model.Load(#TRAFFICLIGHT1) 038B: load_requested_models :TIME_17727 wait 0 if and Model.Available(#BLDNGST2MESHDAM) Model.Available(#BUILDBLOWN) Model.Available(#HDRUGFACTORYPOL) Model.Available(#LODLDBLOWN) Model.Available(#DOUBLESTREETLGHT1) Model.Available(#TRAFFICLIGHT1) else_jump @TIME_17727 :TIME_17758 if $MODE == 0 // integer values else_jump @TIME_17801 wait 500 Car.PutAt(0@, 2000.0, 500.0, 5000.0) :TIME_17801 if $YEAR >= 1975 // integer values else_jump @TIME_17931 03B6: replace_model_at 117.991 -362.461 10.179 radius 80.0 from #BLDNGST2MESHDAM to #BLDNGST2MESH 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #BUILDBLOWN to #BUILD1 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #HDRUGFACTORYPOL to #HDRUGFACTORYINT 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #LODLDBLOWN to #LODLD1 03B6: replace_model_at -1585.6 899.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1572.4 899.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1572.4 929.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1586 869.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1586 839.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1552.8 869.3 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1534 899 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1523.5 899 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1523.5 924 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1534 924 16.4 radius 80.0 from #DOUBLESTREETLGHT1 to #STREETLAMP1 03B6: replace_model_at -1577.5 850.635 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 03B6: replace_model_at -1570 864 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 03B6: replace_model_at -1529 870.5 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 03B6: replace_model_at -1527 932 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 03B6: replace_model_at -1536 939 17 radius 80.0 from #MTRAFFIC1 to #TRAFFICLIGHT1 jump @TIME_18035 :TIME_17931 03B6: replace_model_at 117.991 -362.461 10.179 radius 80.0 from #BLDNGST2MESH to #BLDNGST2MESHDAM 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #BUILD1 to #BUILDBLOWN 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #HDRUGFACTORYINT to #HDRUGFACTORYPOL 03B6: replace_model_at -1165.346 85.534 17.783 radius 80.0 from #LODLD1 to #LODLDBLOWN 03B6: replace_model_at -1585.6 899.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1572.4 899.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1572.4 929.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1586 869.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1586 839.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1552.8 869.3 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1534 899 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1523.5 899 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1523.5 924 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1534 924 16.4 radius 80.0 from #STREETLAMP1 to #DOUBLESTREETLGHT1 03B6: replace_model_at -1577.5 850.635 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 03B6: replace_model_at -1570 864 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 03B6: replace_model_at -1529 870.5 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 03B6: replace_model_at -1527 932 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 03B6: replace_model_at -1536 939 17 radius 80.0 from #TRAFFICLIGHT1 to #MTRAFFIC1 WOW. thats and awesome example. I might as well have just told you that i only wanted the airport to appear after 1928, and you could have written the actual code for me. This looks to complicated for me. thats alot of code just to make the airport only appear after 1928. Thank you for showing me a great example, but i think it too difficult for a noobie like me Share this post Link to post Share on other sites
Mini-Me 24 Report post Posted January 21, 2009 (edited) if you want other buildings, make sure they're defined in the DEFINED_OBJECTS header at the top. But be warned, there is a limit on how many can be defined (which is the reason I had to remove a bunch when the train came along) @Blue: And why did you replace the gates, e.g. #ELECTRICGATE with the clock hands? Couldn't you define new ones? Edited January 21, 2009 by Mini-Me Share this post Link to post Share on other sites
archer9234 20 Report post Posted January 21, 2009 That causes crashing. Share this post Link to post Share on other sites
Mini-Me 24 Report post Posted January 21, 2009 More than it did after adding the TimeTrain parts? Sounds weird. Share this post Link to post Share on other sites
Platina 0 Report post Posted January 21, 2009 well, if you took out the train parts, then it'd be fine. Share this post Link to post Share on other sites
Edfake 0 Report post Posted January 21, 2009 well, if you took out the train parts, then it'd be fine. woot! thats why it always crashed Share this post Link to post Share on other sites