Ticket #42695

freeciv-ruleup trouble with saving embedded_nations

Eröffnet am: 2021-08-07 13:25 Letztes Update: 2021-09-22 03:05

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
5 - Mittel
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
3

Details

1 mistakenly adds line
generated=FALSE
to all extra resources in terrain.ruleset. This causes all resource extras to not be displayed.
2 also adds line
buildable=FALSE
to all extra resources in terrain.ruleset. This seems to be redundant.
3 if nations.ruleset has a line
*include "nation/X.ruleset"
and the X is not barbarian or pirate, the line gets lost, and is not in-lined like what happens to "nation/pirate.ruleset" and "nation/barbarian.ruleset".

Note - there is no Component called Ruleup, so I chose Rulesets.

Ticket-Verlauf (3/12 Historien)

2021-08-07 13:25 Aktualisiert von: ddeanbrown
  • New Ticket "bugs in freeciv-ruleup" created
2021-08-26 11:20 Aktualisiert von: cazfi
  • Komponente Update from Rulesets to Ruledit and ruleup
2021-09-10 20:42 Aktualisiert von: cazfi
Kommentar

Please report one issue per ticket in the future. Status of the ticket cannot reflect multiple issues with different statuses.

Splitting this one up.

generated=FALSE -> #42847

2021-09-10 21:14 Aktualisiert von: cazfi
Kommentar

buildable=FALSE (or rather the underlying issue it reveals) -> #42848

2021-09-10 21:33 Aktualisiert von: cazfi
Kommentar

That leaves nations.ruleset issue to be handled in this ticket.

2021-09-14 14:35 Aktualisiert von: cazfi
Kommentar

Have you listed that nation in ruledit section embedded_nations entry?

2021-09-16 07:45 Aktualisiert von: ddeanbrown
Kommentar

No. The line in my nations.ruleset was the original -

embedded_nations = "barbarian", "pirate"

As an experiment, I just tried using the line -

embedded_nations = "barbarian", "pirate", "animals"

and freeciv-ruleup then gives an error - "1: There's nation animals listed in embedded nations, but there's no such nation."

BUT this is with the placement of the "*include xxx" lines at the end of the file, like all the distributed nations.ruleset files. When I move those includes to the top of the file, then freeciv-ruleup works OK, regardless of whether the embedded_nations has "animals" or not.

2021-09-16 10:20 Aktualisiert von: cazfi
  • Lösung Update from Keine to Accepted
  • Meilenstein Update from (Keine) to 2.6.6 (closed)
  • Summary Updated
Kommentar

Reply To ddeanbrown

As an experiment, I just tried using the line - embedded_nations = "barbarian", "pirate", "animals"

If you are using animals.ruleset from freeciv distribution the name of the nation is "Animal Kingdom", not "animals".
I've attached patches for all branches for making those entries a tiny bit less confusing
2021-09-22 03:05 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Accepted to Gefixt

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden