Page 170 of 170

Re: Modding Questions Thread

Posted: Fri 20 Aug 2021 18:09
by jeff2146
i have been looking into swapping out the units weapons but i cant seem to find it as its id in the battlegroup manager and modding tools dont match. i did to be sure dig into the weaponmanager module but i could not for the life of me find the actual list of turrets like i could with other units

https://cdn.discordapp.com/attachments/360449014174449664/878308705500807309/unknown.png
https://cdn.discordapp.com/attachments/360449014174449664/878308834790244402/unknown.png

Re: Modding Questions Thread

Posted: Wed 25 Aug 2021 21:33
by Omarncdn
Hello everyone.

Since the new update, my modded NDF file is not working. Its back to vanilla. What files do I have to change to get my mod working again. The last folder I knew was 510064564. What is the new folder where I can change the NDF file.

Need help for a correct syntax for inserting ObjectRefernce to a Collection

Posted: Thu 9 Sep 2021 14:04
by bnsonear
Dear modders using script!

Questions and answers in this thread helped me a lot, but I still experiencing to handle MapList and List (aka Collection).
Modifying numbers and strings are quite easy for me, but I received error message constantly when my XML code is trying to modify a designation in MapList or List.

Syntax - What I CAN do.png
Syntax - What I CAN do.png (438.51 KiB) Viewed 5653 times


I code is mainly based sample xml code accompanied with Sandbox 6.0.
I run the xml code by SandboxInstaller.exe after modifying the contents of pre-existed xml files.

Error message is
Welcome to the Sandbox Mod Installer
Please wait until this console says "Finished!"
======================================================


Game variant: Steam
Local mod is most updated version
Getting install config
Showing interface
mod_from_backup=False
Patching, this might take a while...

Patcher Call: SandboxMod\Patcher\WGPatcher.exe apply C:\Program Files (x86)\Steam\steamapps\common\Wargame Red Dragon\Data\WARGAME\PC\49964\NDF_Win.dat SandboxMod\Script Library\Gameplay\MunaLcuSpeed.xml
WARNING: Unable to load config.xml. Program will continue with internal defaults only!
Processing patch file SandboxMod\Script Library\Gameplay\MunaLcuSpeed.xml
INFO: patch "A-10_Fuel_TModuSelector_add" affects 1 entries in TModuleSelector
INFO: Match condition found in patch A-10_Fuel_TModuSelector_fill has no type, assuming 'property'
INFO: patch "A-10_Fuel_TModuSelector_fill" affects 1 entries in TModuleSelector
ERROR: Unable to save property Selection in patch A-10_Fuel_TModuSelector_fill!
Making asset installerConfig
Running asset installer

Finished!
Press enter to exit...
Finished!


When I touched MapList or List, I see the error above.

My code is

Code: Select all

<wargamepatch>


   <ndfcreate ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TModuleSelector" name="A-10_Fuel_TModuSelector_add" />
   <!--Making empty slots of new instance of TModuleSelector for the later use-->
   <ndfpatch  ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TModuleSelector" name="A-10_Fuel_TmoduSelector_fill">
   <!--Filling empty slots of new instance of TmoduleSelector -->

      <matchconditions>
<!--      <matchcondition type="property" property="__createdby">AKA</matchcondition> -->      <!-- Not working-->
<!--      <matchcondition property="__createdby">AKA</matchcondition>      -->      <!-- Not working too-->
<!--         https://forums.eugensystems.com/viewtopic.php?f=187&t=57927&start=20#p948275    workaround   -->
         <matchcondition property="__order">last</matchcondition>
      </matchconditions>
      <changes>
         <change operation="set" property="ControllerName" type="TableString">FuelController</change> 
            <!--No problem -->
         <change operation="set" property="Default" type="ObjectReference">                                   
            <!--No problem -->
            <reference table="TFuelModuleDescriptor">   
            
               <matchconditions>
                  <matchcondition type="property" property="FuelCapacity">5400</matchcondition>
                  <matchcondition type="property" property="FuelMoveDuration">324</matchcondition>
               </matchconditions>      
            
            </reference>
         </change>

<!--          My problem occurs here,-→ correct syntax needed                              -->
         <!-- <change operation="append" property="Selection" key="null" type="map"> -->                   
         <!-- <change operation="append" property="Selection" type="map"> -->                
         <!-- <change operation="append" property="Selection" type="ObjectReference"> -->      
         
         <change operation="set" property="Selection" type="List" />
         <change property="Selection" type="ObjectReference" operation="append">
               
            <!-- <map>    -->
            <!-- <ObjectReference> -->
               <!-- <key type="OjbectReference">null</key> --> 
               <!-- <key type="OjbectReference">93</key> -->
               <value type="ObjectReference">          
                  <reference table="TModuleSelectorFilter">
                                                      
                     <matchconditions>
                     
                        <!-- <matchcondition type="property" property="__order">first</matchcondition>  -->
                        
                        <!-- <matchcondition type="references" table="TModuleSelectorCondition_OR"> -->           <!-- <matchconditions> -->
                        
                              <!-- <matchcondition type="property" property="ControllerName">ScannerConfigurationController</matchcondition> -->   
      


               <!-- <reference table="TDeckRulesModifier"> -->   
                  <!-- <matchconditions> -->
                     <!-- <matchcondition type="property" property="__order">last</matchcondition> --> 
                  <!-- </matchconditions> -->
               <!-- </reference> -->



   
                        
                           <!-- </matchconditions> -->
                        <!-- </matchcondition> -->
                        

                              <matchcondition type="references" table="TModuleSelectorCondition_OR">     
                                 <matchconditions>
                              
                                    <matchcondition type="references" table="TModuleSelectorCondition_ParamEquals_Integer">     
                                    </matchcondition>               
                              
                                 </matchconditions>
                              </matchcondition>   
                              
                              <matchcondition type="referencedby" table="TModuleSelector"> 
                                 <matchconditions>
                                        
                                     <matchcondition type="property" property="ControllerName">FuelController</matchcondition>
                                     <matchcondition type="referencedby" table="TUniteAuSolDescriptor">
                                       <matchconditions>
                                             
                                             
                                          <matchcondition type="property" property="ClassNameForDebug">Unit_Su25T_Frogfoot</matchcondition>
                                          <matchcondition type="property" property="MotherCountry">URSS</matchcondition>
                                                
                                                
                                       </matchconditions>
                                    </matchcondition>
                                          
                                          
                                 </matchconditions>
                              </matchcondition>
                                    


                  
                        
                     </matchconditions>
                  </reference>
               </value>      
            <!-- </ObjectReference> -->
            <!-- </map> -->
         </change>   
         
         
         
      </changes>
   </ndfpatch>

 
</wargamepatch>


The code is trying to insert a Newly created ObjbectReference in an empty Collection.
Based on a LAVtransport.xml patch, I modified it so I have several working code, but this operation have never succeed.


Correct Syntax - What I want TO DO.png
Correct Syntax - What I want TO DO.png (407.08 KiB) Viewed 5653 times





I'm not a professional programmer, and not an experienced modder. No language-related education, just a doing it for hobby.
I want to learn from this forum but finding a correct syntax from sample code is beyond my knowledge. Any advice is welcome.

Please help me.
Thank you.

(Corrected) Need help for a correct syntax for replacing a Module in a List

Posted: Thu 9 Sep 2021 18:34
by bnsonear
Hello, modders!

I'm a newbie modder and am experiencing an error with syntax of xml script based on power crystals' WGPatch.

My code is relatively simple, just replacing an existing module in Collection (aka List) with a new module.

I learned from the sample codes and their discussion of Sandbox 6.0 by "W:AB Noob", "Bollywood Baloney", and "power crystals", but I couldn't find solution.

Visual-aided_Code.png
Visual-aided_Code.png (46.1 KiB) Viewed 5646 times

Text-version of code is at the end of post.

My problem is described in the picture below.

Deadlock.png
Deadlock.png (599.48 KiB) Viewed 5646 times


Because I couldn't find a document for the syntax, I make my code from other one and applied modification.
With my code above, I get a nested module designation (a in the picture) which results a game crash at the beginng of game running.
I change a part of the code but the result were having duplicated module (b in the picture, I changed operation="set" to "append") or script failure (c in the picture, I removed <key> and <value> to avoid nesting, but Error occurs).

I have no professional experience nor education of computer language, so it is very hard to find a bug in my code.
Any advice is welcome, please help me. Thank you in advance.


Code: Select all

<wargamepatch>
   <ndfpatch ndf="pc\ndf\patchable\gfx\everything.ndfbin" table="TUniteAuSolDescriptor" name="A-10_Assign_New_FeulCtrlr">
      <matchconditions>
         <!-- Identify the LAV-25 in TUniteAuSolDescriptor by its loc hash and nationality-->
         <matchcondition type="property" property="ClassNameForDebug">Unit_A10_Thunderbolt_II</matchcondition>
         <matchcondition type="property" property="MotherCountry">US</matchcondition>
      </matchconditions>
      
      <changes>
         <!-- <change operation="delete" property="Modules" key="Fuel"/>  -->
         
         <!-- <change operation="set" property="Modules" key="Fuel" type="map"> -->
            <!-- <key type="Unset"/> -->
               <!-- <value type="Unset"/> -->
      <!--   </change> -->      


         <change operation="set" property="Modules" key="Fuel" type="map">
            <map>
               <key type="TableString">Fuel</key>
               <value type="ObjectReference">
               <!-- Now we need to borrow a TModuleSelector from another transport unit that points to a TransporterController-->
                  <reference table="TModuleSelector">
                     <matchconditions>
                        <matchcondition property="__order">last</matchcondition>
                        
                        <!-- <matchcondition type="referencedby" table="TUniteAuSolDescriptor"> -->
                           <!-- Condition two is that the TModuleSelector is itself referenced by another transport vehicle-->
                           <!-- <matchconditions> -->
                              <!-- I chose the LVTP-7 in this case -->
                              <!-- <matchcondition type="property" property="NameInMenuToken">88E6811600000000</matchcondition> -->
                              <!-- <matchcondition type="property" property="MotherCountry">US</matchcondition> -->
                           <!-- </matchconditions> -->
                        <!-- </matchcondition> -->
                     </matchconditions>
                  </reference>
               </value>
            </map>
         </change>

         
      </changes>
   </ndfpatch>

</wargamepatch>

Re: Modding Questions Thread

Posted: Sat 11 Sep 2021 00:14
by johnshepardn7117
Good day folks, modders etc, I got the game and been learning as much as I could on how to play it. I was wondering how to add CIWS to the PIVADS, vulcan etc.

I know the sea vessels have a turret with CIWS or naturally. I want to add that attritbute to the Vulcan etc
Please, and thank you.

Re: Modding Questions Thread

Posted: Tue 14 Sep 2021 12:39
by Sireyn
johnshepardn7117 wrote:Good day folks, modders etc, I got the game and been learning as much as I could on how to play it. I was wondering how to add CIWS to the PIVADS, vulcan etc.

I know the sea vessels have a turret with CIWS or naturally. I want to add that attritbute to the Vulcan etc
Please, and thank you.


This should help

https://forums.eugensystems.com/viewtopic.php?f=187&t=42266&hilit=ciws+atgm&start=1390#p1032526
https://forums.eugensystems.com/viewtopic.php?f=187&t=42266&p=1083743&hilit=ciws#p1083743
https://forums.eugensystems.com/viewtopic.php?f=187&t=42266&p=1051913&hilit=ciws#p1051905

Link to COMThing's tutorial has been broken!

Posted: Wed 15 Sep 2021 09:48
by bnsonear
Hello, modders!

I'm trying to give AIM-120A AMRAAMs to Sea Harrier F.2 (previously FSA.1).
Wiki says that most of FSA.1 were upgraded to F.2 around 1993.

Is there anyone who has the latest version of COMThing's Plane Modding Guide?

I want to study a concept of pylon handling and any other things about plane modding,
because I am experiencing the failure on the missile attachment.

I want to give 4 x AMRAAMs and 2 x sidewinders to Harrier, but sample guides (XML script) what I have only gives 4xAMRAAMs and there are still vacant pylons on the plane.

My sample guide is to short and no explanation, so I cannot figure how to change the settings.

2021-09-15_165136.png
2021-09-15_165136.png (15.88 KiB) Viewed 4076 times


COMThing's link to google drive has been broken, and my googling shows the results which directs me to that broken link.

If anyone available, please share the guide with me or let me know where it is.

Thanks in advance!

Re: Modding Questions Thread

Posted: Wed 15 Sep 2021 13:02
by bnsonear
I found the link!

Our guru Sireyn already post a backup link. The link was on the last page of ComThing's thread so I did'nt notice it.

Thank you Sireyn!

Here is a direct link to his post.

Sireyn's backup link for ComThing's pane modding guide

Re: Modding Questions Thread

Posted: Tue 21 Sep 2021 17:24
by Raiden
I need help. When I try to open modding suite i get massage unhanldeled exception occured.
Deleting and instaling modding suite several times but always same massage.

Anyone now why?