Error that I cant seem to fix

   So I'm adding a new planet to my mod and I encountered an error I cant overcome. I've already added one and it worked fine but this one is annoying. 

 Dev exe says "Failed to find data file 'PlanetRing'. (SubPath = GameInfo)"

Now idk what that means, I have the entity file in gameinfo, ive added all appropriate voices (as far as I know) in galaxyscenariodef file and yet i get that error.

Help?

 

 

 

32,524 views 28 replies
Reply #1 Top

Sounds like you added or deleted a line in the entity. Did you maybe add a planet mesh without updating the count? Lines of code have to be in sequence and only change when a count is changed allowing the code to know where the new info line is.

Reply #2 Top

Just checked, the mesh part of the file seems ok, ive done it like my previous planet, got 3 meshes entries thus the count is 3. I've added the appropriate meshes ... should be working :(

I've been over that file 4 times already, line by line and I cant spot the problem.

 

EDIT: Got this aswell, maybe its related :

"GalaxyScenarioDef Error: Invalid EntityDefName(PlanetRing) found for 'Ring'."

 

 

 

 

 

Reply #3 Top

looks like the error is in the GSD file.

Did you add the planet entity to the manifest? Should have noticed that with your 1st post

"Failed to find data file 'PlanetRing'. (SubPath = GameInfo)"

which means it cant find the entity you are referencing but the PlanetRing threw me as it is a line in the planet entity property for ring chance.

If you did add to manifest, check spelling in there and it has .entity and quotes are correct and the count was updated

+1 Loading…
Reply #4 Top

 Oh yeah ... found out what was wrong while i was writing my reply to you ... apparntly I didnt add the .entity extension in the manifest entry :(

 

 Silly me, i cant believe i didnt see this and ive looked at that manifest for ages lol 

Thanks for your help, without you who knows how long i would have looked for the solution elsewhere.

 

 

EDIT: got something else that aint working ... can you see anything wrong with this? 

orbitBodyTypeCount 35
orbitBodyType
 typeName "Ring"
 entityDefName "PlanetRing"
 defaultTemplateName "Template:DefaultStart_Ring"

Dev exe says : 

Text FileArchive missing Label.

File: C:\Users\[...]\GameInfo\galaxyScenarioDef.galaxyScenarioDef
Label: planetType
Line Number:513
Line Contents:orbitBodyTypeCount 35

I've checked the count again, counted manually this time and came up with 35 entries ... 

 

Reply #5 Top

Quoting vendethiel1, reply 4
Text FileArchive missing Label.

Just FYI this is the easiest error to understand, since the dev.exe tells you exactly how to fix it.  ;)

Quoting vendethiel1, reply 4
Label: planetType
Line Number:513
Line Contents:orbitBodyTypeCount 35

Basically, this means that line number 513, the Dev.exe was expecting to find a "planetType" line but instead found "orbitBodyTypeCount 35", and has no idea what to do. Usually that is caused by adding or deleting a line improperly or not having your counts right.

+1 Loading…
Reply #6 Top

Yeah I know but since ive been at this for hours i said i should post it ... who knows ... anyhow i did find the problem, wasnt where I thought it was, thats why it took me a while to find it ... you know the file aint small, having to look for a needle in a haystack ...

 

 Thanks for your time, ill try to avoid posting stuff like this in the future :)

Reply #7 Top

Quoting vendethiel1, reply 6

Yeah I know but since ive been at this for hours i said i should post it ... who knows ... anyhow i did find the problem, wasnt where I thought it was, thats why it took me a while to find it ... you know the file aint small, having to look for a needle in a haystack ...

 

 Thanks for your time, ill try to avoid posting stuff like this in the future

You wouldn't be alone in hating the GSD. I feel like I'm the only one that likes it sometimes...  x_x :P

Reply #8 Top

Ok sorry to bother you folks again but this is something new (to me anyway). I've finally managed to add my second planet and ive also added a planetbonus and got rid of all the dev exe errors however when i load my mod all the buttons are blank ... (the buttons in the main menu, are all blank, no text in it, wat?!)

I should mention i didnt mess with textures or the string file ... (well other than adding the description for the planet and planet bonus, I did update the counter)

EDIT: It appears that its only the main menu buttons, everything else is there. If I go into options, the buttons are all visible, so are the ingame buttons. Wierd.

Reply #9 Top

Get notepad++ and use the count feature.

Open the String file and double click the word StringInfo and Ctrl+F or Edit->Find
Make sure whole word and match case are selected and press count, that is what should be in the string count in line 2 

Reply #10 Top

Yeah Ive always used notepad++ and when counting the entries wierdness happens. The counter sais i got in total 7871 entries but my original counter was 7763. Whats wierd is that when I set the counter to 7763 the game works fine (except the menu buttons) but when I set it to 7871 a lot of errors appear in dev exe.

Stuff like :

Text FileArchive missing Label.

File: C:\Users\[...]\Mods-Rebellion v1.04 Dev\MyMod\String\English.str
Label: StringInfo
Line Number:23291
Line Contents: Value "This save file requires the following DLC to play: %s."

and if i skip it, it just goes on and on incrementally:

Text FileArchive missing Label.

File: C:\Users\[...]\Mods-Rebellion v1.04 Dev\MyMod\String\English.str
Label: StringInfo
Line Number:23311
Line Contents: Value "This save file requires the following DLC to play: %s."

and so on and on

 

File: C:\Users\[...]\Mods-Rebellion v1.04 Dev\MyMod\String\English.str
Label: StringInfo
Line Number:23333
Line Contents: Value "This save file requires the following DLC to play: %s."

 

The wierdness is the fact that the file finishes with the line 23292 which is the empty line at the end of the file. The errors go on for idk how much but well outside the file line counter (you know, left side of notepad++ tells you the line number).

Idk if you understand what I mean, not really good at explaining things. Again, if i set the string count to 7763, other than the missing main menu buttons, everything else works, ive played for a bit with TEC and couldnt find anything else missing.

Reply #11 Top

Definitely something wrong with the String file.

another way to count should should be (last line value - 2) / 3 which should be the same as the stringInfo count.

Check all your additions in the String file again, did you maybe add an empty line?

Also those errors are listing strings not used until 1.5 and up, If you are not going to update through steam, make sure you are using files from v1.04

Reply #12 Top

Yeah so, more wierdness incoming ...

By doing it like you said (last line value -2)/3 i end up with : 7763 (which is my original value, the one that i used so far in which the game works, except for the main menu issues)

 

If I use notepad++ to count i end up with 7871 ... 

 

I've checked that file up and down and I couldnt find anything wrong with it (but its a big file, i might have missed something). I havent messed with the string file that much either to mess it up, ive only added a few lines at the top of the file. 

 

 

Reply #13 Top

the stringInfo count should be exact, I use it exclusively. There is something else wrong.

Also, even using a new string file for old version should still find menu strings, I don't believe they renamed them, unless you have the old Windows folder reference files in use, its Window\MainMenuScreen.window or something, find the strings it calls and see if they are in your string file.

Ya, here is 1.52 file

http://reference-files.soase.x90x.net/Reference_Files_Reb_v1.52/Window/MainMenuScreen.window

text "IDSMainMenuScreenSinglePlayerButton" is the first one, go down and look for all the text "..."

I am starting to think its because your old version is interacting with new files, update and do over.

Reply #14 Top

I see ... i should mention that I had been using this String file (the 1.52 one) with my current game version from the get go and the main menu was fine until i added my second planet ... as soon as i did that and fixed all errors that went with it, the menu buttons were gone ...

Ive checked the lines ive added and messed with when i done the second planet and i cant find anything wrong with it.

I can live without the main menu buttons, i dont really care about that but what bugs me is the fact that the counter is bloody wrong ... 

Also, as far as I knew, using a newer version of the string file on an older version game shouldnt cause problems. This string file in particular is from another mod. What im trying to do is merge a few mods that were made for 1.52 ver of the game with my own mod and make them compatible with the old game version and using the string file from that mod helps out a bit, cuts down my work by a lot since most of the things i want to merge with my mod are already in that file. 

Now Im doing this for my own usage, i have no plans on releasing anything so no worries, not stealing other ppl stuff.

Anyway, back to the problem at hand ... now that you mention the MainMenuScreen.window file ... I think im using the new on tho, ive substituted the old one with the new one (dont ask me why). I can be wrong but not sure, I think ive started to use this one just recently ... i think the menu buttons dissapeared after ive added this (but i cant be sure, gotta do some testing now)

Ill reply here once i check that.

Reply #15 Top

EDIT: darn, again double post ... sorry, thought i merged it ... 

 

Update, I've finally fixed it ... I have used the MainMenuScreen.window file from the mod im merging and now apparently the menu works but ONLY if I set the string counter to my original value of 7763 despite notepad++ telling me i got more than that. Now the menu works ... everything works, no errors in dev.exe .... wierd, i looked over the string file again and I cant find anything wrong with it ... I think ill leave it as it is and move on, if really needed ill start over with the string file, ill take the 1.04 one and start adding the hundreds of lines to it manually :(

Reply #16 Top

Glad you fixed it  :D

When updating or merging, another great notepad++ feature is Compare, load the 2 files and go to Plugins->Compare

That String has my curiosity, can you upload the string file somewhere? or email it to me at soase at hotmail dot ca


Never worry to much about double posts, especially in your own thread  ;)

 

+1 Loading…
Reply #17 Top

Ill try mailing it to you. Be advised, its a file taken from Soase PLUS mod, hope its ok ... i dont plan on releasing anything under my name, its just for my own fun.

And yeah, the compare plugin is awesome for it. I've been using notepad++ for ages now , this isnt my first rodeo :D (ive modded a lot of games so far)

 

EDIT : Mail sent. If you dont receive it just let me know, ill upload it somewhere.

Reply #18 Top

 

 

Count works fine, compare your settings to mine

Dont worry at all about using other peoples work if you are not releasing. If you do release just get permissions, I think Sins Plus announced it was free to use, just give credit.

Reply #19 Top

Oh yeah? how about that? lol

I think my notepad is broken or something ... ill reinstall it and see what happens

Reply #20 Top

Quoting myfist0, reply 9
Make sure whole word and match case are selected and press count, that is what should be in the string count in line 2 

From other post to you and I showed you my settings  :|

Reply #21 Top

ummm ...

This makes no sense :|

Yeah I admit i didnt use those settings before, never needed them till now .. silly me but now i tried it and ... well ... you can see for yourself ...

Reply #22 Top

This thing is driving me nuts ... what the hell am I doing wrong? 

Reply #23 Top

Ok ... after reinstalling notepad i was getting the same wrong counts and shit ... I was about to give up when I saw what was causing it ...

I wont tell you what it is, i've wasted enough of your time as it is and I dont want to make a fool myself ... again ... seriously ... 

Moving on ... to the next crysis :)

Thank you for your time, help and patience, much appreciated.

Reply #24 Top

WTF  o_O

I turned mine off like you had and got 7871, no idea why  as even the strings do not contain that word.

I am baffled  X|

 

EDIT: We have all done the bone head errors, no worries  :grin:

 

Reply #25 Top

Yeah I thought i was crazy when i saw it working with the settings you said ... but it should work without them aswell