Jump to content

Recommended Posts

Posted

sorry my eng im traslated by google!

 

you perhaps have a simple mission using script?

But basic does not rieso to understand how!

I joined several mix where such writing task I was given a target!

I saw that you need to write a lua file!

The lua file must have the server installed?, Or just one that creates the mix?

====VIAF====

Spinter 155° "Pantere Nere"

 

TsSimComms

 

My Site aiupgrade.net

 

 

 

Posted

Maybe you're looking at this:

 

http://forums.eagle.ru/showpost.php?p=1616590&postcount=447 (lastest version)

http://forums.eagle.ru/showthread.php?t=80979 (link at the manuals at the bottom)

 

This ME upgrade (it's limitative to call it simply "mod") have to be installed on the server-side only, but it's clearly suggested that the mission designer have it installed to test the mission behaviours and effectiveness.

 

If you need more info, or some basic instructions /examples, you can contact me by... mail, PM or else...

 

obvioulsly only in english or milanese languages.

 

:P

 

(saluti a tutti ;) )

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted (edited)
sorry my eng im traslated by google!

 

you perhaps have a simple mission using script?

But basic does not rieso to understand how!

I joined several mix where such writing task I was given a target!

I saw that you need to write a lua file!

The lua file must have the server installed?, Or just one that creates the mix?

 

Here is a simple mission using Lua scripting- no file modification is required.

 

In this example mission, illumination flares are created over the vehicle group every 60 seconds. No matter where the vehicle group drives, the illumination flares will follow it.

 

It is not possible to do that only using triggers.

 

The script is the following script:

do
local group = Group.getByName('M1s')
if group then
	local units = group:getUnits()
	if #units > 0 then
		local avgx, avgy, avgz = 0, 0, 0
		for i = 1, #units do
			local unit = units[i]
			avgx = avgx + unit:getPosition().p.x
			avgy = avgy + unit:getPosition().p.y
			avgz = avgz + unit:getPosition().p.z
		end
		avgx = avgx/#units
		avgy = avgy/#units
		avgz = avgz/#units
		
		trigger.action.illuminationBomb({x = avgx, y = avgy + 750, z = avgz})
	end
end
end

scripting demo mission1.miz

Edited by Speed

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

Posted

Speed... you're almost everywhere :p

 

really looking forward for the script library :D

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted

I can't understand the question.

 

(non riesco a capire la domanda, in italiano sarebbe tradotta come "con gli script è possibile identificare la chat multiplayer?". Cosa intendi?)

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted

ok ora... ho capito meno :p

 

cosa intendi per intecettare? Essere in grado di leggere i messaggi scritti dall'altra coalizione?

 

Se mi indichi cosa vuoi ottenere come obiettivo posso provare a darti una mano.

 

----------

 

Spinter:

Is it possible to intercept a client chat message?

 

Me:

What do you mean by "intercept"? being able to read chat messages of the other coalition?

 

If you tell me what do you want to archieve I could try to help

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted

Hai presente una missione dove si usa slmod.

esempio:

Scivo task sulla chat e il server mi invia delle cordinate del obiettivo.

Io voglio intercettare la scritta chat "task"!

 

Scusa se non riesco a spiegarmi faccio molta fatica!

====VIAF====

Spinter 155° "Pantere Nere"

 

TsSimComms

 

My Site aiupgrade.net

 

 

 

Posted (edited)

Ovvero vuoi impedire che il comando "tasc" vada a buon fine? oppure vuoi sapere quando uno dell'altra coalizione digita "tasc"? questo è impossibile credo.

 

Se invece vuoi che quando uno digita task tutte e due le coalizioni ricevano il messaggio (quindi quando lo digitano gli ostili ricevi anche tu il messaggio, di fatto intercettandolo), è possibile semplicemente cambiando una delle variabili dello script "slmod.chat_cmd" (la variabile "coa", che peraltro è probabilmente facoltativa e basta eliminarla), che chiaramente è quello che sta utilizzando chi ha editato la missione.

 

Il problema per cui non capisco è che sei un pò avaro di dettagli: se provi a spiegarmi la situazione passo passo sono certo che arriviamo a ottenere quel che ti serve (se possibile).

 

Peraltro ho giusto a casa una missione di test in cui spiegavo ad un amico come implementare esattamente tale funzione... che posso girarti stasera. Però è spiegata in inglese poichè il tizio in questione è straniero... nel caso la traduco al volo.

 

PS se proseguiamo in italiano, magari mandami un PM o postalo nel forum ita che non intasiamo il thread.. se no dovremmo tradurre tutti i post

Edited by chromium
aggiunto il post scriptum

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted

si hai ragione sono una frana!

La mix alla quale ti riferisci si usa con Slmod? penso di si

Io volevo una funzione da usare con doscript senza slmod come spiegato da Speed!

E volevo intercettare qualsiasi scritta di chat in multiplayer!

====VIAF====

Spinter 155° "Pantere Nere"

 

TsSimComms

 

My Site aiupgrade.net

 

 

 

Posted

ok allora non so come aiutarti, io sono in grado di usare solo SLmod per ora. Mi interesserò allo scripting in generale solo quando Speed, Grimes e gli altri rilasceranno la loro scripting library.

 

Però scusa sarò fuori di melone io, ma non riesco a capire cosa diavolo intendi letteralmente per intercettare...

 

- leggere? (succede già, a meno che uno non usi il modificatore per mandare i messaggi solo alla propria coalizione)

 

- farlo comparire anche nella tua chat? (succede già, a meno che uno non usi il modificatore per mandare i messaggi solo alla propria coalizione)

 

- registrarlo su un file esterno? (non saprei come fare)

 

- riuscire a leggere eventuali risposte automatiche date da comandi tipo SLmod? (come detto prima, basta settare una variabile nella funzione);

 

- riuscire a ricevere risposte automatizzate, tipo appunto le coordinate di qualcosa, ogni qualvolta digito in chat una deteriminata frase (ovvero copiando il comportamento della funzione di SLmod di cui prima)? (sicuramente possibile, da chiedere a Speed o altri).

 

E' una tra queste? Se si traduco la richiesta in inglese.

ChromiumDis.png

Author of DSMC, mod to enable scenario persistency and save updated miz file

Stable version & site: https://dsmcfordcs.wordpress.com/

Openbeta: https://github.com/Chromium18/DSMC

 

The thing is, helicopters are different from planes. An airplane by it's nature wants to fly, and if not interfered with too strongly by unusual events or by a deliberately incompetent pilot, it will fly. A helicopter does not want to fly. It is maintained in the air by a variety of forces in opposition to each other, and if there is any disturbance in this delicate balance the helicopter stops flying; immediately and disastrously.

Posted (edited)
With script is possible detect chat multiplayer?

Currently, only using Slmod.

 

There is a list of available functions for use with the script?

All the default functions available in the scripting library are listed here:

 

http://en.wiki.eagle.ru/wiki/Simulator_Scripting_Engine_(DCS:_World_1.2.1)

 

All of these you would not need a mod to use, but no, you can't detect chat at this time. The scripting library is still somewhat a work in progress... so who knows, some day you might be able to detect chat without having to use Slmod.

Edited by Speed

Intelligent discourse can only begin with the honest admission of your own fallibility.

Member of the Virtual Tactical Air Group: http://vtacticalairgroup.com/

Lua scripts and mods:

MIssion Scripting Tools (Mist): http://forums.eagle.ru/showthread.php?t=98616

Slmod version 7.0 for DCS: World: http://forums.eagle.ru/showthread.php?t=80979

Now includes remote server administration tools for kicking, banning, loading missions, etc.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...