News:

Do you need help?
Simutrans Wiki Manual can help you to play and extend Simutrans. In 9 languages.

Makefile and makeobj warnings.

Started by Vladki, July 31, 2014, 09:52:25 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Vladki

I tried to build pak128 from svn on linux. But the pak did not show up on game start. Found out that it was because of ground.Outside.pak not being built. Here you find fixed makefile. Also path to makeobj is changed to use the one from $PATH.


I have compiled latest "Makeobj version 55.3 for Simutrans 120.0.1" but building pak128 produces lots of warnings like this:

Warning: water_bridge:  No frontpillar[s] specified (might still work)
Warning: water_bridge:  No frontpillar[w] specified (might still work)
Warning: water_bridge:  No frontimage2[ns] specified (might still work)
Warning: water_bridge:  No frontimage2[ew] specified (might still work)
Warning: water_bridge:  No frontstart2[n] specified (might still work)
Warning: water_bridge:  No frontstart2[s] specified (might still work)
Warning: water_bridge:  No frontstart2[e] specified (might still work)
Warning: water_bridge:  No frontstart2[w] specified (might still work)
Warning: water_bridge:  No frontramp2[n] specified (might still work)
Warning: water_bridge:  No frontramp2[s] specified (might still work)
Warning: water_bridge:  No frontramp2[e] specified (might still work)
Warning: water_bridge:  No frontramp2[w] specified (might still work)
Warning: water_bridge:  No frontpillar2[s] specified (might still work)
Warning: water_bridge:  No frontpillar2[w] specified (might still work)
Warning: water_bridge:  Entry "max_weight=5000" ignored (check spelling)

---
Perhaps all (or most) bridges produce such errors, however the bridges in game seem to work fine.
Then there are many other warnings about Entries being ignored, eg.:
Warning: Big_Erztruck:  Entry "len=7" ignored (check spelling)
Warning: skoda_1_tr_128:        Entry "good=Passagiere" ignored (check spelling)
Warning: MaterialsWholesales:   Entry "passengers=100" ignored (check spelling)
Warning: Oelbohrinsel:  Entry "enables_ware=1" ignored (check spelling)
Warning: ParabolicDishField:    Entry "needs_ground=1" ignored (check spelling)
Warning: Geothermal powerplant_kraftwerk:       Entry "electricity_proportion=2" ignored (check spelling)
Warning: COM_11_15:     Entry "seasons=2" ignored (check spelling)
Warning: radiant_house: Entry "location=city" ignored (check spelling)
Warning: BICYCLE_RIDER_0:       Entry "image[ns]=privat-pedestrians_2-128.0.7" ignored (check spelling)
Warning: airport_oneway:        Entry "type=airport" ignored (check spelling)
Warning: Tram_Electrification:  Entry "system_type=7" ignored (check spelling)


However building with "Makeobj version 55.2 for Simutrans 112.3" runs without any warnings, but the result is not ok - there are some graphical glitches on half-height slopes.

Was there any significant change in .dat syntax, or do I have somehow broken makeobj.

prissi

The makeobj before never warned for most of those but quietly ignored them. Hence spelling mistakes got unnoticed for a long time. You can even get more diagnostics now.

Vladki

More bugfixes for pak128 makefile. It didnt build the powerlines and rivers:

--- Makefile.old        2014-12-16 00:23:10.000000000 +0100
+++ Makefile    2014-12-16 00:23:11.000000000 +0100
@@ -95,15 +95,15 @@


#other sizes for boats etc
-DIRS160 := infrastructure/powerlines
DIRS160 := landscape/rivers

DIRS176 := vehicles/airplanes
+DIRS176 += infrastructure/powerlines

DIRS250 := vehicles/ships-cargo
DIRS250 += vehicles/ships-ferries

-DIRS := $(DIRS64) $(DIRS128) $(DIRS176) $(DIRS250) $(DIRLOGO) $(DIRGROUNDS)
+DIRS := $(DIRS64) $(DIRS128) $(DIRS160) $(DIRS176) $(DIRS250) $(DIRLOGO) $(DIRGROUNDS)

#generating filenames
#with this function the filenames are assembled, by removing the dir, adding prefix