RING.LUA broken

MarinoCorps

Chieftain
Joined
Apr 6, 2013
Messages
3
installed: Civ5 and G&K
SDK up to date according to Steam

Open Mapbuilder
New Map
click keep debug window open
Try to generate any size map using RING

Debug Window:

The world size is WORLDSIZE_HUGE
Map Script: Generating Map
Map Script: Setting Plot Types (Lua Ring) ...
Runtime Error: Assets\Maps\Ring.lua:173: attempt to index local 'ring_coords' (a nil value)
stack traceback:
Assets\Maps\Ring.lua:173: in function 'GeneratePlotsByRegion'
Assets\Maps\Ring.lua:430: in function 'GeneratePlotTypes'
Assets\DLC\Expansion\Gameplay\Lua\MapGenerator.lua:787: in function <Assets\DLC\Expansion\Gameplay\Lua\MapGenerator.lua:779>
=[C]: ?

I tried sending sirian a message on Polyton a week or two ago...
 
I thought I would provide some more info...
I created a new LUA which started as a copy of the broken RING.
It seems that most of the problems are caused by reading in data with the GetPlayerAndTeamInfo()
function.

Does anyone know which library this function lives in, and more importantly, where it gets its data? I have been able to fix the script by assigning the values I want hardcoded into my LUA script to replace the values obtained by this function, but In order to make the script work as it truly should, I need to solve the WHY of the nil data that function is getting.
 
Back
Top Bottom