GithubHelp home page GithubHelp logo

Comments (4)

malashin avatar malashin commented on July 17, 2024

It seems like it is actually an error on PDX side.

This role_ratio takes template roles as described here.

complex_enum[template_roles] = {
		path = "game/common/ai_templates"
		name = {
			roles = {
				enum_name
			}
		}
	}

paratroopers is the tech name, not a role.

But this template_roles enum still have other issues.
This stuff does not work as well.

	ai_strategy = {
		type = role_ratio
		id = cavalry
		value = 0
	}

	ai_strategy = {
		type = role_ratio
		id = motorized
		value = 5 #because doctrine this = 2
	}

	ai_strategy = {
		type = role_ratio
		id = mechanized
		value = -5 #because doctrine this = 0
	}

Those IDs are not in roles scope, but are taken from allowed_types scope it seems.

EDIT:
Most likely just all unit_types from /common/units folder, instead of allowed_types. So it's roles plus unit_types it seems.

from cwtools-hoi4-config.

malashin avatar malashin commented on July 17, 2024

Roles from this folder /common/ai_equipment are also in there. naval_capital_bb for example.

from cwtools-hoi4-config.

malashin avatar malashin commented on July 17, 2024

Another issue with template roles is that they somehow get tags in there.

template_roles

	complex_enum[template_roles] = {
		path = "game/common/ai_templates"
		name = {
			roles = {
				enum_name
			}
		}
	}

No idea why that would be the case. There are tags in available_for scope, but we are looking into roles scope...

from cwtools-hoi4-config.

malashin avatar malashin commented on July 17, 2024

Fixed it in my repo, will be added to this one later on.

paratroopers is an error on PDX side, it's a techs name, not a role.

It does not accept unit types as I thought previously due to how many times PDX devs used them in this function. It only accepts ai roles from /common/ai_equipment and /common/ai_templates folders.

from cwtools-hoi4-config.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.