• 📚 Admin Project Update: Added a new feature to PictureBooks.io called Story Worlds. It lets your child become the hero of beloved classic tales! Choose from worlds like Alice in Wonderland, Wizard of Oz, Peter Pan, The Jungle Book, Treasure Island, Arabian Nights, or Robin Hood. Give it a try and let me know what you think!
Resource icon

[New Feature] InGame Editor+ for VP 47

Hey everyone, I just wanted to give a quick update. I managed to figure it out with some light lua work. I loaded this version of IGE into an MPMPM alone just fine, so I knew it wasn't this mod. When I tried it with the community patch mod however, it didn't load. That is because as a MPMP your mods are not seen in the game as mods, so any lines of code that look for other mods and try to process their lua hooks don't work as there is no such associated mod ID or something along those lines, as that mod never was technically initialized from the mods menu. The community patch mod includes an "Overrides" folder that has an "InGame.lua" file that does exactly that. The InGame.lua file that sits at the root of your modpack is instantly overwritten by the one that resides in CommunityPatch/overrides/InGame.lua. So I just went into that overrides InGame.lua and added the line...

ContextPtr:LoadNewContext("IGE_Loader")

... at the very bottom. This forces the game to look for another file named "IGE_Loader", which in our case is fulfilled by the lua file in the Mods section of our MPMP, which allows it to load successfully. I'm going to try to add on all my other mods now too and see how it goes.
MPMPM already generates an InGame.lua that includes all the LoadNewContext calls at the bottom. You just need to copy those into the (1) InGame.lua before deleting the generated file.
 
1761775951991.png

Was trying to get this mod working and got this when I clicked the IGE button in game.
 
View attachment 746171
Was trying to get this mod working and got this when I clicked the IGE button in game.
Have you added the following fixes?

 
Hey there! Trying to play using enlightenment era, historical religions, more wonders and the rest just normal vox populi. lemme know if there is a fix.
crash.PNG
 
I wanted to check out the new stuff added in the 4UC update all at once, particularly using IGE to place player and barbarian units to see em in combat. But I get the same InfoTooltipInclude error... that's a shame.
 
I wanted to check out the new stuff added in the 4UC update all at once, particularly using IGE to place player and barbarian units to see em in combat. But I get the same InfoTooltipInclude error... that's a shame.
Are you using any other modmods? I had this error and then disabled mods which added new buildings and the error was gone. I was also told in another thread the fix is being worked upon.
 
Are you using any other modmods? I had this error and then disabled mods which added new buildings and the error was gone. I was also told in another thread the fix is being worked upon.
Oh, well that makes most modmods break IGE then, oof.
I thought I was playing it safe, the only modmods I was using are ones made by hokath that he updated quickly after 5.0 got released (Semper Fidelis, Religious Victory and Hokath's Proposals + Hokath's Proposals no EE mod). Otherwise it's just the usual Vox Populi with EUI.
 
You can try with my version, it has some updates and seems to work for me with 5.0 + my stuff
 

Attachments

But when using the VP 5.0.1 (EUI) and the old IGE (.39) from Steam Workshop I can use it fine? At least without adding other mods.
Adding (overhaul) More Wonders for VP (.24) makes it come up with \MODS\(1) Community Patch\ Core Files\Overrides\Includes\InforTooltipInclude.lua:1408:bad argument #2 to '?' (Key must be of type 'number' or 'string'.)

Oh, I just noticed that the other is IGE+ (.46) and that it does not work, even when only using the VP. Gives me the same error as post#63 \MODS\InGame Editor+ ( 46)\IGE_API_Data.lua:1138: attempt to call field 'Improvement_AdjacentImprovementYieldChanges' (a nil value)
Adding the fixes attached earlier fixes it. Yay and thanks for those.

Adding (overhaul) More Wonders for VP (.24) makes it come up with \MODS\(1) Community Patch\ Core Files\Overrides\Includes\InforTooltipInclude.lua:1408:bad argument #2 to '?' (Key must be of type 'number' or 'string'.)

Adding Jarcast's Bigger Huge Map for Communitu_79a (v 5) and I get CtD. So does the (v 4). IGE (.39) also crashes on both of them.
But so it does when I try to use Communitu_79a? It worked earlier.

I give up for now. 3 hours of not understanding this when I should be sleeping is not a good idea. Work resumes tomorrow so I have no time to play with Civ5 anyway until Easter.

EDIT: Historical Religions Complete (BNW or GK) (v 45) does not play along. I blame this for the CtD I have experienced.
 
Last edited:
But when using the VP 5.0.1 (EUI) and the old IGE (.39) from Steam Workshop I can use it fine? At least without adding other mods.
Adding (overhaul) More Wonders for VP (.24) makes it come up with \MODS\(1) Community Patch\ Core Files\Overrides\Includes\InforTooltipInclude.lua:1408:bad argument #2 to '?' (Key must be of type 'number' or 'string'.)

Oh, I just noticed that the other is IGE+ (.46) and that it does not work, even when only using the VP. Gives me the same error as post#63 \MODS\InGame Editor+ ( 46)\IGE_API_Data.lua:1138: attempt to call field 'Improvement_AdjacentImprovementYieldChanges' (a nil value)
Adding the fixes attached earlier fixes it. Yay and thanks for those.

Adding (overhaul) More Wonders for VP (.24) makes it come up with \MODS\(1) Community Patch\ Core Files\Overrides\Includes\InforTooltipInclude.lua:1408:bad argument #2 to '?' (Key must be of type 'number' or 'string'.)

Adding Jarcast's Bigger Huge Map for Communitu_79a (v 5) and I get CtD. So does the (v 4). IGE (.39) also crashes on both of them.
But so it does when I try to use Communitu_79a? It worked earlier.

I give up for now. 3 hours of not understanding this when I should be sleeping is not a good idea. Work resumes tomorrow so I have no time to play with Civ5 anyway until Easter.

EDIT: Historical Religions Complete (BNW or GK) (v 45) does not play along. I blame this for the CtD I have experienced.
U cannot. Use versionposted two posts above yours.

VP guys, what does it mean?
Code:
Adding (overhaul) More Wonders for VP (.24) makes it come up with

\MODS\(1) Community Patch\ Core Files\Overrides\Includes\InforTooltipInclude.lua:1408:bad argument #2 to '?' (Key must be of type 'number' or 'string'.)
 
New Version: Download here (v 47)

N.Core is currently inactive, so I decided to make a new version. This version fixes the issue of IGE taking a long time to load in VP 5.0+. It also includes the fixes from above so it's no longer necessary to manually replace any files.

I've updated the OP with N.Core's permission.
 
Back
Top Bottom