
Bienvenue invité ( Connexion | Inscription )
![]() ![]() |
T3 |
![]()
Message
#1
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Indicatif : BS-19 Messages : 1,343 Inscrit : 2/06/06 Lieu : Issy-les-Moulineaux Membre n° 632 ![]() |
Pas trouvé de réponse en farfouillant les archives donc...
Après avoir vu LOTATC fonctionner lors de la LAN #6, j'ai décidé d'essayer et donc téléchargement, installation, ouverture des ports, importation du lotatc.lua dans le dossier Config/export, même pas besoin de modifier le config.lua, c'était déjà fait et test une machine en serveur,celle sur laquelle lockon est installé. Un machine en client station de contrôle. Utilisation d'une adresse en dyndns pour se connecter et je peux connecter la machine client sur la machine faisant office de serveur. Jusque là, aucun problème. Il me demande même le mot de passe et je ne peux en effet qu'accéder aux terrains que j'ai défini lors de la configuration du serveur. Mais.... il ne se passe rien... pas de navions pas de radars rien... Je penche vers un problème de lotatc.lua qui n'exporte rien mais je fais appel aux grands spécialistes pour me donner l'astuce et aux bonnes âmes pour éventuellement tester mon install ( eux en serveur moi en client; et l'inverse pour confirmer que c'est bien mon lockon qui n'exporte pas, auquel cas j'aurais déjà bien diagnostiqué mon problème ) Bien entendu, une guérison définitive de la panne me satisferait bien plus qu'un diagnostic ![]() tankiou d'avance ![]() --------------------
" Tant hurle le vent, jamais la montagne ne bouge..." ( et toc !) |
Azrayen' |
![]()
Message
#2
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() VALHALLA EXPRESS Indicatif : VK-01 Messages : 7,231 Inscrit : 1/03/05 Lieu : Forteresse de Lug Membre n° 90 ![]() |
Hello
Non, à priori c'est pas ton export. Ton pb serait plutôt symptomatique du lien UDP défaillant. Vérifie ton pare feu et autorise explicitement lotatcserver à envoyer des paquets sur le UDP 10310 (port local), et lotatc (client) à recevoir des paquets UDP envoyé par le même biais (port distant). ++ Az' --------------------
|
T3 |
![]()
Message
#3
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Indicatif : BS-19 Messages : 1,343 Inscrit : 2/06/06 Lieu : Issy-les-Moulineaux Membre n° 632 ![]() |
Merci Az' pour cette prompte et matinale réponse
![]() firewall complètement désactivé et pas mieux.... ça se connecte, mais pas plus d'avions... routeur configuré mais comme il y a liaison de toute façon je ne penche pas pour un problème de config routeur... à suivre donc... Ce message a été modifié par T3 - 1 Dec 2007, 04:44. --------------------
" Tant hurle le vent, jamais la montagne ne bouge..." ( et toc !) |
T3 |
![]()
Message
#4
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Indicatif : BS-19 Messages : 1,343 Inscrit : 2/06/06 Lieu : Issy-les-Moulineaux Membre n° 632 ![]() |
Merci Az' pour cette prompte et matinale réponse ![]() firewall complètement désactivé et pas mieux.... ça se connecte, mais pas plus d'avions... routeur configuré mais comme il y a liaison de toute façon je ne penche pas pour un problème de config routeur... à suivre donc... Pour ce soir, LOTATC vainqueur par abandon ![]() --------------------
" Tant hurle le vent, jamais la montagne ne bouge..." ( et toc !) |
Azrayen' |
![]()
Message
#5
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() VALHALLA EXPRESS Indicatif : VK-01 Messages : 7,231 Inscrit : 1/03/05 Lieu : Forteresse de Lug Membre n° 90 ![]() |
Hé hé, j'ai pas dit de désactiver le FW, mais de le configurer.
Un FW désactivé a tendance à bloquer quand même l'UDP ![]() ++ Az' --------------------
|
T3 |
![]()
Message
#6
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Indicatif : BS-19 Messages : 1,343 Inscrit : 2/06/06 Lieu : Issy-les-Moulineaux Membre n° 632 ![]() |
Hé hé, j'ai pas dit de désactiver le FW, mais de le configurer. Un FW désactivé a tendance à bloquer quand même l'UDP ![]() ++ Az' réactivé et lotatc autorisé .... pas mieux ![]() --------------------
" Tant hurle le vent, jamais la montagne ne bouge..." ( et toc !) |
Doug |
![]()
Message
#7
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Ladhouze pilot, eagle driver, amraams carrier, ... Indicatif : F-01 Messages : 2,446 Inscrit : 27/11/04 Lieu : London Membre n° 1 ![]() |
Envois ton lotatc.lua et les 2 fichiers error.log qui sont dans le dossier temp.
--------------------
|
Azrayen' |
![]()
Message
#8
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() VALHALLA EXPRESS Indicatif : VK-01 Messages : 7,231 Inscrit : 1/03/05 Lieu : Forteresse de Lug Membre n° 90 ![]() |
De base y'a pas de lotatc.lua mais un export.lua qui remplace celui d'origine.
Si tu n'as pas de lotatc.lua, poste le export.lua que tu as dans <LockOn>\config\export\ Tant qu'on y est à vérifier les LUAs, check que dans <LockOn>\config\export\config.lua tu as bien : CODE --[[ Export.lua script is always local , but if EnableExportScript = false you cannot access to cheat posible functions : LoGetWorldObjects and LoGetObjectByID this functions always will return nil to enable them just set EnableExportScript = true --]] EnableExportScript = true C'est le EnableExportScript = true final qui est important. ++ Az' --------------------
|
T3 |
![]()
Message
#9
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Indicatif : BS-19 Messages : 1,343 Inscrit : 2/06/06 Lieu : Issy-les-Moulineaux Membre n° 632 ![]() |
voici le error.log
01/12/2007 15:16 V512091930 TrackIR DLL path: C:\Program Files\NaturalPoint\TrackIR4\ NPClient interface -- initialize OK NPClient : Window handle registration successful NPClient : NaturalPoint software version is 4.00 NPClient : Data transmission started TrackIR DLL path: C:\Program Files\NaturalPoint\TrackIR4\ NPClient interface -- initialize OK NPClient : Window handle registration successful NPClient : NaturalPoint software version is 4.00 NPClient : Data transmission started VoiceVisualizer: Couldn't find , Je me fais découper en morceaux descriptionVoiceVisualizer: Couldn't find SetRadarOn string in Sounds/FrenchVersion/USA/RadioSpeech.cfgVoiceVisualizer: Couldn't find SetRadarOff string in Sounds/FrenchVersion/USA/RadioSpeech.cfgVoiceVisualizer: Couldn't find , Je me fais découper en morceaux descriptionVoiceVisualizer: Couldn't find SetRadarOn string in Sounds/FrenchVersion/RF/RadioSpeech.cfgVoiceVisualizer: Couldn't find SetRadarOff string in Sounds/FrenchVersion/RF/RadioSpeech.cfgDispatcher: track version = 512091930 Dispatcher: initial random seed = 8605468 Dispatcher: apply random seed = 8605468 Cosmos: Mission date assigned - Year:2004, Month:6, Day:22 DXDefTexture: failed to load knopki.tga, D3DXERR_INVALIDDATA. DXDefTexture: failed to load pribory-1-39.bmp, D3DXERR_INVALIDDATA. DXDefTexture: failed to load samara-red.bmp, D3DXERR_INVALIDDATA. DXDefTexture: failed to load samara-blue.bmp, D3DXERR_INVALIDDATA. DXDefTexture: failed to load samara-cherry.bmp, D3DXERR_INVALIDDATA. DXDefTexture: failed to load TRAVA-2.TGA, D3DXERR_INVALIDDATA. wHumanPlane::Init(InitData): New Flight Model of the Su-25T: Init starting... wHumanPlane::Init(InitData): New Flight Model Init finished. Warning: (texture class Graphics::DXFontTexture) must be loaded to step 2, step 1 reported. Dispatcher::Can't execute Lua file ./Config/Export/Export.lua - ./Config/export/lotatc.lua:1: unexpected symbol near `{' LuaExport::LuaExportStart: connection refused voici le errors.log : 01/12/2007 15:16 Command Line : ActionProcessor::Reinitialize le config.lua : ( celui là c'est sur j'ai bon ![]() --[[ Export.lua script is always local , but if EnableExportScript = false you cannot access to cheat posible functions : LoGetWorldObjects and LoGetObjectByID this functions always will return nil to enable them just set EnableExportScript = true --]] EnableExportScript = true le export.lua function LuaExportStart() -- Creation d'un fichier local a la racine de C En mode lecture/ecriture. Le fichier sera ecrasé a chaque lancement. dofile "lua.lua" socket = require("socket") -- CHANGER L'ADD DU CLIENT ICI host = "127.0.0.1" -- port = 10311 c = socket.try(socket.connect(host, port)) -- connect to the listener socket c:setoption("tcp-nodelay",true) -- set immediate transmission mode local file = io.open("c:/Mission.log", "w") -- Si fichier creer if file then -- Rediriger les entree/sortie sur le fichier io.output(file) end end function LuaExportBeforeNextFrame() end function LuaExportAfterNextFrame() end function LuaExportStop() -- Fonction Appeler a la fin de la mission ( Crash, eject etc... ) if c then c:close() end io.write("Mission terminé......\n") -- Fermeture du fichier que nous avons creer plus haut io.close() end function LuaExportActivityNextEvent(t) local tNext = t -- Function appelee toutes les X secondes io.write("-------------------------------NEXT EVENT --------------------------------------\n") if c then -- Send Mission start Time only one Time if t<2 then socket.try(c:send(string.format("Mission start time: %d##",LoGetMissionStartTime() ))) end local o = LoGetWorldObjects() for k,v in pairs(o) do if v.Type == 1 then socket.try(c:send(string.format("%d B %s[%s]@@%f %f %f %f##", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading))) io.write(string.format("%d B %s[%s]@@%f %f %f %f##\n", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)) end if v.Type == 3 then socket.try(c:send(string.format("%d C %s[%s]@@%f %f %f %f##", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading))) io.write(string.format("%d C %s[%s]@@%f %f %f %f##\n", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)) end if v.Type == 5 then socket.try(c:send(string.format("%d B %s[%s]@@%f %f %f %f##", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading))) io.write(string.format("%d B %s[%s]@@%f %f %f %f##\n", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)) end if v.Type == 2 then if v.Subtype == 16 then socket.try(c:send(string.format("%d A %s[%s]@@%f %f %f %f##", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading))) io.write(string.format("%d A %s[%s]@@%f %f %f %f##\n", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)) end end end end -- Specifier ICI le refresh des data en secondes ( 2 secondes par defaut) tNext = tNext + 2.0 return tNext end dofile("./Config/export/tacview.lua") dofile("./Config/export/lotatc.lua") et le lotatc.lua trouvé sur le site qui va bien : http://dev.3rd-wing.net/index.php?option=c...id=46&id=lotatc -- LOTATC LUA export script -- Date: 19 May 2007 -- Author: Doug(damien.gavard@gmail.com) & Brothers -- Web: http://dev.3rd-wing.net LotatcData= { UpdatePeriod = 6, --Delay beetween each refresh (in second) RemoteAddress = "127.0.0.1", -- IP Address of LOTATC SERVER RemotePort = 10311, -- Port of LOTATC SERVER -- -------------------------------------------------------------------- -- Fonction de démarrage du script -- -------------------------------------------------------------------- Start=function(self) dofile "lua.lua" socket = require("socket") self.Objects={} self.NextUpdateTime=0 self.server = socket.try(socket.connect(self.RemoteAddress, self.RemotePort)) -- connect to LOTATC SERVER self.server:setoption("tcp-nodelay",true) -- set immediate transmission mode -- Create a log file self.LogFile = io.open("c:/Mission.log", "w") if self.LogFile then io.output(self.LogFile) end end, -- -------------------------------------------------------------------- -- Fonction de rafraichissement du script -- -------------------------------------------------------------------- Update=function(self) -- Check if it's time to refresh local CurrentTime = LoGetModelTime() local ShouldUpdateLog = false if CurrentTime > self.NextUpdateTime then -- If we have reach the time to refresh self.NextUpdateTime = CurrentTime + self.UpdatePeriod else -- don't refresh return --exit end if CurrentTime<2 then socket.try(self.server:send(string.format("Mission start time: %d##",LoGetMissionStartTime() ))) end io.write("-------------------------------NEXT EVENT --------------------------------------\n") local o = LoGetWorldObjects() for k,v in pairs(o) do if v.Type == 1 then socket.try(self.server:send(string.format("%d B %s[%s]@@%f %f %f %f##", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading))) io.write(string.format("%d B %s[%s]@@%f %f %f %f##\n", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)) end if v.Type == 3 then socket.try(self.server:send(string.format("%d C %s[%s]@@%f %f %f %f##", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading))) io.write(string.format("%d C %s[%s]@@%f %f %f %f##\n", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)) end if v.Type == 5 then socket.try(self.server:send(string.format("%d B %s[%s]@@%f %f %f %f##", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading))) io.write(string.format("%d B %s[%s]@@%f %f %f %f##\n", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)) end if v.Type == 2 then if v.Subtype == 16 then socket.try(self.server:send(string.format("%d A %s[%s]@@%f %f %f %f##", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading))) io.write(string.format("%d A %s[%s]@@%f %f %f %f##\n", k,v.Name,v.Coalition, v.LatLongAlt.Lat, v.LatLongAlt.Long, v.LatLongAlt.Alt, v.Heading)) end end end end, -- -------------------------------------------------------------------- -- Fonction d'arrêt du script -- -------------------------------------------------------------------- Stop=function(self) if self.server then self.server:close() end if self.LogFile then io.write("Mission terminé......\n") io.close(self.LogFile) end end, } -- -------------------------------------------------------------------------------------------- -- Works once just before mission start. do local PrevLuaExportStart=LuaExportStart; LuaExportStart=function() LotatcData:Start(); if PrevLuaExportStart then PrevLuaExportStart(); end end end -- Works just after every simulation frame. do local PrevLuaExportAfterNextFrame=LuaExportAfterNextFrame; LuaExportAfterNextFrame=function() LotatcData:Update(); if PrevLuaExportAfterNextFrame then PrevLuaExportAfterNextFrame(); end end end -- Works once just after mission stop. do local PrevLuaExportStop=LuaExportStop; LuaExportStop=function() LotatcData:Stop(); if PrevLuaExportStop then PrevLuaExportStop(); end end end Voilà j'ai tout posté ![]() a vot'bon coeur m'ssieurs dames --------------------
" Tant hurle le vent, jamais la montagne ne bouge..." ( et toc !) |
Azrayen' |
![]()
Message
#10
|
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() VALHALLA EXPRESS Indicatif : VK-01 Messages : 7,231 Inscrit : 1/03/05 Lieu : Forteresse de Lug Membre n° 90 ![]() |
OK, donc ton export.lua et ton lotatc.lua font deux fois la meme chose => pas bon.
![]() Le must : récupère le export.lua "de base" de LO (31Ko) avec les dofiles qui vont bien en PJ de ce post. (Celui que tu as est celui modifié par brothers pour lotatc) Ainsi tu utiliseras le lotatc.lua (from Doug, sur une structure de Vyrtuoz) qui est plus "propre" que l'export.lua modifié de brothers. ++ Az' --------------------
|
![]() ![]() |
Haut de page · Retour à l'accueil · Contacter le Webmestre | Nous sommes le : 21/03/25 - 11:27 |