xcom Posted June 4, 2013 Posted June 4, 2013 Hi, I'm getting a wierd error - The wierd thing is that this script works perfectly on a different mission, what would make the error shown? Script is attached. Thanksscript.txt [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
xcom Posted June 4, 2013 Author Posted June 4, 2013 nvm, just added this unit into the mission file. I think maybe the origin of this error is because unitID or groupID is already present in the mission, but didn't have time to test it. [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Grimes Posted June 4, 2013 Posted June 4, 2013 UnitId and groupId don't matter. If the Ids or groupnames are already used when you try to spawn in the group, the preexisting object that shares the item will be removed. You can use addGroup without giving it a unit or groupId and it will create one as needed. The right man in the wrong place makes all the difference in the world. Current Projects: Grayflag Server, Scripting Wiki Useful Links: Mission Scripting Tools MIST-(GitHub) MIST-(Thread) SLMOD, Wiki wishlist, Mission Editing Wiki!, Mission Building Forum
xcom Posted June 5, 2013 Author Posted June 5, 2013 Then how do you explain this error? [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
xcom Posted June 9, 2013 Author Posted June 9, 2013 I got a new error now :( I checked line 70 in the script (if that is the correct interpertation of the error message) and in that line theres another level in the syntax, maybe there's a limit? The script is attached. Thanks for any help!script2.lua [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
xcom Posted June 10, 2013 Author Posted June 10, 2013 I've just gone over the script, the option that is used is ROE = Open Fire, Weapon Free in WP 1 of that group. I went over the wiki, couldn't see any limitation for the addgroup function. If the issue is as such, can the script be altered to make it work? maybe do another function that will call some of the string? Can any of the developers or testers indicate if there is a limit? this issue hasn't happend before the latest 1.2.4 build for all I know. Thanks [sIGPIC][/sIGPIC] BuddySpike Website | Live Map & Statistics BuddySpike Twitch Channel Buddyspike Discord Buddyspike Facebook
Recommended Posts