Jump to content

Nishiyandcs4

Members
  • Posts

    19
  • Joined

  • Last visited

Posts posted by Nishiyandcs4

  1. 19 hours ago, cfrag said:

    This had me stumped for a while. I finally found the issue related to a dangling 'else' in csarManager that I unfortunately misplaced when I introduced the "autoTrigger" attribute, and the issue is much more likely to happen if persistence is added to the mix. It is not a persistence issue, it's a plain stupid bug I added to csarManager. Below please find the updated module.

     

    csarManager2.lua 66.16 kB · 4 downloads

    Dear cfrag,
    Thank you for identifying the cause & fixing the problem!!
    CSAR module has now started working properly on the Persistence Mission I'm creating.

    so, I'm lokking forward to seeing how DML evolves in the future.

    THANK YOU SO MUCH!!

  2. On 5/9/2025 at 11:33 PM, cfrag said:

    Perhaps you can isolate the issue into a simple miz: add only the required modules, and use radioMenu to generate the CSAR flag event. If the issue continues to appear on a dedi, we can try and look into this deeper. Else, if the mission isn't too bit, and you remove all mods, I could have a look if you want me to.

    I'm sorry again,,This is DEMO_Miz that I tested.
    This is simply DML's CSAR Demo Miz with Persistence added.

    In SP, the M4 soldier spawns without any problem when the FLAG=100 trigger is triggered,
    but on a dedicated server running persistence, even in the same situation with FLAG=100, the text 
    'HELP! Someone killed my Chopper!'
    pop up, but the M4 soldier does not appear.

    Of course, if I remove the Persistence module it works fine on the same server.

    ...Am I forgetting something in the Persistence settings?

    Modified_demo - CSAR of Georgia.miz

  3. hello @cfrag,
    Last week, I posted that CSAR could not be excutedvia Flag when using Persistence, and reported that it worked fine after I reconfigured Persistence, but after a few days, I checked and found that it was not actuallyworking.
    It works with 'autoTrigger', but does not work when changing Flag with trigger.

    I think there is some code missing after 'then' on line 1486 in the Lua code of the CSAR Manager module, is this line correct?

    If it is correct, then my problem lies elsewhere, but when Presistence is running on a Dedicated server, no matter what I do, I cannot run CSAR via Flag.
    I know you may busy fixing API changes made by ED, but could you please take a lokk at line 1486 of CSARManager module. 
    Thank you &I appreciate your contributions to DML in DCSWorld.

  4. On 5/2/2025 at 12:46 AM, cfrag said:

    Ah. Thank you for the additional information. Please try the following: look for, and delete the folder "tempMission (data)" in your Missions/ folder. 

    Restart the Mission. Does it work now? If so, remember that you now (until ED fix the bug that causes this) must supply a saveDir and saveFileName attribute with some nice names in the persistenceConfig zone.

     

    @cfrag
    Ah, I finally found the cause.
    My dedicated server also uses Slmod, and I had set saveDir to the DCS default directory..

    When I changed saveDir to Slmod, both CSAR & persistence started working properly.

    Ofcourse, I also saveDir & saveFileName.

    sorry for this fuss, I learned something new from this!

    thank you🫡

     

  5. On 5/1/2025 at 11:11 PM, cfrag said:

    I'm having difficulties re-producing the issue. Can I trouble you to do the following:

    • download the demo mission from DML (updated for current DML), see attached
    • Run as SP, go to communication->Other and choose the option to spawn the CSAR via flag 100. The CSAR mission should spawn.
    • Do the same in MP. Is there any difference for you? Note that - unless you configured DCS differently - when you run local server, the mission starts paused, so in order to be able to spawn the CSAR, you must un-pause the mission first.

    Do SP and MP give different results on your DCS? They seem to work the same on my DCS (which may mean nothing 🙂 )

    demo - CSAR of Georgia.miz 209.7 kB · 1 download

    @cfrag
    I tried the attached Demo file in SP and MP on dedicated server.
    The results were that both worked exactly the same and could be used without any problems.

    So, as I posted before, I added the DML persistance module to the Demo File and tried it in SP & MP...

    SP - No problem, worked fine!
    But on the MP on Dedicated server, the message"Help! some trigger killed my chopper!" was displayed, but the M4 soldier didn't appear,
    and nothig happened when I went to the place where he was supposed to appear.

    This makes me think that the persistence problem may be affecting the CSAR module after all🤔 

    On 5/2/2025 at 12:46 AM, cfrag said:

    Ah. Thank you for the additional information. Please try the following: look for, and delete the folder "tempMission (data)" in your Missions/ folder. 

    Restart the Mission. Does it work now? If so, remember that you now (until ED fix the bug that causes this) must supply a saveDir and saveFileName attribute with some nice names in the persistenceConfig zone.

     

    OK, I'll try it & see how it goes!

  6. 9 minutes ago, cfrag said:

    Thank you. Can you elaborate what "working" means? Put differently: what does "does not work in MP" mean specifically? Can you describe a situation in detail as it happens correctly in SP, and how that happens incorrectly (and how that seems incorrect) in MP?

     

    "working" - just as explained by the DML, when the FLAG is turned ON, M4 soldier appear, smoke is released, the enemies approaches,
    they ( M4 Soldier)  are rescued by Helicopter and returned to the CSAR BASE, just this TASKs complete.

    "doesn't work in MP" means that even when the FLAG is ON, no M4 soldier and enemies appear, nothing appears,
    and the CSAR info only displays a message like "NO One needs rescue, everyone is safe".
    However, behind the scenes, only the cooldown timer  (from RadioMenu Module) that occurs when FLAG is ON running.

    ...my English may be a little bit strange and it may be difficult to convey my meaning, but that's about it.

  7. 1 hour ago, cfrag said:

    どうして気づいたのですか?つまり、csarManagerをどのように設定したのですか?シングルプレイヤー(SP)では実行できて、マルチプレイヤーでは実行できないことは何ですか?すぐに原因を突き止められると思います。原則として、DMLはシングルプレイヤーとマルチプレイヤーを区別せず、どちらも同じように動作します。

    CSAR didn't work on the dedicated server, so I tested the MIZ file on SP and it worked,
    i ran it again on the dedicated server, but in MP the M4 Soldier didn't appear.

    However, the flag itself worked, and only the cooldown timer by RadioMenu was runnning.
    The only difference between SP and MP is  whether or not persistance by desanitization is running.

    Also, there was a post just now asking whether there was a persistance problem due to Herc Mod,
    the Miz File I'm running where CSAR doesn't work on MP also uses Herc mod(and UH-60L mod)
    this could also be one of problems.

    I'll try removing those mods and testing it again on a dedicated server.

     

  8. 2 hours ago, cfrag said:

    これは現在実装されておらず、エッジケースのように思えます。とはいえ、これを使いやすい方法でスコアセーフゾーンに追加できるように検討してみます。

    安全地帯が ownedZone (飛行場地帯など) である場合、その地帯の所有者が NEUTRAL でない限り、これはすでに機能していることに注意してください。

    Thank you for your reply and advice!
    Now that you mention it, I could have simply set it to the enemy side.
    The area started out neutral, and the goal was to occupy the area before the enemy forces.
    I'll have to change the method a little, but I'll try it the way you mentioned.

  9. Hello, cfrag! & all the great DCS folks here!

    First of all, I'm a Japanese DCS player and I'm not good at English, so please understand that the questions I'm going to ask might sound a little strange.
    (I'm using Google translation)

    So,Now onto the main topic.
    I've recently started learning and using DML.
    I have a question about 'PlayerScore'. Is it possible to turn on the ScoreSafe function only after occupying a specific base?
    The mission I'm creating involves occupying bases on the map one by one, and once each base becomes my(our) side, clients can spawn from that location,
    but with ScoreSafe, even if we land on a base that's not my side, we'll still get a score.

    Is there any good solution?
    Maybe there is an easier solution than I think, but the DML manual is not in an easily translatable format,
    so my DCS free time is literally "eaten up" while I try to figure out how to solve the problem...
    (Maybe I need to study English more, lol)

    However, I don't want to complain, I just want to know if there is a solution for ScoreSafe.
    I think DML is a very powerful and easy-to-use tool. I would like to understand it better and use it more.

    thank you

     

  10. Hello! Asta.

    The DBS bot on my server is speaking very well!!

    but...
    I have another question,

    1)  Why doesn't "Server Offline" show up when the server is terminated?
    Even if the server is terminated, the live channel display will remain intact. Any special settings in index.js or BDSGameGUI.lua?

    2)  Is the "Started since" display of the live channel not updated unless there is an event such as someone connecting while the server is running? Is it possible to have the display refreshed somewhat automatically (e.g. once every 5 minutes)?

    3)  Only the file name is displayed when the server is started, but if you change the mission file, the file path without .Miz will be displayed in the "Mission" display of the live channel. I'm running a dedicated server and the files get rebooted every 4-5 hours. Also, players in the server can arbitrarily change the file. In any case, the file path is displayed except at startup.

    It would be helpful if you could tell me if you have time.

    Thank you.

  11. Hi Asta!
    I didn't want to waste my time with too many issues, so I really started over to sort things out.
    (Including Bot installation, node download, other settings, etc.)
    Then, mysteriously, the problem was solved all at once, and the Bot started talking 'very very very lively' inside my server.
    I don't know much about Bots and programming like this, so I still don't know what caused it,,,,, but I learned a lot in many ways.
    Thank you for this wonderful bot including your response!🤘

    • Like 1
  12. Hi, Asta, thanks for the quick response! !
    Yes, I have set it up as you said, but the result is the same no matter how many times I run it.
    In rare cases, "Server Offline" is displayed on the channel set as "Message Live ID", but it is the same display on the CMD prompt screen.

    Also, sometimes I get an error like "unable to send".
    It looks like the bot is trying to access channels with these IDs, but for some reason it is unable to access these channels.

    When I tried CTRL + click on the URL of the screen where the error is displayed, it will be displayed as

    {"Mesage": "401: Unauthorized", "code": 0}.

    Is this correct?

×
×
  • Create New...