Steggles Posted January 12, 2016 Posted January 12, 2016 Ive got the following code in my script, it works in single player and works in MP when flying on the server machine, but fails with 'Group doesn't exist' when it comes to a client aircraft. Am I doing something wrong? It fails on local groupID = Group.getID(group) only when it comes to a client aircraft. vec is a Unit object if vec ~= nil and Unit.isActive(vec) then playerName = Unit.getPlayerName(vec) local group = Unit.getGroup(vec) local groupID = Group.getID(group) --Fails here on clients if playerName ~= nil then --Do stuff here end end -16AGR- 16th Air Guards Regiment is always looking for pilots - http://www.16agr.com EWRS - Early Warning Radar Script Specs: Gigabyte Sniper Z5-S Intel i5-4670k 3.4GHz OC'd 3.9GHz w/ Thermaltake 120mm Water 3.0 Pro Liquid CPU Cooler 16GB RAM Gigabyte GTX 1080 TM Hotas Warthog: SN: 06976 Saitek Pro Flight Combat Rudder Pedals TrackIR5 with TrackClipPro & Oculus Rift 2x 28" 4k UHD Monitors (3840x2160 each) + 1280x1024
Stonehouse Posted January 12, 2016 Posted January 12, 2016 Think it was a 1.5 beta scripting issue. Perhaps it hasn't been fixed yet not sure but from the known scripting issues over in the 1.5 beta thread. "31682 - Client groups not accessible in multiplayer." 1
Steggles Posted January 12, 2016 Author Posted January 12, 2016 Ok. Thank you so much. This was doing my head in. I could not for the life of me figure out what was going on. Didn't think to check there. Thanks again. -16AGR- 16th Air Guards Regiment is always looking for pilots - http://www.16agr.com EWRS - Early Warning Radar Script Specs: Gigabyte Sniper Z5-S Intel i5-4670k 3.4GHz OC'd 3.9GHz w/ Thermaltake 120mm Water 3.0 Pro Liquid CPU Cooler 16GB RAM Gigabyte GTX 1080 TM Hotas Warthog: SN: 06976 Saitek Pro Flight Combat Rudder Pedals TrackIR5 with TrackClipPro & Oculus Rift 2x 28" 4k UHD Monitors (3840x2160 each) + 1280x1024
Pikey Posted January 12, 2016 Posted January 12, 2016 http://forums.eagle.ru/showthread.php?t=147792 Sorry just PM'd you this, then found the same thread. Glad you are on the right track, Check with Ciribob for workarounds. This is one of the more painful 1.5 bugs. ___________________________________________________________________________ SIMPLE SCENERY SAVING * SIMPLE GROUP SAVING * SIMPLE STATIC SAVING *
Recommended Posts