Currently Online

Latest Posts

Topic: Creating an upgraded worker

Darm
Joined: 2011-07-19, 23:32
Posts: 2
Ranking
Just found this site
Posted at: 2011-07-20, 03:14

(SOLVED, did not check the building conf for typo)

In the course of creating a new tribe (call it Tribe_D for now), I've run into a problem with making an upgraded version of a woodcutter (upgraded_woodcutter).

Attempting to start a new game results in an exit back to menu with:

...
Parsing map gen info...
There's no configuration file, using default values.
lastserial: 0

Game data error
tribe Tribe_D: upgraded_woodcutter="Upgraded Woodcutter": [.../src/profile/profile.cc:768] in "tribes/Tribe_D/upgraded_woodcutter/conf" section [idle] not found.

(truncated widelands path to ...; assuming no conf file is for the map)

Have tried changing the name of upgraded_woodcutter to various other names(ie master-woodcutter) and made sure it was spelled correctly in each listing.
[idle] is a hard coded request, so attempts at removing any mentions or duplicating and renaming did not work.

Tribe_D utilized atlanteans as a working base(most modifications were of building and soldiers so far).

This is a first attempt at modifying any workers outside of radius and animation timing. The upgraded_woodcutter directory was copied from woodcutter before modifying either.

woodcutter:

help=_Fells trees.
program=harvest
soundfx=../../../sound/sawmill/sawmill
experience=20
becomes=upgraded_woodcutter

[buildcost]
carrier=1
saw=1

[harvest]
...

upgraded_woodcutter:

help=_Fells trees.
program=harvest
soundfx=../../../sound/sawmill/sawmill

[harvest]
...

Tribe_D/conf:
-added upgraded_woodcutter to workers_order, just after woodcutter(tried different positions in list, as well as shifting columns around)
-added upgraded_woodcutter to [worker types] section, just before woodcutter

Permissions and owner are the same for both conf files.
Searching the source code did not yield anything for hard-coded workers or worker directories.
I am hesitant to report this as a bug just yet, as it feels like I am missing an entry in an obscure place(ie militarysites).

Any hints would be appreciated.

Edited: 2011-07-22, 01:56
Top Quote
omagaalpha
Joined: 2011-07-21, 16:31
Posts: 1
Ranking
Just found this site
Posted at: 2011-07-21, 16:37

Game data error tribe Tribe_D: upgrade_woodcutter="Upgraded Woodcutter": [.../src/profile/profile.cc:768] in "tribes/Tribe_D/upgraded_woodcutter/conf" section [idle] not found.

Go into tribes/Tribe_D/upgraded_woodcutter/conf and is there a section call [idle] in the file? if not create one for file.

Edited: 2011-07-21, 16:38
Top Quote
Darm
Joined: 2011-07-19, 23:32
Posts: 2
Ranking
Just found this site
Posted at: 2011-07-22, 01:52

Thanks for the reply.

The info section exists, the problem was a misspelled name in the upgraded building(no configuration file).

Now to find a way to get more then one worker to cut down trees at once face-smile.png


Top Quote