borchi_2b Posted September 1, 2011 Posted September 1, 2011 Hi everybody out there, after a few weaponmods were released for certain servers like the 104th and the =4c= server, I wanted to write a new weaponmod for internal use and maybe also external publication. I have done such thing before, so I acctually know that I have to rewrite the rearm.lua file and make the according scripts. Also the planefiles, the res files have to be rewritten and also the plane.lua file. Acctually i went the way that i unpacked the modmanfile of the the 104th and took a look at the files, to compare them and get back into scripting, after i have been absent to lomac for nearly 1 year, do to some private things. so after i opened the files and i rewrote the entries and also all the other files that were needed. now comes the problem. i tried to manually overwrite the files in the FC2 folders, done by copy paste. i fired up the singleplayer fc2 and wanted to see if i can reload the way i wrote the rearm.lua file. i could see the rearm menu in the right order, but my unloaded su27, for example was not loaded with weapons. i tried mayn things but nothing happend. when i installed the normal backup files, or even the mod via modman, everything worked properly. do to this problem of not loading weapons i am stuck in the progress of making the mod, but i have no idea why this happens. i did not want to write in the original files for now, cause i am not sure what i have done wrong, because to my understanding it should be ok for the progress, to overwrite the files in the folders by copy-/ paste and FC2 should be able to read the files. did i maybe use the wrong editing program for saving the lua files? i could save the files as lua files too so it should not be the problem i think, but maybe someone can tell me which program i should use to be sure that i used the right program, and if so, if i need any plugins too. this question is just to have an answer and for me to check if i used the right things. further, do to the fact that i do not want to make everything manually for online play, i would like to write a new modman package. i could not find any documantation on modman, and i still use the modman 7.2.0, did not load the new modman yet, do not know why, but thats the fact :-) i looked through the modman file from the 104th too and figured how to write the modman file in basic, nbut i still have the problem, that on the right buttom the misc sign is read, and thats where i fígured occured my troubleshooting with modman. for a test i replaced the 104th files with mine and made a modman rar file, but when i uploaded the file with modman in the installer it showed a red misc sign on the right lower area of the modman window. thats probably the problem case why it does not load the files as a modman package correct, so thats why nothing is changed in lomac. what do i have to do in the misc area and in which order, to make a modman package, esspecially a working one :-) ? mybe riptide could help me, cause he is the one who made the 104th weaponmod :-) when anybody could help me out in details it would be appreciated alot by myself and some of my wingmen. sincearly boom boom p.s.: i would offer to write a detailed instruction on how to make such a mod and post it here in the forum, so that everybody could find it easily, cause i searched the forum, but did not end up at the right topics, unfortunatly. http://www.polychop-sims.com
RIPTIDE Posted September 1, 2011 Posted September 1, 2011 (edited) Send me your files... Mr. Boom boom Edited September 1, 2011 by RIPTIDE [sIGPIC][/sIGPIC]
borchi_2b Posted September 1, 2011 Author Posted September 1, 2011 ok, riptide, i will, how do you want to have the files? via pm and uploadlink or via email? can you maybe explain some things to it? for example how to make the modman file and make it work right? thanks in advance cheers boom boom http://www.polychop-sims.com
borchi_2b Posted September 1, 2011 Author Posted September 1, 2011 and my callsign boom boom has its origin from my military time in the german navy :-) but nice song, alot of time has passed since the last hearing http://www.polychop-sims.com
RIPTIDE Posted September 1, 2011 Posted September 1, 2011 upload to mediafire http://www.mediafire.com And PM the link... The modman packing is easy. I'm more interested in why your copy-paste didn't work. [sIGPIC][/sIGPIC]
borchi_2b Posted September 1, 2011 Author Posted September 1, 2011 do not know either same what i would like to know the names are all right, and it is a lua file too :-) so i will upload it later maybe 1 hoer or 2, cause i am still at work cheers boom boom edit: i mean i tried to find out on the weekend why it does not work, but 5 hours of establishing a file and finding an error really got on my nerves http://www.polychop-sims.com
borchi_2b Posted September 1, 2011 Author Posted September 1, 2011 files are uploaded :-) http://www.polychop-sims.com
borchi_2b Posted September 1, 2011 Author Posted September 1, 2011 hey riptide, when i figured how to handle the problem, then i figured that i have to add a2g again :-) just tested the mod of the 104th again and did not know untill today that the tv guided weapons work :-) how awesome is that. funny thing, i fly lomac for nearly 6 years now and have never know about that :-) cheers boom boom http://www.polychop-sims.com
RIPTIDE Posted September 1, 2011 Posted September 1, 2011 hey riptide, when i figured how to handle the problem, then i figured that i have to add a2g again :-) just tested the mod of the 104th again and did not know untill today that the tv guided weapons work :-) how awesome is that. funny thing, i fly lomac for nearly 6 years now and have never know about that :-) cheers boom boom Also you forgot about wingmencommandplane.lua. Check PM... WC['RearmingPlanes'] = { keyCommands = { {combos = {{key = 'F1'}}, down = 4501}, [u][i][b]{combos = {{key = 'F2'}}, down = 4502},[/b][/i][/u] {combos = {{key = 'F3'}}, down = 4503}, {combos = {{key = 'F4'}}, down = 4504}, {combos = {{key = 'F5'}}, down = 4505}, {combos = {{key = 'F6'}}, down = 4506}, {combos = {{key = 'F7'}}, down = 4507}, {combos = {{key = 'F8'}}, down = 4508}, {combos = {{key = 'F9'}}, down = 4509}, {combos = {{key = 'F10'}}, down = 4510}, {combos = {{key = '1'}}, down = 4511}, {combos = {{key = '2'}}, down = 4512}, {combos = {{key = '3'}}, down = 4513}, {combos = {{key = '4'}}, down = 4514}, {combos = {{key = '5'}}, down = 4515}, {combos = {{key = '6'}}, down = 4516}, {combos = {{key = '7'}}, down = 4517}, {combos = {{key = '8'}}, down = 4518}, {combos = {{key = '9'}}, down = 4519}, {combos = {{key = '0'}}, down = 4520}, {combos = {{key = '='}}, down = 4521}, {combos = {{key = 'F11'}}, down = wsRepHumanBack}, {combos = {{key = 'F12'}}, down = wsRepHumanAbort}} ^^ maps the keys to the relevant sections in your rearm file. for example F2 above = [i][u][b][4502][/b][/u][/i] = { { Pylon = 1, LauncherCLSID = "{44EE8698-89F9-48EE-AF36-5FD31896A82F}",-- SORBCIJA LauncherCategory = "8", }, { Pylon = 2, LauncherCLSID = "{FBC29BFE-3D24-4C64-B81D-941239D12249}",-- R-73 LauncherCategory = "4", }, { Pylon = 3, LauncherCLSID = "{E8069896-8435-4B90-95C0-01A03AE6E400}",-- R-27ER LauncherCategory = "4", [sIGPIC][/sIGPIC]
borchi_2b Posted September 4, 2011 Author Posted September 4, 2011 hi riptide, well i replaced all 4 files manualy that are needed for a rearm of a su27, the rearm.lua, su27.lua, wingmencommandplane.lua and the rc-rearmingsu27.res files the funny thing is, it does not work. i place a red su27 on an airfield, on a ramp with a cold startup. so the airfield i am based on is the same coalition. next is i use a slick su27 without weapons and after that i want to rearm. i see the menue, nearly in a correct way, have to adjust a few little things to it, but the worse thing is, that the controller and chat tell me that it copies the rearm action, but eventually it happens nothing. really, nothing. no weapons are rearmed, so end up here in chaos, and frustration, cause, i have no clue, why it does not rearm. i also replaced the files in the ka50 folder, cause i also have installed blackshark, but even that was no solution to the problem. i do not know why it does not read the rearm lua file? i use notepad++ to edit the file and can save it as lua too. so i think i am doing it right. i really turn crasy here, and would really appreciate some help here. cheers boom boom http://www.polychop-sims.com
RIPTIDE Posted September 5, 2011 Posted September 5, 2011 Herr Boom Boom Check PM. I found your problem in rearm.lua syntax error. Your file: }, }, [4505] = { Should be: }, }, [4505] = { [b]{[/b] [sIGPIC][/sIGPIC]
RIPTIDE Posted September 5, 2011 Posted September 5, 2011 More syntax problem... LauncherCLSID = "{B4C01D60-A8A3-4237-BD72-CA7655BC0FE9}" [color=Blue][b]}[/b][/color], :music_whistling: [sIGPIC][/sIGPIC]
borchi_2b Posted September 5, 2011 Author Posted September 5, 2011 ok, i will check that and have a look if anything else might have an error. well i have not scripted alot lately, so many signs, hehe, sometimes a german saying might be true. "i did not see the wood, do to all the trees" :-) thanks for you help so far. maybe i need you again :-) lets check if it works :-) http://www.polychop-sims.com
RIPTIDE Posted September 5, 2011 Posted September 5, 2011 ok, i will check that and have a look if anything else might have an error. well i have not scripted alot lately, so many signs, hehe, sometimes a german saying might be true. "i did not see the wood, do to all the trees" :-) thanks for you help so far. maybe i need you again :-) lets check if it works :-) Check PM. I sent new rearm.lua file. It works... you had some payloads with empty pylons I put 73's there as placeholders. There was an error in how you left them empty, but I figured you just left them empty to get the file correct for a later date. [sIGPIC][/sIGPIC]
borchi_2b Posted September 5, 2011 Author Posted September 5, 2011 @riptide: thanks to your help and not giving up on a fellow FC2 comrade :-) your explenations helped alot too. little things make the difference in life :-P i lokked at your file, and compared it to my corrected one. i just decided for now to delete the lines of the empty slots, but you are right, they are left for further upgrades, cause we have to test the weapons and evaluate what would be reasonable for combat and what not :-) many thanks to you bro, from germany :-) @all: ok, now it works :-) 2 weeks of searching, and such a little detail caused so much trouble :-) thanks to riptide, the man of the hour, who saved my comp and my cougar , from flying out of the window :-) now only one thing needs to be done. to write a modman file :-) after that is done, i will write a resume and a how to do, for everybody and what to pay attention to. cheers boom boom http://www.polychop-sims.com
Recommended Posts