Fixing the scenario loading issue

Tholal

Emperor
Joined
May 19, 2009
Messages
1,676
Here is the stack trace from the error that is causing scenarios not to load. Anyone have any insights? The strange thing is, it doesnt crash on every plot, the first error happens (when trying to load Grand Menagerie) on plot 5,14.

The error is because it is checking getRevealedOwner with a NO_TEAM parameter (which makes sense -- we're just setting up the map at this point).

Presumably this is related to some change made in MNAI, though I dont know exactly when scenarios stopped loading properly.

Code:
CvGameCoreDLL.dll!CvPlot::getRevealedOwner(TeamTypes eTeam=NO_TEAM, bool bDebug=false)  Line 8718 + 0x39 bytes    C++
    CvGameCoreDLL.dll!CvPlot::calculateYield(YieldTypes eYield=YIELD_FOOD, bool bDisplay=true)  Line 7796 + 0x1e bytes    C++
    CvGameCoreDLL.dll!CvPlot::updateSymbols()  Line 1068 + 0xe bytes    C++
    CvGameCoreDLL.dll!CvPlot::updateYield()  Line 7971    C++
    CvGameCoreDLL.dll!CvPlot::updatePotentialCityWork()  Line 5998    C++
>    CvGameCoreDLL.dll!CvPlot::setPlotType(PlotTypes eNewValue=PLOT_LAND, bool bRecalculate=false, bool bRebuildGraphics=false)  Line 6485    C++
    CvGameCoreDLL.dll!CyPlot::setPlotType(PlotTypes eNewValue=PLOT_LAND, bool bRecalculate=false, bool bRebuildGraphics=false)  Line 667    C++
    CvGameCoreDLL.dll!boost::python::detail::invoke<int,void (__thiscall CyPlot::*)(enum PlotTypes,bool,bool),boost::python::arg_from_python<CyPlot &>,boost::python::arg_from_python<enum PlotTypes>,boost::python::arg_from_python<bool>,boost::python::arg_from_python<bool> >(boost::python::detail::invoke_tag_<1,1> __formal={...}, boost::python::detail::invoke_tag_<1,1> __formal={...}, void (PlotTypes, bool, bool)* & f=0x06707b16, boost::python::arg_from_python<CyPlot &> & tc={...}, boost::python::arg_from_python<enum PlotTypes> & ac0={...}, boost::python::arg_from_python<bool> & ac1={...}, boost::python::arg_from_python<bool> & ac2={...})  Line 94 + 0x32 bytes    C++
    CvGameCoreDLL.dll!boost::python::detail::caller_arity<4>::impl<void (__thiscall CyPlot::*)(enum PlotTypes,bool,bool),boost::python::default_call_policies,boost::mpl::vector5<void,CyPlot &,enum PlotTypes,bool,bool> >::operator()(_object * args_=0x188c9090, _object * __formal=0x00000000)  Line 199 + 0x42 bytes    C++
    CvGameCoreDLL.dll!boost::python::objects::caller_py_function_impl<boost::python::detail::caller<void (__thiscall CyPlot::*)(enum PlotTypes,bool,bool),boost::python::default_call_policies,boost::mpl::vector5<void,CyPlot &,enum PlotTypes,bool,bool> > >::operator()(_object * args=0x188c9090, _object * kw=0x00000000)  Line 39    C++
 
Back
Top Bottom