Opened 8 years ago

Closed 8 years ago

#3767 closed defect (invalid)

Schwarzwald map - undefined property placements[p][0]

Reported by: elexis Owned by:
Priority: Should Have Milestone:
Component: Maps Keywords:
Cc: Patch:

Description

In some cases this error is thrown:

WARNING: JavaScript warning: maps/random/rmgen/heightmap_manipulation.js line 396
reference to undefined property center.x
WARNING: JavaScript warning: maps/random/schwarzwald.js line 375
reference to undefined property placements[p][0]

For example if seed=7105, default player settings (8 player free for all) and medium mapsize.

Change History (2)

comment:1 by FeXoR, 8 years ago

For me it generates fine with this settings.

Are you sure you are not generating the map with heightmap_manipulation.js in your SVN/custom map directory (this is not part of SVN yet)?

I'm not sure if the functions are changed/overwritten when they have the same name and are loaded in both, a lib at start of the map RMS.LoadLibrary('rmgen') and the map itself.

comment:2 by elexis, 8 years ago

Milestone: Backlog
Resolution: invalid
Status: newclosed

As heightmap_manipulation.js was not committed, it must have been leftover from applying one of the patches. Indeed I had the file still in my repository, testing it reproduced the error while it doesn't occur after deleting it. Thanks for noticing.

Note: See TracTickets for help on using tickets.