Special Aircraft Service

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: "String Index Out of Range"?  (Read 3840 times)

0 Members and 1 Guest are viewing this topic.

Salty54

  • member
  • Offline Offline
  • Posts: 117
"String Index Out of Range"?
« on: October 23, 2010, 12:39:53 PM »

I am trying to play FlatMan Spin's Afika campaign and the first few missions fail to load and I get this message:
"Mission Loading Failed: String Index Out of Range 4". The number at the end varies, maybe based on which mission file it is. I don't know what to do to fix this issue? Can someone help. Flat Man, if you are out there and see this, perhaps you can help me.
Logged

Salty54

  • member
  • Offline Offline
  • Posts: 117
Re: "String Index Out of Range"?
« Reply #1 on: October 23, 2010, 03:05:31 PM »

Well I see a number of people have looked at the post but no response. I noticed Madcop's post about the same issue ,but Geraxd's response link comes up dead for me. Search doesn't come up with anything about String Index being out of range. So I am stuck unless Gerax can respond to me also. Help is appreciated.
Logged

SAS~HolyGrail

  • Modder f*ck*r =)
  • SAS Team
  • member
  • Offline Offline
  • Posts: 874
  • A little mod in the making !
Re: "String Index Out of Range"?
« Reply #2 on: October 23, 2010, 03:32:24 PM »

I don't know Salty but you can always set up your game
to create log file which you can open with notepad where
inside you can read what's wrong with your game install .
It should tell you what objects you're missing .
I have mine inside game conf.ini file set up as:

[Console]
HISTORY=1024
HISTORYCMD=1024
LOAD=console.cmd
SAVE=console.cmd
LOG=1
LOGTIME=1
LOGFILE=Holy
LOGKEEP=0

With this each time I start my game , there is Holy log file with
new fresh load up information inside main IL-2 1946 folder .
Each time you start the game this file will be replaced automatically
with new latest load info about everything going on during your play
flying session  8)
If you have that already and using log file info , then I am sorry .

S! HG  8)

Logged
Dignified silence is worth more than a thousand insults...

Salty54

  • member
  • Offline Offline
  • Posts: 117
Re: "String Index Out of Range"?
« Reply #3 on: October 23, 2010, 04:32:45 PM »

Thanks HG for the response. I found the problem by searching all Gerax's posts until I found someone else who had the same problem. Its interesting that when I used the search function, it did not show any other posts about String Index being out of range. I guess it is limited in its capability. The solution is that in the MIS file, under the [House] section, it lists damaged buildings. When the MIS file tries to load and it can't find these damaged objects because they are not listed in the actors file, it kicks it out. If you delete all the entries under [House] in each MIS file, it will then load. The only problem I found is that when you then play the mission, the damaged building entries re-create themselves in the MIS file, so if you try to play the mission over again, bang, you get the same error message, "String Index out of Range". Its a pain to have to redo the deletion of the entries again. I guess you have to open the MIS file in FMB and use the destruction brush (what they called it, I don't know) to change the path of destruction or objects so it doesn't keep doing this. So thats what it is for what its worth.
Logged

SAS~HolyGrail

  • Modder f*ck*r =)
  • SAS Team
  • member
  • Offline Offline
  • Posts: 874
  • A little mod in the making !
Re: "String Index Out of Range"?
« Reply #4 on: October 23, 2010, 05:35:31 PM »

I am glad you found it , that's exactly the reason , I knew about it but didn't remember
where it was discussed so I thought at least mentioning advice about looking in to log
file will telll you which missing objects are the reason for index string out of range messages .
It was a desperate move on my part after I saw this  :D

Well I see a number of people have looked at the post but no response.

Live From New York , It's Saturday Night ! 
Some of the SAS Team guys and other members are enjoying weekend so that's why there
was not immediate response to your question  8)
Definitely String Index Out of Range errors are pain in the ass and it is happening to me also .
Have a nice rest of the weekend Salty ,
S! HG

Logged
Dignified silence is worth more than a thousand insults...

Salty54

  • member
  • Offline Offline
  • Posts: 117
Re: "String Index Out of Range"?
« Reply #5 on: October 23, 2010, 09:24:07 PM »

Yeah it's Saturday night, which is one of the few times of the week I get to play this sim. Thanks for your help though. I appreciate the effort on my behalf. BTW luv your avatar. I grew up next to a dairy farm so it brought back some memories.
Logged

madcop

  • member
  • Offline Offline
  • Posts: 116
Re: "String Index Out of Range"?
« Reply #6 on: October 24, 2010, 04:44:27 AM »

Well I see a number of people have looked at the post but no response. I noticed Madcop's post about the same issue ,but Geraxd's response link comes up dead for me. Search doesn't come up with anything about String Index being out of range. So I am stuck unless Gerax can respond to me also. Help is appreciated.

Hello Salty

Hope that by reading the following threats ( copied at the time on notepad ) you will find the solution.

Madcop  ;)

Re: String index out of range
« Reply #8 on: December 18, 2009, 02:19:37 AM »Quote
--------------------------------------------------------------------------------

I had this problem once when changing from default map to modded map.

Sorry can't remember the campaign or the modded map.

But my solution was to delete all the content under [Buildings] in the mission file.

My guess was that the items contained in [Buildings] wasn't on the modded map.

Maybe if I had disabled each item in [Buildings] one by one I might have found the problem.

Re: String loading out of range 1
« Reply #10 on: March 01, 2010, 08:35:39 AM »Quote
--------------------------------------------------------------------------------


And, meanwhile I got a answer for you:
(next time -please- use the SEARCH function in the bar above next to the home button... )

I remember that this "2 minutes to ..." mission are a little bit older, are I'm right?

So, I believe that meanwhile the map this missions was written for has been updated, maybe with a new actors.static file.

So when there are was any "destroyed buildings" in the *.mis file of the mission and the buildings are not longer present in the new actors file then you will get this error.

Try to edit the mis file (eventually make a backup copy first) and delete all entries with in the [house] section ... they looks like this:
[house]
lrMN2 +++f
krMN2 ++++f
etc

All clear?   

Here is a example I found with SEARCH  :
https://www.sas1946.com/main/index.php/topic,3236.msg33017.html#msg33017

-G-
-----------------------------------------------------------------------------------------------------
SAS~Gerax has already posted the problem,and the solution to string index errors

Under the [house] section in the .mis file is all the references for any buildings that were damaged by the destruction brush.

Simply cut everything out of the .mis file that is in that section,all of it!

This will not remove anything from the .mis
It will only make a few destroyed buildings back into new good none destroyed buildings.
You will then be able to fly that .mis on an updated map that has had the actors.static updated or changed.

It does not change the actual mission at all,just a few destroyed buildings will not be destroyed looking anymore

It has something to do with the actors but I don't know why,
the same is when making a map,if using destroyed object on the map then when the actors.static is recompiled it always compiles changing the destroyed objects back to being not destroyed.

Maybe because we can not compile destroyed objects into an actors.static may have something to do with destroyed objects not being transferable from .mis file to new maps as the actors do not like the destroyed objects list in the .mis file.

The only way an actors.static will compile with destroyed objects is if the destroyed objects are actual new objects and listed in the static.ini as an always destroyed object that has been made as a new objects that needs to be installed.Actors will not compile or use from other .mis files game destroyed objects.

Easy thing to fix ,delete the entries in the [House] section of .mis file to get rid of the string index error
open .mis file in FMB and use the destruction brush to set new destruction or just forget about the destruction and go fly the .mis

No need to be trying to make mission builder redo there missions
no need for a tool,notepad works fine

S!

Logged

Salty54

  • member
  • Offline Offline
  • Posts: 117
Re: "String Index Out of Range"?
« Reply #7 on: October 24, 2010, 09:18:26 PM »

Madcop,
Yes this was the topic I found in my search and led me to the solution. Glad you asked the question!
Logged
Pages: [1]   Go Up
 

Page created in 0.035 seconds with 25 queries.