Opened 7 years ago

Closed 7 years ago

#4673 closed defect (fixed)

JavaScript error: maps/random/rmgen/pathplacer.js

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

Description

With the attached commands.txt and r19902, i got

ERROR: JavaScript error: maps/random/rmgen/pathplacer.js line 62
TypeError: invalid arguments
  PathPlacer.prototype.place@maps/random/rmgen/pathplacer.js:62:17
  Map.prototype.createArea@maps/random/rmgen/map.js:190:15
  createArea@maps/random/rmgen/library.js:303:9
  @maps/random/unknown_land.js:586:19
ERROR: CMapGeneratorWorker::Run: Failed to load RMS 'maps/random/unknown_land.js'
terminate called after throwing an instance of 'PSERROR_Game_World_MapLoadFailed'
  what():  Error generating random map.
Check application log for details.

I put it to A22, but feel free to push it if not a simple fix

Attachments (1)

commands.txt (1.4 KB ) - added by mimo 7 years ago.

Download all attachments as: .zip

Change History (3)

by mimo, 7 years ago

Attachment: commands.txt added

comment:1 by elexis, 7 years ago

The replay works with a21, so it might be that Unknown randInt change from r19721, i.e. https://trac.wildfiregames.com/changeset/19721/ps/trunk/binaries/data/mods/public/maps/random/unknown_land.js

blame: https://trac.wildfiregames.com/browser/ps/trunk/binaries/data/mods/public/maps/random/unknown_land.js?annotate=blame

It's a river map where the only paths are the shallows of the river.

comment:2 by elexis, 7 years ago

Owner: set to elexis
Resolution: fixed
Status: newclosed

In 19905:

Fix a typo in rP19721.

Differential Revision: https://code.wildfiregames.com/D735
Fixes #4673
Patch By: bb

Note: See TracTickets for help on using tickets.