Autor Tema: Passwords and squadrons config  (Leído 1292 veces)

0 Usuarios y 1 Visitante están viendo este tema.

Vogler

  • Cadete
  • *
  • Mensajes: 12
  • Carisma: 0
    • Ver Perfil
Passwords and squadrons config
« : marzo 22, 2014, 01:56:41 am »
Hello again

It seems like I have problem with Player names config.
I can log into web GUI no problem and edit commands in there, but if I try to do it through chat in game I am getting info that I am not commander and I will be court marshaled if I don't stop.

this is my configs:

missions/hrcodwars/conf.ini
Código: [Seleccionar]
[GENERAL]
version = 3.4
lang = en
debug = false
analiza_plantilla_siempre = false
informe_plantillas = true
calcula_coordenadas_recursos = true
avisos_hud = true
web_activa_soporte = true
web_script_url = http://localhost:8080/hrcodwarweb/ajax/services.php?a=datos
web_script_clave= password
web_segundos_entre_comandos = 1
[GUERRA]
mision =5
id_siguiente_unidad =170
escuadrones_aliados = hr,hr1
escuadrones_eje = LG1,hra2
comandantes_aliados = LG1_Vogler,hr_pilot2,hr1_pilot1,hr1_pilot2
comandantes_eje = LG1_Vogler,hra1_pilot2,hra2_pilot1,hra2_pilot2
vector_inicial_aliado = 90
vector_inicial_eje = 270
rango_recursos_base = 1000
rango_agrupacion_recursos = 25
unidades_carga_mercante = 20
barcazas_embarcos_desembarcos = 4
n_misiones_embarcando_desembarcando = 1
porcentaje_unidades_sobrevive_embarco = 0.75
porcentaje_unidades_sobrevive_desembarco = 0.25
metros_conquista = 2000
unidades_minimas_aaa = -1
unidades_minimas_artilleria = -1
unidades_minimas_blindados = -1
puntos_creacion_fabricados_jornada = 100
kg_fuel_extraidos_jornada = 2000
reconstruccion_fabricas_jornadas = 3
reconstruccion_refinerias_jornadas = 3
reconstruccion_centrales_jornadas = 2
maximo_fabricas = 12
maximo_astilleros = 6
maximo_refinerias = 6
porcentaje_suministro_almacen_base = 0.12
velocidad_maxima_aparato_parado = 1
segundos_penalizado_bajo = 300
segundos_penalizado_medio = 600
segundos_penalizado_alto = 900
metros_rango_base = 2000
metros_rango_unidades_captura_piloto = 3000
proporcion_conquista = 2
metros_rango_rescate = 100
suministro_tierra_maximo_combustible = 10000
suministro_tierra_maximo_municion = 15000
suministro_tierra_maximo_bombas = 200
suministro_tierra_maximo_reparacion = 1000
suministro_tierra_minimo_combustible = 500
suministro_tierra_minimo_municion = 500
suministro_tierra_minimo_bombas = 20
suministro_tierra_minimo_reparacion = 20
coste_suministro_tierra = 10
coste_suministro_fuel = 25
n_maximo_columnas = 20
numero_centrales = 2
rango_central_busca_agua = 25
segundos_mision_sin_final = 5400
segundos_mision_final_min = 600
segundos_mision_final_max = 1800
columnas_humo = true
segundos_mover_unidades = 300
navios_habilidad = 0
navios_cadencia = 1
segundos_vuelo_corto = 300
centrales_activa_regla_agua = true
centrales_activa_regla_tierra = false
mercado_reputacion = 10
reset_estadisticas = true
clima_maximo = 2
altura_nubes_minima = 200
altura_nubes_maxima = 3000
[OBJETOS]
bloqueadores_respawn = Stationary.Airfield.AirfieldSign_Red_White_Red_1
almacen_recursos = Stationary.Airfield.Fuel_Storage
puerto = ShipUnit.Boat_CarleyFloat
fabrica = Stationary.Hangars.Type_C34_Short
navio_mercante_artilleria_proa = Bofors_StandAlone
navio_mercante_artilleria_popa = Bofors_StandAlone
refineria = Stationary.Industrial.Oxygen_Facility
central = Stationary.Hangars.Type_C38_Long
[RECURSOS_INICIALES]
puntos_creacion_aliado = 5000
puntos_creacion_eje = 5000
combustible_aliado = 50000
combustible_eje= 50000
municion_aliado = 300000
municion_eje= 300000
bombas_aliado = 200
bombas_eje= 200
reparacion_aliado = 2000
reparacion_eje= 2000


\htdocs\hrcodwarweb\secret_folder_battle_data\conf.ini (no wonder it looks the same as previous one ;))


Código: [Seleccionar]
[GENERAL]
version = 3.4
lang = en
debug = false
analiza_plantilla_siempre = false
informe_plantillas = true
calcula_coordenadas_recursos = true
avisos_hud = true
web_activa_soporte = true
web_script_url = http://localhost/hrcodwarweb/ajax/services.php?a=datos
web_script_clave= password
web_segundos_entre_comandos = 1
[GUERRA]
mision =5
id_siguiente_unidad =170
escuadrones_aliados = hr,hr1
escuadrones_eje = LG1,hra2
comandantes_aliados = LG1_Vogler,hr_pilot2,hr1_pilot1,hr1_pilot2
comandantes_eje = LG1_Vogler,hra1_pilot2,hra2_pilot1,hra2_pilot2
vector_inicial_aliado = 90
vector_inicial_eje = 270
rango_recursos_base = 1000
rango_agrupacion_recursos = 25
unidades_carga_mercante = 20
barcazas_embarcos_desembarcos = 4
n_misiones_embarcando_desembarcando = 1
porcentaje_unidades_sobrevive_embarco = 0.75
porcentaje_unidades_sobrevive_desembarco = 0.25
metros_conquista = 2000
unidades_minimas_aaa = -1
unidades_minimas_artilleria = -1
unidades_minimas_blindados = -1
puntos_creacion_fabricados_jornada = 100
kg_fuel_extraidos_jornada = 2000
reconstruccion_fabricas_jornadas = 3
reconstruccion_refinerias_jornadas = 3
reconstruccion_centrales_jornadas = 2
maximo_fabricas = 12
maximo_astilleros = 6
maximo_refinerias = 6
porcentaje_suministro_almacen_base = 0.12
velocidad_maxima_aparato_parado = 1
segundos_penalizado_bajo = 300
segundos_penalizado_medio = 600
segundos_penalizado_alto = 900
metros_rango_base = 2000
metros_rango_unidades_captura_piloto = 3000
proporcion_conquista = 2
metros_rango_rescate = 100
suministro_tierra_maximo_combustible = 10000
suministro_tierra_maximo_municion = 15000
suministro_tierra_maximo_bombas = 200
suministro_tierra_maximo_reparacion = 1000
suministro_tierra_minimo_combustible = 500
suministro_tierra_minimo_municion = 500
suministro_tierra_minimo_bombas = 20
suministro_tierra_minimo_reparacion = 20
coste_suministro_tierra = 10
coste_suministro_fuel = 25
n_maximo_columnas = 20
numero_centrales = 2
rango_central_busca_agua = 25
segundos_mision_sin_final = 5400
segundos_mision_final_min = 600
segundos_mision_final_max = 1800
columnas_humo = true
segundos_mover_unidades = 300
navios_habilidad = 0
navios_cadencia = 1
segundos_vuelo_corto = 300
centrales_activa_regla_agua = true
centrales_activa_regla_tierra = false
mercado_reputacion = 10
reset_estadisticas = true
clima_maximo = 2
altura_nubes_minima = 200
altura_nubes_maxima = 3000
[OBJETOS]
bloqueadores_respawn = Stationary.Airfield.AirfieldSign_Red_White_Red_1
almacen_recursos = Stationary.Airfield.Fuel_Storage
puerto = ShipUnit.Boat_CarleyFloat
fabrica = Stationary.Hangars.Type_C34_Short
navio_mercante_artilleria_proa = Bofors_StandAlone
navio_mercante_artilleria_popa = Bofors_StandAlone
refineria = Stationary.Industrial.Oxygen_Facility
central = Stationary.Hangars.Type_C38_Long
[RECURSOS_INICIALES]
puntos_creacion_aliado = 5000
puntos_creacion_eje = 5000
combustible_aliado = 50000
combustible_eje= 50000
municion_aliado = 300000
municion_eje= 300000
bombas_aliado = 200
bombas_eje= 200
reparacion_aliado = 2000
reparacion_eje= 2000


and \htdocs\hrcodwarweb\secret_folder_battle_data\claves.ini

Código: [Seleccionar]
;Claves para acceso a web

CFG_PASS_ALIADO = alliedpass
CFG_PASS_EJE = axispass
CFG_PASS_ALIADO_COMANDANTE = alliedpassword,hr1_pass
CFG_PASS_EJE_COMANDANTE = axispassword,hra2_pass


my nickname in game is LG1_Vogler...

What do I do wrong again :)????

Grainovich

  • Moderator
  • Polkovnik
  • *******
  • Mensajes: 21269
  • Carisma: 645
    • Ver Perfil
Re:Passwords and squadrons config
« Respuesta #1 : marzo 22, 2014, 10:43:36 am »
Ok! no problem Vogler , it's easy! ;) ... or not ;D

If you want enter to the battle with your tag squad with your own forces you must start the campaign at the beginning.

FIRST

a) Go to \missions\hrcodwar\plantillas and rename hra1.mis to lg1.mis for example ok?
b) Edit missions/hrcodwars/conf.ini and restart the campaign, you must change those variables to zero:

[GUERRA]
mision =0 <--- This force to HRCODWAR to read again the initial templates
id_siguiente_unidad =0 <-- This is the "primary key" of the database text file, is used to name the units with a unique identificator :)

SECOND

Your squad tag is LG1 right?, in missions/hrcodwars/conf.ini we can read:

escuadrones_aliados = hr,hr1
escuadrones_eje = LG1,hra2

Ok, so you will combat with the axis side ok?, then the chiefs pilots... emm... sorry... commander rol pilots must be in comandantes_eje variable ok?, so:

comandantes_aliados = LG1_Vogler,hr_pilot2,hr1_pilot1,hr1_pilot2 <--- This is wrong!!! LG1_Vogler is not a allied commander
comandantes_eje = LG1_Vogler,hra1_pilot2,hra2_pilot1,hra2_pilot2  <--- This is ok! LG1_Vogler is a axis commander

Delete your nick at comandantes_aliados list and change this variable to:

comandantes_aliados = hr_pilot2,hr1_pilot1,hr1_pilot2
comandantes_eje = LG1_Vogler,hra2_pilot1,hra2_pilot2  <--- This is ok! LG1_Vogler is a axis commander , remove "hra1" pilots because this squads not exist anymore.

And remmber: The nick of the YOUR USER IN STEAM MUST BE EXACTLY to LG1_Vogler ok? ;)

THIRD

The website control, you must provide 2 kinds of passwords, one to the troop (normal pilots) of each side (those pilots don't need to write command orders) , and one to commander of each squad in each side , but this last password MUST BE WITH TAG SQUAD AT THE BEGINNING AND THE CHAR "_" , so:

CFG_PASS_ALIADO = alliedpass <-- Password to allied troop
CFG_PASS_EJE = axispass <-- Password to axis troop
CFG_PASS_ALIADO_COMANDANTE = alliedpassword,hr1_pass <-- Password to allied comanders
CFG_PASS_EJE_COMANDANTE = lg1_secret_password_of_lg1_commander,hra2_pass <---- Ok? Your squad combat in axis side

Doing this, when you logging in the web, the website knows that you are the LG1 commander and let you to move your own troops, and not units of the hra2 squad, for this reason the password must be:

TAGSQUAD_anyword

FOURTH

This file:

\htdocs\hrcodwarweb\secret_folder_battle_data\conf.ini

Is a copy of:

missions/hrcodwars/conf.ini

When the mission stop, and HRCODWAR connect to the webserver (if you configure it), this file is transferred to web server, why?? because in this way the chiefs and pilots can remember the campaign configuration here (in then conf.ini tab):

http://www.halconesrojos.com/hrcodwar/en/current-configuration

The system do it because If you change a value in the middle of the campaign all people can read it ;) , so you don´t need update or change this file at all, don`t worry about it, the important file is the original in missions/hrcodwars/conf.ini

FINALLY

You must always keep in mind that:

HRCODWAR knows who are you through reading your steam nick, and knows if you must flight on allies side or axis sides, and knows if you are a normal pilot or a commander, ok?

All the system read always the TAGS SQUAD of all, pilots, bases, units, all!!, so:

STEAM NICK: TAGSQUAD_MyNick
TEMPLATES (\missions\hrcodwar\plantillas): TAGSQUAD.mis
COMMANDERS NICKS IN MISSION (comandantes_aliados or comandantes_eje in missions/hrcodwars/conf.ini): TAGSQUAD_MyNick
COMMANDERS PASSWORD IN WEBSITE (CFG_PASS_ALIADO_COMANDANTE or CFG_PASS_EJE_COMANDANTE): TAGSQUAD_anyword


The information above is the most important to configure the system correctly, keep in mind always ;)



"Fue en España donde los hombres aprendieron que uno puede tener razón y ser derrotado, que la fuerza puede destruir el alma, y que a veces el coraje no obtiene recompensa" - Albert Camus

Vogler

  • Cadete
  • *
  • Mensajes: 12
  • Carisma: 0
    • Ver Perfil
Re:Passwords and squadrons config
« Respuesta #2 : marzo 22, 2014, 01:46:57 pm »
I reset mission in conf.ini however web server still keeps data from last campaign....what do i do with it?
Just replace folder or is there some sort of cache which should i delete??

Naglfar

  • Polkovnik
  • ********
  • Mensajes: 4756
  • Carisma: 110
    • Ver Perfil
Re:Passwords and squadrons config
« Respuesta #3 : marzo 22, 2014, 02:26:49 pm »
I reset mission in conf.ini however web server still keeps data from last campaign....what do i do with it?
Just replace folder or is there some sort of cache which should i delete??

After changing the conf.ini you have to launch the mission server. With mission=0 it will read the templates and restart the campaign, then you do a battle stop and it will send all the data to the web server, and you will have the new campaign in the web.

It's all explained here: http://www.halconesrojos.com/hrcodwar/en/planning-campaign

Any change in the conf.ini will take effect once you fly the mission with those new settings. And the web is only updated when the mission server sends the last mission results after a battle stop.

La ciudad ha caido... ¡Que presagio más funesto!

Grainovich

  • Moderator
  • Polkovnik
  • *******
  • Mensajes: 21269
  • Carisma: 645
    • Ver Perfil
Re:Passwords and squadrons config
« Respuesta #4 : marzo 22, 2014, 06:18:04 pm »
Oh! I forget it , yes!! the system not erase the previous data of the campaign, but, doesn't matter because it will be overwritten.

In fact, when you reset the campaign, you can delete the missions/hrcodwar/datos_batalla folder and the system will create it again ;) , but there is not a mechanism similar on the website, you must delete the previous data in hrcodwarweb\secret_folder_battle_data , this directory only must contain the claves.ini file in a restart scenario ;)

"Fue en España donde los hombres aprendieron que uno puede tener razón y ser derrotado, que la fuerza puede destruir el alma, y que a veces el coraje no obtiene recompensa" - Albert Camus

Vogler

  • Cadete
  • *
  • Mensajes: 12
  • Carisma: 0
    • Ver Perfil
Re:Passwords and squadrons config
« Respuesta #5 : marzo 23, 2014, 02:34:51 am »
Thank You for answer, I actually refreshed all web folder ...

Grainovich

  • Moderator
  • Polkovnik
  • *******
  • Mensajes: 21269
  • Carisma: 645
    • Ver Perfil
Re:Passwords and squadrons config
« Respuesta #6 : marzo 23, 2014, 11:10:32 am »
Ok!, but... "all folders" not:

The files in:

hrcodwarweb\datos_sistema

Must be the same of:

missions\hrcodwar\datos_sistema

;)

"Fue en España donde los hombres aprendieron que uno puede tener razón y ser derrotado, que la fuerza puede destruir el alma, y que a veces el coraje no obtiene recompensa" - Albert Camus