View Issue Details

IDProjectCategoryView StatusLast Update
0000603Populous: The BeginningScriptingpublic2021-09-19 01:46
ReporterKosjak Assigned To 
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionnot fixable 
Summary0000603: SearchMapCells incorrect calculations?
DescriptionTheres a little issue with both of SMC (SearchMapCells) types (SQUARE & CIRCULAR)
In square case theres always 1 cell missing at north-west position
Screenshot: https://media.discordapp.net/attachments/538744211483262979/654673386794123275/unknown.png

In circular case there is north line being double calculated/processed (from exact center to the pre-last north cell)
Screenshot: https://cdn.discordapp.com/attachments/538744211483262979/654674098814976011/unknown.png
To demonstrate it i just spawned swamp mists, but can be done with just anything else. (Trees would be probably best)

Steps To ReproduceA sample code to run in SUPERVISOR
local blueshaman = getShaman(0)
SearchMapCells(CIRCULAR, 0, 0, 3, world_coord2d_to_map_idx(blueshaman.Pos.D2), function(me)
 local c2d = Coord2D.new()
 local c3d = Coord3D.new()
 map_ptr_to_world_coord2d_centre(me, c2d)
 coord2D_to_coord3D(c2d, c3d)
 createThing(T_SCENERY,M_SCENERY_TREE_1,TRIBE_HOSTBOT,c3d,false,false)
 return true end)
TagsNo tags attached.
Build Number3201

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2019-12-12 05:28 Kosjak New Issue
2021-03-20 06:46 Kosjak Sticky Issue No => Yes
2021-09-19 01:46 Kosjak Status new => closed
2021-09-19 01:46 Kosjak Resolution open => not fixable
2021-09-19 01:46 Kosjak Sticky Issue Yes => No