Adriano0ad Posted May 29, 2025 Share Posted May 29, 2025 Guys, I'm creating a technology whose objective is to unlock a field, but it gives an error. I need help. Here are the scripts. tec: { "genericName": "Agricultura Rudimentar", "specificName": { "english": "Agricultura Básica", "portuguese": "Agricultura Rudimentar" }, "description": "Permite o cultivo de grãos básicos, desbloqueando a construção de campos agrícolas.", "icon": "grain.png", "researchTime": 100, "cost": { "wood": 100 }, "requisitos": { "todos": [ { "class": "Vila", "número": 1 } ] }, "efeitos": [ { "tipo": "entidade de desbloqueio", "entidade": "estruturas/jomon/field_grain" } ], "soundComplete": "interface/alarm/alarm_upgradearmory.xml" } field: <?xml version="1.0" encoding="utf-8"?> <Entidade pai="campo_de_recurso_de_estrutura_de_modelo"> <Identidade> <Civ>jomon</Civ> <NomeEspecífico>Tián</NomeEspecífico> </Identidade> <Requisitos> <Tecnologias datatype="tokens">agricultura_rudimentar</Tecnologias> </Requisitos> <VisualActor> <Actor>estruturas/plot_field_chin.xml</Actor> </VisualActor> </Entidade> Link to comment Share on other sites More sharing options...
Lopess Posted May 29, 2025 Share Posted May 29, 2025 @Adriano0ad, fiz o teste localmente e funcionou bem, verifique se os paramentos estão com os nomes corretos, se aparece algum erro mande o print aqui no fórum. Link to comment Share on other sites More sharing options...
Lopess Posted May 29, 2025 Share Posted May 29, 2025 1 hour ago, Adriano0ad said: Guys, I'm creating a technology whose objective is to unlock a field, but it gives an error. I need help. Here are the scripts. tec: { "genericName": "Agricultura Rudimentar", "specificName": { "english": "Agricultura Básica", "portuguese": "Agricultura Rudimentar" }, "description": "Permite o cultivo de grãos básicos, desbloqueando a construção de campos agrícolas.", "icon": "grain.png", "researchTime": 100, "cost": { "wood": 100 }, "requisitos": { "todos": [ { "class": "Vila", "número": 1 } ] }, "efeitos": [ { "tipo": "entidade de desbloqueio", "entidade": "estruturas/jomon/field_grain" } ], "soundComplete": "interface/alarm/alarm_upgradearmory.xml" } field: <?xml version="1.0" encoding="utf-8"?> <Entidade pai="campo_de_recurso_de_estrutura_de_modelo"> <Identidade> <Civ>jomon</Civ> <NomeEspecífico>Tián</NomeEspecífico> </Identidade> <Requisitos> <Tecnologias datatype="tokens">agricultura_rudimentar</Tecnologias> </Requisitos> <VisualActor> <Actor>estruturas/plot_field_chin.xml</Actor> </VisualActor> </Entidade> Acredito que o tradutor mudou o nome dos parâmetros, se não for o caso é importante lembrar que os parâmetros devem ser em inglês, exatamente iguais ao padrão do jogo. Link to comment Share on other sites More sharing options...
Adriano0ad Posted May 29, 2025 Author Share Posted May 29, 2025 I managed to solve the problem, it seems that the problem was occurring because civilization begins without a civic center and in technology it had to have the first phase and this was generating conflict, after I removed this it worked 1 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now