AGamer Posted November 13, 2023 Report Share Posted November 13, 2023 (edited) I was adding my first faction to the game when I came across a process that I am unfamiliar with. An error stating: "g_CivData[playerState.civ] is undefined" : I do not understand how to "define" a "playerState". Anyone think that they can help me out? Edit: I added a pic of all of the errors I am getting just to give extra details... Edited November 13, 2023 by AGamer Quote Link to comment Share on other sites More sharing options...
bb_ Posted November 13, 2023 Report Share Posted November 13, 2023 There seems to be a bunch of errors before this one. These are about missing templates. Probably not too relevant, but doesn't harm fixing. I suspect you did add the `simulation/data/civs/Adrestia.json` file? What is the value of `Code` you put in? What is the value of `g_Players[g_ViewedPlayer].civ`? You can get that by adding a `warn(uneval(g_Players[g_ViewedPlayer].civ))' just prior to the codeline the error comes from. Also there might be more errors too (which don't seem to fit in the screen). No worries: you can find all errors in the logs (see https://trac.wildfiregames.com/wiki/GameDataPaths where to find them). Quote Link to comment Share on other sites More sharing options...
AGamer Posted November 13, 2023 Author Report Share Posted November 13, 2023 Thank you so much for your response! I put the code as Adrestian and am using it as the "<civ></civ>" value for all of the unit/structure templates. (I have not created some of the templates and that is why I assume those Template errors are occurring.) On top of that, the UI is bugged and I am going down the list of errors until I fix the one causing it... It also won't show the emblem I made but I suspect that once the error causing the UI to have issues has been fixed, the emblem will work as well. PS: I will include the Adrestia.json here:Adrestia.json Quote Link to comment Share on other sites More sharing options...
AGamer Posted November 13, 2023 Author Report Share Posted November 13, 2023 I just figured out what that error meant... It was because I did not specify the music in the Adrestia.json... That's embarrassing... I do have plenty of other issues though like the UI problem that I mentioned and the fact that when I select a unit, it throws a whole bunch of errors and will not show that unit's hud... Quote Link to comment Share on other sites More sharing options...
AGamer Posted November 13, 2023 Author Report Share Posted November 13, 2023 Fixed that too... It had me rename the json to Adrestian.json... such a simple fix... Thankyou so much for your help and I am sorry for wasting your time. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.