Jump to content


Photo

Problem with squad_loadout_ext: data\attrib\squadtrooper\squad_trooper.nil not found


2 replies to this topic

#1 Zaragon

Zaragon
  • New Members
  • 1 posts

Posted 21 November 2020 - 08:23 PM

Hi All,

 

I use Corsix Mod Studio along with some external scripts I wrote myself to automate some changes to LUA files. My workflow is thus:

 

1) Use Corsix Mod Studio to dump the RGDs to LUA.

2) Run the scripts on the LUA files.

3) Use Corsix Mod Studio to compile the modified LUAs back to RGD.

 

This seems to work fine for most things, but I can't compile squads (sbps). This is because every squad has a reference to "attrib\sbpextensions\squad_loadout_ext", which contains the table "trooper_base", and that table's reference is "squadtrooper\squad_trooper.nil". There isn't even a folder named "squadtrooper", much less an actual file named "squad_trooper.nil". I'm assuming this is supposed to be a generic example of an ebps, since the type for "trooper_base" is always an ebps (for example, ebps\races\chaos\troops\chaos_sorceror.lua).

It looks like there is a similar reference to "squadtrooper\squad_trooper.nil" in "attrib\tables\squad_leader_detail.lua", but those seem to be the only ".nil" files referenced in the ENTIRE attribute LUAs.

 

Does anyone have any idea what "squadtrooper\squad_trooper.nil" should look like? Or if I can remove that value from both "attrib\tables\squad_leader_detail.lua" and "attrib\sbpextensions\squad_loadout_ext" without breaking the game?

 

Thanks in advance for any help that anyone can provide.



#2 Daemonjax

Daemonjax
  • Members
  • 5 posts

Posted 13 March 2021 - 07:49 PM

I would first try making a new folder & file named "squadtrooper\squad_trooper.nil" and leaving it blank at 0 bytes.


Edited by Daemonjax, 13 March 2021 - 07:51 PM.


#3 jONES1979

jONES1979

    eL-jONESON

  • Members
  • 1,720 posts
  • Location:Еду в Саратов стрелять в пиратов!

Posted 21 March 2021 - 03:43 AM

In Corsix Mod Studio you even can execute scripts over existed RGD files. The examples are provided.


Edited by jONES1979, 21 March 2021 - 03:44 AM.




Reply to this topic



  


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users