SWBFGamers

Modding for the Original SWBF1 and SWBF2 => SWBF1 Modding => Topic started by: Phobos on December 20, 2012, 12:19:45 AM

Title: [SOLVED] Is there a character limit for mission LUA script names?
Post by: Phobos on December 20, 2012, 12:19:45 AM
I have followed the correct procedures for adding custom LUAs to the mission reqs.

When I munge tat2z.lua it works exactly as it should. When I munge tat2_z01.lua into the mission, it crashes when I launch that mission in game. Is there a limit for the character length in the LUA name? I'm going to try reducing it one character at a time until it stops crashing.

And SPtest says nothing about the scripts either.

Update:
SleepKiller has informed me that the limit for AddOn mission LUA is 12 characters.

For campaigns I do not know yet. Stock campaign such as tat2i_h uses 7 characters, and my game crashes on 8, but it could also have something to do with using multiple numbers. I'm not sure yet.
Title: Re: Is there a character limit for mission LUA script names?
Post by: Led on December 21, 2012, 01:54:57 PM
It also may not expect a number at the end of the name.
Title: Re: Is there a character limit for mission LUA script names?
Post by: Phobos on December 27, 2012, 05:26:33 AM
Ok I have confirmed the limit is 7 characters and multiple numbers are in fact allowed.
EhPortal 1.34 © 2024, WebDev