• We are currently performing site maintenance, parts of civfanatics are currently offline, but will come back online in the coming days. For more updates please see here.

Runtime Error: Cannot find map script entry point GenerateMap()

Geoclasm

Chieftain
Joined
Jun 1, 2018
Messages
7
Google search turns up nothing. I hate asking this here but I have no choice.
I've created a map generation script and packed it into a mod that I had to modify so that it would work with Gathering Storm.
Unfortunately, the script now fails, much to my frustration.
I have even stripped the script down to nothing BUT the `GenerateMap` method and I STILL get the same error, and I have no idea why. I even turned on the "Show All Symbols" in NotePad++ in case some hidden character was making things stupid, but nothing.

This is the script for the map.
I have included the mod in it's entirety in a .zip file.
Please help me.
Thanks.
 

Attachments

Compare your modinfo file's structure to that of the Perfect Worlds mod.

You are using
Code:
  <InGameActions>
    <AddGameplayScripts id="Script">
      <File>CityIslands.lua</File>
    </AddGameplayScripts>
They are using
Code:
  <InGameActions>
    <ImportFiles id="PW6Import">
      <Properties>
        <LoadOrder>1001</LoadOrder>
      </Properties>
      <File>Map/PerfectWorld6.lua</File>
    </ImportFiles>
AddGameplayScripts are meant to be used for lua scripts that will execute during gameplay rather than as part of map generation.
 
Yep. That fixed it.
Thanks.

Compare your modinfo file's structure to that of the Perfect Worlds mod.

You are using
Code:
  <InGameActions>
    <AddGameplayScripts id="Script">
      <File>CityIslands.lua</File>
    </AddGameplayScripts>
They are using
Code:
  <InGameActions>
    <ImportFiles id="PW6Import">
      <Properties>
        <LoadOrder>1001</LoadOrder>
      </Properties>
      <File>Map/PerfectWorld6.lua</File>
    </ImportFiles>
AddGameplayScripts are meant to be used for lua scripts that will execute during gameplay rather than as part of map generation.
 
Last edited:
Back
Top Bottom