dodger42 Posted July 11, 2006 Posted July 11, 2006 Can anybody confirm whether or not the non world object LUA exports can export X,Y,Z position of your own aircraft? I saw this only in the docs: waypoint_table = { this_point_num, -- number of point ( >= 0) world_point = {x,y,z}, -- world position in meters The x,y,z world position is relative only to the lockon map correct? Has anybody tried relating that to a real world coordinate? Also, the x,y,z above from what I can see represents only planned waypoints, not aircrafts position. Any ideas? . . . Lockon Advanced Realism with Touch-Buddy
Pilotasso Posted July 11, 2006 Posted July 11, 2006 Is it possible to export my own radar contatcs data only? (online play) Position of target related to self (angles), if its jamming etc... I finished UNI and I have now some time to jerk arround. What do I need to do to make export and scripts work?(ED's explanation on their site is a bit overwhelming for me) .
Pilotasso Posted July 11, 2006 Posted July 11, 2006 42 views and no reply...tsss tsss :disgust: You guys have no idea on LUA's potential.I wish I could contribute with some crazy ideas Im thinking about. BUMP! .
NEODARK Posted July 11, 2006 Posted July 11, 2006 42 views and no reply...tsss tsss :disgust: I bet you could create a kick ass mod, that completely changes the game for the better and you'd have 5000 views and only 2 replys (one OT and the other one a big idea on making it better):megalol: Welcome to the LockOn forum :P
Pilotasso Posted July 11, 2006 Posted July 11, 2006 The reason why Im so over this is because I would like for an external program to read LOMAc's radar data and issue key commands for auto antenna tilt for example. I have a few ideas more. 1 .
GGTharos Posted July 11, 2006 Posted July 11, 2006 Won't work. You don't have any feedback as to the actual antenna orientation IIRC. [sIGPIC][/sIGPIC] Reminder: SAM = Speed Bump :D I used to play flight sims like you, but then I took a slammer to the knee - Yoda
NEODARK Posted July 11, 2006 Posted July 11, 2006 you could always send a command to RESET to default and always start from there. Ingenuity always prevails :) PS: no I dont know what you are trying to do..
Pilotasso Posted July 11, 2006 Posted July 11, 2006 Won't work. You don't have any feedback as to the actual antenna orientation IIRC. It doesnt need to. From the moment you lock on, the export can tell if the radar has a target locked or not,and by the time theres a lockon, the pilots had already aimed it anyway. And since its relative target altitude to the players aircraft axis is known, all the export needs to do is to increment tilt commands according to what the target is doing, climbing or getting lower. i.e the pilot aims the antenna, when the export gets the info the target is locked it starts issuing tilt commands according to its altitude related to your own. It will work like in F4 and as far as I know the real APG-63 automated fuctions as well. Its stupid to loose a target because it dove under your radars viewcone. I had this thought through you know, the only thing I need is to know how to set up a script for reading local computer (client?) data. .
AndyHill Posted July 11, 2006 Posted July 11, 2006 The answer to dodger's question is most likely yes, you should be able to get the player data with a combination of LoGetPlayerPlaneId() and LoGetObjectById(). I haven't tried it myself, though. My guess is that Pilotasso's request should also be doable, there are LoGetTargetInformation() and LoGetLockedTargetInformation() functions that might do the trick, but I have no idea how they actually work. _______________________________________________________________ Lock on MUST have a dynamic campaign system with multiplayer capability! My blog full of incoherent ramblings on random subjects: https://anttiilomaki.wordpress.com/
GGTharos Posted July 11, 2006 Posted July 11, 2006 Sorry Pilotasso, it just doesn't work that way. You won't know where the antenna's pointing, and what do you if you over or under correct? You just dropped lock again and it will -certainly- work poorly under the circumstances where it is needed the most: Steep angles. [sIGPIC][/sIGPIC] Reminder: SAM = Speed Bump :D I used to play flight sims like you, but then I took a slammer to the knee - Yoda
Pilotasso Posted July 11, 2006 Posted July 11, 2006 Sorry Pilotasso, it just doesn't work that way. You won't know where the antenna's pointing, and what do you if you over or under correct? You just dropped lock again and it will -certainly- work poorly under the circumstances where it is needed the most: Steep angles. GG I still dont know what is you doubt, if the player can aim the antenna first as always normaly does there wont be any need to make the export know where it is aimed at. All we know is the angle increment to the target everytime it moves and match that with tilt command. The only problem I foresee is to estimate how many degrees increment corresponds to each tilt tick. But that can be adjusted and optimized thanks to good old hand made trigonometry ;) . I never like anyone to say "it wouldnt never work" without even trying. Everytime I set on 1 project, Im always disencouraged only to prove them wrong. Let me know what I need and then let me try it. It wont hurt you, trust me. Everybody complains about lack of community projects and then I read this skepticism without even trying, makes me a bit sad. .
dynamocl Posted July 11, 2006 Posted July 11, 2006 You want a hack that will make the antenna follow a target track without actually locking on? As a bomber pilot, not sure but is this to ensure you stay in contact using something like TWS and you not having to control the tilt etc? No offence, but online couldn't this be viewed as a cheat? I may have the wrong end of the stick, so don't be nasty :) I think what GG is saying, you may be able to control the tilt etc, but would have no feedback as to if the radar had tilted too much/little to remain in contact. If you could somehow get feedback as to the position of the contact within the current cone of radar, then it would be fairly easy. Is this a parameter that is available? 1
Pilotasso Posted July 11, 2006 Posted July 11, 2006 hack? cheat? Your kidding? Real Aircraft do this in real life, LOMAC just failed to have this implemented. .
S77th-RYKE Posted July 11, 2006 Posted July 11, 2006 hack? cheat? Your kidding? Real Aircraft do this in real life, LOMAC just failed to have this implemented. if you gain an advantage over others by modifying the game , yes it is a cheat/hack . Please let us know about your progress so that server admins know when to ban your ass . thanks 1 [sIGPIC]http://img.photobucket.com/albums/v108/madmaxx69/LOMAC/Rykesig1.jpg[/sIGPIC] Savage 77th , http://s77th.com |Core i7 920|Asus P6T Deluxe V2|GTX 285|9600GT-OC|6G DDR3|Softh on 3x22"CRTs|Tir2|yeahIsaidTir2|X-45|Haf 932|Vista Ultimate 64|
Pilotasso Posted July 11, 2006 Posted July 11, 2006 Thanks for your "polite" message Ryke. Ill take it into consideration next time Ill bother work for the community and Ill keep it to myslef and never tell you anything. Think twice before calling anyone a cheat for trying to improve the game. I never called cheaters those who own tactical screens from LUA exports, you might have taken that example not to open your hostilities in such needless rude way. You dont deserve anything the community provides you to download for free. If you want to ban my "ass" go ahead and do it preentively, it suits your character. .
GGTharos Posted July 11, 2006 Posted July 11, 2006 Pilotasso, feedback is important - go ahead and try it, but you'll see it won't work because you don't know where you're starting and you don't know where you are or where you're going. As for Ryke's comments, it sure as heck isn't a cheat if he shares it. The Real F-15C has had this function from whenever TWS was implemented. Didn't take a long time for the name calling to start, did it ... And FYI, the flanker also has a similar (but not the same!) antenna tilt function that slaves ALTITUDE to the cursor (so as you move the cursor up/down range, the antenna tilts to keep your target in view, or more specifically, to keep the scan at the altitude you've set) These are things that are missing from LOMAC. [sIGPIC][/sIGPIC] Reminder: SAM = Speed Bump :D I used to play flight sims like you, but then I took a slammer to the knee - Yoda
Pilotasso Posted July 11, 2006 Posted July 11, 2006 Thanks GG, but my knowelege for LUA is close to nil, I was hoping to get some help wich at this time didnt arrive, and if it doesnt, my project will stall. Theoreticaly my idea should work unless I stumble across any eventual LUA langage limitation. My Optimist comes from experience of fighting it out scores of undetermined variables on other projects. Where 1 thing seems not to be feasible, theres always a surprising way to get it arround. .
GGTharos Posted July 11, 2006 Posted July 11, 2006 You can get target xyz, and you can calculate all sorts of stuff from that ... you can also send a 'move antenna' command which I -think- is discrete. I suggest putting a feature request to get a lua command that gives you your own radar properies. Believe me, you're not getting around this problem, it's an ugly one - but if you can get -something- worked out ... as for getting knowledge of LUA, if you're such a code monkey, it really shouldn't be an issue ;) Edit: I may be wrong here ... the LUA command that modifies the antenna takes an argument from -1 to 1. Now the question is, does it indicate a 'speed of motion' or absolute position? If the latter, you're set ... [sIGPIC][/sIGPIC] Reminder: SAM = Speed Bump :D I used to play flight sims like you, but then I took a slammer to the knee - Yoda
S77th-RYKE Posted July 12, 2006 Posted July 12, 2006 Thanks for your "polite" message Ryke. Ill take it into consideration next time Ill bother work for the community and Ill keep it to myslef and never tell you anything. Think twice before calling anyone a cheat for trying to improve the game. I never called cheaters those who own tactical screens from LUA exports, you might have taken that example not to open your hostilities in such needless rude way. You dont deserve anything the community provides you to download for free. If you want to ban my "ass" go ahead and do it preentively, it suits your character. way to get all high and mighty ... lmao and yes , I was polite , just stating my opinion there bud you are the one trying to modify the game in a way that the person using this mod would gain an unfair advantage over others not using it , so do get off your high horse and put yourself in the shoes of anyone reading what you are trying to acomplish thru LUA . and don't compare what you said to those touchscreens witch are just keyboard emulators , granted they do a lot for immersion and userfriendliness but they by no means achieve a "godlike locking capability" like what you are trying to do . GG , saying "that if he shares the mod , then it's not really cheating" doesn't make it OK in my opinion . Nor does saying the technology exist now in this or that plane ... Of course I am only a customer of ED , I would really much like for ED and/or the community to give stricter guidelines as to what can be modded or not . I think that for the continued future of the lockon multiplayer community that the game must remain the same for everyone . let's say what pilotasso is trying to do works and think of a new pilot that just bought the game who realises that there are people flying out there with LUA exports on multiple screens who can track his every move and keep him locked at will , what that would do to the community ... I appreciate and salute anyone's work that promotes lockon and the community , I just don't think cheating qualifies.... Keeping the game real and fair is what "suits my character" pilotasso . Cheaters have ruined many games online , I would hate to see it happen to lockon . Regards 1 [sIGPIC]http://img.photobucket.com/albums/v108/madmaxx69/LOMAC/Rykesig1.jpg[/sIGPIC] Savage 77th , http://s77th.com |Core i7 920|Asus P6T Deluxe V2|GTX 285|9600GT-OC|6G DDR3|Softh on 3x22"CRTs|Tir2|yeahIsaidTir2|X-45|Haf 932|Vista Ultimate 64|
GGTharos Posted July 12, 2006 Posted July 12, 2006 No such thing as godlike locking capability. Man, if this antenna feature is cheating, then so is TrackIR, especially since I can't turn it off to even the gameplay out when padlock is turned off. People like to have selective morals I think ;) The LUA exports are there specifically so that you -can- mod the game. A lot of absolutely -great- mods have come out specifically thanks to all these LUA exports, such as LOTATC, Zillion's version of it (pity no one seems to be using either) and the forthcoming ACMI, as well as the phantom lead training mod. [sIGPIC][/sIGPIC] Reminder: SAM = Speed Bump :D I used to play flight sims like you, but then I took a slammer to the knee - Yoda
S77th-RYKE Posted July 12, 2006 Posted July 12, 2006 No such thing as godlike locking capability. Man, if this antenna feature is cheating, then so is TrackIR, especially since I can't turn it off to even the gameplay out when padlock is turned off. People like to have selective morals I think ;) The LUA exports are there specifically so that you -can- mod the game. A lot of absolutely -great- mods have come out specifically thanks to all these LUA exports, such as LOTATC, Zillion's version of it (pity no one seems to be using either) and the forthcoming ACMI, as well as the phantom lead training mod. I don't know the first thing about LUA , and I'm sure it can be used for a lot of good applications . I am only going on by what I read here ; Is it possible to export my own radar contatcs data only? (online play) Position of target related to self (angles), if its jamming etc... I finished UNI and I have now some time to jerk arround. wouldn't that give the player an unfair advantage ? surely in game you don't have that info as it stands . The reason why Im so over this is because I would like for an external program to read LOMAc's radar data and issue key commands for auto antenna tilt for example. I have a few ideas more. All of us have to do this manually , surely someone doing this would get an unfair advantage ? Its stupid to loose a target because it dove under your radars viewcone. so to prevent that he wants to make a script that tracks the target thru LUA ... I'd call that an unfair advantage ... now don't get me wrong , anything is fair in single player , but there is talk of online play in that first quote . so.... please enlighten me , if it works it looks unfair to me . no hostility just genuine concern . Regards [sIGPIC]http://img.photobucket.com/albums/v108/madmaxx69/LOMAC/Rykesig1.jpg[/sIGPIC] Savage 77th , http://s77th.com |Core i7 920|Asus P6T Deluxe V2|GTX 285|9600GT-OC|6G DDR3|Softh on 3x22"CRTs|Tir2|yeahIsaidTir2|X-45|Haf 932|Vista Ultimate 64|
Pilotasso Posted July 12, 2006 Posted July 12, 2006 way to get all high and mighty ... lmao and yes , I was polite , just stating my opinion there bud You can have your opinion and you also can choose your way to express it. You chosen a rather arrogant aproach to do so, with that confrontational atitude based on whatever power you think you have to get back at me. Rather strange defenition of politeness you have. Your acusations are not consistent by saying my yet unfullfilled project would be more a cheat than using the 360º owell neck view like we had in previous LOMAC versions or the Bullseye or the ATC utilities. Your interest, as far as you made me understand may lie elsewhere but to discuss this LUA project. I do not know exactly what is you purpose for your agressive remarks, but I would like you to spare me from your lectures and rethink your atitude or focus your agresseviness onto something else. Im not going to "enlighten you" as the objective of this project was made pretty clear already, And Im not in the mood to perpectuate this discussion into a charade. .
dodger42 Posted July 12, 2006 Author Posted July 12, 2006 Thanks Andy :) My thread sorta got hijacked there. Is that data available only with server based lua exports enabled or is it accessible through client lua? Regards, Dodger . . . Lockon Advanced Realism with Touch-Buddy
GGTharos Posted July 12, 2006 Posted July 12, 2006 dodger, I -think- that you need the server-based exports to be enabled ... I haven't checked myself yet, but .. ah, here it is: 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 These are the only two ways to get your own XYZ, IIRC. Maybe I'm wrong. [sIGPIC][/sIGPIC] Reminder: SAM = Speed Bump :D I used to play flight sims like you, but then I took a slammer to the knee - Yoda
dodger42 Posted July 12, 2006 Author Posted July 12, 2006 Thanks GG. Would seem like a fairly reasonable function to include in the client export list. Its not something that could be used as a so called 'unfair advantage'. Though getting it added will likely be next to impossible. :noexpression: . . . Lockon Advanced Realism with Touch-Buddy
Recommended Posts