Veteran levels

Contribute, display and discuss rulesets and modpacks for use in Freeciv here.
Post Reply
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Veteran levels

Post by Corbeau »

Can someone check the code to see what is the maximum number of veteran levels for workers and military?

Related to:
veteran_names
veteran_raise_chance
veteran_work_raise_chance
veteran_power_fact
veteran_move_bonus

I have 17 levels in my ruleset, for some reason it isn't working and there is no error message when loading the ruleset. One other ruleset has 10 and it is working.
Last edited by Corbeau on Sat Feb 17, 2018 6:46 pm, edited 1 time in total.
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Veteran leves

Post by cazfi »

Maximum number of veteran levels is 20.

Can you send the ruleset to me for inspection?
User avatar
Alien Valkyrie
Elite
Posts: 513
Joined: Sun Feb 10, 2013 10:21 pm
Location: Stuttgart, Germany

Re: Veteran leves

Post by Alien Valkyrie »

Does the tileset you use define 17 veteran level icons? Supplied tilesets only define 10.
~ AVL
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Veteran leves

Post by Corbeau »

cazfi wrote:Maximum number of veteran levels is 20.

Can you send the ruleset to me for inspection?
It's attached to this post:
http://forum.freeciv.org/f/viewtopic.ph ... 385#p80734
Caedo wrote:Does the tileset you use define 17 veteran level icons? Supplied tilesets only define 10.
Ah! Good one! Nope.

On the other hand, if that's a problem, wouldn't that show error when loading the ruleset?
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
wieder
Elite
Posts: 303
Joined: Thu Jul 27, 2017 10:43 am

Re: Veteran levels

Post by wieder »

The ruleset in question can also be found from here:

https://github.com/longturn/games/commits/master/LT42
User avatar
Alien Valkyrie
Elite
Posts: 513
Joined: Sun Feb 10, 2013 10:21 pm
Location: Stuttgart, Germany

Re: Veteran leves

Post by Alien Valkyrie »

Corbeau wrote:On the other hand, if that's a problem, wouldn't that show error when loading the ruleset?
That's the question – is it a problem with the client or the server? Does loading the ruleset on a standalone server work?
~ AVL
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Veteran leves

Post by cazfi »

Corbeau wrote:On the other hand, if that's a problem, wouldn't that show error when loading the ruleset?
I haven't checked but I'm quite sure it's not considered an error. It just means that multiple veteran levels share same icon.
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Veteran levels

Post by Corbeau »

I tested it by loading the ruleset, the ruleset definitely loaded, no error, and some other specific settings from the ruleset worked.
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
cazfi
Elite
Posts: 3077
Joined: Tue Jan 29, 2013 6:54 pm

Re: Veteran levels

Post by cazfi »

So the ruleset has global veterancy system with 17 veterancy levels, and some units have their own veterancy systems, such as Workers with just one veterancy level.

I tested these by going to Editor mode and checking what veterancy levels it allowed one to set for units. Explorers could have any of levels 0-16, Workers just level 0.

Seems to work just like defined.
User avatar
Corbeau
Elite
Posts: 1291
Joined: Mon Jan 13, 2014 11:13 pm

Re: Veteran levels

Post by Corbeau »

Oh hell... I missed those. Thanks.

So if I simply delete the "individual" veterancy levels for Workers and Engineers, it should work, right?
--
* Freeciv LongTurn, a community of one-turn-per-day players and developers
* LongTurn Blog - information nexus with stuff and stuff and stuff
* Longturn Discord server; real-time chatting, discussing, quarrelling, trolling, gaslighting...
Post Reply