Jump to content

Recommended Posts

Posted

00045.803 ERROR DCS: Mission script error: : [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:768: Group doesn't exist

stack traceback:

[C]: ?

[C]: in function 'getName'

[string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:768: in function 'FindNearestEnemy'

[string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:1406: in function 'CallSpawn'

[string "CallSpawn("blue", 3, "spawn2", 400)"]:1: in main chunk

00047.694 ERROR DCS: Mission script error: : [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:768: Group doesn't exist

stack traceback:

[C]: ?

[C]: in function 'getName'

[string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:768: in function 'FindNearestEnemy'

[string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:1406: in function 'CallSpawn'

[string "CallSpawn("blue", 6, "pickzone1", 400)"]:1: in main chunk

 

 

 

 

I thought this was fixed... but I'm getting this error again. Any ideas?

Eno's Killbox.1.2.8.a.miz

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted

00844.445 INFO SCRIPTING: mist.scheduleFunction, error in scheduled function: [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:4254: Parameter #1 (unit name string) missed

01400.471 WARNING LOG: 277 duplicate message(s) skipped.

 

Also getting a lot of these- are these significant?

 

I'm seeing a lot of people joining but then disconnecting... not sure what's up.

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted

Looks like the log from your first post is complaining about this line

 

...

if groupside == 2 then

for i=1,#RedList do

if RedList ~= nil then

groupName = RedList:getName()

group = Group.getByName(groupName)

if group ~= nil then

...

 

RedList at that index may not equal nill. But have you checked to print the table to see what RedList is at that index? It could be something else all together.

  • Like 1

314-я смешанная авиационная дивизия

314th Mixed Aviation Division: The "Fighting Lemmings"- Forums: http://314thsquadron.enjin.com/ - ED Forum Group: http://forums.eagle.ru/group.php?groupid=119

Posted (edited)

The error in the first post is in CTTS. The following is code in its 'FindNearestEnemy()' function:

 

local RedList = coalition.getGroups(1, nil) -- gets most recent grouplist
local BlueList = coalition.getGroups(2, nil)

As noted in the 1.2.8 OpenBeta Test section, due to a scripting-engine bug these functions no longer work for airplanes and helicopters. Basically, the 'RedList' and 'BlueList' tables do not contain any 'valid' groups of these two categories. As a result, errors are propagated in subsequent code that rely on these groups being there. (See http://forums.eagle.ru/showthread.php?t=122534 )

Edited by ajax
Posted

Thanks Ajax- thing is the only items associated with these scripts are infantry.

 

Also- for some reason the script works in my newer missions made within 128 (beta)

 

Not sure what the issue is but it sure is frustrating.

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted

05714.357 INFO SCRIPTING: mist.scheduleFunction, error in scheduled function: [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:4254: Parameter #1 (unit name string) missed

06348.057 WARNING LOG: 316 duplicate message(s) skipped.

 

 

Still getting these- mean anything to anyone?

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted

I get these too. I am using MiST and my own scripts. Not sure if there is any problem with it.

DCS AJS37 HACKERMAN

 

There will always be bugs. If everything is a priority nothing is.

Posted (edited)
...the only items associated with these scripts are infantry.

That may be your intent, but the FindNearestEnemy function as written will return all group types including non-valid entries for helicopters and airplanes. As subsequent code iterates through the table, for example doing other functions such as group:getUnits(), it will eventually run across one of the non-valid groups and cause an error.

 

If infantry only is desired you can change the functions to

 

local RedList = coalition.getGroups(1, Group.Category.GROUND) and

local BlueList = coalition.getGroups(2, Group.Category.GROUND)

 

which should fix the CTTS script.

 

I suspect the mist errors are due to its functions being passed invalid groups. The mist error message, "unit name string missed", could have been caused by something like units = group:getUnits() followed by units[1].getName() function. Without looking at mist more closely, I can't be sure. But these errors are conceivably all related.

Edited by ajax
swapped indexes for red and blue side. oops, right the first time.
Posted (edited)
Also- for some reason the script works in my newer missions made within 128 (beta)

I have seen this, as well. It makes absolutely no sense.

 

It almost seems as if the very first time a coalition.getGroups() function is called it works and thereafter it doesn't. Hmmm.

Edited by ajax
additional thoughts
Posted (edited)

So change lines 760 / 761:

 

local RedList = coalition.getGroups(1, nil) -- gets most recent grouplist

local BlueList = coalition.getGroups(2, nil)

 

To this:

 

local RedList = coalition.getGroups(1, Group.Categories.GROUND)

local BlueList = coalition.getGroups(2, Group.Categories.GROUND)

Edited by ENO

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted (edited)

Yes, that should fix the CTTS error. (Switch red and blue -- I was right the first time: red = 1 and blue = 2. Sorry about that.)

 

Also, it should be Groups.Category.GROUND not Groups.categories.GROUND.

Edited by ajax
Posted

There are actually two scripts to consider. The CTTS script is working now with the changes. However, there are a number of problems that seem to be cropping up with Mist.

 

I was able to get Eno's mission to run without errors by modifying Mist (3.3) as follows:

 

[font=Courier New]--change line 4251
--from
    groupsToAdd[#groupsToAdd + 1] = [color=Red]Unit.getByName(eventData)[/color]:getGroup():getName()
--to
    groupsToAdd[#groupsToAdd + 1] = [color=Red]eventData[/color]:getGroup():getName()


--change line 4254
--from
[/font][font=Courier New][font=Courier New]     groupsToAdd[#groupsToAdd + 1] = [color=Red]Unit.getByName(eventData)[/color]:getGroup():getName()
--to
    groupsToAdd[#groupsToAdd + 1] = [color=Red]eventData[/color]:getGroup():getName()
[/font]

--add to the section of code starting at line 4472
--old
       if string.upper(newTable['category']) == 'GROUND_UNIT' then
           mistCategory = 'vehicle'
           newTable['category'] = mistCategory
       elseif string.upper(newTable['category']) == 'AIRPLANE' then
           mistCategory = 'plane'
           newTable['category'] = mistCategory
       end

--new
       if string.upper(newTable['category']) == 'GROUND_UNIT' then
           mistCategory = 'vehicle'
           newTable['category'] = mistCategory
       elseif string.upper(newTable['category']) == 'AIRPLANE' then
           mistCategory = 'plane'
           newTable['category'] = mistCategory
[color=Red]        elseif string.upper(newTable['category']) == 'HELICOPTER' then
           mistCategory = 'helicopter'
           newTable['category'] = mistCategory
       elseif string.upper(newTable['category']) == 'SHIP' then
           mistCategory = 'ship'
           newTable['category'] = mistCategory
[/color]        end


[/font]

  • 3 weeks later...
Posted

AJAX if that fixes all those other missions of mine that have hit the crapper recently I promise I will create a dozen IDs in ED forums and rep you with them all.

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted

work around for invisible infantry ?

 

Just wondering if anybody has managed a work around which stops ctts dropped infantry being invisible when there are uncontrolled aircraft on the opposite side. This is really messing up something I've been working on for the 51st server :mad:

Posted (edited)

Does anything show up in the error log when that happens?

 

Edit: FubarBundy, check your PMs.

Edited by ajax
Posted

re ctts problem.

 

No error message, just wont spawn troops although "troops dropped" message still appears. happens only when there are uncontrolled (I think red) aircraft are in the mission.

I've got a ver with and a ver without... just trying to figure out how to send em over the pm. (Poor confused old man that I am!)

Posted
No error message, just wont spawn troops although "troops dropped" message still appears. happens only when there are uncontrolled (I think red) aircraft are in the mission.

I've got a ver with and a ver without... just trying to figure out how to send em over the pm. (Poor confused old man that I am!)

 

Eh Fubar... do you have a LOT of units in the mission where this is happening?

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

Posted

It was happening anywhere the infantry were supposed to be dropped. Ajax has found the cure by making some changes in CTTS and Mist. Not sure what exactly.. as I said, I just a poor, confused old man :D

Posted

First, make sure you modify both Mist and CTTS. Otherwise the fixes won't work.

 

I will post the files later. Can't do it from work. (If you want the Mist file it is already posted in another forum section. DCS World/bugs and problems/game crashes then look for Eno's latest post. I think this path is right but I'm not sure.)

Posted

Still getting this error with both CTTS and MIST modified files:

 

00033.923 INFO SCRIPTING: Mist version 3.3.22 loaded.

00045.633 ERROR DCS: Mission script error: : [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:761: attempt to index field 'Categories' (a nil value)

stack traceback:

[C]: ?

[string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:761: in function 'FindNearestEnemy'

[string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:1407: in function 'CallSpawn'

[string "CallSpawn("blue", 8, "spawn2", 500)"]:1: in main chunk

00046.144 ERROR DCS: Mission script error: : [string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:761: attempt to index field 'Categories' (a nil value)

stack traceback:

[C]: ?

[string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:761: in function 'FindNearestEnemy'

[string "C:\Users\Eno\AppData\Local\Temp\DCS\/~mis00..."]:1407: in function 'CallSpawn'

[string "CallSpawn("red", 8, "spawn6", 500)"]:1: in main chunk

"ENO"

Type in anger and you will make the greatest post you will ever regret.

 

"Sweetest's" Military Aviation Art

  • ED Team
Posted

ENO, do you mind making me a simple small mission that would generate this error right off the start that I can submit to the Devs? If its releated to the stuff ajax has posted it might be fixed already in the dev branch, but I wouldnt mind submitting it just in case anyways.

64Sig.png
Forum RulesMy YouTube • My Discord - NineLine#0440• **How to Report a Bug**

1146563203_makefg(6).png.82dab0a01be3a361522f3fff75916ba4.png  80141746_makefg(1).png.6fa028f2fe35222644e87c786da1fabb.png  28661714_makefg(2).png.b3816386a8f83b0cceab6cb43ae2477e.png  389390805_makefg(3).png.bca83a238dd2aaf235ea3ce2873b55bc.png  216757889_makefg(4).png.35cb826069cdae5c1a164a94deaff377.png  1359338181_makefg(5).png.e6135dea01fa097e5d841ee5fb3c2dc5.png

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...